Permalink
Browse files
TestHandler: test title is NULL when 'TEST:...' not used
- Loading branch information...
Showing
with
2 additions
and
3 deletions.
-
+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