summaryrefslogtreecommitdiff
path: root/tests/unit/Caching
diff options
context:
space:
mode:
authorknut <>2007-06-12 09:06:56 +0000
committerknut <>2007-06-12 09:06:56 +0000
commite2ae365c336ff65b8340cdb4de328afaf9a0227d (patch)
tree03e77ae5106c657d7a31d971efd1c8f402b0d0df /tests/unit/Caching
parent8c30dccc451beeeb74993bdd5ecdf405acdc6062 (diff)
skipping TAPCCache::add() if not supported in test
Diffstat (limited to 'tests/unit/Caching')
-rw-r--r--tests/unit/Caching/TAPCCacheTest.php7
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'));
}