Exemple #1
0
 public function testAfterWithoutNextSibling()
 {
     $root = new SimpleDOM('<root><child1 /><child2 /><child3 /></root>');
     $expected = '<root><child1 /><child2 /><child3/></root><!--TEST-->';
     $root->insertComment('TEST', 'after');
     $this->assertEqualsWithComments($expected, $root->asXML());
 }