@@ -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); |