Behat\Gherkin\Keywords\KeywordsDumper::dumpScenario PHP Method

dumpScenario() protected method

Dumps scenario example.
protected dumpScenario ( string $keyword, boolean $short = true, $excludeAsterisk = false ) : string
$keyword string Item keyword
$short boolean Dump short version?
return string
    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";
    }