mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
2082239969
commit
9f0cbb00ce
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue