ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Use this Comparator to get nice output when using PHPUnit assertEquals() with Enums. More...
Public Member Functions | |
accepts ($expected, $actual) | |
assertEquals ($expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false) | |
Private Member Functions | |
formatEnum (Enum $enum=null) | |
Use this Comparator to get nice output when using PHPUnit assertEquals() with Enums.
Add this to your PHPUnit bootstrap PHP file:
::getInstance()->register(new ());
Definition at line 15 of file Comparator.php.
MyCLabs\Enum\PHPUnit\Comparator::accepts | ( | $expected, | |
$actual | |||
) |
Definition at line 17 of file Comparator.php.
MyCLabs\Enum\PHPUnit\Comparator::assertEquals | ( | $expected, | |
$actual, | |||
$delta = 0.0 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
) |
Definition at line 30 of file Comparator.php.
References MyCLabs\Enum\PHPUnit\Comparator\formatEnum().
|
private |
Definition at line 46 of file Comparator.php.
Referenced by MyCLabs\Enum\PHPUnit\Comparator\assertEquals().