Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit abfb88d

Browse files
committed
merged with 7.0 shim
1 parent 2cfb4b4 commit abfb88d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/shim.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class_alias('PHPUnit_Util_TestDox_ResultPrinter', 'PHPUnit\Util\TestDox\ResultPr
4040

4141
}
4242
if (!class_exists('\PHPUnit\Util\Log\JSON') || !class_exists('\PHPUnit\Util\Log\TAP')) {
43-
if (class_exists('\PHPUnit\Util\Printer')) {
43+
if (class_exists('PHPUnit\Util\Printer')) {
4444
require_once __DIR__ . '/phpunit5-loggers.php'; // TAP and JSON loggers were removed in PHPUnit 6
4545
}
4646
}
@@ -57,6 +57,10 @@ class_alias('PHP_CodeCoverage_Report_XML', 'SebastianBergmann\CodeCoverage\Repor
5757
class_alias('PHP_CodeCoverage_Exception', 'SebastianBergmann\CodeCoverage\Exception');
5858
}
5959

60+
if (class_exists('PHP_Timer') && !class_exists('SebastianBergmann\Timer\Timer')) {
61+
class_alias('PHP_Timer', 'SebastianBergmann\Timer\Timer');
62+
}
63+
6064
if (!class_exists('\PHPUnit\Framework\Constraint\LogicalNot') && class_exists('\PHPUnit\Framework\Constraint\Not')) {
6165
class_alias('\PHPUnit\Framework\Constraint\Not', '\PHPUnit\Framework\Constraint\LogicalNot');
6266
}

0 commit comments

Comments
 (0)