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