public function tearDown() { if (function_exists('zend_disk_cache_clear')) { zend_disk_cache_clear(); } parent::tearDown(); }
public function tearDown() { if ($this->_storage) { $this->_storage->flush(); } parent::tearDown(); }
public function tearDown() { if (function_exists('wincache_ucache_clear')) { wincache_ucache_clear(); } parent::tearDown(); }
public function tearDown() { if (!empty($this->_storage)) { $this->_storage->clear(); } parent::tearDown(); }
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(); }
public function tearDown() { $this->_storage = null; if (file_exists($this->temporaryDbaFile)) { unlink($this->temporaryDbaFile); } parent::tearDown(); }
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(); }
public function tearDown() { $this->_removeRecursive($this->_tmpCacheDir); parent::tearDown(); }