当前位置: 首页>>代码示例>>PHP>>正文


PHP CliGuy::amInPath方法代码示例

本文整理汇总了PHP中CliGuy::amInPath方法的典型用法代码示例。如果您正苦于以下问题:PHP CliGuy::amInPath方法的具体用法?PHP CliGuy::amInPath怎么用?PHP CliGuy::amInPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CliGuy的用法示例。


在下文中一共展示了CliGuy::amInPath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: checkTwoFiles

 public function checkTwoFiles(CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run order --no-exit');
     $I->seeFileFound('order.txt', 'tests/_log');
     $I->seeInThisFile("IBSBSBS([BST][BSTF][BST])");
 }
开发者ID:pfz,项目名称:codeception,代码行数:7,代码来源:OrderCest.php

示例2: 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.');
 }
开发者ID:thangnvaltplus,项目名称:Codeception,代码行数:7,代码来源:GlobalCommandOptionCest.php

示例3: checkAfterBeforeClassInTests

 public function checkAfterBeforeClassInTests(CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run order BeforeAfterClassTest.php');
     $I->seeFileFound('order.txt', 'tests/_output');
     $I->seeInThisFile('BIB({[1][2])}');
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:7,代码来源:OrderCest.php

示例4: runOneGroup

 public function runOneGroup(\CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run skipped -g notorun');
     $I->seeInShellOutput("Incomplete");
     $I->dontSeeInShellOutput("Skipped");
 }
开发者ID:pfz,项目名称:codeception,代码行数:7,代码来源:RunCest.php

示例5: 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'");
 }
开发者ID:janhenkgerritsen,项目名称:Codeception,代码行数:7,代码来源:ConfigParamsCest.php

示例6: 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?");
 }
开发者ID:solutionDrive,项目名称:Codeception,代码行数:8,代码来源:RegisterCommandCest.php

示例7: checkCodeceptionTest

 public function checkCodeceptionTest(CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run order CodeTest.php --no-exit');
     $I->seeFileFound('order.txt', 'tests/_log');
     $I->expect('global bootstrap, initialization, beforeSuite, beforeClass, bootstrap, before, after, afterSuite, afterClass');
     $I->seeFileContentsEqual("BI({B[C])}");
 }
开发者ID:lenninsanchez,项目名称:donadores,代码行数:8,代码来源:OrderCest.php

示例8: runIncludedWithCoverage

 /**
  * @before moveToIncluded
  * @param CliGuy $I
  */
 public function runIncludedWithCoverage(\CliGuy $I)
 {
     $I->executeCommand('run --coverage-xml');
     $I->amInPath('_log');
     $I->seeFileFound('coverage.xml');
     $I->seeInThisFile('<class name="BillEvans" namespace="Jazz\\Pianist">');
     $I->seeInThisFile('<class name="Musician" namespace="Jazz">');
     $I->seeInThisFile('<class name="Hobbit" namespace="Shire">');
 }
开发者ID:Eli-TW,项目名称:Codeception,代码行数:13,代码来源:IncludedCest.php

示例9: 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');
 }
开发者ID:janhenkgerritsen,项目名称:Codeception,代码行数:13,代码来源:ExtensionsCest.php

示例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;');
 }
开发者ID:lenninsanchez,项目名称:donadores,代码行数:14,代码来源:BootstrapCest.php

示例11: environmentsFromSubfolders

 public function environmentsFromSubfolders(CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run messages MessageCest.php:allMessages -vv --env env3');
     $I->seeInShellOutput('MESSAGE2 FROM ENV3');
 }
开发者ID:foxman209,项目名称:Codeception,代码行数:6,代码来源:RunEnvironmentCest.php

示例12: _before

 public function _before(CliGuy $I)
 {
     $I->amInPath(codecept_data_dir('sandbox'));
 }
开发者ID:stefanhuber,项目名称:Robo,代码行数:4,代码来源:WriteFileCest.php

示例13: runIncludedSuites

 /**
  * @after checkAllSuitesExecuted
  * @param CliGuy $I
  */
 public function runIncludedSuites(\CliGuy $I)
 {
     $I->amInPath('tests/data/included_w');
     $I->executeCommand('run');
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:9,代码来源:WildcardIncludeCest.php

示例14: uniqid

 function _before(\CliGuy $I)
 {
     $this->bootstrapPath = 'tests/data/sandbox/boot' . uniqid();
     @mkdir($this->bootstrapPath, 0777, true);
     $I->amInPath($this->bootstrapPath);
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:6,代码来源:BootstrapCest.php

示例15: CliGuy

<?php

$I = new CliGuy($scenario);
$I->wantTo('delete dir with DeleteDirTask');
$I->amInPath(codecept_data_dir());
$I->seeFileFound('robo.txt', 'sandbox');
$I->taskDeleteDir(['sandbox/box'])->run();
$I->dontSeeFileFound('box', 'sandbox');
$I->dontSeeFileFound('robo.txt', 'sandbox');
开发者ID:stefanhuber,项目名称:Robo,代码行数:9,代码来源:DeleteDirCept.php


注:本文中的CliGuy::amInPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。