We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3484e86 commit 6a0b892Copy full SHA for 6a0b892
generator/tests/GeneratedFilesTest.php
@@ -3,10 +3,12 @@
3
namespace Safe;
4
5
use DOMDocument;
6
+use function error_get_last;
7
use PHPUnit\Framework\TestCase;
8
use function restore_error_handler;
9
use Safe\Exceptions\StringsException;
10
use SimpleXMLElement;
11
+use function var_dump;
12
13
/**
14
* This test must be called AFTER generation of files has occurred
@@ -68,8 +70,8 @@ public function testObjects()
68
70
69
71
$this->assertInstanceOf(SimpleXMLElement::class, $movies);
72
73
+ $doc = \DOMImplementation::createDocument(null, 'foo');
74
- $doc = DOMDocument::loadXML('<node>foobar</node>');
75
$xmlElem = simplexml_import_dom($doc);
76
$this->assertInstanceOf(SimpleXMLElement::class, $xmlElem);
77
}
0 commit comments