aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/cache.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-10-13 21:19:35 +0200
committerNils Adermann <naderman@naderman.de>2011-10-13 21:19:35 +0200
commit724f40f0f4fdfc47764a069cc91f045f0c67f4fb (patch)
tree14ae2ccfbe338b8e1088052d5b7f64eb27b031e3 /tests/mock/cache.php
parent7b12bba95bb7c59bde65e8ea1ffb1275944fd965 (diff)
downloadforums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar.gz
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar.bz2
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.tar.xz
forums-724f40f0f4fdfc47764a069cc91f045f0c67f4fb.zip
[feature/extension-manager] extension finder now saves ext it found a file in
PHPBB3-10323
Diffstat (limited to 'tests/mock/cache.php')
-rw-r--r--tests/mock/cache.php9
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]);