Libraries tagged by function mock
php-mock/php-mock
15085303 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
10090166 Downloads
Mocking utility for PHP functions and WordPress plugin API
php-mock/php-mock-phpunit
6918605 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.
lucatume/function-mocker
1264422 Downloads
Function mocking with Patchwork
php-mock/php-mock-mockery
1689754 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
8832548 Downloads
Integration package for PHP-Mock
lstrojny/phpunit-function-mocker
337421 Downloads
Allows mocking otherwise untestable PHP functions through the use of namespaces
php-mock/php-mock-prophecy
401386 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
78400 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
icecave/isolator
1302500 Downloads
Dependency injection for global functions.
lucatume/function-mocker-le
161181 Downloads
A lightweight function mocking solution.
duncan3dc/uopz-expectations
194995 Downloads
Mock core functions and set up expectations similar to Mockery
phpcurl/curlwrapper
106849 Downloads
The simplest OOP wrapper for curl, curl_multi, curl_share functions. Use CURL as a dependency, not hard-coded!
dreamscapes/ldap-core
84244 Downloads
Object encapsulation of PHP's native ldap functions
adriansuter/php-autoload-override
48497 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.