Libraries tagged by mock functions
cemerson/clock
1982 Downloads
Ultra-simple clock abstraction for PHP 7+, allowing developers to properly mock time-related functions
silinternational/google-api-php-client-mock
16033 Downloads
Attempting to create an intelligent mock of the Google API PHP Client for unit and functional testing.
jasny/phpunit-extension
4552 Downloads
Additional functionality for PHPUnit (callback mock, expected warning, ...)
cheprasov/php-extra-mocks
599 Downloads
ExtraMocks are a tools that give extra functionality for Mocks.
misd/mock-raven-service-bundle
117 Downloads
Provides a controller replicating the Raven service, allow applications to functionally test the logging in process
pbweb/mimic
8378 Downloads
Mimic classes for functional testing
crimsonkissaki/mockmaker
44 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.
tumtum/mock-extern-service
576 Downloads
To mock service like mail or UDP socket for functional Tests. TDD, PHPUnit
moc-solucoes/moc-uteis
403 Downloads
Uteis library to developer.
ericfortmeyer/mock-extern-service
10 Downloads
To mock service like mail or UDP socket for functional Tests. TDD, PHPUnit
degaray/mock-soapclient
385 Downloads
This class is used to overwrite the functionality of the soapclient. It is very usefull when mocking objects expected from soap calls to web sevices in unit testing.
petrelli/live-statics-addons
13 Downloads
Addons to extend petrelli/live-statics with new functionalities
sosupp/questionable
10 Downloads
A laravel flexible and extensible package for adding extra functionality such as Quizzes, Polls, Exams, Mock Practice, etc. to your application or website to enhance user intereaction. Anything that you can imagine to do with a set of question bank.
baraja-core/lock
130705 Downloads
Simple PHP function lock system.
mouf/utils.common.lock
67212 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.