public function setUp() { Piece_Unity_Context::clear(); Piece_Unity_Service_Authentication_State::clear(); $this->_authentication = new Piece_Unity_Service_Authentication(); $this->_authentication->logout('Foo'); }
public function setUp() { Piece_Unity_Context::clear(); Piece_Unity_Service_Authentication_State::clear(); $_SERVER['REQUEST_METHOD'] = 'GET'; $_SESSION = array(); }
function tearDown() { $cache =& new Cache_Lite_File(array('cacheDir' => "{$this->_cacheDirectory}/", 'masterFile' => '', 'automaticSerialization' => true, 'errorHandlingAPIBreak' => true)); $cache->clean(); Piece_Unity_Context::clear(); Piece_Unity_Error::clearErrors(); }
function tearDown() { Piece_Unity_Plugin_Renderer_HTML_CompatibilityTests::removeDirectoryRecursively("{$this->_cacheDirectory}/compiled-templates"); Piece_Unity_Plugin_Factory::clearInstances(); Piece_Unity_Context::clear(); }
function tearDown() { $GLOBALS['PIECE_ORM_Configured'] = false; Piece_ORM_Context::clear(); $cache =& new Cache_Lite(array('cacheDir' => "{$this->_cacheDirectory}/", 'automaticSerialization' => true, 'errorHandlingAPIBreak' => true)); $cache->clean(); Piece_Unity_Context::clear(); }
function tearDown() { unset($_SERVER['REQUEST_METHOD']); Piece_Unity_Context::clear(); Piece_Unity_Error::clearErrors(); }
function tearDown() { Piece_Unity_Context::clear(); }
function tearDown() { $GLOBALS['PIECE_UNITY_Plugin_Prefixes'] = $this->_oldPluginPrefixes; $GLOBALS['PIECE_UNITY_Plugin_Directories'] = $this->_oldPluginDirectories; $_SERVER['REQUEST_URI'] = $this->_oldScriptName; Piece_Unity_Error::clearErrors(); Piece_Unity_Context::clear(); }