weirdan/prophecy-shim
Lightweight shim around Prophecy for PHPUnit, helping keep legacy Prophecy-based tests running on newer PHPUnit/Laravel stacks. Provides compatibility glue with minimal changes so you can upgrade tooling without rewriting your mocks.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpspec/prophecy | 0.80 | 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+. | 8,482 | 8,501 | 247 | 3M | 87 | 76.2 | 66.1 | MIT | 3 months ago | |
| console-helpers/prophecy-phpunit | 0.79 | PHPUnit integration helpers for Prophecy, providing convenience traits and utilities to streamline mock creation, prophecy assertions, and cleanup in your test suite. Designed to reduce boilerplate and keep Prophecy-based unit tests tidy and consistent. | 0 | 0 | 1 | 173 | 0 | 19.3 | — | MIT | 3 weeks ago | |
| jangregor/phpstan-prophecy | 0.79 | PHPStan extension for phpspec/prophecy that improves type inference in tests. It teaches PHPStan the real types returned from Prophecy workflows like prophesize(), willExtend(), and reveal(), so your revealed doubles are understood as the mocked class. | 111 | 111 | 30 | 478K | 3 | 23.1 | 56.5 | MIT | 3 months ago | |
| phpspec/prophecy-phpunit | 0.75 | 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. | 194 | 195 | 42 | 1M | 1 | 19.3 | 60.3 | MIT | 3 months ago | |
| php-mock/php-mock-mockery | 0.75 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 71K | 2 | 1.2 | 55.3 | WTFPL | 1 year ago |
How can I help you explore Laravel packages today?