public function testTextNodesAreReturnedAsText() { $xml = new SimpleDOM('<xml>This <is /> a text</xml>'); $this->assertSame(' a text', $xml->lastChild()); }
public function testNoChild() { $root = new SimpleDOM('<root />'); $this->assertNull($root->lastChild()); }