芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/resuleg/modules/cache/tests/cache/arithmetic/ApcTest.php
markTestSkipped('APC PHP Extension is not available'); } if (ini_get('apc.enable_cli') != '1') { $this->markTestSkipped('Unable to test APC in CLI mode. To fix '. 'place "apc.enable_cli=1" in your php.ini file'); } $this->cache(Cache::instance('apc')); } /** * Tests the [Cache::set()] method, testing; * * - The value is cached * - The lifetime is respected * - The returned value type is as expected * - The default not-found value is respected * * This test doesn't test the TTL as there is a known bug/feature * in APC that prevents the same request from killing cache on timeout. * * @link http://pecl.php.net/bugs/bug.php?id=16814 * * @dataProvider provider_set_get * * @param array data * @param mixed expected * @return void */ public function test_set_get(array $data, $expected) { if ($data['wait'] !== FALSE) { $this->markTestSkipped('Unable to perform TTL test in CLI, see: '. 'http://pecl.php.net/bugs/bug.php?id=16814 for more info!'); } parent::test_set_get($data, $expected); } } // End Kohana_ApcTest