%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/codeception/base/tests/cli/ |
Upload File : |
<?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'); } public function snippetsPyStringArgument(CliGuy $I) { $I->executeCommand('gherkin:snippets scenario PyStringArgumentExample.feature'); $I->seeInShellOutput('@Given I have PyString argument :arg1'); $I->seeInShellOutput('public function iHavePyStringArgument($arg1)'); $I->dontSeeInShellOutput('public function iSeeOutput($arg1)'); } public function runIncompletedStepWithPyStringArgument(CliGuy $I) { $I->executeCommand('run scenario "PyStringArgumentExample.feature:PyString argument" --steps'); $I->seeInShellOutput('Step definition for `I have PyString argument ""` not found in contexts'); $I->dontSeeInShellOutput('Step definition for `I see output` not found in contexts'); } public function runSameStepWithInlineAndPyStringArgument(CliGuy $I) { $I->executeCommand('run scenario "InlineArgumentExample.feature:Running step with inline argument" --steps'); $I->seeInShellOutput("Argument: test"); $I->executeCommand('run scenario "PyStringArgumentExample.feature:Running step with PyString argument" --steps'); $I->seeInShellOutput("Argument: First line\nSecond line"); } public function snippetsScenarioUtf8(CliGuy $I) { $I->executeCommand('gherkin:snippets scenario Utf8Example.feature'); $I->seeInShellOutput('@Given я написал сценарий на языке :arg1'); $I->seeInShellOutput('public function step_62e20dc62($arg1)'); } }