コード例 #1
0
 protected function onNotSuccessfulTest(Exception $e)
 {
     if (self::$history && ($lastResponse = self::$history->getLastResponse())) {
         $this->printDebug('');
         $this->printDebug('<error>Failure!</error> when making the following request:');
         $this->printLastRequestUrl();
         $this->printDebug('');
         $this->debugResponse($lastResponse);
     }
     throw $e;
 }