Libraries tagged by mocks
ptrofimov/xpmock
466537 Downloads
PHPUnit: simple syntax to create mock-objects
noeldemartin/laravel-dusk-mocking
99066 Downloads
Mock facades in Laravel Dusk tests.
codeception/util-universalframework
2858653 Downloads
Mock framework module used in internal Codeception tests
ciareis/bypass
12029 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.
adriansuter/php-autoload-override
48258 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.
systemhaus/guzzle-http-mock
96325 Downloads
A mock library for verifying requests made with the Guzzle Http Client, and mocking responses.
loophp/mock-soapclient
64162 Downloads
A fake and predictable SOAP client, useful for your unit tests.
chubbyphp/chubbyphp-mock
189069 Downloads
A strict mocking solution.
phpunit/phpunit-mock-objects
Downloads
tweakers/symfony-service-mock
57649 Downloads
Proxy layer to allow services to have their internals replaced with a test double, without affecting a service-container's (i.e. Symfony) bindings.
tomb1n0/guzzle-mock-handler
51211 Downloads
ramunasd/symfony-container-mocks
92802 Downloads
Provides extended Symfony dependency injection container enabling service mocking.
getdkan/mock-chain
128909 Downloads
A library that helps create chains of mocked objects.
easy-http/mock-builder
26377 Downloads
A fluid interface to build HTTP mocks with an expressive syntax
badoo/soft-mocks
34631 Downloads
The idea behind "Soft Mocks" - as opposed to "hardcore" mocks that work on the level of the PHP interpreter (runkit and uopz) - is to rewrite class code on the spot so that it can be inserted in any place. It works by rewriting code on the fly during file inclusion instead of using extensions like runkit or uopz.