WildcardIncludeCest.php 927 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. class WildcardIncludeCest
  3. {
  4. /**
  5. * @after checkAllSuitesExecuted
  6. * @param CliGuy $I
  7. */
  8. public function runIncludedSuites(\CliGuy $I)
  9. {
  10. $I->amInPath('tests/data/included_w');
  11. $I->executeCommand('run');
  12. }
  13. /**
  14. * @after checkAllSuitesExecuted
  15. * @param \CliGuy $I
  16. */
  17. public function runIncludedSuiteFromCurrentDir(\CliGuy $I)
  18. {
  19. $I->executeCommand('run -c tests/data/included_w');
  20. }
  21. protected function checkAllSuitesExecuted(\CliGuy $I)
  22. {
  23. $I->seeInShellOutput('[ToastPack]');
  24. $I->seeInShellOutput('ToastPack.unit Tests');
  25. $I->seeInShellOutput('[EwokPack]');
  26. $I->seeInShellOutput('EwokPack.unit Tests');
  27. $I->seeInShellOutput('[AcmePack]');
  28. $I->seeInShellOutput('AcmePack.unit Tests');
  29. $I->dontSeeInShellOutput('[Spam]');
  30. $I->dontSeeInShellOutput('[SpamPack]');
  31. }
  32. }