コード例 #1
0
 /**
  * @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']);
     }
 }
コード例 #2
0
ファイル: FailedCept.php プロジェクト: hitechdk/Codeception
<?php

$I = new ScenarioGuy($scenario);
$I->wantTo('fail when file is not found');
$I->amInPath('.');
$I->seeFileFound('games.zip');
コード例 #3
0
ファイル: SubStepsCept.php プロジェクト: hitechdk/Codeception
<?php

$I = new ScenarioGuy($scenario);
$I->wantTo('run scenario substeps');
$I->amInPath('.');
$I->seeCodeCoverageFilesArePresent();
コード例 #4
0
ファイル: SuccessCept.php プロジェクト: hitechdk/Codeception
<?php

$I = new ScenarioGuy($scenario);
$I->wantTo('check that suite config is available');
$I->amInPath('.');
$I->seeFileFound('scenario.suite.yml');
コード例 #5
0
 /**
  * @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]);
 }