push() public method

Pushes an item into the stack.
public push ( $item )
Esempio n. 1
0
 public function testPush()
 {
     $stack = new TStack();
     $stack->push(1);
     self::assertEquals(array(1), $stack->toArray());
 }