本文整理汇总了PHP中CliGuy::dontSeeFileFound方法的典型用法代码示例。如果您正苦于以下问题:PHP CliGuy::dontSeeFileFound方法的具体用法?PHP CliGuy::dontSeeFileFound怎么用?PHP CliGuy::dontSeeFileFound使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CliGuy
的用法示例。
在下文中一共展示了CliGuy::dontSeeFileFound方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bootstrapEmpty
public function bootstrapEmpty(\CliGuy $I)
{
$I->executeCommand('bootstrap --empty');
$I->dontSeeFileFound('tests/acceptance');
$I->dontSeeFileFound('AcceptanceTester.php', 'tests/acceptance');
$I->seeFileFound('codeception.yml');
}
示例2: 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');
}
示例3: runWithCustomOuptutPath
public function runWithCustomOuptutPath(\CliGuy $I)
{
$I->executeCommand('run dummy --xml myverycustom.xml --html myownhtmlreport.html');
$I->seeFileFound('myverycustom.xml', 'tests/_log');
$I->seeInThisFile('<?xml');
$I->seeInThisFile('<testsuite name="dummy"');
$I->seeInThisFile('<testcase name="FileExists"');
$I->seeFileFound('myownhtmlreport.html', 'tests/_log');
$I->dontSeeFileFound('report.xml','tests/_log');
$I->dontSeeFileFound('report.html','tests/_log');
}
示例4: 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');
示例5: toDeleteFile
public function toDeleteFile(CliGuy $I)
{
$I->taskFileSystemStack()->stopOnFail()->remove('a.txt')->run();
$I->dontSeeFileFound('a.txt');
}