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); }
/** * Check to see if there are more events left in the filter. * * @return bool */ public function hasEvents() { return $this->queue->valid(); }