Skip to content

Commit

Permalink
Adding tests to Session Save Handler callbacks. Refs #6229.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8130 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
renan committed Mar 26, 2009
1 parent 2082239 commit 9f0cbb0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cake/tests/cases/libs/session.test.php
Expand Up @@ -35,6 +35,27 @@
*/
class SessionTest extends CakeTestCase {
var $fixtures = array('core.session');
/**
* startCase method
*
* @access public
* @return void
*/
function startCase() {
// Make sure garbage colector will be called
$this->__gc_divisor = ini_get('session.gc_divisor');
ini_set('session.gc_divisor', '1');
}
/**
* endCase method
*
* @access public
* @return void
*/
function endCase() {
// Revert to the default setting
ini_set('session.gc_divisor', $this->__gc_divisor);
}
/**
* setUp method
*
Expand Down

0 comments on commit 9f0cbb0

Please sign in to comment.