PHPackages                             phptest/phptest - 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. phptest/phptest

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

phptest/phptest
===============

Really simple test harness for PHP

11516PHP

Since Jun 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/phptest/phptest)[ Packagist](https://packagist.org/packages/phptest/phptest)[ RSS](/packages/phptest-phptest/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPTest
=======

[](#phptest)

**Master build:** [![Master branch build status](https://camo.githubusercontent.com/0b721bde5ada2dab71780df3f405c0fb09a49c8084a73e1896df9e32f3de0977/68747470733a2f2f7472617669732d63692e6f72672f706870746573742f706870746573742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/phptest/phptest)
**Requires:** `PHP >= 5.4 || HHVM >= 3.0`

**Note:** This is a work in progress. Contributions through feature requests or pull requests are most welcome.

**PHPTest** is a test framework for PHP, written in the same vein as PHPUnit, SimpleTest, et al. No assumptions are made as to whether you're writing pure unit tests, functional tests, integration tests, or other. There are also no assumptions about the format of the tests, whether they're written in classic PHPUnit style, functional, or other.

The main effort of this library is to make testing easy to write, quick to run and simple to integrate with your development and deployment process, while allowing extensibility through extensions and events.

It can be installed in whichever way you prefer, but I recommend [Composer](https://packagist.org/packages/phptest/phptest).

```
{
    "require-dev": {
        "phptest/phptest": "*"
    }
}
```

APIs
----

[](#apis)

### Functional

[](#functional)

The functional API adds support for testing with simple closures, as you would with any functional language. Further usage examples can be found in [`example/functional`](/example/functional).

```
