/** * @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');
/** * @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]); }