Updating Behat RestContext, sending logs to file stored in system temporal dir.

This commit is contained in:
Erik Amaru Ortiz
2014-06-30 15:59:42 -04:00
parent 4576f2812d
commit c5ff9a0483

View File

@@ -1644,8 +1644,18 @@ class RestContext extends BehatContext
file_put_contents($exportedProcessFileName, $this->_response->getBody(true));
}
/**
* @overrides
*/
public function printDebug($string)
{
//echo "\n\033[36m| " . strtr($string, array("\n" => "\n| ")) . "\033[0m\n\n";
$fp = fopen(sys_get_temp_dir() . "/behat.log", "a+");
fwrite($fp, $string . PHP_EOL);
}
}