diff options
Diffstat (limited to 'tests/mock/session_testable.php')
-rw-r--r-- | tests/mock/session_testable.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/mock/session_testable.php b/tests/mock/session_testable.php index 2d7d42f82a..47089cb94b 100644 --- a/tests/mock/session_testable.php +++ b/tests/mock/session_testable.php @@ -7,9 +7,16 @@ * */ -require_once '../phpBB/includes/functions.php'; -require_once '../phpBB/includes/session.php'; +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(); |