insertAt() public method

This overrides the parent implementation by performing additional operations for each newly added TXmlElement object.
public insertAt ( $index, $item )
Example #1
0
 public function testRemoveAt()
 {
     $element = new TXmlElement('tag');
     $list = new TXmlElementList($element);
     $newElement = new TXmlElement('newTag');
     $list->insertAt(0, $newElement);
     self::assertEquals($newElement, $list->removeAt(0));
 }