Libraries tagged by mock
lstrojny/phpunit-function-mocker
334543 Downloads
Allows mocking otherwise untestable PHP functions through the use of namespaces
badoo/soft-mocks
34278 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.
neur0toxine/pock
35271 Downloads
PSR-18 compatible HTTP mock library
mcustiel/phiremock-common
680891 Downloads
Common libraries for Phiremock
mcustiel/phiremock-codeception-module
401107 Downloads
Codeception module for PhireMock. Allows to stub remote services for HTTP requests.
mcustiel/phiremock-client
579336 Downloads
Client library to communicate with Phiremock server
icecave/isolator
1292837 Downloads
Dependency injection for global functions.
hafriedlander/phockito
265830 Downloads
PHP Mocking framework inspired by Mockito for Java
brain/faker
73092 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
simpletest/simpletest
342820 Downloads
SimpleTest is a framework for unit testing, web site testing and mock objects for PHP.
ptrofimov/xpmock
463416 Downloads
PHPUnit: simple syntax to create mock-objects
jimbojsb/pseudo
69392 Downloads
PDO/MySQL Connection Mocking
codeception/util-universalframework
2699043 Downloads
Mock framework module used in internal Codeception tests
ciareis/bypass
10574 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
43513 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.