public function testHandleFailWithException() { $exception = new Exception('foo'); $this->setExpectedException('Graze\\Supervisor\\Exception\\UnexpectedTerminationException'); $this->handler->handleFail(0, $this->sup, $exception); }