Ejemplo n.º 1
0
 /**
  * Get the content of the feature
  *
  * @return string
  */
 public function getContent()
 {
     $dumper = new Dumper($this->keywords);
     return $dumper->dump($this->getGherkin()->getFeatureNode());
 }
 /**
  * @dataProvider providerFeatureInText
  */
 public function testDumpFeature($initialContent)
 {
     $lexer = new \Behat\Gherkin\Lexer($this->keywords);
     $parser = new \Behat\Gherkin\Parser($lexer);
     $feature = $parser->parse($initialContent);
     $dumper = new Dumper($this->keywords);
     $this->assertEquals($initialContent, $dumper->dumpFeature($feature));
 }