Skip to content

Commit b36f023

Browse files
Fix regression introduced in PHPUnit 9.6.33
1 parent fea0625 commit b36f023

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

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

5+
## [9.6.34] - 2026-01-27
6+
7+
### Fixed
8+
9+
* Regression introduced in PHPUnit 9.6.33
10+
511
## [9.6.33] - 2026-01-27
612

713
### Changed
@@ -224,6 +230,7 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
224230
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
225231
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes
226232

233+
[9.6.34]: https://github.com/sebastianbergmann/phpunit/compare/9.6.33...9.6.34
227234
[9.6.33]: https://github.com/sebastianbergmann/phpunit/compare/9.6.32...9.6.33
228235
[9.6.32]: https://github.com/sebastianbergmann/phpunit/compare/9.6.31...9.6.32
229236
[9.6.31]: https://github.com/sebastianbergmann/phpunit/compare/9.6.30...9.6.31

src/Runner/PhptTestCase.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,14 @@ private function cleanupForCoverage(): RawCodeCoverageData
654654
$buffer = @file_get_contents($files['coverage']);
655655

656656
if ($buffer !== false) {
657-
$coverage = @unserialize($buffer, ['allowed_classes' => false]);
657+
$coverage = @unserialize(
658+
$buffer,
659+
[
660+
'allowed_classes' => [
661+
RawCodeCoverageData::class,
662+
],
663+
],
664+
);
658665

659666
if ($coverage === false) {
660667
$coverage = RawCodeCoverageData::fromXdebugWithoutPathCoverage([]);

src/Runner/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function id(): string
4444
}
4545

4646
if (self::$version === '') {
47-
self::$version = (new VersionId('9.6.33', dirname(__DIR__, 2)))->getVersion();
47+
self::$version = (new VersionId('9.6.34', dirname(__DIR__, 2)))->getVersion();
4848

4949
assert(!empty(self::$version));
5050
}

0 commit comments

Comments
 (0)