本文整理汇总了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])}');
}
示例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');
}
示例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])");
}
示例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])}");
}
示例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">');
}
示例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"');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
示例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!');
}
示例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)');
}
示例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(');
示例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');