diff options
| author | Igor Wiedler <igor@wiedler.ch> | 2011-02-27 22:48:22 +0100 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2011-02-27 22:48:22 +0100 |
| commit | 80a335f538196d72fb3689fe68f04c3104076470 (patch) | |
| tree | 4f540241e54dea334b285a2d1b077a0c74f72a3d /tests/mock/cache.php | |
| parent | 21630596320a90a68f0cfed0e319d1c9edff79c5 (diff) | |
| parent | 921603b09e1e34059f783c502d5dfc9ae0189057 (diff) | |
| download | forums-80a335f538196d72fb3689fe68f04c3104076470.tar forums-80a335f538196d72fb3689fe68f04c3104076470.tar.gz forums-80a335f538196d72fb3689fe68f04c3104076470.tar.bz2 forums-80a335f538196d72fb3689fe68f04c3104076470.tar.xz forums-80a335f538196d72fb3689fe68f04c3104076470.zip | |
Merge branch 'task/session-tests' into develop-olympus
* task/session-tests:
[task/session-tests] Make result check independent of returned row order.
[task/session-tests] By default the cache check now skips over db server info
[task/session-tests] Correctly display message on session continue test failure
[task/session-tests] Make the session id replacement of dataset values clearer
Diffstat (limited to 'tests/mock/cache.php')
| -rw-r--r-- | tests/mock/cache.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/mock/cache.php b/tests/mock/cache.php index 2ac46f7090..738d1eaaba 100644 --- a/tests/mock/cache.php +++ b/tests/mock/cache.php @@ -53,9 +53,16 @@ class phpbb_mock_cache $test->assertEquals($data, $this->data[$var_name]); } - public function check(PHPUnit_Framework_Assert $test, $data) + public function check(PHPUnit_Framework_Assert $test, $data, $ignore_db_info = true) { - $test->assertEquals($data, $this->data); + $cache_data = $this->data; + + if ($ignore_db_info) + { + unset($cache_data['mysqli_version']); + } + + $test->assertEquals($data, $cache_data); } } |
