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