From b7a0c37ad82ef4dcfb031643434538d600e37757 Mon Sep 17 00:00:00 2001 From: knut <> Date: Sun, 7 Oct 2007 20:24:35 +0000 Subject: minor correction in test setup for APC caching (skipping if not configured correctly: apc.enable_cli = 1) --- tests/unit/Caching/TAPCCacheTest.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/unit/Caching/TAPCCacheTest.php b/tests/unit/Caching/TAPCCacheTest.php index 945f727e..84ff02ca 100644 --- a/tests/unit/Caching/TAPCCacheTest.php +++ b/tests/unit/Caching/TAPCCacheTest.php @@ -20,9 +20,14 @@ class TAPCCacheTest extends PHPUnit_Framework_TestCase { if(!is_writable($runtimePath)) { self::markTestSkipped("'$runtimePath' is writable"); } - $this->app = new TApplication($basePath); - self::$cache = new TAPCCache(); - self::$cache->init(null); + try { + $this->app = new TApplication($basePath); + self::$cache = new TAPCCache(); + self::$cache->init(null); + } catch(TConfigurationException $e) { + self::markTestSkipped($e->getMessage()); + } + } } -- cgit v1.2.3