1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00

[task/session-tests] By default the cache check now skips over db server info

PHPBB3-9732
This commit is contained in:
Nils Adermann 2011-02-27 22:17:03 +01:00
parent bbf3864cb4
commit 7255ef4f6d

@ -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);
}
}