* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\Tests\Adapter; use Psr\Cache\CacheItemPoolInterface; use Symfony\Component\Cache\Adapter\PhpFilesAdapter; /** * @group time-sensitive */ class PhpFilesAdapterTest extends AdapterTestCase { protected $skippedTests = array( 'testDefaultLifeTime' => 'PhpFilesAdapter does not allow configuring a default lifetime.', ); public function createCachePool() { if (!PhpFilesAdapter::isSupported()) { $this->markTestSkipped('OPcache extension is not enabled.'); } return new PhpFilesAdapter('sf-cache'); } public static function tearDownAfterClass() { FilesystemAdapterTest::rmdir(sys_get_temp_dir().'/symfony-cache'); } protected function isPruned(CacheItemPoolInterface $cache, $name) { $getFileMethod = (new \ReflectionObject($cache))->getMethod('getFile'); $getFileMethod->setAccessible(true); return !file_exists($getFileMethod->invoke($cache, $name)); } } __halt_compiler();----SIGNATURE:----YNDAbF7Xg5F5Gi+tdd2+FZ6aw9uY5SufDqDmyFCPYChUaMuCI5M2JRJ+nvOWX5UlbLPMZaJ/gQ7EFVFisMg9fjYdOyY12ZfMDPwy4qhI6GllusyP45eiRvqOvCmaVAGaAVZD4l40HS1dVTQ9B8LdzJthB0ZTRGulHRCMqaPoSe9xtjNQhFggBITPzUm2Opnx0En2M1/tvCu2RHjX4eMv1RfNFU29KrPTf8ubo6S72DS1wvMLdY298tWfe2POu5zUHv0i7D0i/u+eKdkE0lo7nuifo7Jz+fVioYhIf4qj2MhOGT/KKy859jEKt9OwYrWBo5OXzRche3xMyj6Nsz2plNbOCPBzRkdRGsc9+iueq/hSzdbifcsfVy/YDg4zAZxnTyG/v/oZ3KPykw78nsuO/+E7U/5HygZdFX2fAJS0EbQOX6E35pCiIivI2D8ehgInwnoCnoo3lajFPn5UgSQX4xINPxb6h5g0H4IgvmEwXfhkV4uSQ9gDmO64Q0zJbUQDoRq9jXTxdZx8f6EDsTjMQYZF5PSr9wUihqQ/kR5iH21fm03G34fjUnreIzYUt0zEG05NTJ/UL2LNF63NJjMpPfJIrcNDdU1QYbf5mCxLrGqt2stFtL/IXfBPeZVuXi9+HnbuK5KoPpPOCb25xUOcyIOjtdncDbJh8HZvw8r9iic=----ATTACHMENT:----MjQ3NjA3MTgxMjE3OTI0OCA3NTA5MzEzNzg5OTU5ODA3IDIwMDI5NjU1MjMzOTA3OTE=