summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-12-01 15:47:58 (GMT)
committerFelipe Pena <felipe@php.net>2011-12-01 15:47:58 (GMT)
commit78742a33a7a3c43b71d20e4b06665694c89b4c11 (patch)
tree83184675c5e4bc4820c0e677e3392580fa480837 /run-tests.php
parent5fdb19fba07a5eebc67f39f9c913453d80b984a9 (diff)
downloadphp-78742a33a7a3c43b71d20e4b06665694c89b4c11.tar.gz
- Replace possible esc char to <esc> in the XML output
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index 1272657..3fba338 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2100,11 +2100,11 @@ $output
}
elseif (in_array('FAIL', $restype)) {
$JUNIT['test_fail']++;
- $JUNIT['result_xml'] .= '<failure type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".$diff."\n".']]></failure>'."\n";
+ $JUNIT['result_xml'] .= '<failure type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".preg_replace('/\e/', '<esc>', $diff)."\n".']]></failure>'."\n";
}
else{
$JUNIT['test_error']++;
- $JUNIT['result_xml'] .= '<error type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".$diff."\n".']]></error>'."\n";
+ $JUNIT['result_xml'] .= '<error type="'.$restype[0].'ED" message="'.$info.'"><![CDATA['."\n".preg_replace('/\e/', '<esc>', $diff)."\n".']]></error>'."\n";
}
$JUNIT['result_xml'] .= '</testcase>'."\n";
}