Skip to content
Permalink
Browse files

add testcase for zendframework#659

  • Loading branch information...
driesdroesbeke committed Dec 16, 2015
1 parent d3fdc52 commit 56da4edf17e4d7d0444b165ace478e6b0aa23a38
Showing with 28 additions and 0 deletions.
  1. +28 −0 tests/Zend/Session/SaveHandler/DbTableTest.php
@@ -372,6 +372,34 @@ public function testSessionSaving()
}
}
/*
* Ensures that Zend_Session::rememberUntil behaves as expected
* This test failed on PHP7 since regenerateId() was called without a session
*
* @return void
*/
public function testRememberUntil()
{
$this->_dropTable();
$config = $this->_saveHandlerTableConfig;
unset($config[Zend_Session_SaveHandler_DbTable::PRIMARY_ASSIGNMENT]);
$config['primary'] = array($config['primary'][0]);
$this->_setupDb($config['primary']);
$this->_usedSaveHandlers[] =
$saveHandler = new Zend_Session_SaveHandler_DbTable($config);
Zend_Session::setSaveHandler($saveHandler);
Zend_Session::rememberUntil ( 61 );
$arrCookieParams = session_get_cookie_params();

This comment has been minimized.

Copy link
@froschdesign

froschdesign Dec 17, 2015

Please remove the prefix "arr". (see ZF1 - Coding Standard)

$this->assertSame(61, $arrCookieParams['lifetime']);
session_write_close();
}
public function testReadWrite()
{
$config = $this->_saveHandlerTableConfig;

0 comments on commit 56da4ed

Please sign in to comment.
You can’t perform that action at this time.