public function testOnJobPopPopsTriggersIdleAndStopPropagation()
 {
     $this->event->getQueue()->expects($this->once())->method('pop')->will($this->returnValue(null));
     $called = false;
     $this->event->getTarget()->getEventManager()->attach(WorkerEvent::EVENT_PROCESS_IDLE, function (WorkerEvent $e) use(&$called) {
         $called = true;
     });
     $this->listener->onJobPop($this->event);
     $this->assertTrue($called);
     $this->assertNull($this->event->getJob());
     $this->assertEquals(WorkerEvent::JOB_STATUS_UNKNOWN, $this->event->getResult());
     $this->assertTrue($this->event->propagationIsStopped());
 }