@@ -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 | */ |
@@ -123,6 +123,9 @@ discard block |
||
123 | 123 | return $this->yaml; |
124 | 124 | } |
125 | 125 | |
126 | + /** |
|
127 | + * @param string $fixture |
|
128 | + */ |
|
126 | 129 | protected function parseFixture($fixture) |
127 | 130 | { |
128 | 131 | $file = __DIR__ . '/Fixtures/features/' . $fixture; |
@@ -130,6 +133,9 @@ discard block |
||
130 | 133 | return array($this->getGherkinParser()->parse(file_get_contents($file), $file)); |
131 | 134 | } |
132 | 135 | |
136 | + /** |
|
137 | + * @param string $etalon |
|
138 | + */ |
|
133 | 139 | protected function parseEtalon($etalon) |
134 | 140 | { |
135 | 141 | $features = $this->getYamlParser()->load(__DIR__ . '/Fixtures/etalons/testFolder/' . $etalon); |