Adding tests to Session Save Handler callbacks. Refs #6229.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8130 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
renan.saddam 2009-03-26 14:25:47 +00:00
parent 2082239969
commit 9f0cbb00ce

View file

@ -35,6 +35,27 @@ if (!class_exists('CakeSession')) {
*/
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
*