public function testFreshInstallStep2TimezoneNotSetInPHPiniFile() { self::time(__METHOD__); //drop DB $this->testdb_helper->drop($this->test_database_name); //remove config file Config::destroyInstance(); $this->removeConfigFile(); //set date.timezone in PHP.ini ini_set('date.timezone', ''); //set param for step 2 $_GET['step'] = '2'; $controller = new InstallerController(true); $this->assertTrue(isset($controller)); $result = $controller->go(); $v_mgr = $controller->getViewManager(); $this->assertEqual($v_mgr->getTemplateDataItem('current_tz'), ''); $this->restoreConfigFile(); }