dequeue() public method

Removes and returns the object at the beginning of the queue.
public dequeue ( ) : mixed
return mixed the item at the beginning of the queue
Beispiel #1
0
 public function testCanNotDequeueAnEmptyQueue()
 {
     $queue = new TQueue();
     try {
         $item = $queue->dequeue();
     } catch (TInvalidOperationException $e) {
         return;
     }
     self::fail('An expected TInvalidOperationException was not raised');
 }