本文整理汇总了PHP中CliGuy::seeFileContentsEqual方法的典型用法代码示例。如果您正苦于以下问题:PHP CliGuy::seeFileContentsEqual方法的具体用法?PHP CliGuy::seeFileContentsEqual怎么用?PHP CliGuy::seeFileContentsEqual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CliGuy
的用法示例。
在下文中一共展示了CliGuy::seeFileContentsEqual方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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])}");
}
示例2: 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');
}
示例3: 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!');
}
示例4: CliGuy
<?php
$I = new CliGuy($scenario);
$I->wantTo('generate scenarios сценарий');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('generate:scenarios dummy');
$I->seeFileFound('File_Exists.txt', 'tests/_data/scenarios');
$I->seeFileContentsEqual(<<<EOF
I WANT TO CHECK CONFIG EXISTS
I see file found "codeception.yml"
EOF
);
示例5: CliGuy
<?php
$I = new CliGuy($scenario);
$I->wantTo('concat files using Concat Task');
$I->amInPath(codecept_data_dir() . 'sandbox');
$I->taskConcat(['a.txt', 'b.txt'])->to('merged.txt')->run();
$I->seeFileFound('merged.txt');
$I->seeFileContentsEqual('AB');
示例6: replaceInFile
public function replaceInFile(CliGuy $I)
{
$I->taskReplaceInFile('a.txt')->from('A')->to('B')->run();
$I->seeFileFound('a.txt');
$I->seeFileContentsEqual('B');
}