PHPackages                             mindplay/testies - 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. mindplay/testies

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

mindplay/testies
================

Yeah, testies: a lightweight library for quick, simple unit-testing

1.1.5(1y ago)84.1k↑366.7%[1 PRs](https://github.com/mindplay-dk/testies/pulls)20MITPHPPHP ^8.0

Since Jun 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/mindplay-dk/testies)[ Packagist](https://packagist.org/packages/mindplay/testies)[ RSS](/packages/mindplay-testies/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (19)Used By (20)

mindplay/testies
================

[](#mindplaytesties)

[![PHP Version](https://camo.githubusercontent.com/487804500a039aee09e5d93e41b745b4cd68dcc0fdf801e67d26d30b93f83358/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d626c75652e737667)](https://packagist.org/packages/mindplay/testies)

Yeah, testies: a lightweight library of functions for quick, simple unit-testing.

Tries to honor the [Go language philosophy of testing](http://golang.org/doc/faq#How_do_I_write_a_unit_test) - paraphrasing:

> testing frameworks tend to develop into mini-languages of their own, with conditionals and controls and printing mechanisms, but PHP already has all those capabilities; why recreate them? We'd rather write tests in PHP; it's one fewer language to learn and the approach keeps the tests straightforward and easy to understand.

The primary test API is a set of functions in the `mindplay\testies` namespace.

Internally, the API is backed by a pair of simple "driver" and configuration classes - these are left as open as possible, and you should feel comfortable extending these and tailoring them specifically to suit the test-requirements for whatever you're testing.

Usage
-----

[](#usage)

Install via Composer:

```
composer require-dev mindplay/testies

```

Then create a test script - the format is pretty simple:

```
