Exemple #1
0
 public function tearDown()
 {
     if (function_exists('zend_disk_cache_clear')) {
         zend_disk_cache_clear();
     }
     parent::tearDown();
 }
Exemple #2
0
 public function tearDown()
 {
     if ($this->_storage) {
         $this->_storage->flush();
     }
     parent::tearDown();
 }
Exemple #3
0
 public function tearDown()
 {
     if (function_exists('wincache_ucache_clear')) {
         wincache_ucache_clear();
     }
     parent::tearDown();
 }
Exemple #4
0
 public function tearDown()
 {
     if (!empty($this->_storage)) {
         $this->_storage->clear();
     }
     parent::tearDown();
 }
Exemple #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();
 }
Exemple #6
0
 public function tearDown()
 {
     $this->_storage = null;
     if (file_exists($this->temporaryDbaFile)) {
         unlink($this->temporaryDbaFile);
     }
     parent::tearDown();
 }
Exemple #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();
 }
 public function tearDown()
 {
     $this->_removeRecursive($this->_tmpCacheDir);
     if ($this->_umask != umask()) {
         umask($this->_umask);
         $this->fail("Umask wasn't reset");
     }
     parent::tearDown();
 }
 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();
 }
Exemple #10
0
 public function tearDown()
 {
     $this->_removeRecursive($this->_tmpCacheDir);
     parent::tearDown();
 }