コード例 #1
0
ファイル: RunCest.php プロジェクト: lenninsanchez/donadores
 public function runOneTestFromCest(\CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic');
     $I->seeShellOutputMatches("~\\(AnotherCest.optimistic\\)\\s*?Ok~");
     $I->dontSeeInShellOutput('AnotherCest.pessimistic');
 }
コード例 #2
0
ファイル: RunCest.php プロジェクト: Vrian7ipx/cascadadev
 public function runOneTestFromCest(\CliGuy $I)
 {
     $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic');
     $I->seeShellOutputMatches("~\(AnotherCest::optimistic\)\s*?Ok~");
     $I->dontSeeInShellOutput('AnotherCest::pessimistic');
 }
コード例 #3
0
ファイル: RunSkippedCept.php プロジェクト: Eli-TW/Codeception
<?php

$I = new CliGuy($scenario);
$I->wantTo('run skipped test');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run skipped SkipMeCept.php');
$I->seeShellOutputMatches("~\\(SkipMeCept\\)\\s*?Skipped~");
$I->seeInShellOutput('OK, but incomplete, skipped, or risky tests!');
コード例 #4
0
<?php

$I = new CliGuy($scenario);
$I->wantTo('execute incomplete test');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run skipped IncompleteMeCept.php');
$I->seeShellOutputMatches("~\\(IncompleteMeCept.php\\)\\s*?Incomplete~");
$I->seeInShellOutput('OK, but incomplete or skipped tests!');
コード例 #5
0
<?php

$I = new CliGuy($scenario);
$I->wantTo('execute incomplete test');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run skipped IncompleteMeCept.php');
$I->seeShellOutputMatches("~\\(IncompleteMeCept\\)[\\s\\.]*?Incomplete~");
$I->seeInShellOutput('OK, but incomplete, skipped, or risky tests!');