useContext('RestContext', new RestContext($parameters)); } /** * @When /^I run "([^"]*)"$/ */ public function iRun($command) { exec($command, $result); $this->output = $result; } /** * @Then /^I should see the file "([^"]*)"$/ */ public function iShouldSeeTheFile($fileName) { if (!in_array($fileName, $this->output)) { throw new Exception('File named ' . $fileName . ' not found!'); } } // // Place your definition and hook methods here: // // /** // * @Given /^I have done something with "([^"]*)"$/ // */ // public function iHaveDoneSomethingWith($argument) // { // doSomethingWith($argument); // } // }