Skip to content

Commit

Permalink
Merge pull request Nimut#6 from eimers/master
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabRecht authored Sep 13, 2019
2 parents 29fc33a + f4f2407 commit 0569f40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PhpunitMerger/Command/CoverageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ protected function execute(InputInterface $input, OutputInterface $output)

foreach ($finder as $file) {
$coverage = require $file->getRealPath();
if (!$coverage instanceof CodeCoverage) {
throw new \RuntimeException($file->getRealPath() . ' doesn\'t return a valid ' . CodeCoverage::class . ' object!');
}
$codeCoverage->merge($coverage);
}

Expand Down

0 comments on commit 0569f40

Please sign in to comment.