本文整理汇总了PHP中CliGuy::seeInShellOutput方法的典型用法代码示例。如果您正苦于以下问题:PHP CliGuy::seeInShellOutput方法的具体用法?PHP CliGuy::seeInShellOutput怎么用?PHP CliGuy::seeInShellOutput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CliGuy
的用法示例。
在下文中一共展示了CliGuy::seeInShellOutput方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkEnvParamsPassed
public function checkEnvParamsPassed(CliGuy $I)
{
$I->amInPath('tests/data/params');
$I->executeCommand('run --no-exit');
$I->seeInShellOutput('FAILURES');
$I->seeInShellOutput("Failed asserting that an array contains 'val1'");
}
示例2: snippetsScenarioFolder
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');
}
示例3: startMyCommandWithOptionAndConfigurationAtNewPlace
public function startMyCommandWithOptionAndConfigurationAtNewPlace(CliGuy $I)
{
$myname = get_current_user();
$I->amInPath('tests/data/register_command');
$I->executeCommand('myProject:myCommand --config standard/codeception.yml --friendly');
$I->seeInShellOutput("Hello {$myname},");
$I->seeInShellOutput("how are you?");
}
示例4: buildIncluded
/**
* @before moveToIncluded
* @param CliGuy $I
*/
public function buildIncluded(\CliGuy $I)
{
$I->executeCommand('build');
$I->seeInShellOutput('generated successfully');
$I->seeInShellOutput('Jazz\\TestGuy');
$I->seeInShellOutput('Jazz\\Pianist\\TestGuy');
$I->seeInShellOutput('Shire\\TestGuy');
}
示例5: checkIfExtensionsReceiveCorrectOptions
public function checkIfExtensionsReceiveCorrectOptions(CliGuy $I)
{
$I->wantTo('check if extensions receive correct options');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml');
$I->seeInShellOutput('Low verbosity');
$I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml -v');
$I->seeInShellOutput('Medium verbosity');
$I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml -vv');
$I->seeInShellOutput('High verbosity');
$I->executeCommand('run tests/dummy/AnotherCest.php:optimistic -c codeception_extended.yml -vvv');
$I->seeInShellOutput('Extreme verbosity');
}
示例6: runOneGroup
public function runOneGroup(\CliGuy $I)
{
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run skipped -g notorun');
$I->seeInShellOutput("Incomplete");
$I->dontSeeInShellOutput("Skipped");
}
示例7: configStartWithWrongPath
public function configStartWithWrongPath(CliGuy $I)
{
$I->wantTo('start codeception with wrong path to a codeception.yml file');
$I->amInPath('tests/data/register_command/');
$I->executeFailCommand('-c no/exists/codeception.yml');
$I->seeInShellOutput('Your configuration file `no/exists/codeception.yml` could not be found.');
}
示例8: bootstrapCompatibilityWithNamespace
public function bootstrapCompatibilityWithNamespace(\CliGuy $I)
{
$I->executeCommand('bootstrap --namespace Generated --compat');
$I->seeInShellOutput('Building Actor classes for suites');
$I->seeFileFound('codeception.yml');
$I->seeInThisFile('namespace: Generated');
$I->dontSeeInThisFile('namespace Generated\\');
$this->checkCompatFilesCreated($I);
$I->seeFileFound('WebHelper.php');
$I->seeInThisFile('namespace Generated\\Codeception\\Module;');
$I->seeFileFound('WebGuy.php');
$I->seeInThisFile('namespace Generated;');
}
示例9: bootstrapWithNamespace
public function bootstrapWithNamespace(\CliGuy $I)
{
$I->executeCommand('bootstrap --namespace Generated');
$I->seeInShellOutput('Building Actor classes for suites');
$I->seeFileFound('codeception.yml');
$I->seeInThisFile('namespace: Generated');
$I->dontSeeInThisFile('namespace Generated\\');
$this->checkFilesCreated($I);
$I->seeFileFound('Acceptance.php', 'tests/_support/Helper');
$I->seeInThisFile('namespace Generated\\Helper;');
$I->seeFileFound('AcceptanceTester.php', 'tests/_support');
$I->seeInThisFile('namespace Generated;');
}
示例10: bootstrapWithNamespace
public function bootstrapWithNamespace(\CliGuy $I)
{
$I->amInPath('tests/data/sandbox/tests/_data/');
$I->executeCommand('bootstrap --namespace Generated');
$I->seeInShellOutput('Building Guy classes for suites');
$I->seeFileFound('codeception.yml');
$I->seeInThisFile('namespace: Generated');
$I->dontSeeInThisFile('namespace Generated\\');
$this->checkFilesCreated($I);
$I->seeFileFound('WebHelper.php');
$I->seeInThisFile('namespace Generated\\Codeception\\Module;');
$I->seeFileFound('WebGuy.php');
$I->seeInThisFile('namespace Generated;');
}
示例11: runSuitesFromIncludedConfigs
/**
* @before moveToIncluded
* @param CliGuy $I
*/
public function runSuitesFromIncludedConfigs(\CliGuy $I)
{
$I->executeCommand('run');
$I->seeInShellOutput('[Jazz]');
$I->seeInShellOutput('Jazz.functional Tests');
$I->seeInShellOutput('[Jazz\\Pianist]');
$I->seeInShellOutput('Jazz\\Pianist.functional Tests');
$I->seeInShellOutput('[Shire]');
$I->seeInShellOutput('Shire.functional Tests');
}
示例12: runFeature
public function runFeature(CliGuy $I)
{
$I->executeCommand('dry-run scenario File.feature --no-ansi');
$I->seeInShellOutput('Run gherkin: Check file exists');
$I->seeInShellOutput('In order to test a feature');
$I->seeInShellOutput('As a user');
$I->seeInShellOutput('Given i have terminal opened');
$I->seeInShellOutput('INCOMPLETE');
$I->seeInShellOutput('Step definition for `I have only idea of what\'s going on here` not found');
}
示例13: checkAllSuitesExecuted
protected function checkAllSuitesExecuted(\CliGuy $I)
{
$I->seeInShellOutput('[ToastPack]');
$I->seeInShellOutput('ToastPack.unit Tests');
$I->seeInShellOutput('[EwokPack]');
$I->seeInShellOutput('EwokPack.unit Tests');
$I->seeInShellOutput('[AcmePack]');
$I->seeInShellOutput('AcmePack.unit Tests');
$I->dontSeeInShellOutput('[Spam]');
$I->dontSeeInShellOutput('[SpamPack]');
}
示例14: CliGuy
<?php
$I = new CliGuy($scenario);
$I->wantTo('see that comments can be easily added to test');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run tests/skipped/CommentsCept.php --steps');
$I->seeInShellOutput('* As a very lazy qa');
$I->seeInShellOutput('* So that I not do anything at all');
$I->seeInShellOutput('* have a comment for you');
$I->seeInShellOutput('* but I am too lazy to do any job');
$I->seeInShellOutput('* so please do that yourself');
$I->seeInShellOutput('I am going to leave that to you');
$I->seeInShellOutput('I expect you forgive me');
示例15: CliGuy
<?php
$I = new CliGuy($scenario);
$I->am('developer who likes testing');
$I->wantTo('generate sample Suite');
$I->lookForwardTo('have a better tests categorization');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('generate:suite house HouseGuy');
$I->seeFileFound('house.suite.yml', 'tests');
$I->expect('guy class is generated');
$I->seeInThisFile('class_name: HouseGuy');
$I->seeInThisFile('- \\Helper\\House');
$I->seeFileFound('House.php', 'tests/_support/Helper');
$I->seeInThisFile('namespace Helper;');
$I->seeFileFound('_bootstrap.php', 'tests/house');
$I->expect('suite is not created due to dashes');
$I->executeCommand('generate:suite invalid-dash-suite');
$I->seeInShellOutput('contains invalid characters');