mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/10052] Correct session tests, and separate session factory from tests
PHPBB3-10052
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
|
||||
require_once dirname(__FILE__) . '/../../phpBB/includes/session.php';
|
||||
|
||||
/**
|
||||
* Extends the session class to overwrite the setting of cookies.
|
||||
*
|
||||
* The session class directly writes cookie headers making it impossible to
|
||||
* test it without warnings about sent headers. This class only stores cookie
|
||||
* data for later verification.
|
||||
*/
|
||||
class phpbb_mock_session_testable extends session
|
||||
{
|
||||
private $_cookies = array();
|
||||
|
Reference in New Issue
Block a user