clear() public méthode

Removes all items in the stack.
public clear ( )
Exemple #1
0
 public function testClear()
 {
     $stack = new TStack(array(1, 2, 3));
     $stack->clear();
     self::assertEquals(array(), $stack->toArray());
 }