src/Behat/Behat/Context/Reader/AnnotatedContextReader.php
private function readDocBlockCallees($class, ReflectionMethod $method, $docBlock)
    {
        $callees = array();
        $description = $this->readDescription($docBlock);
        $docBlock = $this->mergeMultilines($docBlock);

        foreach (explode("\n", $docBlock) as $docLine) {
            $docLine = preg_replace(self::DOCLINE_TRIMMER_REGEX, '', $docLine);

            if ($this->isEmpty($docLine)) {
                continue;
            }

            if ($this->isNotAnnotation($docLine)) {
                continue;
            }

            if ($callee = $this->readDocLineCallee($class, $method, $docLine, $description)) {
                $callees[] = $callee;
            }
        }

        return $callees;
    }
private function readDocBlockCallees($class, ReflectionMethod $method, $docBlock)
    {
        $callees = array();
        $description = $this->readDescription($docBlock);
        $docBlock = $this->mergeMultilines($docBlock);

        foreach (explode("\n", $docBlock) as $docLine) {
            $docLine = preg_replace(self::DOCLINE_TRIMMER_REGEX, '', $docLine);

            if ($this->isEmpty($docLine)) {
                continue;
            }

            if ($this->isNotAnnotation($docLine)) {
                continue;
            }

            if ($callee = $this->readDocLineCallee($class, $method, $docLine, $description)) {
                $callees[] = $callee;
            }
        }

        return $callees;
    }
private function readDocBlockCallees ( $ class , ReflectionMethod $ method , $ docBlock ) { $ callees = array ( ) ; $ description = $ this -> readDescription ( $ docBlock ) ; $ docBlock = $ this -> mergeMultilines ( $ docBlock ) ; foreach ( explode ( "\n" , $ docBlock ) as $ docLine ) { $ docLine = preg_replace ( self :: DOCLINE_TRIMMER_REGEX , '' , $ docLine ) ; if ( $ this -> isEmpty ( $ docLine ) ) { continue ; } if ( $ this -> isNotAnnotation ( $ docLine ) ) { continue ; } if ( $ callee = $ this -> readDocLineCallee ( $ class , $ method , $ docLine , $ description ) ) { $ callees [ ] = $ callee ; } } return $ callees ; }
Reads callees from the method doc block.

@param string           $class
@param ReflectionMethod $method
@param string           $docBlock

@return Callee[]
Reads callees from the method doc block .