diff options
Diffstat (limited to 'tests/unit/Caching/TAPCCacheTest.php')
| -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'));  	}  | 
