aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cache
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-12-03 14:17:34 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-12-03 14:29:02 +0100
commit0b4b7e68a75438368868ede050bc6dd66fc80767 (patch)
treea69bb6da87984e0aa89f181648e9f6adb6befb9d /tests/cache
parentf2bee4b3831a09d09ba499bdf0dc90e9a590a85f (diff)
downloadforums-0b4b7e68a75438368868ede050bc6dd66fc80767.tar
forums-0b4b7e68a75438368868ede050bc6dd66fc80767.tar.gz
forums-0b4b7e68a75438368868ede050bc6dd66fc80767.tar.bz2
forums-0b4b7e68a75438368868ede050bc6dd66fc80767.tar.xz
forums-0b4b7e68a75438368868ede050bc6dd66fc80767.zip
[ticket/9983] Skip tests if APC is not enabled for CLI.
PHPBB3-9983
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/apc_driver_test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cache/apc_driver_test.php b/tests/cache/apc_driver_test.php
index f6e001f705..f7cf2119ed 100644
--- a/tests/cache/apc_driver_test.php
+++ b/tests/cache/apc_driver_test.php
@@ -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()