Skip to content

Commit

Permalink
Accept empty strings as empty sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeBiellik committed Dec 17, 2015
1 parent 1b0b4fc commit 0115621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/Network/Session/DatabaseSessionTest.php
Expand Up @@ -130,7 +130,7 @@ public function testRead()
$this->assertEquals($expected, $result);

$result = $this->storage->read('made up value');
$this->assertFalse($result);
$this->assertEmpty($result);
}

/**
Expand All @@ -143,7 +143,7 @@ public function testDestroy()
$this->storage->write('foo', 'Some value');

$this->assertTrue($this->storage->destroy('foo'), 'Destroy failed');
$this->assertFalse($this->storage->read('foo'), 'Value still present.');
$this->assertEmpty($this->storage->read('foo'), 'Value still present.');
}

/**
Expand All @@ -161,7 +161,7 @@ public function testGc()

sleep(1);
$storage->gc(0);
$this->assertFalse($storage->read('foo'));
$this->assertEmpty($storage->read('foo'));
}

/**
Expand Down

0 comments on commit 0115621

Please sign in to comment.