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

Commit 15877e2

Browse files
Merge branch '2.8' into 3.2
* 2.8: Refactored other PHPUnit method calls to work with namespaced PHPUnit 6 Further refactorings to PHPUnit namespaces resolve parameters in definition classes
2 parents fe0c5cd + 01cc205 commit 15877e2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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()

Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function setUpBeforeClass()
2929
try {
3030
random_bytes(1);
3131
} catch (\Exception $e) {
32-
throw new \PHPUnit_Framework_SkippedTestError($e->getMessage());
32+
self::markTestSkipped($e->getMessage());
3333
}
3434
}
3535

0 commit comments

Comments
 (0)