insertAfter() public method

This inserts an item after another item within the list. It uses the same priority as the found index item and places the new item after it.
public insertAfter ( $indexitem, $item ) : integer
return integer where the item has been inserted in the flattened list
Beispiel #1
0
 public function testInsertAfterTPriorityList()
 {
     $plist = new TPriorityList($this->plist);
     $this->assertEquals(4, $plist->getCount());
     $plist->insertAfter($this->pfirst, $this->pitem4);
     $this->assertEquals(-10000000, $plist->priorityOf($this->pitem4));
 }