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

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

        if (isset($hash['examples']['keyword'])) {
            $examplesKeyword = $hash['examples']['keyword'];
            unset($hash['examples']['keyword']);
        } else {
            $examplesKeyword = 'Examples';
        }

        $examples = new ExampleTableNode($hash['examples'], $examplesKeyword);

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

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

        if (isset($hash['examples']['keyword'])) {
            $examplesKeyword = $hash['examples']['keyword'];
            unset($hash['examples']['keyword']);
        } else {
            $examplesKeyword = 'Examples';
        }

        $examples = new ExampleTableNode($hash['examples'], $examplesKeyword);

        return new OutlineNode($hash['title'], $hash['tags'], $steps, $examples, $hash['keyword'], $hash['line']);
    }
protected function loadOutlineHash ( array $ hash , $ line = 0 ) { $ hash = array_merge ( array ( 'title' => null , 'tags' => array ( ) , 'keyword' => 'Scenario Outline' , 'line' => $ line , 'steps' => array ( ) , 'examples' => array ( ) , ) , $ hash ) ; $ steps = $ this -> loadStepsHash ( $ hash [ 'steps' ] ) ; if ( isset ( $ hash [ 'examples' ] [ 'keyword' ] ) ) { $ examplesKeyword = $ hash [ 'examples' ] [ 'keyword' ] ; unset ( $ hash [ 'examples' ] [ 'keyword' ] ) ; } else { $ examplesKeyword = 'Examples' ; } $ examples = new ExampleTableNode ( $ hash [ 'examples' ] , $ examplesKeyword ) ; return new OutlineNode ( $ hash [ 'title' ] , $ hash [ 'tags' ] , $ steps , $ examples , $ hash [ 'keyword' ] , $ hash [ 'line' ] ) ; }
Loads outline from provided outline hash.

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

@return OutlineNode
Loads outline from provided outline hash .