@@ -8,6 +8,9 @@ |
||
8 | 8 | /** @todo upgrade phpunit and use Parsica traits */ |
9 | 9 | trait Asserts |
10 | 10 | { |
11 | + /** |
|
12 | + * @param string $expected |
|
13 | + */ |
|
11 | 14 | private function assertParse($expected, Parser $parser, string $input) |
12 | 15 | { |
13 | 16 | $actual = $parser->tryString("$input")->output(); |
@@ -147,24 +147,4 @@ |
||
147 | 147 | $parser = token(string('Foo')); |
148 | 148 | $expected = 'Foo'; |
149 | 149 | |
150 | - $this->assertParse($expected, $parser, $input); |
|
151 | - } |
|
152 | -} |
|
153 | - |
|
154 | -/* |
|
155 | -Feature: This thing |
|
156 | - |
|
157 | - This feature will be super awesome |
|
158 | - |
|
159 | - Example: Example text |
|
160 | - Given I have a cat when it's raining |
|
161 | - When I kill the cat |
|
162 | - Then I no longer have the cat |
|
163 | - |
|
164 | -FeatureKeyword: FeatureTitle |
|
165 | - |
|
166 | - ScenarioKeyword: ScenarioTitle |
|
167 | - StepKeyword StepText |
|
168 | - StepKeyword StepText |
|
169 | - StepKeyword StepText |
|
170 | - */ |
|
150 | + $this->assertParse($expected, $parser, $input |
|
171 | 151 | \ No newline at end of file |
@@ -147,24 +147,4 @@ |
||
147 | 147 | $parser = token(string('Foo')); |
148 | 148 | $expected = 'Foo'; |
149 | 149 | |
150 | - $this->assertParse($expected, $parser, $input); |
|
151 | - } |
|
152 | -} |
|
153 | - |
|
154 | -/* |
|
155 | -Feature: This thing |
|
156 | - |
|
157 | - This feature will be super awesome |
|
158 | - |
|
159 | - Example: Example text |
|
160 | - Given I have a cat when it's raining |
|
161 | - When I kill the cat |
|
162 | - Then I no longer have the cat |
|
163 | - |
|
164 | -FeatureKeyword: FeatureTitle |
|
165 | - |
|
166 | - ScenarioKeyword: ScenarioTitle |
|
167 | - StepKeyword StepText |
|
168 | - StepKeyword StepText |
|
169 | - StepKeyword StepText |
|
170 | - */ |
|
150 | + $this->assertParse($expected, $parser, $input |
|
171 | 151 | \ No newline at end of file |