diff --git a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php index b885dfcfe09..5ece8f39b0e 100644 --- a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php @@ -115,7 +115,7 @@ public static function teardownAfterClass() { */ public function setUp() { parent::setUp(); - $_SESSION = array(); + $_SESSION = null; $this->ComponentCollection = new ComponentCollection(); } @@ -202,7 +202,8 @@ public function testSessionReadWrite() { $this->assertEquals($Session->read('Test'), $array); $Session->delete('Test'); - $this->assertTrue($Session->write(array('Test'), 'some value')); + //This test creates a numeric key 0 which is not a valid session key + //$this->assertTrue($Session->write(array('Test'), 'some value')); $this->assertTrue($Session->write(array('Test' => 'some value'))); $this->assertEquals('some value', $Session->read('Test')); $Session->delete('Test');