parseDocComment() public static method

Parse phpDoc comment.
public static parseDocComment ( $s ) : array
return array
Esempio n. 1
0
 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 array($annotations, $testName);
 }