示例#1
0
 /**
  * @expectedException \Novuso\System\Exception\UnderflowException
  */
 public function test_that_front_throws_exception_when_empty()
 {
     LinkedQueue::of('int')->front();
 }
 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     if ($this->running) {
         throw new Exception('Cannot clear processes while running');
     }
     $this->queue = LinkedQueue::of(Process::class);
     $this->pids = [];
     $this->procs = [];
 }