Libraries tagged by mock functions
php-mock/php-mock-phpunit
6664445 Downloads
Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.
php-mock/php-mock
14497911 Downloads
PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.
brain/monkey
9608673 Downloads
Mocking utility for PHP functions and WordPress plugin API
php-mock/php-mock-integration
8508322 Downloads
Integration package for PHP-Mock
php-mock/php-mock-mockery
1615081 Downloads
Mock built-in PHP functions (e.g. time()) with Mockery. This package relies on PHP's namespace fallback policy. No further extension is needed.
php-mock/php-mock-prophecy
386833 Downloads
Mock built-in PHP functions (e.g. time()) with Prophecy. This package relies on PHP's namespace fallback policy. No further extension is needed.
brain/faker
75048 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
duncan3dc/uopz-expectations
190624 Downloads
Mock core functions and set up expectations similar to Mockery
icecave/isolator
1295717 Downloads
Dependency injection for global functions.
adriansuter/php-autoload-override
45601 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.
phpcurl/curlwrapper
105527 Downloads
The simplest OOP wrapper for curl, curl_multi, curl_share functions. Use CURL as a dependency, not hard-coded!
myplanetdigital/function_mock
52069 Downloads
Framework that helps mocking functions for unit testing PHP scripts
leoloso/faker
106498 Downloads
Fork for PoP of: Faker (fzaninotto/faker) for WordPress via Brain Monkey
kenjis/monkey-patch
14444 Downloads
Monkey patching for exit(), functions, methods, and constants
filisko/testable-functions
154 Downloads
A library for testing PHP's built-in functions or language constructs.