1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * @group gherkin
- */
- class GherkinCest
- {
- public function _before(CliGuy $I)
- {
- $I->amInPath('tests/data/sandbox');
- }
- public function steps(CliGuy $I)
- {
- $I->executeCommand('gherkin:steps scenario');
- $I->seeInShellOutput('I have terminal opened');
- $I->seeInShellOutput('ScenarioGuy::terminal');
- $I->seeInShellOutput('there is a file :name');
- $I->seeInShellOutput('I see file :name');
- $I->seeInShellOutput('ScenarioGuy::matchFile');
- }
- public function snippets(CliGuy $I)
- {
- $I->executeCommand('gherkin:snippets scenario');
- $I->seeInShellOutput('@Given I have only idea of what\'s going on here');
- $I->seeInShellOutput('public function iHaveOnlyIdeaOfWhatsGoingOnHere');
- }
- public function snippetsScenarioFile(CliGuy $I)
- {
- $I->executeCommand('gherkin:snippets scenario FileExamples.feature');
- $I->dontSeeInShellOutput('@Given I have only idea of what\'s going on here');
- $I->dontSeeInShellOutput('public function iHaveOnlyIdeaOfWhatsGoingOnHere');
- }
- public function snippetsScenarioFolder(CliGuy $I)
- {
- $I->executeCommand('gherkin:snippets scenario subfolder');
- $I->seeInShellOutput('Given I have a feature in a subfolder');
- $I->seeInShellOutput('public function iHaveAFeatureInASubfolder');
- $I->dontSeeInShellOutput('@Given I have only idea of what\'s going on here');
- $I->dontSeeInShellOutput('public function iHaveOnlyIdeaOfWhatsGoingOnHere');
- }
- }
|