Пример #1
0
 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!');
 }
Пример #2
0
 public function replaceInFile(CliGuy $I)
 {
     $I->taskReplaceInFile('a.txt')->from('A')->to('B')->run();
     $I->seeFileFound('a.txt');
     $I->seeFileContentsEqual('B');
 }