RoboFile.php
<?php
class RoboFile extends \Robo\Tasks
{
/**
* Runs the unit tests.
*/
public function test()
{
$this->stopOnFail(true);
$this->taskPHPUnit()
->option('strict-coverage')
->option('-v')
->option('-d error_reporting=-1')
->arg('tests')
->run();
}
/**
* Provides test coverage for Codeclimate.
*/
public function testCoverageCodeclimate()
{
$this->stopOnFail(true);
$this->taskPHPUnit()
->option('strict-coverage')
->option('-d error_reporting=-1')
->option('--coverage-clover=build/logs/clover.xml')
->arg('tests')
->run();
}
}