src/Behat/Gherkin/Keywords/KeywordsDumper.php
protected function dumpBackground($keyword, $short = true, $excludeAsterisk = false)
    {
        $dump = <<<GHERKIN
  {$keyword}:

GHERKIN;

        // Given
        $dump .= $this->dumpStep(
            $this->keywords->getGivenKeywords(),
            'there is agent A',
            $short,
            $excludeAsterisk
        );

        // And
        $dump .= $this->dumpStep(
            $this->keywords->getAndKeywords(),
            'there is agent B',
            $short,
            $excludeAsterisk
        );

        return $dump . "\n";
    }
protected function dumpBackground($keyword, $short = true, $excludeAsterisk = false)
    {
        $dump = <<<GHERKIN
  {$keyword}:

GHERKIN;

        // Given
        $dump .= $this->dumpStep(
            $this->keywords->getGivenKeywords(),
            'there is agent A',
            $short,
            $excludeAsterisk
        );

        // And
        $dump .= $this->dumpStep(
            $this->keywords->getAndKeywords(),
            'there is agent B',
            $short,
            $excludeAsterisk
        );

        return $dump . "\n";
    }
protected function dumpBackground ( $ keyword , $ short = true , $ excludeAsterisk = false ) { $ dump =  <<<GHERKIN
  {$keyword}:

GHERKIN ; // Given $ dump .= $ this -> dumpStep ( $ this -> keywords -> getGivenKeywords ( ) , 'there is agent A' , $ short , $ excludeAsterisk ) ; // And $ dump .= $ this -> dumpStep ( $ this -> keywords -> getAndKeywords ( ) , 'there is agent B' , $ short , $ excludeAsterisk ) ; return $ dump . "\n" ; }
Dumps background example.

@param string  $keyword Item keyword
@param Boolean $short   Dump short version?

@return string
Dumps background example .