@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Checks if current loader supports provided resource. |
51 | 51 | * |
52 | - * @param mixed $path Resource to load |
|
52 | + * @param string $path Resource to load |
|
53 | 53 | * |
54 | 54 | * @return Boolean |
55 | 55 | */ |
@@ -13,8 +13,16 @@ |
||
13 | 13 | |
14 | 14 | abstract class KeywordsTest extends \PHPUnit_Framework_TestCase |
15 | 15 | { |
16 | + /** |
|
17 | + * @return \Behat\Gherkin\Keywords\KeywordsInterface |
|
18 | + */ |
|
16 | 19 | abstract protected function getKeywords(); |
17 | 20 | abstract protected function getKeywordsArray(); |
21 | + |
|
22 | + /** |
|
23 | + * @param string $text |
|
24 | + * @param string $keywordType |
|
25 | + */ |
|
18 | 26 | abstract protected function getSteps($keywords, $text, &$line, $keywordType); |
19 | 27 | |
20 | 28 | public function translationTestDataProvider() |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Checks if current loader supports provided resource. |
51 | 51 | * |
52 | - * @param mixed $path Resource to load |
|
52 | + * @param string $path Resource to load |
|
53 | 53 | * |
54 | 54 | * @return Boolean |
55 | 55 | */ |
@@ -121,22 +121,4 @@ |
||
121 | 121 | function scenario() : Parser |
122 | 122 | { |
123 | 123 | return collect(scenarioKeyword(), text())->map( |
124 | - fn(array $strs) : ScenarioNode => new ScenarioNode($strs[1], [], [], $strs[0], 1) |
|
125 | - ); |
|
126 | -} |
|
127 | - |
|
128 | -/* |
|
129 | -Feature: This thing |
|
130 | - |
|
131 | - Example: Example text |
|
132 | - Given I have a cat when it's raining |
|
133 | - When I kill the cat |
|
134 | - Then I no longer have the cat |
|
135 | - |
|
136 | -FeatureKeyword: FeatureTitle |
|
137 | - |
|
138 | - ScenarioKeyword: ScenarioTitle |
|
139 | - Step |
|
140 | - Step |
|
141 | - Step |
|
142 | - */ |
|
124 | + fn(array $strs) : ScenarioNode => new ScenarioNode($strs[1], [], [], $strs[0] |
|
143 | 125 | \ No newline at end of file |
@@ -121,22 +121,4 @@ |
||
121 | 121 | function scenario() : Parser |
122 | 122 | { |
123 | 123 | return collect(scenarioKeyword(), text())->map( |
124 | - fn(array $strs) : ScenarioNode => new ScenarioNode($strs[1], [], [], $strs[0], 1) |
|
125 | - ); |
|
126 | -} |
|
127 | - |
|
128 | -/* |
|
129 | -Feature: This thing |
|
130 | - |
|
131 | - Example: Example text |
|
132 | - Given I have a cat when it's raining |
|
133 | - When I kill the cat |
|
134 | - Then I no longer have the cat |
|
135 | - |
|
136 | -FeatureKeyword: FeatureTitle |
|
137 | - |
|
138 | - ScenarioKeyword: ScenarioTitle |
|
139 | - Step |
|
140 | - Step |
|
141 | - Step |
|
142 | - */ |
|
124 | + fn(array $strs) : ScenarioNode => new ScenarioNode($strs[1], [], [], $strs[0] |
|
143 | 125 | \ No newline at end of file |