console-helpers/prophecy-phpunit
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| imanghafoori/eloquent-mockery | 0.87 | — | 127 | 127 | 20 | 714 | 4 | 2.7 | 12.8 | MIT | 2 years ago | |
| lendable/phpunit-extensions | 0.87 | — | 2 | 2 | 0 | 5K | 1 | 13.5 | 49.6 | MIT | 5 months ago | |
| psr-mock/http | 0.86 | psr-mock/http is a tiny PHP package for mocking PSR-7 HTTP messages in tests. Create predictable request/response objects without a full HTTP client, helping you unit test middleware, clients, and services with minimal setup. | 1 | 1 | 0 | 1K | 0 | 0.6 | 38.5 | MIT | 2 years ago | |
| sofa/eloquent-testsuite | 0.86 | — | 10 | 10 | 2 | 862 | 0 | 2.6 | 26.2 | MIT | 5 years ago | |
| phpspec/prophecy | 0.85 | 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,478 | 8,498 | 249 | 3M | 88 | 72.9 | 64.3 | MIT | 5 months ago | |
| belsym/test-bundle | 0.85 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| cosma/testing-bundle | 0.85 | — | 3 | 4 | 2 | 0 | 3 | 0.8 | 0.4 | — | — | |
| janmarek/mockista | 0.85 | Mockista is a lightweight mocking library for PHP/Laravel that helps you create and configure test doubles quickly. Define expectations, stub methods, and verify calls with a simple, fluent API to keep unit tests fast, readable, and maintainable. | 29 | 29 | 14 | 361 | 2 | 1.4 | 16.9 | — | — | |
| mockery/mockery | 0.85 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, and more. It provides a readable DSL to define expectations and interactions, integrates cleanly with PHPUnit, and can be used alongside PHPUnit’s own mocking tools. | 10,726 | 10,811 | 466 | 10M | 106 | 68.0 | 62.4 | BSD-3-Clause | 2 years ago | |
| eloquent/phony-kahlan | 0.84 | — | 5 | 5 | 3 | 26 | 0 | 1.3 | 7.1 | MIT | 5 years ago | |
| mpyw/laravel-database-mock | 0.84 | — | 6 | 6 | 0 | 3K | 0 | 19.6 | 42.8 | MIT | 1 month ago | |
| phpspec/prophecy-phpunit | 0.84 | 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 | 17.0 | 59.2 | MIT | 5 months ago | |
| graham-campbell/testbench | 0.84 | Laravel TestBench adds testing helpers for Laravel packages and apps, built on PHPUnit, Mockery, and Orchestral Testbench. Supports Laravel 8–13 and PHP 7.4–8.5, providing a solid base for fast, reliable package tests. | 50 | 51 | 11 | 4K | 0 | 22.2 | 29.6 | MIT | 4 months ago | |
| symfonycasts/internal-test-helpers | 0.84 | Internal test utilities from SymfonyCasts to streamline PHPUnit and Symfony/Laravel package testing. Provides shared helpers, fixtures, and assertions used across SymfonyCasts projects to reduce boilerplate and keep tests consistent and readable. | 0 | — | 2 | — | 0 | 0.1 | — | — | — | |
| bentools/doctrine-static | 0.84 | Lightweight in-memory Doctrine mock for unit tests. Create ObjectManagers in a ManagerRegistry, persist/remove and flush to a temporary store, and use repository methods like find, findBy, findOneBy, and findAll. Not for real persistence. | 2 | 3 | 0 | 19 | 0 | 0.0 | 12.0 | — | — | |
| phake/phake | 0.84 | Phake is a PHP mocking framework for PHPUnit and other test runners. Create mocks, stubs, and spies with a simple API, verify method calls and arguments, and define return values or exceptions—ideal for fast, isolated unit tests. | 476 | 485 | 86 | 50K | 13 | 29.1 | 37.2 | NOASSERTION | 5 months ago | |
| jangregor/phpstan-prophecy | 0.84 | 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 | 479K | 3 | 21.2 | 55.6 | MIT | 5 months ago | |
| codeception/aspect-mock | 0.84 | — | 785 | 791 | 134 | 14K | 40 | 27.4 | 33.0 | MIT | 4 years ago | |
| psr-mock/http-client-implementation | 0.83 | Tiny PSR-18 HTTP client implementation intended for mocking and testing. Provides a simple client you can plug into PSR-7/PSR-17 workflows to return predefined responses without real network calls. | 1 | 1 | 0 | 2K | 0 | 0.6 | 42.5 | MIT | 2 years ago | |
| mpyw/mockery-pdo | 0.83 | Experimental BDD-style PDO mocking library built on mockery/mockery. Define expectations for prepare/bind/execute and return rows via fetch/fetchAll in a fluent API, making PDO-based code easy to test on PHP 8.2+. | 3 | 3 | 2 | 1K | 1 | 9.9 | 37.7 | MIT | 7 months ago |
How can I help you explore Laravel packages today?