Merge pull request #4525 from tractorcow/pulls/3.1/teamcity

MINOR Adjustment to teamcity output
This commit is contained in:
Daniel Hensby 2015-08-21 09:18:51 +01:00
commit 790dff7b81

View File

@ -46,7 +46,7 @@ class TeamCityListener implements PHPUnit_Framework_TestListener {
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) { public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
$class = get_class($test); $class = get_class($test);
$message = $this->escape($e->getMessage()); $message = $this->escape(PHPUnit_Framework_TestFailure::exceptionToString($e));
$trace = $this->escape($e->getTraceAsString()); $trace = $this->escape($e->getTraceAsString());
echo "##teamcity[testFailed type='failure' name='{$class}.{$test->getName()}' message='$message'" echo "##teamcity[testFailed type='failure' name='{$class}.{$test->getName()}' message='$message'"
. " details='$trace']\n"; . " details='$trace']\n";