Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getIndex()
 {
     return $this->node->getIndex();
 }
 /**
  * getIndex has to work even when same-name siblings are not allowed.
  */
 public function testGetIndex()
 {
     $index = $this->node->getIndex();
     $this->assertTrue(is_numeric($index));
     $this->assertEquals(1, $index);
 }