diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-02-27 22:52:56 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-02-27 22:52:56 +0100 |
commit | 5913aef58f0b4d5ee7d65b5684382a6166eaa19c (patch) | |
tree | 7cc34cf33168ee4f51e98d5deda0f7d921810670 /tests/mock/cache.php | |
parent | 05a29760975bef16abdb7e61a79f88ddf1c3b5c0 (diff) | |
parent | 80a335f538196d72fb3689fe68f04c3104076470 (diff) | |
download | forums-5913aef58f0b4d5ee7d65b5684382a6166eaa19c.tar forums-5913aef58f0b4d5ee7d65b5684382a6166eaa19c.tar.gz forums-5913aef58f0b4d5ee7d65b5684382a6166eaa19c.tar.bz2 forums-5913aef58f0b4d5ee7d65b5684382a6166eaa19c.tar.xz forums-5913aef58f0b4d5ee7d65b5684382a6166eaa19c.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[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
Conflicts:
tests/mock/cache.php
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 713f1ca817..7589c9908e 100644 --- a/tests/mock/cache.php +++ b/tests/mock/cache.php @@ -42,9 +42,16 @@ class phpbb_mock_cache implements phpbb_cache_driver_interface $test->assertFalse(isset($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); } function load() |