summaryrefslogtreecommitdiffstats
path: root/tests/lib/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-08 13:50:59 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-08 13:53:53 +0200
commite7899e17dea21d5b5e8d2e3ccd1640ab7684d685 (patch)
tree469a431482bffe6e4c17b9724d5a75cd1331b5f0 /tests/lib/cache
parentb9b9fd9dbaae47b3a15aed9694c18b95404550b0 (diff)
parent2de94f9c8574d8662bf0993999ca2f7bbff1f115 (diff)
downloadnextcloud-server-e7899e17dea21d5b5e8d2e3ccd1640ab7684d685.tar.gz
nextcloud-server-e7899e17dea21d5b5e8d2e3ccd1640ab7684d685.zip
merge phpunit into filesystem
Diffstat (limited to 'tests/lib/cache')
-rw-r--r--tests/lib/cache/apc.php13
-rw-r--r--tests/lib/cache/xcache.php12
2 files changed, 8 insertions, 17 deletions
diff --git a/tests/lib/cache/apc.php b/tests/lib/cache/apc.php
index 34ea968cd54..0e0edcf58f3 100644
--- a/tests/lib/cache/apc.php
+++ b/tests/lib/cache/apc.php
@@ -21,16 +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();
}
-
- function testTTL() {
- // ttl doesn't work correctly in the same request
- // see https://bugs.php.net/bug.php?id=58084
- }
}
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
- }
}