PhpUnit Extras

Easy Mock

The trait \AKlump\PHPUnit\EasyMockTrait is meant to simplify mocking objects for unit testing. It uses the Mockery library for mocking. To get a sense of how to use it please read the various examples provided.