Added test for empty session check.

This commit is contained in:
predominant 2010-07-22 19:11:53 +10:00 committed by mark_story
parent ca65689dd9
commit 623998f550

View file

@ -368,6 +368,16 @@ class CakeSessionTest extends CakeTestCase {
$this->assertTrue(TestCakeSession::check('Session Test.Test Case'));
}
/**
* testCheckEmpty
*
* @access public
* @return void
*/
function testCheckEmpty() {
$this->assertFalse(TestCakeSession::check());
}
/**
* test key exploitation
*