mindplay-funit
A lightweight test suite for PHP 5.3+, (*1)
Based on FUnit by Ed Finkler., (*2)
Web-based report design based on QUnit., (*3)
Features
- Simple to write tests and get output – start writing tests fast
- Short, straightforward syntax
- Command-line and browser-based reporting
Screenshots
Running in the browser:
, (*4)
Running on the command-line:
, (*5)
Usage
An example test-suite
demonstrates the API and usage., (*6)
Installation
Install with Composer
If you're using Composer to manage dependencies,
you can add the test-suite as a development-time dependency:, (*7)
{
"require-dev": {
"mindplay/funit": ">=1.0"
}
}
Install source from GitHub
To install the source code:, (*8)
git clone git://github.com/mindplay-dk/funit.git
And include it in your scripts:, (*9)
require_once '/path/to/funit/autoload.php';
Install source from zip/tarball
Alternatively, you can fetch a tarball or zipball:, (*10)
$ curl https://github.com/mindplay-dk/funit/tarball/master | tar xzv
(or)
$ wget https://github.com/mindplay-dk/funit/tarball/master -O - | tar xzv
Using a Class Loader
If you're using a class loader (e.g., Symfony Class Loader) for PSR-0-style class loading:, (*11)
$loader->registerNamespace('mindplay\funit', 'path/to/vendor/mindplay-funit');