PHP Package: slope-it/clock-mock

PHP library providing clock mocking functionality for efficient testing purposes in time-sensitive applications.

Current Version: 0.4.0
Last Updated: 2023-08-21
PHP Requirement: >=7.4.0
Dependencies:
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 0.5.0

Clock Coming soon

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.