Libraries tagged by mock functions
php-mock/php-mock
13041789 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
8535860 Downloads
Mocking utility for PHP functions and WordPress plugin API
php-mock/php-mock-phpunit
5954504 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-mockery
1436250 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-integration
7611298 Downloads
Integration package for PHP-Mock
php-mock/php-mock-prophecy
350977 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
66716 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
icecave/isolator
1280630 Downloads
Dependency injection for global functions.
duncan3dc/uopz-expectations
176853 Downloads
Mock core functions and set up expectations similar to Mockery
phpcurl/curlwrapper
103142 Downloads
The simplest OOP wrapper for curl, curl_multi, curl_share functions. Use CURL as a dependency, not hard-coded!
adriansuter/php-autoload-override
28661 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.
myplanetdigital/function_mock
51345 Downloads
Framework that helps mocking functions for unit testing PHP scripts
leoloso/faker
99288 Downloads
Fork for PoP of: Faker (fzaninotto/faker) for WordPress via Brain Monkey
kenjis/monkey-patch
13193 Downloads
Monkey patching for exit(), functions, methods, and constants
betterphp/php-native-mock
9413 Downloads
PHP Native Mock is a helper class that allows for easy mocking of native PHP functions and class methods in unit tests using the UOPZ extension.