DryRunCest.php 834 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class DryRunCest
  3. {
  4. public function _before(CliGuy $I)
  5. {
  6. $I->amInPath('tests/data/sandbox');
  7. }
  8. public function runCestWithExamples(CliGuy $I)
  9. {
  10. $I->executeCommand('dry-run scenario ExamplesCest --no-ansi');
  11. $I->seeInShellOutput('ExamplesCest: Files exists annotation');
  12. }
  13. public function runFeature(CliGuy $I)
  14. {
  15. $I->executeCommand('dry-run scenario File.feature --no-ansi');
  16. $I->seeInShellOutput('Run gherkin: Check file exists');
  17. $I->seeInShellOutput('In order to test a feature');
  18. $I->seeInShellOutput('As a user');
  19. $I->seeInShellOutput('Given i have terminal opened');
  20. $I->seeInShellOutput('INCOMPLETE');
  21. $I->seeInShellOutput('Step definition for `I have only idea of what\'s going on here` not found');
  22. }
  23. }