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+.
|
Package
|
Constraint
|
|---|---|
| doctrine/instantiator | ^1.2 || ^2.0 |
| phpdocumentor/reflection-docblock | ^5.2 || ^6.0 |
| sebastian/comparator | ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 |
| sebastian/recursion-context | ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 |
| symfony/deprecation-contracts | ^2.5 || ^3.1 |
|
Package
|
Constraint
|
|---|---|
| php-cs-fixer/shim | ^3.93.1 |
| phpspec/phpspec | ^6.0 || ^7.0 || ^8.0 |
| phpstan/phpstan | ^2.1.13, <2.1.34 || ^2.1.39 |
| phpunit/phpunit | ^11.0 || ^12.0 || ^13.0 |
How can I help you explore Laravel packages today?