summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache/xcache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-10 11:05:19 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-10 11:05:19 +0200
commitaa13a585132fb1fd57d3af005f1d637a941d26cc (patch)
treef1b04718b4259e907739da9b5dd79df8e2a442c8 /tests/lib/cache/xcache.php
parent29fa9dfb79e6f4a792fd012c33fec43965238aca (diff)
parent37579505628654cb86e6a453c07c05cbd2026b4f (diff)
downloadnextcloud-server-aa13a585132fb1fd57d3af005f1d637a941d26cc.tar.gz
nextcloud-server-aa13a585132fb1fd57d3af005f1d637a941d26cc.zip
Merge branch 'phpunit'
Diffstat (limited to 'tests/lib/cache/xcache.php')
-rw-r--r--tests/lib/cache/xcache.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/lib/cache/xcache.php b/tests/lib/cache/xcache.php
index 85cc2d8b3c6..c081036a31f 100644
--- a/tests/lib/cache/xcache.php
+++ b/tests/lib/cache/xcache.php
@@ -21,15 +21,11 @@
*/
class Test_Cache_XCache extends Test_Cache {
- function skip() {
- $this->skipUnless(function_exists('xcache_get'));
- }
-
public function setUp() {
+ if(!function_exists('xcache_get')){
+ $this->markTestSkipped('The xcache extension is not available.');
+ return;
+ }
$this->instance=new OC_Cache_XCache();
}
-
- function testTTL() {
- // ttl doesn't work correctly in the same request
- }
}