Libraries tagged by test mock
sirbrillig/spies
68964 Downloads
Easier spies, stubs, and mocking for PHP tests
rasuvaeff/understudy
6159 Downloads
Test double library for PHP with a call-closure API
protomock/protomock
31521 Downloads
Mocking native PHP requests (file_get_contents(), ...)
letsdrink/ouzo
11028 Downloads
Ouzo PHP MVC framework
bcncommerce/stream-wrapper
19467 Downloads
PHP stream wrapper for testing classes which interact with files
eloquent/phony-phpunit
259382 Downloads
Phony for PHPUnit.
greenlight/greenlight
1040 Downloads
A test framework for PHP 8.4+ with typed attributes, parallel execution, flat memory use, and lifecycle-safe test doubles.
ciareis/bypass
14674 Downloads
Bypass for PHP provides a quick way to create a custom instead of an actual HTTP server to return prebaked responses to client requests. This is most useful in tests, when you want to create a mock HTTP server and test how your HTTP client handles different types of responses from the server.
gromatics/http-fixtures
3898 Downloads
A Laravel package that generates fake JSON responses for HTTP testing using Http::fake(). It simplifies the creation of mock HTTP responses by integrating with FakerPHP to generate realistic test data.
silasyudi/inject-mocks
13708 Downloads
Automatic injection of mocks into test subjects via #InjectMocks and #Mock annotations, to speed up unit testing with PHPUnit.
thatsus/test-api-protect
78236 Downloads
Avoid hitting third party API's by forcing their client classes to be mocked in tests
polishsymfonycommunity/symfony2-mocker-extension
254051 Downloads
Behat extension for mocking services defined in the Symfony2 dependency injection container.
nivseb/php-mock-server-connector
5094 Downloads
Small tool to use mock-server/mockserver in a easy way from php based tests.
mpyw/mockery-pdo
22024 Downloads
BDD-style PDO Mocking Library for Mockery
mcustiel/mockable-datetime
573821 Downloads
A DateTime library that allows mock dates and times in UnitTests.