Libraries tagged by function mock
norwichtech/file-wrapper
22884 Downloads
A simple file system function wrapper that can be easily mocked or stubbed for testing
mookofe/php-benchmark
20 Downloads
PHP library that allows you benchmark and compare the performance of functions
mokka/mokkautils
23 Downloads
Mokka Utility Functions
moc-solucoes/moc-uteis
398 Downloads
Uteis library to developer.
mckayb/phantasy-php
14 Downloads
Curried version of all PHP functions
baraja-core/lock
128534 Downloads
Simple PHP function lock system.
innmind/socket
67697 Downloads
Wrapper to PHP socket functions
voku/session2db
19286 Downloads
A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.
ock/helpers
1082 Downloads
Helper functions and classes used by other packages in the ock ecosystem.
yakeing/php_fsockopen
99 Downloads
fsockopen is the wrapper function for socket socket links
mouf/utils.common.lock
66540 Downloads
A simple package that provides functions to get a lock. Typically, you want to use locks when you want to be sure that 2 actions do not happen at the same time. For instance, if you regularly schedule cron tasks, you might want to be sure the last cron task finished before running the new one. A lock can help you do that.
silinternational/google-api-php-client-mock
14779 Downloads
Attempting to create an intelligent mock of the Google API PHP Client for unit and functional testing.
pbweb/mimic
8205 Downloads
Mimic classes for functional testing
rocksheep/enum-helpers
846 Downloads
A collection of helper functions for working with enums in PHP
crimsonkissaki/mockmaker
42 Downloads
Whether you call them doubles, stubs, mocks, partials, fakes, or something else there are times when a mocking library such as PHPUnit's mockBuilder, Mockery, Prophecy, etc. just doesn't do exactly what you need or want. Sometimes you just need a concrete class implementation to run through the unit test wringer or a full end to end functional unit test suite. MockMaker aims to simplify the process of generating concrete fake ORM entity objects. Flexible and extendable, the generated seed code can be altered to suit your particular project with relative ease. That means after the initial setup you can re-run MockMaker for any new entities that get added in or update existing entities that change with little to no fuss. What's more, once MockMaker has made your files it's done; you don't have to include it in your code base and can use the generated files like any other project class.