@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use Behat\Behat\Context\Context; |
4 | 4 | use Behat\Behat\Context\SnippetAcceptingContext; |
5 | -use Behat\Behat\Tester\Exception\PendingException; |
|
6 | 5 | use Behat\Gherkin\Node\PyStringNode; |
7 | 6 | |
8 | 7 | class SimpleFeatureContext implements Context, SnippetAcceptingContext { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Behat\Behat\Definition\Call\DefinitionCall; |
6 | 6 | use Behat\Behat\Transformation\Transformer\ArgumentTransformer; |
7 | -use rdx\behatvars\BehatVariablesContext; |
|
8 | 7 | use rdx\behatvars\BehatVariablesDatabase; |
9 | 8 | |
10 | 9 | class BehatVariablesArgumentTransformer implements ArgumentTransformer { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function transformArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue) { |
40 | 40 | $replacements = array(); |
41 | 41 | foreach ($this->matches as $match) { |
42 | - $replacements[ $match[0] ] = BehatVariablesDatabase::get($match[1]); |
|
42 | + $replacements[$match[0]] = BehatVariablesDatabase::get($match[1]); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | return strtr($argumentValue, $replacements); |
@@ -158,6 +158,8 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * |
161 | + * @param string $filename |
|
162 | + * @param string $content |
|
161 | 163 | */ |
162 | 164 | private function createFile($filename, $content) { |
163 | 165 | $path = dirname($filename); |
@@ -170,6 +172,7 @@ discard block |
||
170 | 172 | |
171 | 173 | /** |
172 | 174 | * |
175 | + * @param string $path |
|
173 | 176 | */ |
174 | 177 | private static function clearDirectory($path) { |
175 | 178 | $files = scandir($path); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | use Behat\Behat\Context\Context; |
4 | 4 | use Behat\Behat\Context\SnippetAcceptingContext; |
5 | 5 | use Behat\Gherkin\Node\PyStringNode; |
6 | -use Behat\Gherkin\Node\TableNode; |
|
7 | 6 | use Symfony\Component\Process\PhpExecutableFinder; |
8 | 7 | use Symfony\Component\Process\Process; |
9 | 8 |