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!'); }
public function replaceInFile(CliGuy $I) { $I->taskReplaceInFile('a.txt')->from('A')->to('B')->run(); $I->seeFileFound('a.txt'); $I->seeFileContentsEqual('B'); }