Skip to content

Commit

Permalink
Merge pull request #29 from Vinai/phpunit-9.5-compat
Browse files Browse the repository at this point in the history
Make compatible with PHPUnit 9.5.x
  • Loading branch information
paales authored Apr 14, 2022
2 parents bbe4399 + 1f48036 commit 231149f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace ReachDigital\TestFramework\Annotation;

use PHPUnit\Framework\TestCase;
use PHPUnit\Util\Test as TestUtil;

/**
* Rewrite of \Magento\TestFramework\Annotation\AppIsolation because that class will always reinitialize on each test
Expand Down Expand Up @@ -74,7 +75,7 @@ public function startTest(TestCase $testCase)
private function isTestMagentoAppIsolationEnabled(TestCase $testCase)
{
/* Determine an isolation from doc comment */
$annotations = $testCase->getAnnotations();
$annotations = TestUtil::parseTestMethodAnnotations(get_class($testCase), $testCase->getName(false));
$annotations = array_replace((array) $annotations['class'], (array) $annotations['method']);

if (isset($annotations['magentoAppIsolation'])) {
Expand Down

0 comments on commit 231149f

Please sign in to comment.