diff options
| author | Nils Adermann <naderman@naderman.de> | 2011-02-23 17:21:51 +0100 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2011-02-23 18:33:20 +0100 |
| commit | 11262afa93fc7e1eea31873e3d1a7139230c427e (patch) | |
| tree | 8040b42f70d06c13cf3901bf8c495d5524c550c5 /tests/mock/session_testable.php | |
| parent | 69449417bac4244c7fc35b7bf6bb5bd056ca2a20 (diff) | |
| download | forums-11262afa93fc7e1eea31873e3d1a7139230c427e.tar forums-11262afa93fc7e1eea31873e3d1a7139230c427e.tar.gz forums-11262afa93fc7e1eea31873e3d1a7139230c427e.tar.bz2 forums-11262afa93fc7e1eea31873e3d1a7139230c427e.tar.xz forums-11262afa93fc7e1eea31873e3d1a7139230c427e.zip | |
[ticket/10052] Correct session tests, and separate session factory from tests
PHPBB3-10052
Diffstat (limited to 'tests/mock/session_testable.php')
| -rw-r--r-- | tests/mock/session_testable.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mock/session_testable.php b/tests/mock/session_testable.php index 0d4642d372..47089cb94b 100644 --- a/tests/mock/session_testable.php +++ b/tests/mock/session_testable.php @@ -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(); |
