public function testNextSibling()
 {
     $parent = new Node();
     $child = new Node();
     $child2 = new Node();
     $child->setParent($parent);
     $child2->setParent($parent);
     $this->assertEquals($child2->id(), $child->nextSibling()->id());
 }
Example #2
0
 /**
  * @expectedException PHPHtmlParser\Exceptions\ParentNotFoundException
  */
 public function testNextSiblingNoParent()
 {
     $child = new Node();
     $child->nextSibling();
 }