Skip to content

Commit

Permalink
Use correct $contents variable in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota committed Jun 4, 2015
1 parent e4ceb0d commit 26ae030
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/TestCase/Console/ShellTest.php
Expand Up @@ -546,11 +546,10 @@ public function testCreateFileOverwriteAll()
->method('askChoice')
->will($this->returnValue('a'));

foreach ($files as $file => $content) {
foreach ($files as $file => $contents) {
touch($file);
$this->assertTrue(file_exists($file));

$contents = "My content";
$result = $this->Shell->createFile($file, $contents);
$this->assertTrue(file_exists($file));
$this->assertTextEquals($contents, file_get_contents($file));
Expand Down

0 comments on commit 26ae030

Please sign in to comment.