mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-29 05:02:58 +00:00
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:
parent
c2449c9d16
commit
027e32ce00
1 changed files with 3 additions and 2 deletions
|
@ -115,7 +115,7 @@ class SessionComponentTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$_SESSION = array();
|
$_SESSION = null;
|
||||||
$this->ComponentCollection = new ComponentCollection();
|
$this->ComponentCollection = new ComponentCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +202,8 @@ class SessionComponentTest extends CakeTestCase {
|
||||||
$this->assertEquals($Session->read('Test'), $array);
|
$this->assertEquals($Session->read('Test'), $array);
|
||||||
$Session->delete('Test');
|
$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->assertTrue($Session->write(array('Test' => 'some value')));
|
||||||
$this->assertEquals('some value', $Session->read('Test'));
|
$this->assertEquals('some value', $Session->read('Test'));
|
||||||
$Session->delete('Test');
|
$Session->delete('Test');
|
||||||
|
|
Loading…
Add table
Reference in a new issue