Skip to content

Commit

Permalink
add a test for replacing multiple values in a file at once
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed Mar 3, 2015
1 parent b4f9bf7 commit b918d9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/cli/WriteFileCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,15 @@ public function replaceInFile(CliGuy $I)
$I->seeFileContentsEqual('B');

}

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!');
}
}

0 comments on commit b918d9b

Please sign in to comment.