PhpUnitJson does not fail on empty trace

This commit is contained in:
SimonHeimberg 2017-12-15 15:41:54 +01:00
parent ee6d75c268
commit 499c4cd4bb

View file

@ -134,6 +134,12 @@ class PhpUnitResultJson extends PhpUnitResult
*/
protected function getFileAndLine($event)
{
if (empty($event['trace'])) {
return [
'file' => '',
'line' => '',
];
}
$firstTrace = end($event['trace']);
reset($event['trace']);