getCount() public method

public getCount ( ) : integer
return integer the number of items in the queue
Esempio n. 1
0
 public function testGetCount()
 {
     $queue = new TQueue();
     self::assertEquals(0, $queue->getCount());
     $queue = new TQueue(array(1, 2, 3));
     self::assertEquals(3, $queue->getCount());
 }