phpspec/prophecy
Highly opinionated yet flexible PHP mocking framework for unit tests. Create test doubles with a Prophet, define expected calls and return values, then reveal mocks and verify predictions. Works with PHPUnit and other frameworks; requires PHP 7.2+.
shouldBeCalled(), willReturn()) improving test readability and maintainabilityExecutives: "Prophecy is a proven, open-source mocking framework with 8,492 GitHub stars and zero licensing costs. It ensures our software is thoroughly tested by enabling precise unit tests that catch bugs early
How can I help you explore Laravel packages today?