Fix failing test in PHP5.4

This commit is contained in:
Mark Story 2011-12-27 19:37:14 -05:00
parent 7f46ede097
commit 2cc38b5ba7
2 changed files with 4 additions and 3 deletions

View file

@ -16,4 +16,5 @@
* @since CakePHP(tm) v 1.1.11.4062 * @since CakePHP(tm) v 1.1.11.4062
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @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;

View file

@ -2770,7 +2770,7 @@ class ModelWriteTest extends BaseModelTest {
$this->assertEquals(count($result['Tag']), 2); $this->assertEquals(count($result['Tag']), 2);
$this->assertEquals($result['Tag'][0]['tag'], 'tag1'); $this->assertEquals($result['Tag'][0]['tag'], 'tag1');
$this->assertEquals(count($result['Comment']), 1); $this->assertEquals(count($result['Comment']), 1);
$this->assertEquals(count($result['Comment'][0]['comment']['Article comment']), 1); $this->assertEquals(count($result['Comment'][0]['comment']), 1);
} }
/** /**
@ -4098,7 +4098,7 @@ class ModelWriteTest extends BaseModelTest {
$this->assertEquals(count($result['Tag']), 2); $this->assertEquals(count($result['Tag']), 2);
$this->assertEquals($result['Tag'][0]['tag'], 'tag1'); $this->assertEquals($result['Tag'][0]['tag'], 'tag1');
$this->assertEquals(count($result['Comment']), 1); $this->assertEquals(count($result['Comment']), 1);
$this->assertEquals(count($result['Comment'][0]['comment']['Article comment']), 1); $this->assertEquals(count($result['Comment'][0]['comment']), 1);
} }
/** /**