PHPSpec2\Loader\Node\Example::getPreFunctions PHP 메소드

getPreFunctions() 공개 메소드

public getPreFunctions ( )
    public function getPreFunctions()
    {
        return $this->preFunctions;
    }

Usage Example

예제 #1
0
파일: Runner.php 프로젝트: phpspec/phpspec2
 protected function getExampleDependencies(Node\Example $example, $context)
 {
     $dependencies = array();
     foreach ($example->getPreFunctions() as $preFunction) {
         $dependencies = $this->getDependencies($preFunction, $dependencies);
     }
     return $this->getDependencies($example->getFunction(), $dependencies);
 }