예제 #1
0
파일: StorageTest.php 프로젝트: recck/proem
 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);
 }
예제 #2
0
파일: Standard.php 프로젝트: recck/proem
 /**
  * Check to see if there are more events left in the filter.
  *
  * @return bool
  */
 public function hasEvents()
 {
     return $this->queue->valid();
 }