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
============

Easier way to run unit tests written in PHPUnit

v0.5(1y ago)015.8k20MITPHPPHP &gt;=5.6CI failing

Since Mar 15Pushed 2mo 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 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (20)

Tester
======

[](#tester)

Statements:

- Testing should be easy as heck!
- Testing should be durable!

A test runner. Part of ATK14 Framework

Checking that all required dependencies are met:

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

```

In working directory it searches for `tc_*.php` files. Every of them loads and runs tests.

```
$ run_unit_tests

```

In file e.g. tc\_currency.php it expects TcCurrency class (eventually tc\_currency).

You can specify a list of test files to be executed

```
$ run_unit_tests tc_account tc_bank_transfer

eventually with .php suffix
$ run_unit_tests tc_account.php tc_bank_transfer.php

```

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

[](#basic-usage)

In the project directory create directory test.

```
$ mkdir test
$ cd test

```

Place here first test case file tc\_first\_test\_case.php in here:

```
