Skip to content

Commit 6a0b892

Browse files
committed
Improving tests
1 parent 3484e86 commit 6a0b892

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generator/tests/GeneratedFilesTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
namespace Safe;
44

55
use DOMDocument;
6+
use function error_get_last;
67
use PHPUnit\Framework\TestCase;
78
use function restore_error_handler;
89
use Safe\Exceptions\StringsException;
910
use SimpleXMLElement;
11+
use function var_dump;
1012

1113
/**
1214
* This test must be called AFTER generation of files has occurred
@@ -68,8 +70,8 @@ public function testObjects()
6870

6971
$this->assertInstanceOf(SimpleXMLElement::class, $movies);
7072

73+
$doc = \DOMImplementation::createDocument(null, 'foo');
7174

72-
$doc = DOMDocument::loadXML('<node>foobar</node>');
7375
$xmlElem = simplexml_import_dom($doc);
7476
$this->assertInstanceOf(SimpleXMLElement::class, $xmlElem);
7577
}

0 commit comments

Comments
 (0)