PHP Package: slope-it/clock-mock
PHP library providing clock mocking functionality for efficient testing purposes in time-sensitive applications.
Package Description
Enhance the efficiency of your testing processes with clock-mock, a PHP library designed to facilitate time-sensitive application testing. By enabling precise control over time-related functions, this library ensures accurate and reliable testing outcomes. With clock-mock, you can simulate various time scenarios, verify time-dependent behaviors, and streamline your testing workflows.
Download Latest Version: 0.5.0

Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/slope-it/clock-mock/0.5.0/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';
use SlopeIt\ClockMock\ClockMock;
$obj = new ClockMock();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.