Libraries tagged by function mock

php-mock/php-mock

363 Favers
11165426 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.

Go to Download


brain/monkey

303 Favers
6896220 Downloads

Mocking utility for PHP functions and WordPress plugin API

Go to Download


php-mock/php-mock-phpunit

165 Favers
5148746 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.

Go to Download


php-mock/php-mock-mockery

38 Favers
1245718 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.

Go to Download


php-mock/php-mock-integration

13 Favers
6602565 Downloads

Integration package for PHP-Mock

Go to Download


lucatume/function-mocker

17 Favers
1077978 Downloads

Function mocking with Patchwork

Go to Download


lstrojny/phpunit-function-mocker

53 Favers
324751 Downloads

Allows mocking otherwise untestable PHP functions through the use of namespaces

Go to Download


php-mock/php-mock-prophecy

16 Favers
327359 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.

Go to Download


brain/faker

34 Favers
57391 Downloads

Faker (phpfaker/faker) for WordPress via Brain Monkey

Go to Download


icecave/isolator

38 Favers
1258110 Downloads

Dependency injection for global functions.

Go to Download


lucatume/function-mocker-le

3 Favers
132110 Downloads

A lightweight function mocking solution.

Go to Download


duncan3dc/uopz-expectations

8 Favers
152690 Downloads

Mock core functions and set up expectations similar to Mockery

Go to Download


phpcurl/curlwrapper

12 Favers
99440 Downloads

The simplest OOP wrapper for curl, curl_multi, curl_share functions. Use CURL as a dependency, not hard-coded!

Go to Download


adriansuter/php-autoload-override

21 Favers
24234 Downloads

Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.

Go to Download


myplanetdigital/function_mock

3 Favers
50159 Downloads

Framework that helps mocking functions for unit testing PHP scripts

Go to Download


Next >>