Updating Behat RestContext, sending logs to file stored in system temporal dir.
This commit is contained in:
@@ -1648,4 +1648,14 @@ class RestContext extends BehatContext
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user