task/phpspec

PhpSpec plugin for Task

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

This package is not auto-updated.

Last update: 2024-04-13 12:48:31 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.