Libraries tagged by function mock
php-mock/php-mock
19601487 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.
php-mock/php-mock-phpunit
8840026 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.
brain/monkey
13995271 Downloads
Mocking utility for PHP functions and WordPress plugin API
php-mock/php-mock-integration
11299311 Downloads
Integration package for PHP-Mock
php-mock/php-mock-mockery
2242354 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.
lucatume/function-mocker
1416464 Downloads
Function mocking with Patchwork
lstrojny/phpunit-function-mocker
351303 Downloads
Allows mocking otherwise untestable PHP functions through the use of namespaces
php-mock/php-mock-prophecy
516563 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
93877 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
duncan3dc/uopz-expectations
270873 Downloads
Mock core functions and set up expectations similar to Mockery
icecave/isolator
1348564 Downloads
Dependency injection for global functions.
adriansuter/php-autoload-override
65605 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.
lucatume/function-mocker-le
176352 Downloads
A lightweight function mocking solution.
leoloso/faker
127787 Downloads
Fork for PoP of: Faker (fzaninotto/faker) for WordPress via Brain Monkey
phpcurl/curlwrapper
111740 Downloads
The simplest OOP wrapper for curl, curl_multi, curl_share functions. Use CURL as a dependency, not hard-coded!