Libraries tagged by test mock
olvlvl/phpunit-given
60 Downloads
An alternative to PHPUnit's ReturnValueMap and ReturnCallback. A convenient solution to migrate from Prophecy.
net-tools/phpunit-given
10 Downloads
An alternative to PHPUnit's ReturnValueMap and ReturnCallback. A convenient solution to migrate from Prophecy.
mtk3d/laravel-http-vcr
5 Downloads
Record and replay HTTP requests in Laravel tests — every Http:: facade call goes through a cassette, with nothing to wire up. The Laravel bridge for mtk3d/http-vcr.
mtk3d/http-vcr
46 Downloads
Record and replay HTTP requests in PHP tests — a decorator over any PSR-18 client, so your suite runs fast and deterministic with no network access and no API keys. Built on PSR-7/PSR-17/PSR-18.
mroca/request-log-bundle
3893 Downloads
An HTTP requests mock generator symfony bundle.
mf1dd/object-builder
1 Downloads
Automatically creates fully populated PHP object instances with random, type-safe values. Designed for test fixtures and runtime object generation. Supports all PHP class types — regular classes, readonly classes, abstract classes, enums, traits, interfaces, and built-in stock classes like DateInterval or ArrayObject. Recursively resolves nested object graphs, detects property names for semantically meaningful values (timezone, email, firstname …), and offers constraint-based value ranges via a fluent API. No framework required; zero runtime dependencies beyond nikic/php-parser. PHP 8.2+.
martinsr/phiremock-codeception-extension-laravel-11
3073 Downloads
Codeception extension for Phiremock. Allows to stub remote services for HTTP requests.
lubosdz/simpletest
36 Downloads
SimpleTest is a framework for unit testing, web site testing and mock objects for PHP.
komex/influence
32 Downloads
Mocking any objects and classes
kodova/poser
27 Downloads
A php mock framework inspired by Mockito
kambo/classopener
10 Downloads
Mock/stub final classes and methods in PHPUnit.
ilune/simpletest
605 Downloads
It's a framework for unit testing, web site testing and mock objects for PHP 5.0.5+
ianfoxdev/psp-sandbox-php
19 Downloads
PHP client for psp-sandbox: drive failure scenarios from tests, inspect callback deliveries and verify signatures.
gealex/doublit
96 Downloads
Doublit : A simple tool to test your class dependencies in PhpUnit
filisko/fake-psr3-logger
412 Downloads
Fake PSR-3 logger implementation for integration testing