protected function setUp() { $this->_originaltimezone = date_default_timezone_get(); date_default_timezone_set('Europe/Berlin'); if (isset($_SERVER['SERVER_NAME'])) { $this->_oldServer['SERVER_NAME'] = $_SERVER['SERVER_NAME']; } if (isset($_SERVER['SERVER_PORT'])) { $this->_oldServer['SERVER_PORT'] = $_SERVER['SERVER_PORT']; } if (isset($_SERVER['REQUEST_URI'])) { $this->_oldServer['REQUEST_URI'] = $_SERVER['REQUEST_URI']; } $_SERVER['SERVER_NAME'] = 'localhost'; $_SERVER['SERVER_PORT'] = 80; $_SERVER['REQUEST_URI'] = '/'; parent::setUp(); $this->_helper->setFormatOutput(true); $this->_helper->getView()->plugin('basepath')->setBasePath(''); }