summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-03 21:06:01 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-03 21:29:50 +0200
commit22f8f50e050f63c02193c4256e515bab25db1cf7 (patch)
tree1b9868d38a17d1e6eee6b052626edb1a00e069ac /tests/lib/cache
parent6fdd1a96ad26633463b9353f8408f19db4b2407a (diff)
downloadnextcloud-server-22f8f50e050f63c02193c4256e515bab25db1cf7.tar.gz
nextcloud-server-22f8f50e050f63c02193c4256e515bab25db1cf7.zip
initual phpunit support
Diffstat (limited to 'tests/lib/cache')
-rw-r--r--tests/lib/cache/apc.php8
-rw-r--r--tests/lib/cache/xcache.php8
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/cache/apc.php b/tests/lib/cache/apc.php
index 34ea968cd54..ae562a11df2 100644
--- a/tests/lib/cache/apc.php
+++ b/tests/lib/cache/apc.php
@@ -21,11 +21,11 @@
*/
class Test_Cache_APC extends Test_Cache {
- function skip() {
- $this->skipUnless(function_exists('apc_store'));
- }
-
public function setUp() {
+ if(!function_exists('apc_store')){
+ $this->markTestSkipped('The apc extension is not available.');
+ return;
+ }
$this->instance=new OC_Cache_APC();
}
diff --git a/tests/lib/cache/xcache.php b/tests/lib/cache/xcache.php
index 85cc2d8b3c6..934a5dd2fe2 100644
--- a/tests/lib/cache/xcache.php
+++ b/tests/lib/cache/xcache.php
@@ -21,11 +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();
}