Skip to content

Commit a8b4b6e

Browse files
committed
MAGE-1363 Remove legacy TestCase namespace (not used since M2.1)
1 parent 02403e3 commit a8b4b6e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Test/Integration/TestCase.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919
use Magento\Store\Model\ScopeInterface;
2020
use Magento\TestFramework\Helper\Bootstrap;
2121

22-
if (class_exists('PHPUnit\Framework\TestCase')) {
23-
class_alias('PHPUnit\Framework\TestCase', '\TC');
24-
} else {
25-
class_alias('\PHPUnit_Framework_TestCase', '\TC');
26-
}
27-
28-
abstract class TestCase extends \TC
22+
abstract class TestCase extends \PHPUnit\Framework\TestCase
2923
{
3024
/**
3125
* @var ObjectManagerInterface

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
}
2525
],
2626
"require-dev": {
27-
"phpcompatibility/php-compatibility": "^9.2"
27+
"phpcompatibility/php-compatibility": "^9.2",
28+
"phpunit/phpunit": "^9.5|^10.5"
2829
},
2930
"autoload": {
3031
"files": [ "registration.php" ],

0 commit comments

Comments
 (0)