diff --git a/cake/tests/cases/libs/cake_session.test.php b/cake/tests/cases/libs/cake_session.test.php index dedc888da..1ef290b2f 100644 --- a/cake/tests/cases/libs/cake_session.test.php +++ b/cake/tests/cases/libs/cake_session.test.php @@ -222,7 +222,7 @@ class CakeSessionTest extends CakeTestCase { $this->Session->write('Watching', "I'm watching you"); $this->Session->watch('Watching'); - $this->expectError('Writing session key {Watching}: "They found us!"'); + $this->expectError(); $this->Session->write('Watching', 'They found us!'); $this->expectError('Deleting session key {Watching}'); @@ -386,7 +386,7 @@ class CakeSessionTest extends CakeTestCase { $this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated'); $this->Session->destroy(); - $this->assertFalse($this->Session->read('SessionTestCase')); + $this->assertNull($this->Session->read('SessionTestCase')); } /** @@ -423,7 +423,7 @@ class CakeSessionTest extends CakeTestCase { $this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated'); $this->Session->destroy(); - $this->assertFalse($this->Session->read('SessionTestCase')); + $this->assertNull($this->Session->read('SessionTestCase')); } /** @@ -461,7 +461,7 @@ class CakeSessionTest extends CakeTestCase { $this->assertEqual($this->Session->read('SessionTestCase'), 'Some additional data'); $this->Session->destroy(); - $this->assertFalse($this->Session->read('SessionTestCase')); + $this->assertNull($this->Session->read('SessionTestCase')); session_write_close(); unset($_SESSION);