Skip to content

Commit 8d3d7b4

Browse files
Fix an issue with PHPT tests when forceCoversAnnotation="true" is configured
1 parent b2bd71c commit 8d3d7b4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

ChangeLog-6.5.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 6.5 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [6.5.3] - 2017-MM-DD
6+
7+
### Fixed
8+
9+
* Fixed an issue with PHPT tests when `forceCoversAnnotation="true"` is configured
10+
511
## [6.5.2] - 2017-12-02
612

713
### Changed
@@ -24,6 +30,7 @@ All notable changes of the PHPUnit 6.5 release series are documented in this fil
2430
* Fixed [#2654](https://github.com/sebastianbergmann/phpunit/issues/2654): Problems with `assertJsonStringEqualsJsonString()`
2531
* Fixed [#2810](https://github.com/sebastianbergmann/phpunit/pull/2810): Code Coverage for PHPT tests does not work
2632

33+
[6.5.3]: https://github.com/sebastianbergmann/phpunit/compare/6.5.2...6.5.3
2734
[6.5.2]: https://github.com/sebastianbergmann/phpunit/compare/6.5.1...6.5.2
2835
[6.5.1]: https://github.com/sebastianbergmann/phpunit/compare/6.5.0...6.5.1
2936
[6.5.0]: https://github.com/sebastianbergmann/phpunit/compare/6.4...6.5.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"phar-io/manifest": "^1.0.1",
3232
"phar-io/version": "^1.0",
3333
"phpspec/prophecy": "^1.7",
34-
"phpunit/php-code-coverage": "^5.2.3",
34+
"phpunit/php-code-coverage": "^5.3",
3535
"phpunit/php-file-iterator": "^1.4.3",
3636
"phpunit/php-text-template": "^1.2.1",
3737
"phpunit/php-timer": "^1.0.9",

src/Runner/PhptTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function run(TestResult $result = null)
201201
$time = PHP_Timer::stop();
202202

203203
if ($result->getCollectCodeCoverageInformation() && ($coverage = $this->cleanupForCoverage())) {
204-
$result->getCodeCoverage()->append($coverage, $this);
204+
$result->getCodeCoverage()->append($coverage, $this, true, [], [], true);
205205
}
206206

207207
try {

0 commit comments

Comments
 (0)