ApcuCacheTest.php 640 B

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