mindplay / funit
A simple test suite for PHP 5.3+, partially inspired by QUnit.
1.0.0
2013-06-03 01:30 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2024-11-25 20:01:59 UTC
README
A lightweight test suite for PHP 5.3+
Based on FUnit by Ed Finkler.
Web-based report design based on QUnit.
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:
Running on the command-line:
Usage
An example test-suite demonstrates the API and usage.
Installation
Install with Composer
If you're using Composer to manage dependencies, you can add the test-suite as a development-time dependency:
{
"require-dev": {
"mindplay/funit": ">=1.0"
}
}
Install source from GitHub
To install the source code:
git clone git://github.com/mindplay-dk/funit.git
And include it in your scripts:
require_once '/path/to/funit/autoload.php';
Install source from zip/tarball
Alternatively, you can fetch a tarball or zipball:
$ 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:
$loader->registerNamespace('mindplay\funit', 'path/to/vendor/mindplay-funit');