Skip to content

Commit

Permalink
Added test for empty session check.
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant authored and markstory committed Jul 28, 2010
1 parent ca65689 commit 623998f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cake/tests/cases/libs/cake_session.test.php
Expand Up @@ -368,6 +368,16 @@ function testCheckKeyWithSpaces() {
$this->assertTrue(TestCakeSession::check('Session Test.Test Case'));
}

/**
* testCheckEmpty
*
* @access public
* @return void
*/
function testCheckEmpty() {
$this->assertFalse(TestCakeSession::check());
}

/**
* test key exploitation
*
Expand Down

0 comments on commit 623998f

Please sign in to comment.