mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13904] Modify files for changes in ini wrapper
PHPBB3-13904
This commit is contained in:
6
tests/cache/apc_driver_test.php
vendored
6
tests/cache/apc_driver_test.php
vendored
@@ -34,14 +34,14 @@ class phpbb_cache_apc_driver_test extends phpbb_cache_common_test_case
|
||||
self::markTestSkipped('APC extension is not loaded');
|
||||
}
|
||||
|
||||
$php_ini = new \phpbb\php\ini;
|
||||
$php_ini = new \bantu\IniGetWrapper\IniGetWrapper;
|
||||
|
||||
if (!$php_ini->get_bool('apc.enabled'))
|
||||
if (!$php_ini->getBool('apc.enabled'))
|
||||
{
|
||||
self::markTestSkipped('APC is not enabled. Make sure apc.enabled=1 in php.ini');
|
||||
}
|
||||
|
||||
if (PHP_SAPI == 'cli' && !$php_ini->get_bool('apc.enable_cli'))
|
||||
if (PHP_SAPI == 'cli' && !$php_ini->getBool('apc.enable_cli'))
|
||||
{
|
||||
self::markTestSkipped('APC is not enabled for CLI. Set apc.enable_cli=1 in php.ini');
|
||||
}
|
||||
|
Reference in New Issue
Block a user