apc.php 577 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace Test\Memcache;
  9. class APC extends Cache {
  10. public function setUp() {
  11. if(!\OC\Memcache\APC::isAvailable()) {
  12. $this->markTestSkipped('The apc extension is not available.');
  13. return;
  14. }
  15. if(\OC\Memcache\APCu::isAvailable()) {
  16. $this->markTestSkipped('The apc extension is emulated by ACPu.');
  17. return;
  18. }
  19. $this->instance=new \OC\Memcache\APC(uniqid());
  20. }
  21. }