src/Behat/Gherkin/Loader/ArrayLoader.php
protected function loadStepHash(array $hash, $line = 0)
    {
        $hash = array_merge(
            array(
                'keyword_type' => 'Given',
                'type' => 'Given',
                'text' => null,
                'keyword' => 'Scenario',
                'line' => $line,
                'arguments' => array(),
            ),
            $hash
        );

        $arguments = array();
        foreach ($hash['arguments'] as $argumentHash) {
            if ('table' === $argumentHash['type']) {
                $arguments[] = $this->loadTableHash($argumentHash['rows']);
            } elseif ('pystring' === $argumentHash['type']) {
                $arguments[] = $this->loadPyStringHash($argumentHash, $hash['line'] + 1);
            }
        }

        return new StepNode($hash['type'], $hash['text'], $arguments, $hash['line'], $hash['keyword_type']);
    }
protected function loadStepHash(array $hash, $line = 0)
    {
        $hash = array_merge(
            array(
                'keyword_type' => 'Given',
                'type' => 'Given',
                'text' => null,
                'keyword' => 'Scenario',
                'line' => $line,
                'arguments' => array(),
            ),
            $hash
        );

        $arguments = array();
        foreach ($hash['arguments'] as $argumentHash) {
            if ('table' === $argumentHash['type']) {
                $arguments[] = $this->loadTableHash($argumentHash['rows']);
            } elseif ('pystring' === $argumentHash['type']) {
                $arguments[] = $this->loadPyStringHash($argumentHash, $hash['line'] + 1);
            }
        }

        return new StepNode($hash['type'], $hash['text'], $arguments, $hash['line'], $hash['keyword_type']);
    }
protected function loadStepHash ( array $ hash , $ line = 0 ) { $ hash = array_merge ( array ( 'keyword_type' => 'Given' , 'type' => 'Given' , 'text' => null , 'keyword' => 'Scenario' , 'line' => $ line , 'arguments' => array ( ) , ) , $ hash ) ; $ arguments = array ( ) ; foreach ( $ hash [ 'arguments' ] as $ argumentHash ) { if ( 'table' === $ argumentHash [ 'type' ] ) { $ arguments [ ] = $ this -> loadTableHash ( $ argumentHash [ 'rows' ] ) ; } elseif ( 'pystring' === $ argumentHash [ 'type' ] ) { $ arguments [ ] = $ this -> loadPyStringHash ( $ argumentHash , $ hash [ 'line' ] + 1 ) ; } } return new StepNode ( $ hash [ 'type' ] , $ hash [ 'text' ] , $ arguments , $ hash [ 'line' ] , $ hash [ 'keyword_type' ] ) ; }
Loads step from provided hash.

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

@return StepNode
Loads step from provided hash .