PHPackages                             ancarda/high-test-coverage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. ancarda/high-test-coverage

Abandoned → [psr/clock](/?search=psr%2Fclock)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

ancarda/high-test-coverage
==========================

Classes and Interfaces to help you get higher test coverage

1.1.3(4y ago)01.2kMITPHPPHP ^7.3|^8.0

Since Mar 27Pushed 6mo agoCompare

[ Source](https://github.com/ancarda/high-test-coverage)[ Packagist](https://packagist.org/packages/ancarda/high-test-coverage)[ RSS](/packages/ancarda-high-test-coverage/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

High Test Coverage
==================

[](#high-test-coverage)

*Classes and Interfaces to help you get higher test coverage*

[![License](https://camo.githubusercontent.com/3e916af0ce7e4796e96d3f10b7a843e30eb6a6f095a6601a578ac16377093c39/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7465616c)](https://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/04853731c4b6d05eb8d3a802eb4c5e7b37304e9a8dc3f5ab01ede475671c3871/68747470733a2f2f706f7365722e707567782e6f72672f616e63617264612f686967682d746573742d636f7665726167652f762f737461626c65)](https://packagist.org/packages/ancarda/high-test-coverage)[![Total Downloads](https://camo.githubusercontent.com/280573a1c6c138b81714d87fcec3d0ab20b45e0ef4c3e85b5709ca530d5b844f/68747470733a2f2f706f7365722e707567782e6f72672f616e63617264612f686967682d746573742d636f7665726167652f646f776e6c6f616473)](https://packagist.org/packages/ancarda/high-test-coverage)[![builds.sr.ht status](https://camo.githubusercontent.com/a7f37b6fd72c79c1f778159ce6f800ca135b3ef511b4a23a96fdc0514ef4d256/68747470733a2f2f6275696c64732e73722e68742f7e616e63617264612f686967682d746573742d636f7665726167652e737667)](https://builds.sr.ht/~ancarda/high-test-coverage)

Note

This repository is no longer being maintained. You should replace `DateTimeImmutableFactory` with the much better [psr/clock](https://packagist.org/packages/psr/clock) interface. The random functions can now be replaced with the excellent [\\Random\\Randomizer](https://www.php.net/manual/en/class.random-randomizer.php) class built into PHP 8.2+.

High Test Coverage is a collection of classes and interfaces designed to help you get higher test coverage when using impure parts of the PHP Standard Library. It provides a `RandomInt` interface which you can use in place of the `random_int` function, like so:

Pull down with composer:

```
composer require --dev ancarda/high-test-coverage

```

Example Usage
-------------

[](#example-usage)

```
