Example #1
0
 /**
  * Returns the index of this node which determines the order among siblings
  * with the same parent node.
  *
  * @return integer
  */
 public function getIndex()
 {
     return $this->nodeData->getIndex();
 }
 /**
  * @test
  */
 public function theIndexCanBeSetAndRetrieved()
 {
     $this->nodeData->setIndex(2);
     $this->assertEquals(2, $this->nodeData->getIndex());
 }