Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 public function runOneTestFromCest(\CliGuy $I)
 {
     $I->executeCommand('run tests/dummy/AnotherCest.php:optimistic');
     $I->seeShellOutputMatches("~\(AnotherCest::optimistic\)\s*?Ok~");
     $I->dontSeeInShellOutput('AnotherCest::pessimistic');
 }
Esempio n. 3
0
<?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!');
<?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!');
Esempio n. 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!');