PHPackages                             atk14/tester - 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. atk14/tester

ActiveLibrary[Testing &amp; Quality](/categories/testing)

atk14/tester
============

PHPUnit wrapper that lets you run the same test suites across multiple PHPUnit and PHP versions without rewriting your tests

v0.6.5(1mo ago)022.6k20MITPHPPHP &gt;=5.6CI passing

Since Mar 15Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/atk14/Tester)[ Packagist](https://packagist.org/packages/atk14/tester)[ Docs](https://github.com/atk14/Tester)[ RSS](/packages/atk14-tester/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (19)Used By (20)

Tester
======

[](#tester)

[![Tests](https://github.com/atk14/Tester/actions/workflows/tests.yml/badge.svg)](https://github.com/atk14/Tester/actions/workflows/tests.yml)

Tester is a PHPUnit wrapper that abstracts PHPUnit's API changes across different PHP and PHPUnit versions. This means you can use the same test suites regardless of which PHPUnit version is installed. Tester makes it much easier to keep your tests working as you upgrade PHP or PHPUnit.

Statements:

- Testing should be easy as heck!
- Source code of test cases should be durable. No one wants to rewrite the tests for the new version of PHPUnit.

Supported versions:

- PHP 5.6, 7.x, 8.x
- PHPUnit ~4.8 | ~5.7 | ~6.0 | ~7.5 | ~8.5 | ~9.6 | ~10.0 | ~11.0

Installation
------------

[](#installation)

Installation only for a specific project:

```
composer require --dev atk14/tester

```

Global installation:

```
composer global require atk14/tester

```

In case of global installation, it is convenient to have the path `$HOME/.config/composer/vendor/bin/` in the `$PATH` environment variable.

Checking that all required dependencies are met:

```
$ run_unit_tests --check-dependencies && echo "ok"
# or
$ run_unit_tests -c && echo "ok"

```

Basic usage
-----------

[](#basic-usage)

In the project directory, create a `test` directory:

```
$ mkdir test
$ cd test

```

Place a test case file `tc_first_test_case.php` in there:

```
