apc.php 612 B

123456789101112131415161718192021222324252627
  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. protected function setUp() {
  11. parent::setUp();
  12. if(!\OC\Memcache\APC::isAvailable()) {
  13. $this->markTestSkipped('The apc extension is not available.');
  14. return;
  15. }
  16. if(\OC\Memcache\APCu::isAvailable()) {
  17. $this->markTestSkipped('The apc extension is emulated by ACPu.');
  18. return;
  19. }
  20. $this->instance=new \OC\Memcache\APC($this->getUniqueID());
  21. }
  22. }