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


PHP CliGuy::seeFileFound方法代码示例

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


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

示例1: 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

示例2: useTheMirrorDirShortcut

 public function useTheMirrorDirShortcut(CliGuy $I)
 {
     $I->wantTo('mirror dir with _mirrorDir shortcut');
     $I->shortcutMirrorDir('box', 'bin');
     $I->seeDirFound('bin');
     $I->seeFileFound('robo.txt', 'bin');
 }
开发者ID:stefanhuber,项目名称:Robo,代码行数:7,代码来源:ShortcutsCest.php

示例3: 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

示例4: 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

示例5: 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

示例6: runXmlReport

 /**
  * @group reports
  * @param CliGuy $I
  */
 public function runXmlReport(\CliGuy $I)
 {
     $I->wantTo('check xml reports');
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run dummy --xml');
     $I->seeFileFound('report.xml', 'tests/_log');
     $I->seeInThisFile('<?xml');
     $I->seeInThisFile('<testsuite name="dummy"');
     $I->seeInThisFile('<testcase file="FileExistsCept.php"');
 }
开发者ID:lenninsanchez,项目名称:donadores,代码行数:14,代码来源:RunCest.php

示例7: checkCompatFilesCreated

 protected function checkCompatFilesCreated(\CliGuy $I)
 {
     $I->seeDirFound('tests/_log');
     $I->seeDirFound('tests/_data');
     $I->seeDirFound('tests/_helpers');
     $I->seeFileFound('functional.suite.yml', 'tests');
     $I->seeFileFound('acceptance.suite.yml', 'tests');
     $I->seeFileFound('unit.suite.yml', 'tests');
     $I->seeFileFound('_bootstrap.php', 'tests/acceptance');
     $I->seeFileFound('_bootstrap.php', 'tests/functional');
     $I->seeFileFound('_bootstrap.php', 'tests/unit');
     $I->seeFileFound('WebGuy.php', 'tests/acceptance');
     $I->seeFileFound('TestGuy.php', 'tests/functional');
     $I->seeFileFound('CodeGuy.php', 'tests/unit');
     $I->seeFileFound('WebHelper.php', 'tests/_helpers');
     $I->seeFileFound('TestHelper.php', 'tests/_helpers');
     $I->seeFileFound('CodeHelper.php', 'tests/_helpers');
 }
开发者ID:itillawarra,项目名称:cmfive,代码行数:18,代码来源:BootstrapCest.php

示例8: reRunFailedTests

    public function reRunFailedTests(CliGuy $I)
    {
        $ds = DIRECTORY_SEPARATOR;
        $I->amInPath('tests/data/sandbox');
        $I->executeCommand('run unit FailingTest.php -c codeception_extended.yml --no-exit');
        $I->seeInShellOutput('FAILURES');
        $I->seeFileFound('failed', 'tests/_output');
        $I->seeFileContentsEqual(<<<EOF
tests{$ds}unit{$ds}FailingTest.php:testMe
EOF
);
        $I->executeCommand('run -g failed -c codeception_extended.yml --no-exit');
        $I->seeInShellOutput('Tests: 1, Assertions: 1, Failures: 1');
    }
开发者ID:janhenkgerritsen,项目名称:Codeception,代码行数:14,代码来源:ExtensionsCest.php

示例9: toTestCrossVolumeRename

 public function toTestCrossVolumeRename(CliGuy $I)
 {
     $fsStack = $I->taskFilesystemStack()->mkdir('log')->touch('log/error.txt');
     $fsStack->run();
     // We can't force _rename to run the cross-volume
     // code path, so we will directly call the protected
     // method crossVolumeRename to test to ensure it works.
     // We will get a reference to it via reflection, set
     // the reflected method object to public, and then
     // call it via reflection.
     $class = new ReflectionClass('\\Robo\\Task\\Filesystem\\FilesystemStack');
     $method = $class->getMethod('crossVolumeRename');
     $method->setAccessible(true);
     $actualFsStackTask = $fsStack->getCollectionBuilderCurrentTask();
     $method->invokeArgs($actualFsStackTask, ['log', 'logfiles']);
     $I->dontSeeFileFound('log/error.txt');
     $I->seeFileFound('logfiles/error.txt');
 }
开发者ID:jjok,项目名称:Robo,代码行数:18,代码来源:FilesystemStackCest.php

示例10: generateEnvConfig

 public function generateEnvConfig(CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('g:env firefox');
     $I->seeInShellOutput('firefox config was created');
     $I->seeFileFound('tests/_envs/firefox.yml');
 }
开发者ID:foxman209,项目名称:Codeception,代码行数:7,代码来源:RunEnvironmentCest.php

示例11: CliGuy

<?php

$I = new CliGuy($scenario);
$I->wantTo('generate gherkin steps');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('generate:feature scenario Login');
$I->seeInShellOutput('Feature was created');
$I->seeFileFound('Login.feature', 'tests/scenario');
$I->seeInThisFile('Feature: Login');
$I->deleteThisFile();
$I->executeCommand('generate:feature scenario dummy/Login');
$I->seeFileFound('Login.feature', 'tests/scenario/dummy');
$I->seeInThisFile('Feature: Login');
开发者ID:solutionDrive,项目名称:Codeception,代码行数:13,代码来源:GenerateFeatureCept.php

示例12: replaceMultipleInFile

 public function replaceMultipleInFile(CliGuy $I)
 {
     $I->taskReplaceInFile('box/robo.txt')->from(array('HELLO', 'ROBO'))->to(array('Hello ', 'robo.li!'))->run();
     $I->seeFileFound('box/robo.txt');
     $I->seeFileContentsEqual('Hello robo.li!');
 }
开发者ID:stefanhuber,项目名称:Robo,代码行数:6,代码来源:WriteFileCest.php

示例13: checkBootstrapIsLoadedBeforeTests

 public function checkBootstrapIsLoadedBeforeTests(CliGuy $I)
 {
     $I->amInPath('tests/data/sandbox');
     $I->executeCommand('run order ParsedLoadedTest.php');
     $I->seeFileFound('order.txt', 'tests/_output');
     $I->seeInThisFile('BIBP(T)');
 }
开发者ID:solutionDrive,项目名称:Codeception,代码行数:7,代码来源:OrderCest.php

示例14: CliGuy

<?php

$I = new CliGuy($scenario);
$I->wantToTest('build command');
$I->runShellCommmand('php codecept build');
$I->seeInShellOutput('generated sucessfully');
$I->seeFileFound('TestGuy.php', 'tests/functional');
$I->seeFileFound('CodeGuy.php', 'tests/unit');
$I->seeFileFound('CliGuy.php', 'tests/acceptance');
$I->seeInThisFile('seeFileFound(');
开发者ID:BatVane,项目名称:Codeception,代码行数:10,代码来源:BuildCept.php

示例15: CliGuy

<?php

$I = new CliGuy($scenario);
$I->wantTo('flatten dir with FlattenDir task');
$I->amInPath(codecept_data_dir() . 'sandbox');
$I->taskFlattenDir(['some/deeply/nested/*.re' => 'flattened', '*.txt' => 'flattened'])->run();
$I->seeDirFound('flattened');
$I->seeFileFound('structu.re', 'flattened');
$I->seeFileFound('a.txt', 'flattened');
$I->seeFileFound('b.txt', 'flattened');
开发者ID:stefanhuber,项目名称:Robo,代码行数:10,代码来源:FlattenDirCept.php


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