Permalink
Browse files

TestHandler: test title is NULL when 'TEST:...' not used

  • Loading branch information...
milo committed Aug 3, 2017
1 parent 99d7980 commit fa6c196798069e386519f636ed1d0e565a9161e9
Showing with 2 additions and 3 deletions.
  1. +2 βˆ’3 src/Runner/TestHandler.php
@@ -234,8 +234,7 @@ private function assessOutputMatch(Job $job, $content)
private function getAnnotations($file)
{
$annotations = Helpers::parseDocComment(file_get_contents($file));
$testName = (isset($annotations[0]) ? preg_replace('#^TEST:\s*#i', '', $annotations[0]) . ' | ' : '')
. implode(DIRECTORY_SEPARATOR, array_slice(explode(DIRECTORY_SEPARATOR, $file), -3));
return [$annotations, $testName];
$testTitle = isset($annotations[0]) ? preg_replace('#^TEST:\s*#i', '', $annotations[0]) : null;
return [$annotations, $testTitle];
}
}

0 comments on commit fa6c196

Please sign in to comment.