diff --git a/src/Coverage.php b/src/Coverage.php index 759f80f..80bcf8d 100644 --- a/src/Coverage.php +++ b/src/Coverage.php @@ -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"); }