aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock/cache.php')
-rw-r--r--tests/mock/cache.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/mock/cache.php b/tests/mock/cache.php
index 989180c256..b745123801 100644
--- a/tests/mock/cache.php
+++ b/tests/mock/cache.php
@@ -59,6 +59,18 @@ 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)
+ {
+ $test->assertTrue(isset($this->data[$var_name]));
+
+ foreach ($this->data[$var_name] as &$content)
+ {
+ sort($content);
+ }
+
+ $test->assertEquals($data, $this->data[$var_name]);
+ }
+
public function checkVarUnset(PHPUnit_Framework_Assert $test, $var_name)
{
$test->assertFalse(isset($this->data[$var_name]));