Tester\Environment::getTestAnnotations PHP Method

getTestAnnotations() public static method

Returns current test annotations.
public static getTestAnnotations ( ) : array
return array
    public static function getTestAnnotations()
    {
        $trace = debug_backtrace();
        $file = $trace[count($trace) - 1]['file'];
        return Helpers::parseDocComment(file_get_contents($file)) + ['file' => $file];
    }