Example #1
0
 public function tearDown()
 {
     if (function_exists('zend_disk_cache_clear')) {
         zend_disk_cache_clear();
     }
     parent::tearDown();
 }
Example #2
0
 public function tearDown()
 {
     if ($this->_storage) {
         $this->_storage->flush();
     }
     parent::tearDown();
 }
Example #3
0
 public function tearDown()
 {
     if (function_exists('wincache_ucache_clear')) {
         wincache_ucache_clear();
     }
     parent::tearDown();
 }
Example #4
0
 public function tearDown()
 {
     if (!empty($this->_storage)) {
         $this->_storage->clear();
     }
     parent::tearDown();
 }
Example #5
0
 public function setUp()
 {
     // instantiate memory adapter
     $this->_options = new Cache\Storage\Adapter\MemoryOptions();
     $this->_storage = new Cache\Storage\Adapter\Memory();
     $this->_storage->setOptions($this->_options);
     parent::setUp();
 }
Example #6
0
 public function tearDown()
 {
     $this->_storage = null;
     if (file_exists($this->temporaryDbaFile)) {
         unlink($this->temporaryDbaFile);
     }
     parent::tearDown();
 }
Example #7
0
 public function tearDown()
 {
     if (function_exists('apc_clear_cache')) {
         apc_clear_cache('user');
     }
     // reset ini configurations
     ini_set('apc.use_request_time', $this->iniUseRequestTime);
     parent::tearDown();
 }
Example #8
0
 public function tearDown()
 {
     $this->_removeRecursive($this->_tmpCacheDir);
     if ($this->_umask != umask()) {
         umask($this->_umask);
         $this->fail("Umask wasn't reset");
     }
     parent::tearDown();
 }
Example #9
0
 public function setUp()
 {
     $_SESSION = array();
     SessionContainer::setDefaultManager(null);
     $sessionConfig = new SessionConfig(array('storage' => 'Zend\\Session\\Storage\\ArrayStorage'));
     $sessionManager = $manager = new TestSessionManager($sessionConfig);
     $sessionContainer = new SessionContainer('Default', $manager);
     $this->_options = new Cache\Storage\Adapter\SessionOptions(array('session_container' => $sessionContainer));
     $this->_storage = new Cache\Storage\Adapter\Session();
     $this->_storage->setOptions($this->_options);
     parent::setUp();
 }
Example #10
0
 public function tearDown()
 {
     $this->_removeRecursive($this->_tmpCacheDir);
     parent::tearDown();
 }