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(); }