public function testResetCrashes()
 {
     $this->notifier->expects($this->once())->method('notify')->with(NotifierInterface::MESSAGE_UPDATE);
     $task = $this->loadTask();
     $task->setCrashed(42);
     $this->sut->resetCrashes($task);
     $this->assertEquals(0, $task->getCrashed());
 }
Example #2
0
 private function notify($message)
 {
     try {
         $this->notifier->notify($message);
     } catch (RuntimeException $e) {
     }
 }