From 72959e787224e3bf4ee395909a5d7fad188c2ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Thu, 13 May 2010 00:21:16 -0430 Subject: [PATCH] Converting CAkeSessionTest to phpunit --- cake/tests/cases/libs/cake_session.test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);