Libraries tagged by mock time
php-mock/php-mock
14927278 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.
php-mock/php-mock-phpunit
6854290 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.
slope-it/clock-mock
1409808 Downloads
A library for mocking current date and time in tests.
php-mock/php-mock-mockery
1669803 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.
php-mock/php-mock-prophecy
397126 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.
mcustiel/mockable-datetime
556163 Downloads
A DateTime library that allows mock dates and times in UnitTests.
carpiftw/clock-mock
6689 Downloads
A library for mocking current date and time in tests.
rezzza/time-traveler
8425 Downloads
Travel the time in PHP
shyru/timedilation
12169 Downloads
Mocking time() for PHPUnit
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.
robier/mock-global-php-functions
17573 Downloads
Mock any function that exists in global namespace
acts/time-mock-bundle
2113 Downloads
A simple bundle for Symfony2 which enables the current time to be mocked.
kartavik/php-mock
27 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.
timesplinter/proxy-mock
40385 Downloads
knutle/pest-mock-recorder
93 Downloads
Lets you easily bind a mock to the service container that can flexibly record history every time it is used