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

Commit 5d1433e

Browse files
committed
fixed shim:
1 parent abfb88d commit 5d1433e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shim.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ class_alias('PHPUnit_Util_Test', 'PHPUnit\Util\Test');
3939
class_alias('PHPUnit_Util_TestDox_ResultPrinter', 'PHPUnit\Util\TestDox\ResultPrinter');
4040

4141
}
42-
if (!class_exists('\PHPUnit\Util\Log\JSON') || !class_exists('\PHPUnit\Util\Log\TAP')) {
42+
if (!class_exists('PHPUnit\Util\Log\JSON') || !class_exists('PHPUnit\Util\Log\TAP')) {
4343
if (class_exists('PHPUnit\Util\Printer')) {
4444
require_once __DIR__ . '/phpunit5-loggers.php'; // TAP and JSON loggers were removed in PHPUnit 6
4545
}
4646
}
4747

4848
// phpunit codecoverage updates
49-
if (!class_exists('SebastianBergmann\CodeCoverage\CodeCoverage') && class_exists('PHP_CodeCoverage')) {
49+
if (class_exists('PHP_CodeCoverage' && !class_exists('SebastianBergmann\CodeCoverage\CodeCoverage'))) {
5050
class_alias('PHP_CodeCoverage', 'SebastianBergmann\CodeCoverage\CodeCoverage');
5151
class_alias('PHP_CodeCoverage_Report_Text', 'SebastianBergmann\CodeCoverage\Report\Text');
5252
class_alias('PHP_CodeCoverage_Report_PHP', 'SebastianBergmann\CodeCoverage\Report\PHP');

0 commit comments

Comments
 (0)