Libraries tagged by function mock
php-mock/php-mock
14220826 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
6526824 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
9400923 Downloads
Mocking utility for PHP functions and WordPress plugin API
php-mock/php-mock-integration
8331888 Downloads
Integration package for PHP-Mock
lucatume/function-mocker
1218573 Downloads
Function mocking with Patchwork
php-mock/php-mock-mockery
1574342 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.
lstrojny/phpunit-function-mocker
334649 Downloads
Allows mocking otherwise untestable PHP functions through the use of namespaces
php-mock/php-mock-prophecy
380916 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
73241 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
icecave/isolator
1292975 Downloads
Dependency injection for global functions.
adriansuter/php-autoload-override
43612 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
153879 Downloads
A lightweight function mocking solution.
duncan3dc/uopz-expectations
186865 Downloads
Mock core functions and set up expectations similar to Mockery
phpcurl/curlwrapper
104978 Downloads
The simplest OOP wrapper for curl, curl_multi, curl_share functions. Use CURL as a dependency, not hard-coded!
danieljharvey/file-wrapper
145313 Downloads
A simple file system function wrapper that can be easily mocked or stubbed for testing