task/phpspec

v0.1.1 2014-12-19 07:28 UTC

README

Build Status Coverage Status

Example

use Task\Plugin\PhpSpecPlugin;

$project->inject(function ($container) {
    $container['phpspec'] = new PhpSpecPlugin;
});

$project->addTask('test', ['phpspec', function ($phpspec) {
    $phpspec->command('run')
        ->setConfig($this->getProperty('config', 'phpspec.yml'))
        ->setFormat('pretty')
        ->pipe($this->getOutput());
}]);

Installation

Add to your composer.json:

...
"require-dev": {
    "task/phpspec": "~0.1"
}
...

Usage

See task/console for usage documentation.