27764cd7d77d07aac7783a7c4a01fe39fc722d22
[yaffs-website] / vendor / doctrine / cache / tests / Doctrine / Tests / Common / Cache / ApcuCacheTest.php
1 <?php
2
3 namespace Doctrine\Tests\Common\Cache;
4
5 use Doctrine\Common\Cache\ApcuCache;
6
7 /**
8  * @requires extension apcu
9  */
10 class ApcuCacheTest extends CacheTest
11 {
12     protected function setUp()
13     {
14         if (!ini_get('apc.enable_cli')) {
15             $this->markTestSkipped('APC must be enabled for the CLI with the ini setting apc.enable_cli=1');
16         }
17     }
18
19     protected function _getCacheDriver()
20     {
21         return new ApcuCache();
22     }
23
24     public function testLifetime()
25     {
26         $this->markTestSkipped('The APC cache TTL is not working in a single process/request. See https://bugs.php.net/bug.php?id=58084');
27     }
28 }