/** * @example [{"path":".", "file":"scenario.suite.yml"}, {"path":".", "file":"dummy.suite.yml"}, {"path":".", "file":"unit.suite.yml"}] */ public function filesExistsComplexJson(ScenarioGuy $I, Example $examples) { foreach ($examples as $example) { $I->amInPath($example['path']); $I->seeFileFound($example['file']); } }
<?php $I = new ScenarioGuy($scenario); $I->wantTo('fail when file is not found'); $I->amInPath('.'); $I->seeFileFound('games.zip');
<?php $I = new ScenarioGuy($scenario); $I->wantTo('run scenario substeps'); $I->amInPath('.'); $I->seeCodeCoverageFilesArePresent();
<?php $I = new ScenarioGuy($scenario); $I->wantTo('check that suite config is available'); $I->amInPath('.'); $I->seeFileFound('scenario.suite.yml');
/** * @example [".", "scenario.suite.yml"] * @example [".", "dummy.suite.yml"] * @example [".", "unit.suite.yml"] */ public function filesExistsByArray(ScenarioGuy $I, Example $example) { $I->amInPath($example[0]); $I->seeFileFound($example[1]); }