]> khamidou — GitHub mirrors - arcanist.git/commit
Added some additional assertion methods.
authorJoshua Spence <josh@joshuaspence.com>
Sun, 9 Mar 2014 02:23:14 +0000 (18:23 -0800)
committerepriestley <git@epriestley.com>
Sun, 9 Mar 2014 02:23:14 +0000 (18:23 -0800)
commitc42bef4e25469836a43e4ca0b4ff3018a3f94f45
treecdba46b92042b8b30f77595f50642aa02d125db0
parentcf52d88f8b5cd82412759696df2c97dc73cf07cd
Added some additional assertion methods.

Summary:
There are quite a few tests in Arcanist, libphutil and Phabricator that do something similar to `$this->assertEqual(false, ...)` or `$this->assertEqual(true, ...)`.

This is unnecessarily verbose and it would be cleaner if we had `assertFalse` and `assertTrue` methods.

Test Plan: I contemplated adding a unit test for the `getCallerInfo` method but wasn't sure if it was required / where it should live.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran
Differential Revision: https://secure.phabricator.com/D8460
src/unit/engine/phutil/ArcanistPhutilTestCase.php