Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 01cc205

Browse files
committed
Refactored other PHPUnit method calls to work with namespaced PHPUnit 6
1 parent 43ca4e6 commit 01cc205

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Core/Tests/Resources/TranslationFilesTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ class TranslationFilesTest extends TestCase
2020
*/
2121
public function testTranslationFileIsValid($filePath)
2222
{
23-
\PHPUnit_Util_XML::loadfile($filePath, false, false, true);
23+
if (class_exists('PHPUnit_Util_XML')) {
24+
\PHPUnit_Util_XML::loadfile($filePath, false, false, true);
25+
} else {
26+
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
27+
}
2428
}
2529

2630
public function provideTranslationFiles()

0 commit comments

Comments
 (0)