janmarek/mockista
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| codeception/aspect-mock | 0.87 | — | 784 | 791 | 132 | 14K | 40 | 27.3 | 32.9 | MIT | 4 years ago | |
| rybakit/phpunit-extras | 0.87 | Extend PHPUnit with custom annotations, placeholders, requirements, and expectations. Build and integrate your own @tags, version/package/expression-based requirements, and reusable expectation helpers. Optional support for composer/semver, package-versions, and symfony/expression-language. | 47 | 47 | 1 | 579 | 0 | 21.5 | 18.0 | MIT | 1 month ago | |
| codeception/stub | 0.86 | Create lightweight test doubles for PHP with Codeception Stub. Quickly generate stubs and mocks, define method returns and expectations, and override behavior on the fly—ideal for unit tests that need fast, flexible objects without full implementations. | 301 | 302 | 19 | 1M | 7 | 22.0 | 57.4 | MIT | 9 months ago | |
| console-helpers/prophecy-phpunit | 0.86 | 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 | 51 | 0 | 12.1 | 26.1 | MIT | 5 months ago | |
| polishsymfonycommunity/symfony2-mocker-extension | 0.86 | Behat extension for Symfony2 that lets you mock services in the dependency injection container during tests. Built on Mockery and SymfonyMockerContainer. Consider it a hack and use sparingly; alternative: TestDoubleBundle. | 26 | 26 | 7 | 176 | 0 | 0.6 | 12.1 | MIT | 10 years ago | |
| php-mock/php-mock-mockery | 0.86 | 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 | 78K | 2 | 1.9 | 45.4 | WTFPL | 1 year ago | |
| phpspec/prophecy | 0.86 | 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,462 | 8,498 | 245 | 3M | 89 | 67.7 | 61.3 | MIT | 8 months ago | |
| mpyw/mockery-pdo | 0.86 | 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 | 5.1 | 34.5 | MIT | 10 months ago | |
| eloquent/phony-phpunit | 0.85 | Integration of the Phony mocking/stubbing library with PHPUnit, providing helpers to use Phony in your test suite. Note: this package is no longer maintained; see the linked statement and consider alternatives or the main Phony repo. | 6 | 6 | 3 | 713 | 0 | 1.6 | 19.7 | MIT | 5 years ago | |
| bneumann/mock-api-bundle | 0.85 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| lastdragon-ru/phpunit-extensions | 0.85 | PHPUnit extensions for PHP projects, adding extra test utilities and helpers to streamline assertions, fixtures, and test setup. Designed to integrate cleanly with PHPUnit and improve developer productivity in automated testing workflows. | 0 | 0 | 0 | 28 | 0 | 0.0 | 20.2 | MIT | — | |
| php-mock/php-mock-prophecy | 0.85 | Prophecy integration for php-mock lets you mock PHP built-in functions like time, rand, and sleep inside Prophecy test doubles. Define expected behavior for global functions alongside class mocks, making time-dependent code testable without hard dependencies. | 16 | — | 4 | — | 0 | 1.5 | — | WTFPL | 11 months ago |
|
| yoanm/php-unit-extended | 0.85 | A PHPUnit extension for PHP that adds extra test helpers and assertions, reducing boilerplate and making unit tests clearer and easier to maintain alongside PHPUnit's built-in features. | 0 | 0 | 0 | 68 | 0 | 0.1 | 25.4 | MIT | 3 years ago | |
| polishsymfonycommunity/symfony-mocker-container | 0.85 | — | 141 | 141 | 10 | 49K | 1 | 2.9 | 34.9 | — | 4 years ago | |
| way/phpunit-wrappers | 0.85 | way/phpunit-wrappers provides lightweight PHPUnit wrapper utilities for Laravel and PHP projects, helping you write cleaner, more readable tests with less boilerplate. Use it to simplify assertions, test setup, and common testing patterns without changing your existing PHPUnit workflow. | 45 | 47 | 2 | 66 | 0 | 0.3 | 5.3 | — | — | |
| codeception/mockery-module | 0.85 | Codeception module that integrates the Mockery mocking framework into your test suite, making it easy to create, use, and verify mock objects in PHP unit and functional tests with minimal setup. | 34 | 34 | 12 | 65K | 2 | 0.9 | 45.0 | MIT | 4 years ago | |
| happyr/service-mocking | 0.85 | HappyR Service Mocking is a Laravel testing helper that makes it easy to replace real services with mocks in the container. Swap bindings during functional and integration tests to isolate dependencies and control behavior without manual container wiring or boilerplate. | 44 | 45 | 7 | 6K | 0 | 0.5 | 29.3 | MIT | 2 years ago | |
| mnapoli/phpunit-easymock | 0.85 | A lightweight bridge between PHPUnit and EasyMock for PHP. Quickly create, replay, and verify mocks from your test cases with minimal boilerplate, helping you write clear unit tests using the familiar EasyMock-style workflow. | 38 | 38 | 4 | 1K | 0 | 4.8 | 20.6 | MIT | 1 year ago | |
| psr-mock/http | 0.85 | 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 | 39.5 | MIT | 2 years ago | |
| lendable/phpunit-extensions | 0.85 | — | 2 | 2 | 0 | 2K | 1 | 8.6 | 43.2 | MIT | 8 months ago |
How can I help you explore Laravel packages today?