phpspec/prophecy-phpunit
Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection.
|
Package
|
Constraint
|
|---|---|
| phpspec/prophecy | ^1.18 |
| phpunit/phpunit | ^9.1 || ^10.1 || ^11.0 || ^12.0 || ^13.0 |
|
Package
|
Constraint
|
|---|---|
| phpstan/phpstan | ^2.1.38 |
How can I help you explore Laravel packages today?