public function testClear() { $stack = new TStack(array(1, 2, 3)); $stack->clear(); self::assertEquals(array(), $stack->toArray()); }