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

GHERKIN;

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

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

        // When
        $dump .= $this->dumpStep(
            $this->keywords->getWhenKeywords(),
            'I erase agent K\'s memory',
            $short,
            $excludeAsterisk
        );

        // Then
        $dump .= $this->dumpStep(
            $this->keywords->getThenKeywords(),
            'there should be agent J',
            $short,
            $excludeAsterisk
        );

        // But
        $dump .= $this->dumpStep(
            $this->keywords->getButKeywords(),
            'there should not be agent K',
            $short,
            $excludeAsterisk
        );

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

GHERKIN;

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

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

        // When
        $dump .= $this->dumpStep(
            $this->keywords->getWhenKeywords(),
            'I erase agent K\'s memory',
            $short,
            $excludeAsterisk
        );

        // Then
        $dump .= $this->dumpStep(
            $this->keywords->getThenKeywords(),
            'there should be agent J',
            $short,
            $excludeAsterisk
        );

        // But
        $dump .= $this->dumpStep(
            $this->keywords->getButKeywords(),
            'there should not be agent K',
            $short,
            $excludeAsterisk
        );

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

GHERKIN ; // Given $ dump .= $ this -> dumpStep ( $ this -> keywords -> getGivenKeywords ( ) , 'there is agent J' , $ short , $ excludeAsterisk ) ; // And $ dump .= $ this -> dumpStep ( $ this -> keywords -> getAndKeywords ( ) , 'there is agent K' , $ short , $ excludeAsterisk ) ; // When $ dump .= $ this -> dumpStep ( $ this -> keywords -> getWhenKeywords ( ) , 'I erase agent K\'s memory' , $ short , $ excludeAsterisk ) ; // Then $ dump .= $ this -> dumpStep ( $ this -> keywords -> getThenKeywords ( ) , 'there should be agent J' , $ short , $ excludeAsterisk ) ; // But $ dump .= $ this -> dumpStep ( $ this -> keywords -> getButKeywords ( ) , 'there should not be agent K' , $ short , $ excludeAsterisk ) ; return $ dump . "\n" ; }
Dumps scenario example.

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

@return string
Dumps scenario example .