From e2ae365c336ff65b8340cdb4de328afaf9a0227d Mon Sep 17 00:00:00 2001 From: knut <> Date: Tue, 12 Jun 2007 09:06:56 +0000 Subject: skipping TAPCCache::add() if not supported in test --- tests/unit/Caching/TAPCCacheTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/Caching/TAPCCacheTest.php b/tests/unit/Caching/TAPCCacheTest.php index bfd561e7..945f727e 100644 --- a/tests/unit/Caching/TAPCCacheTest.php +++ b/tests/unit/Caching/TAPCCacheTest.php @@ -53,7 +53,12 @@ class TAPCCacheTest extends PHPUnit_Framework_TestCase { } public function testAdd() { - self::$cache->add('anotherkey', 'value'); + try { + self::$cache->add('anotherkey', 'value'); + } catch(TNotSupportedException $e) { + self::markTestSkipped('apc_add is not supported'); + return; + } self::assertEquals('value', self::$cache->get('anotherkey')); } -- cgit v1.2.3