public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     printf("Test '%s' failed.\n", $test->getName());
     echo "RESPONSE\n\n";
     echo "Status Code: " . $test->getResponse()->getHttpResponseCode() . "\n\n";
     echo "Headers:\n\n";
     foreach ($test->getResponse()->getHeaders() as $header) {
         $replace = 'false';
         if ($header['replace'] === true) {
             $replace = 'true';
         }
         echo "\t {$header['name']} - {$header['value']} (replace: {$replace})\n";
     }
     echo "\n";
     echo "Body:\n\n" . $test->getResponse()->getBody() . "\n\n";
     if ($test->getResponse()->isException()) {
         echo "Exceptions:\n\n";
         foreach ($test->getResponse()->getException() as $exception) {
             echo "\t * Message: {$exception->getMessage()}\n";
             echo "\t * File:    {$exception->getFile()}\n";
             echo "\t * Line:    {$exception->getLine()}\n";
             echo "\n";
         }
     }
 }