Skip to content

Commit

Permalink
coverage php pour scrutenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
SparSio committed Mar 25, 2015
1 parent 088399b commit e8f4361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ static public function codeCoverageStop(SuiteEvent $event)
self::$_coverage->stop();

$writer = new PHP_CodeCoverage_Report_PHP;
$writer->process(self::$_coverage, getcwd() . '/' . $parameters['coveragePath'] . microtime(true) . ".php");
$writer->process(self::$_coverage, getcwd() . "/{$parameters['coveragePath']}.php");

$writer = new PHP_CodeCoverage_Report_HTML;
$writer->process(self::$_coverage, getcwd() . '/' . $parameters['coveragePath']);
$writer->process(self::$_coverage, getcwd() . "/{$parameters['coveragePath']}");

$writer = new PHP_CodeCoverage_Report_Clover();
$writer->process(self::$_coverage, getcwd() . '/' . $parameters['coveragePath'] . '.clover.xml');
$writer->process(self::$_coverage, getcwd() . "/{$parameters['coveragePath']}.clover.xml");

exec("open " . getcwd() . '/' . self::$_parameters['coveragePath'] . "/index.html");
}
Expand Down

0 comments on commit e8f4361

Please sign in to comment.