3 namespace Tests\Behat\Gherkin\Filter;
5 use Behat\Gherkin\Keywords\ArrayKeywords;
6 use Behat\Gherkin\Lexer;
7 use Behat\Gherkin\Parser;
9 abstract class FilterTest extends \PHPUnit_Framework_TestCase
11 protected function getParser()
15 new ArrayKeywords(array(
17 'feature' => 'Feature',
18 'background' => 'Background',
19 'scenario' => 'Scenario',
20 'scenario_outline' => 'Scenario Outline|Scenario Template',
21 'examples' => 'Examples|Scenarios',
33 protected function getGherkinFeature()
36 Feature: Long feature with outline
40 Then outcomes should be visible
44 And another initial step
46 Then outcomes should be visible
48 Scenario Outline: Scenario#3
50 Then <outcome> should be visible
60 protected function getParsedFeature()
62 return $this->getParser()->parse($this->getGherkinFeature());