private static function getArgumentsDump(array $args)
{
$output = array();
foreach ($args as $arg) {
ob_start();
var_dump($arg);
// If xdebug is enabled and the var_dump method is overloaded, we need
// to treat the output differently.
if (ini_get('xdebug.overload_var_dump')) {
$dump = strip_tags(ob_get_clean()) . "\n";
} else {
$dump = htmlspecialchars(ob_get_clean()) . "\n";
}
$dump = static::sanitise($dump);
$dump = static::translateTimestamp($dump);
$output[] = $dump;
}
return $output;
}