| 1 | <?php |
||
| 10 | class FeatureContext implements Context |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Application |
||
| 14 | */ |
||
| 15 | private $application; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var |
||
| 19 | */ |
||
| 20 | private $tester; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * FeatureContext constructor. |
||
| 24 | */ |
||
| 25 | public function __construct() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * FeatureContext destructor. |
||
| 36 | */ |
||
| 37 | public function __destruct() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @When /^I run "([^"]*)" command$/ |
||
| 44 | */ |
||
| 45 | public function iRunCommand($name) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @Then /^I should see "([^"]*)"$/ |
||
| 55 | */ |
||
| 56 | public function iShouldSee($regexp) |
||
| 63 | } |
||
| 64 |
If you suppress an error, we recommend checking for the error condition explicitly: