mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[ticket/9983] Skip tests if APC is not enabled for CLI.
PHPBB3-9983
This commit is contained in:
parent
f2bee4b383
commit
0b4b7e68a7
6
tests/cache/apc_driver_test.php
vendored
6
tests/cache/apc_driver_test.php
vendored
@ -29,6 +29,12 @@ 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;
|
||||
if (PHP_SAPI == 'cli' && !$php_ini->get_bool('apc.enable_cli'))
|
||||
{
|
||||
self::markTestSkipped('APC is not enabled for CLI. Set apc.enable_cli=1 in php.ini');
|
||||
}
|
||||
}
|
||||
|
||||
protected function setUp()
|
||||
|
Loading…
x
Reference in New Issue
Block a user