Libraries tagged by function mock

php-mock/php-mock

367 Favers
13086405 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

310 Favers
8581090 Downloads

Mocking utility for PHP functions and WordPress plugin API

Go to Download


php-mock/php-mock-phpunit

171 Favers
5973860 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


lucatume/function-mocker

18 Favers
1164847 Downloads

Function mocking with Patchwork

Go to Download


php-mock/php-mock-mockery

38 Favers
1440889 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
7635509 Downloads

Integration package for PHP-Mock

Go to Download


lstrojny/phpunit-function-mocker

53 Favers
331305 Downloads

Allows mocking otherwise untestable PHP functions through the use of namespaces

Go to Download


php-mock/php-mock-prophecy

16 Favers
351692 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
67274 Downloads

Faker (phpfaker/faker) for WordPress via Brain Monkey

Go to Download


icecave/isolator

38 Favers
1281222 Downloads

Dependency injection for global functions.

Go to Download


lucatume/function-mocker-le

3 Favers
145164 Downloads

A lightweight function mocking solution.

Go to Download


duncan3dc/uopz-expectations

8 Favers
177254 Downloads

Mock core functions and set up expectations similar to Mockery

Go to Download


phpcurl/curlwrapper

12 Favers
103264 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
28844 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
51375 Downloads

Framework that helps mocking functions for unit testing PHP scripts

Go to Download


Next >>