Reverted change setting $_SESSION to an array. Commenting out a test that is invalid.

This test creates a numeric key of 0 in $_SESSION which is not a valid session key. This causes error - session_write_close(): Skipping numeric key 0 error.
This commit is contained in:
Larry E. Masters 2015-12-28 17:19:31 -05:00
parent c2449c9d16
commit 027e32ce00

View file

@ -115,7 +115,7 @@ class SessionComponentTest extends CakeTestCase {
*/
public function setUp() {
parent::setUp();
$_SESSION = array();
$_SESSION = null;
$this->ComponentCollection = new ComponentCollection();
}
@ -202,7 +202,8 @@ class SessionComponentTest extends CakeTestCase {
$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');