Libraries tagged by function mock
php-mock/php-mock
21325676 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
9565075 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
16163428 Downloads
Mocking utility for PHP functions and WordPress plugin API
php-mock/php-mock-integration
12213767 Downloads
Integration package for PHP-Mock
lucatume/function-mocker
1476142 Downloads
Function mocking with Patchwork
php-mock/php-mock-mockery
2450648 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
358480 Downloads
Allows mocking otherwise untestable PHP functions through the use of namespaces
php-mock/php-mock-prophecy
544792 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
98982 Downloads
Faker (phpfaker/faker) for WordPress via Brain Monkey
duncan3dc/uopz-expectations
288663 Downloads
Mock core functions and set up expectations similar to Mockery
icecave/isolator
1367368 Downloads
Dependency injection for global functions.
lucatume/function-mocker-le
185208 Downloads
A lightweight function mocking solution.
kenjis/monkey-patch
31296 Downloads
Monkey patching for exit(), functions, methods, and constants
dreamscapes/ldap-core
91961 Downloads
Object encapsulation of PHP's native ldap functions
adriansuter/php-autoload-override
69982 Downloads
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.