diff options
author | knut <> | 2007-10-07 20:24:35 +0000 |
---|---|---|
committer | knut <> | 2007-10-07 20:24:35 +0000 |
commit | b7a0c37ad82ef4dcfb031643434538d600e37757 (patch) | |
tree | 98f57a7d616c3834ebedfdfd747d7f99ed0b9dbe /tests/unit | |
parent | e4320cab263a45f8920599d5c919230309e7284c (diff) |
minor correction in test setup for APC caching (skipping if not configured correctly: apc.enable_cli = 1)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/Caching/TAPCCacheTest.php | 11 |
1 files 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()); + } + } } |