getCount() 공개 메소드

public getCount ( ) : integer
리턴 integer the number of items in the stack
예제 #1
0
 public function testGetCount()
 {
     $stack = new TStack();
     self::assertEquals(0, $stack->getCount());
     $stack = new TStack(array(1, 2, 3));
     self::assertEquals(3, $stack->getCount());
 }