src/Behat/Gherkin/Loader/ArrayLoader.php
protected function loadScenarioHash(array $hash, $line = 0)
    {
        $hash = array_merge(
            array(
                'title' => null,
                'tags' => array(),
                'keyword' => 'Scenario',
                'line' => $line,
                'steps' => array(),
            ),
            $hash
        );

        $steps = $this->loadStepsHash($hash['steps']);

        return new ScenarioNode($hash['title'], $hash['tags'], $steps, $hash['keyword'], $hash['line']);
    }
protected function loadScenarioHash(array $hash, $line = 0)
    {
        $hash = array_merge(
            array(
                'title' => null,
                'tags' => array(),
                'keyword' => 'Scenario',
                'line' => $line,
                'steps' => array(),
            ),
            $hash
        );

        $steps = $this->loadStepsHash($hash['steps']);

        return new ScenarioNode($hash['title'], $hash['tags'], $steps, $hash['keyword'], $hash['line']);
    }
protected function loadScenarioHash ( array $ hash , $ line = 0 ) { $ hash = array_merge ( array ( 'title' => null , 'tags' => array ( ) , 'keyword' => 'Scenario' , 'line' => $ line , 'steps' => array ( ) , ) , $ hash ) ; $ steps = $ this -> loadStepsHash ( $ hash [ 'steps' ] ) ; return new ScenarioNode ( $ hash [ 'title' ] , $ hash [ 'tags' ] , $ steps , $ hash [ 'keyword' ] , $ hash [ 'line' ] ) ; }
Loads scenario from provided scenario hash.

@param array   $hash Scenario hash
@param integer $line Scenario definition line

@return ScenarioNode
Loads scenario from provided scenario hash .