public function testBuildObjectFromIncompleteXml() { $value = '<t>test</t>'; $o = new XmlReader(); $o->setString($value); $o->buildObj(); $this->assertInstanceOf(\DOMDocument::class, $o->getDom()); $this->assertContains($value, $o->getDom()->saveXML()); // the output xml contains the XML header }
public function testEmptyAtInitialization() { $o = new XmlReader(); $this->assertNull($o->getDom()); }