Skip to content

Commit

Permalink
Converting CAkeSessionTest to phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 13, 2010
1 parent 6613cfb commit 72959e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cake/tests/cases/libs/cake_session.test.php
Expand Up @@ -222,7 +222,7 @@ function testWatchVar() {

$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}');
Expand Down Expand Up @@ -386,7 +386,7 @@ function testReadAndWriteWithCakeStorage() {
$this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated');

$this->Session->destroy();
$this->assertFalse($this->Session->read('SessionTestCase'));
$this->assertNull($this->Session->read('SessionTestCase'));
}

/**
Expand Down Expand Up @@ -423,7 +423,7 @@ function testReadAndWriteWithCacheStorage() {
$this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated');

$this->Session->destroy();
$this->assertFalse($this->Session->read('SessionTestCase'));
$this->assertNull($this->Session->read('SessionTestCase'));
}

/**
Expand Down Expand Up @@ -461,7 +461,7 @@ function testReadAndWriteWithDatabaseStorage() {
$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);
Expand Down

0 comments on commit 72959e7

Please sign in to comment.