diff --git a/generator/tests/GeneratedFilesTest.php b/generator/tests/GeneratedFilesTest.php index 4a96bf0f..696bc891 100644 --- a/generator/tests/GeneratedFilesTest.php +++ b/generator/tests/GeneratedFilesTest.php @@ -2,7 +2,6 @@ namespace Safe; -use DOMDocument; use PHPUnit\Framework\TestCase; use function restore_error_handler; use Safe\Exceptions\StringsException; @@ -68,8 +67,9 @@ public function testObjects() $this->assertInstanceOf(SimpleXMLElement::class, $movies); + $domImplementation = new \DOMImplementation(); + $doc = $domImplementation->createDocument(null, 'foo'); - $doc = DOMDocument::loadXML('foobar'); $xmlElem = simplexml_import_dom($doc); $this->assertInstanceOf(SimpleXMLElement::class, $xmlElem); }