Skip to content

Commit

Permalink
Fix failing test in PHP5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 28, 2011
1 parent 7f46ede commit 2cc38b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/Cake/Config/config.php
Expand Up @@ -16,4 +16,5 @@
* @since CakePHP(tm) v 1.1.11.4062
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
return $config['Cake.version'] = '2.0.4';
$config['Cake.version'] = '2.0.4';
return $config;
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -2770,7 +2770,7 @@ public function testSaveAllHabtm() {
$this->assertEquals(count($result['Tag']), 2);
$this->assertEquals($result['Tag'][0]['tag'], 'tag1');
$this->assertEquals(count($result['Comment']), 1);
$this->assertEquals(count($result['Comment'][0]['comment']['Article comment']), 1);
$this->assertEquals(count($result['Comment'][0]['comment']), 1);
}

/**
Expand Down Expand Up @@ -4098,7 +4098,7 @@ public function testSaveAssociatedHabtm() {
$this->assertEquals(count($result['Tag']), 2);
$this->assertEquals($result['Tag'][0]['tag'], 'tag1');
$this->assertEquals(count($result['Comment']), 1);
$this->assertEquals(count($result['Comment'][0]['comment']['Article comment']), 1);
$this->assertEquals(count($result['Comment'][0]['comment']), 1);
}

/**
Expand Down

0 comments on commit 2cc38b5

Please sign in to comment.