Libraries tagged by function mock

php-mock/php-mock

364 Favers
11654084 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

309 Favers
7267308 Downloads

Mocking utility for PHP functions and WordPress plugin API

Go to Download


php-mock/php-mock-phpunit

167 Favers
5338548 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
1295001 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
6842696 Downloads

Integration package for PHP-Mock

Go to Download


lucatume/function-mocker

17 Favers
1098992 Downloads

Function mocking with Patchwork

Go to Download


lstrojny/phpunit-function-mocker

53 Favers
326531 Downloads

Allows mocking otherwise untestable PHP functions through the use of namespaces

Go to Download


php-mock/php-mock-prophecy

16 Favers
333424 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
60186 Downloads

Faker (phpfaker/faker) for WordPress via Brain Monkey

Go to Download


icecave/isolator

38 Favers
1264390 Downloads

Dependency injection for global functions.

Go to Download


lucatume/function-mocker-le

3 Favers
135533 Downloads

A lightweight function mocking solution.

Go to Download


leoloso/faker

1 Favers
91168 Downloads

Fork for PoP of: Faker (fzaninotto/faker) for WordPress via Brain Monkey

Go to Download


duncan3dc/uopz-expectations

8 Favers
158069 Downloads

Mock core functions and set up expectations similar to Mockery

Go to Download


phpcurl/curlwrapper

12 Favers
100963 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
25550 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


Next >>