/**
  * @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']);
     }
 }
Example #2
0
<?php

$I = new ScenarioGuy($scenario);
$I->wantTo('fail when file is not found');
$I->amInPath('.');
$I->seeFileFound('games.zip');
Example #3
0
<?php

$I = new ScenarioGuy($scenario);
$I->wantTo('run scenario substeps');
$I->amInPath('.');
$I->seeCodeCoverageFilesArePresent();
Example #4
0
<?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]);
 }