Skip to content

Commit

Permalink
Do not emit error for missing whitelist when no code coverage driver …
Browse files Browse the repository at this point in the history
…is available
  • Loading branch information
sebastianbergmann committed Oct 14, 2015
1 parent 65134b2 commit c3a9db4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ class_exists($arguments['printer'], false)) {
$this->writeMessage('Error', 'No code coverage driver is available');

$codeCoverageReports = 0;
}

if (!isset($arguments['whitelist']) && !$this->codeCoverageFilter->hasWhitelist()) {
} elseif (!isset($arguments['whitelist']) && !$this->codeCoverageFilter->hasWhitelist()) {
$this->writeMessage('Error', 'No whitelist configured, no code coverage will be generated');

$codeCoverageReports = 0;
Expand Down

0 comments on commit c3a9db4

Please sign in to comment.