mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[task/session-tests] By default the cache check now skips over db server info
PHPBB3-9732
This commit is contained in:
parent
bbf3864cb4
commit
7255ef4f6d
1 changed files with 9 additions and 2 deletions
|
@ -53,9 +53,16 @@ class phpbb_mock_cache
|
||||||
$test->assertEquals($data, $this->data[$var_name]);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue