1
0
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:
Nils Adermann
2011-02-23 17:21:51 +01:00
parent 69449417ba
commit 11262afa93
5 changed files with 166 additions and 79 deletions

View File

@@ -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();