PHPSpec2\Runner\Runner::getExampleDependencies PHP Method

getExampleDependencies() protected method

protected getExampleDependencies ( Example $example, $context )
$example PHPSpec2\Loader\Node\Example
    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);
    }