diff options
Diffstat (limited to 'tests/mock/cache.php')
-rw-r--r-- | tests/mock/cache.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/mock/cache.php b/tests/mock/cache.php index b745123801..0f174ea449 100644 --- a/tests/mock/cache.php +++ b/tests/mock/cache.php @@ -59,13 +59,16 @@ class phpbb_mock_cache implements phpbb_cache_driver_interface $test->assertEquals($data, $this->data[$var_name]); } - public function checkAssociativeVar(PHPUnit_Framework_Assert $test, $var_name, $data) + public function checkAssociativeVar(PHPUnit_Framework_Assert $test, $var_name, $data, $sort = true) { $test->assertTrue(isset($this->data[$var_name])); - foreach ($this->data[$var_name] as &$content) + if ($sort) { - sort($content); + foreach ($this->data[$var_name] as &$content) + { + sort($content); + } } $test->assertEquals($data, $this->data[$var_name]); |