accepts()
accepts(mixed $expected, mixed $actual) : mixed
Parameters
mixed | $expected | |
mixed | $actual |
Use this Comparator to get nice output when using PHPUnit assertEquals() with Enums.
Add this to your PHPUnit bootstrap PHP file:
\SebastianBergmann\Comparator\Factory::getInstance()->register(new \MyCLabs\Enum\PHPUnit\Comparator());