The PHPUnit\Util\XML class has been removed in PHPUnit 9.3.
This commit is contained in:
parent
995d784a0d
commit
8b801c1269
@ -12,6 +12,7 @@
|
||||
namespace Symfony\Component\Form\Tests\Resources;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Util\Xml\Loader;
|
||||
|
||||
class TranslationFilesTest extends TestCase
|
||||
{
|
||||
@ -20,7 +21,11 @@ class TranslationFilesTest extends TestCase
|
||||
*/
|
||||
public function testTranslationFileIsValid($filePath)
|
||||
{
|
||||
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
|
||||
$loader = class_exists(Loader::class)
|
||||
? [new Loader(), 'loadFile']
|
||||
: 'PHPUnit\Util\XML::loadfile';
|
||||
|
||||
$loader($filePath, false, false, true);
|
||||
|
||||
$this->addToAssertionCount(1);
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace Symfony\Component\Security\Core\Tests\Resources;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Util\Xml\Loader;
|
||||
|
||||
class TranslationFilesTest extends TestCase
|
||||
{
|
||||
@ -20,7 +21,11 @@ class TranslationFilesTest extends TestCase
|
||||
*/
|
||||
public function testTranslationFileIsValid($filePath)
|
||||
{
|
||||
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
|
||||
$loader = class_exists(Loader::class)
|
||||
? [new Loader(), 'loadFile']
|
||||
: 'PHPUnit\Util\XML::loadfile';
|
||||
|
||||
$loader($filePath, false, false, true);
|
||||
|
||||
$this->addToAssertionCount(1);
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace Symfony\Component\Validator\Tests\Resources;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Util\Xml\Loader;
|
||||
|
||||
class TranslationFilesTest extends TestCase
|
||||
{
|
||||
@ -20,7 +21,11 @@ class TranslationFilesTest extends TestCase
|
||||
*/
|
||||
public function testTranslationFileIsValid($filePath)
|
||||
{
|
||||
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
|
||||
$loader = class_exists(Loader::class)
|
||||
? [new Loader(), 'loadFile']
|
||||
: 'PHPUnit\Util\XML::loadfile';
|
||||
|
||||
$loader($filePath, false, false, true);
|
||||
|
||||
$this->addToAssertionCount(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user