Skip to content

Commit d0ce1be

Browse files
Closes #4412
1 parent 0bc9739 commit d0ce1be

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

ChangeLog-9.3.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 9.3 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [9.3.5] - 2020-MM-DD
6+
7+
### Fixed
8+
9+
* [#4412](https://github.com/sebastianbergmann/phpunit/issues/4412): Code Coverage does not work for isolated test when PHAR is used
10+
511
## [9.3.4] - 2020-08-10
612

713
### Added
@@ -200,6 +206,7 @@ If you have an XML configuration file that validates against [PHPUnit 9.2's XML
200206
* [#4396](https://github.com/sebastianbergmann/phpunit/issues/4396): Deprecate confusing parameter options for XML assertions
201207
* The `cacheTokens` attribute is no longer supported in XML configuration files
202208

209+
[9.3.5]: https://github.com/sebastianbergmann/phpunit/compare/9.3.4...9.3
203210
[9.3.4]: https://github.com/sebastianbergmann/phpunit/compare/9.3.3...9.3.4
204211
[9.3.3]: https://github.com/sebastianbergmann/phpunit/compare/9.3.2...9.3.3
205212
[9.3.2]: https://github.com/sebastianbergmann/phpunit/compare/9.3.1...9.3.2

build.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,12 @@
433433
<arg path="${basedir}/build/tmp/phar" />
434434
</exec>
435435

436-
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/>
437-
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/>
436+
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/>
437+
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/PhptTestCase.tpl" token="SebastianBergmann\CodeCoverage\Driver\Driver" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Driver"/>
438+
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/>
439+
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseClass.tpl" token="SebastianBergmann\CodeCoverage\Driver\Driver" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Driver"/>
438440
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\CodeCoverage" value="PHPUnit\SebastianBergmann\CodeCoverage\CodeCoverage"/>
441+
<replace file="${basedir}/build/tmp/phar-scoped/phpunit/Util/PHP/Template/TestCaseMethod.tpl" token="SebastianBergmann\CodeCoverage\Driver\Driver" value="PHPUnit\SebastianBergmann\CodeCoverage\Driver\Driver"/>
439442
</target>
440443

441444
<target name="-phar-determine-version">

tests/phar/tests/GreeterTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ public function testGreets(): void
2020
{
2121
$this->assertSame('Hello world!', (new Greeter)->greet());
2222
}
23+
24+
/**
25+
* @runInSeparateProcess
26+
* @ticket https://github.com/sebastianbergmann/phpunit/issues/4412
27+
*/
28+
public function testGreetsInIsolation(): void
29+
{
30+
$this->assertSame('Hello world!', (new Greeter)->greet());
31+
}
2332
}

0 commit comments

Comments
 (0)