Skip to content

Commit

Permalink
Closes #2648
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 12, 2017
1 parent b7a877a commit 02e0075
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog-6.2.md
Expand Up @@ -4,5 +4,9 @@ All notable changes of the PHPUnit 6.2 release series are documented in this fil

## [6.2.0] - 2017-06-02

### Changed

* When `beStrictAboutCoversAnnotation="true"` is configured or `--strict-coverage` is used then a test is now also marked as risky when it specifies units of code using `@covers` or `@uses` that are not executed by the test

[6.2.0]: https://github.com/sebastianbergmann/phpunit/compare/6.1...6.2.0

2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -30,7 +30,7 @@
"phar-io/manifest": "^1.0.1",
"phar-io/version": "^1.0",
"phpspec/prophecy": "^1.7",
"phpunit/php-code-coverage": "^5.0",
"phpunit/php-code-coverage": "^5.1.1",
"phpunit/php-file-iterator": "^1.4",
"phpunit/php-text-template": "^1.2",
"phpunit/php-timer": "^1.0.6",
Expand Down
4 changes: 4 additions & 0 deletions src/TextUI/TestRunner.php
Expand Up @@ -412,6 +412,10 @@ public function doRun(Test $suite, array $arguments = [], $exit = true)
$arguments['strictCoverage']
);

$codeCoverage->setCheckForUnexecutedCoveredCode(
$arguments['strictCoverage']
);

if (isset($arguments['forceCoversAnnotation'])) {
$codeCoverage->setForceCoversAnnotation(
$arguments['forceCoversAnnotation']
Expand Down

0 comments on commit 02e0075

Please sign in to comment.