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

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

        return new BackgroundNode($hash['title'], $steps, $hash['keyword'], $hash['line']);
    }
protected function loadBackgroundHash(array $hash)
    {
        $hash = array_merge(
            array(
                'title' => null,
                'keyword' => 'Background',
                'line' => 0,
                'steps' => array(),
            ),
            $hash
        );

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

        return new BackgroundNode($hash['title'], $steps, $hash['keyword'], $hash['line']);
    }
protected function loadBackgroundHash ( array $ hash ) { $ hash = array_merge ( array ( 'title' => null , 'keyword' => 'Background' , 'line' => 0 , 'steps' => array ( ) , ) , $ hash ) ; $ steps = $ this -> loadStepsHash ( $ hash [ 'steps' ] ) ; return new BackgroundNode ( $ hash [ 'title' ] , $ steps , $ hash [ 'keyword' ] , $ hash [ 'line' ] ) ; }
Loads background from provided hash.

@param array $hash Background hash

@return BackgroundNode
Loads background from provided hash .