removeAt() public method

This overrides the parent implementation by performing additional cleanup work when removing a TXmlElement object.
public removeAt ( $index ) : mixed
return mixed the removed item.
Exemplo n.º 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));
 }