Esempio n. 1
0
 public function testQueuePriority()
 {
     $results = '';
     $q = new Queue();
     $q->insert('a', 1);
     $q->insert('b', 1);
     $q->insert('c', 1);
     foreach ($q as $v) {
         $results .= $v;
     }
     $this->assertEquals('abc', $results);
 }
Esempio n. 2
0
 /**
  * Check to see if there are more events left in the filter.
  *
  * @return bool
  */
 public function hasEvents()
 {
     return $this->queue->valid();
 }