aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cache
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-12-03 14:35:59 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-12-03 14:37:57 +0100
commitdb6b11a3902c27b612d7d6d4696c4cd8cf1f0bdf (patch)
treeb8f0438a9ed11c6fdd1c370a5c8e6d8c780d1329 /tests/cache
parent2e851baab90b0c9960eb7427acf41bfb8a848195 (diff)
downloadforums-db6b11a3902c27b612d7d6d4696c4cd8cf1f0bdf.tar
forums-db6b11a3902c27b612d7d6d4696c4cd8cf1f0bdf.tar.gz
forums-db6b11a3902c27b612d7d6d4696c4cd8cf1f0bdf.tar.bz2
forums-db6b11a3902c27b612d7d6d4696c4cd8cf1f0bdf.tar.xz
forums-db6b11a3902c27b612d7d6d4696c4cd8cf1f0bdf.zip
[ticket/9983] Also check generic APC enable/disable.
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 100ba76686..c8b8f82b67 100644
--- a/tests/cache/apc_driver_test.php
+++ b/tests/cache/apc_driver_test.php
@@ -31,6 +31,12 @@ class phpbb_cache_apc_driver_test extends phpbb_cache_common_test_case
}
$php_ini = new phpbb_php_ini;
+
+ if (!$php_ini->get_bool('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'))
{
self::markTestSkipped('APC is not enabled for CLI. Set apc.enable_cli=1 in php.ini');