1 | <?php |
||
13 | class ConsoleContext implements Context, KernelAwareContext |
||
14 | { |
||
15 | |||
16 | use Behat\Symfony2Extension\Context\KernelDictionary; |
||
17 | |||
18 | /** |
||
19 | * The Magento 2 installation directory. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | private $installDir; |
||
24 | |||
25 | /** |
||
26 | * The output of the last executed command. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | private $output = array(); |
||
31 | |||
32 | /** |
||
33 | * The return value of the last executed command. |
||
34 | * |
||
35 | * @var integer |
||
36 | */ |
||
37 | private $exitCode = 0; |
||
38 | |||
39 | /** @BeforeFeature */ |
||
40 | public static function prepareForTheFeature() |
||
43 | |||
44 | /** @BeforeScenario */ |
||
45 | public function before(BeforeScenarioScope $scope) |
||
60 | |||
61 | /** @AfterScenario */ |
||
62 | public function after(AfterScenarioScope $scope) |
||
65 | |||
66 | protected function appendInstallDir($cmd) |
||
70 | |||
71 | protected function prependInstallDir($cmd) |
||
75 | |||
76 | /** |
||
77 | * @Given a third party system has copied the file :arg1 into the import folder :arg2 |
||
78 | */ |
||
79 | public function aThirdPartySystemHasCopiedTheFileIntoTheImportFolder($arg1, $arg2) |
||
88 | |||
89 | /** |
||
90 | * @Given that a new file :arg1 containing data is available |
||
91 | */ |
||
92 | public function thatANewFileContainingDataIsAvailable($arg1) |
||
101 | |||
102 | /** |
||
103 | * @When the command :arg1 has been executed |
||
104 | */ |
||
105 | public function theCommandHasBeenExecuted($arg1) |
||
110 | |||
111 | /** |
||
112 | * @When the magento command :arg1 has been executed |
||
113 | */ |
||
114 | public function theMagentoCommandHasBeenExecuted($arg1) |
||
119 | |||
120 | /** |
||
121 | * @Given the magento index has been updated |
||
122 | */ |
||
123 | public function theMagentoIndexHasBeenUpdated() |
||
127 | |||
128 | /** |
||
129 | * @Then all the data in the file :arg1 has been imported |
||
130 | */ |
||
131 | public function allTheDataInTheFileHasBeenImported2($arg1) |
||
135 | |||
136 | public function getExitCode() |
||
140 | |||
141 | public function getOutput() |
||
145 | } |
||
146 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.