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

Commit 635b5b9

Browse files
authored
Update shim.php
1 parent e3f35f1 commit 635b5b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/shim.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
// Add aliases for PHPUnit 6
44
namespace {
55

6-
if (!class_exists('PHPUnit\Framework\Assert') && class_exists('PHPUnit_Framework_Assert')) {
7-
class_alias('PHPUnit_Framework_Assert', 'PHPUnit\Framework\Assert');
6+
if (!class_exists('PHPUnit_Framework_Assert')) {
7+
class_alias('PHPUnit\Framework\Assert', 'PHPUnit_Framework_Assert');
8+
}
9+
10+
if (!class_exists('PHPUnit_Framework_TestCase')) {
11+
class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
812
}
913

1014
if (!class_exists('PHPUnit\Util\Log\JSON') || !class_exists('PHPUnit\Util\Log\TAP')) {

0 commit comments

Comments
 (0)