Example #1
0
 public function setUp($notag = true)
 {
     $server = array('host' => TESTS_ZEND_CACHE_MEMCACHED_HOST, 'port' => TESTS_ZEND_CACHE_MEMCACHED_PORT, 'persistent' => TESTS_ZEND_CACHE_MEMCACHED_PERSISTENT);
     $options = array('servers' => array(0 => $server));
     $this->_instance = new Zend_Cache_Backend_Memcached($options);
     parent::setUp($notag);
 }
 public function setUp($notag = false)
 {
     $this->_cache_dir = $this->getTmpDir() . DIRECTORY_SEPARATOR;
     $this->_instance = new Zend_Cache_Backend_File(array('cache_dir' => $this->_cache_dir));
     $logger = new Zend_Log(new Zend_Log_Writer_Null());
     $this->_instance->setDirectives(array('logger' => $logger));
     parent::setUp($notag);
 }
 public function setUp($notag = false)
 {
     if (!function_exists('output_cache_get')) {
         $this->markTestSkipped('Zend Platform is not installed, skipping test');
         return;
     }
     $this->_instance = new Zend_Cache_Backend_ZendPlatform(array());
     parent::setUp($notag);
 }
Example #4
0
 public function testRemoveCorrectCallWithVacuum()
 {
     $this->_instance = new Zend_Cache_Backend_Sqlite(array('cache_db_complete_path' => $this->_cache_dir . 'cache.db', 'automatic_vacuum_factor' => 1));
     parent::setUp();
     $this->assertTrue($this->_instance->remove('bar'));
     $this->assertFalse($this->_instance->test('bar'));
     $this->assertFalse($this->_instance->remove('barbar'));
     $this->assertFalse($this->_instance->test('barbar'));
 }
 public function setUp()
 {
     if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
         $this->_cacheDir = $this->_getTmpDirWindows() . DIRECTORY_SEPARATOR;
     } else {
         $this->_cacheDir = $this->_getTmpDirUnix() . DIRECTORY_SEPARATOR;
     }
     $this->_instance = new Zend_Cache_Backend_File(array('cacheDir' => $this->_cacheDir));
     parent::setUp();
 }
Example #6
0
 public function setUp($notag = true)
 {
     $this->_instance = new Zend_Cache_Backend_Xcache(array('user' => TESTS_ZEND_CACHE_XCACHE_USER, 'password' => TESTS_ZEND_CACHE_XCACHE_PASSWORD));
     parent::setUp($notag);
 }
 public function setUp($notag = true)
 {
     $this->_instance = new Zend_Cache_Backend_ZendServer_ShMem();
     parent::setUp(true);
 }
 public function setUp($notag = false)
 {
     parent::setUp($notag);
     $this->_capabilities = $this->_instance->getCapabilities();
 }
 public function setUp()
 {
     $this->_cacheDir = $this->getTmpDir() . DIRECTORY_SEPARATOR;
     $this->_instance = new Zend_Cache_Backend_File(array('cacheDir' => $this->_cacheDir));
     parent::setUp();
 }
 public function setUp($notag = true)
 {
     $this->_instance = new Zend_Cache_Backend_Apc(array());
     parent::setUp($notag);
 }
 public function setUp()
 {
     $this->_instance = new Zend_Cache_Backend_APC(array());
     parent::setUp();
 }