Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindplay-dk/funit
Lightweight unit-testing framework
https://github.com/mindplay-dk/funit
Last synced: 3 months ago
JSON representation
Lightweight unit-testing framework
- Host: GitHub
- URL: https://github.com/mindplay-dk/funit
- Owner: mindplay-dk
- License: other
- Created: 2013-05-31T23:32:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-04T23:02:35.000Z (almost 11 years ago)
- Last Synced: 2024-04-18T20:45:36.389Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 262 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mindplay-funit
A lightweight test suite for PHP 5.3+
Based on [FUnit](https://github.com/funkatron/FUnit) by [Ed Finkler](https://github.com/funkatron/).
Web-based report design based on [QUnit](http://qunitjs.com/).
## 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:
![Browser Report](http://i.imgur.com/L6qZWh5.png)
### Running on the command-line:
![Console Report](http://i.imgur.com/dulsIKb.png)
## Usage
An [example test-suite](https://github.com/mindplay-dk/funit/blob/non-static/example.php)
demonstrates the API and usage.## Installation
### Install with Composer
If you're using [Composer](https://github.com/composer/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](https://github.com/mindplay/funit/tarball/master) or [zipball](https://github.com/mindplay/funit/zipball/master):
$ 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](https://github.com/symfony/ClassLoader)) for [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)-style class loading:
$loader->registerNamespace('mindplay\funit', 'path/to/vendor/mindplay-funit');