diff options
author | knut <> | 2007-06-12 09:06:56 +0000 |
---|---|---|
committer | knut <> | 2007-06-12 09:06:56 +0000 |
commit | e2ae365c336ff65b8340cdb4de328afaf9a0227d (patch) | |
tree | 03e77ae5106c657d7a31d971efd1c8f402b0d0df /tests/unit | |
parent | 8c30dccc451beeeb74993bdd5ecdf405acdc6062 (diff) |
skipping TAPCCache::add() if not supported in test
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/Caching/TAPCCacheTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
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')); } |