aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'develop-olympus' into developNils Adermann2011-01-232-0/+61
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [task/session-tests] Renamed assertSqlResultEquals and fixed its param order [task/session-tests] Test additional combinations of session_begin. [task/session-tests] Added tests for the session class. Conflicts: tests/mock/cache.php
| * [task/session-tests] Added tests for the session class.Nils Adermann2011-01-202-0/+117
| | | | | | | | | | | Two first simple tests to check functionality of session_begin and session_create. Added a mock class for the cache as well as a subclass of session which has its cookie handling function mocked out to avoid header sending problems. PHPBB3-9732
* [task/config-class] Implemented a config class to replace the global array.Nils Adermann2011-01-101-0/+6
| | | | | | | | | | | | | | | There is a phpbb_config class which simply holds an array and does not persist any data. It implements ArrayAccess, Countable and IteratorAggregate to allow regular use of configuration as if it was still an array. The phpbb_config_db class depends on an instance of the dbal and a cache driver. It obtains the configuration data from cache and database as necessary and persists data to the database. The functions set_config and set_config_count remain for backward compatability but they only call methods on the new config class now instead of directly manipulating the database and cache. PHPBB3-9988
* [task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.Nils Adermann2011-01-091-0/+87
PHPBB3-9983