Browse files

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
  • Loading branch information...
1 parent 2082239 commit 9f0cbb00ce313d424bb5c4740e7662e33ea03a01 @renan renan committed Mar 26, 2009
Showing with 21 additions and 0 deletions.
  1. +21 −0 cake/tests/cases/libs/session.test.php
View
21 cake/tests/cases/libs/session.test.php
@@ -36,6 +36,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
*
* @access public

0 comments on commit 9f0cbb0

Please sign in to comment.