@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Codeception\Util\Annotation; |
| 9 | 9 | use Codeception\Step\Comment; |
| 10 | 10 | use Codeception\Test\Cest as CestFormat; |
| 11 | -use ReflectionProperty; |
|
| 12 | 11 | |
| 13 | 12 | class ExampleProvider extends \Codeception\Platform\Extension |
| 14 | 13 | { |
@@ -54,12 +54,12 @@ |
||
| 54 | 54 | ]); |
| 55 | 55 | $dataTest->getMetadata()->setCurrent(['actor' => $testActor, 'example' => $example]); |
| 56 | 56 | $step = new Comment('', $dataTest->getMetadata()->getCurrent('example')); |
| 57 | - $dataTest->getScenario()->setFeature($dataTest->getSpecFromMethod() . ' | '. $step->getArgumentsAsString(100)); |
|
| 57 | + $dataTest->getScenario()->setFeature($dataTest->getSpecFromMethod() . ' | ' . $step->getArgumentsAsString(100)); |
|
| 58 | 58 | $groups = Annotation::forMethod($testClass, $testMethod)->fetchAll('group'); |
| 59 | 59 | $dataProvider->addTest($dataTest, $groups); |
| 60 | 60 | } |
| 61 | 61 | $tests[$id] = $dataProvider; |
| 62 | - } catch(Exception $e) { |
|
| 62 | + } catch (Exception $e) { |
|
| 63 | 63 | throw new TestParseException( |
| 64 | 64 | $testFile, "DataProvider for ${testClass}->${testMethod} is invalid or not callable" |
| 65 | 65 | . PHP_EOL . |