Skip to content

Commit

Permalink
Improving tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Sep 24, 2018
1 parent 3484e86 commit af96b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/tests/GeneratedFilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Safe;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use function restore_error_handler;
use Safe\Exceptions\StringsException;
Expand Down Expand Up @@ -68,8 +67,9 @@ public function testObjects()

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

$domImplementation = new \DOMImplementation();
$doc = $domImplementation->createDocument(null, 'foo');

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

0 comments on commit af96b68

Please sign in to comment.