mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[task/session-tests] By default the cache check now skips over db server info
PHPBB3-9732
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user