Public Member Functions | |
doTest () | |
Private Member Functions | |
_testConfig () | |
_testSiteConfig () | |
_testDbConfig () |
Definition at line 8 of file UTConfig.class.php.
UTConfig::_testConfig | ( | ) | [private] |
Definition at line 17 of file UTConfig.class.php.
Referenced by doTest().
00018 { 00019 $config = new Config(); 00020 $this->setSectionLabel('Config'); 00021 eval($this->needNotEmpty('$config->getEnvironmentDir()')); 00022 00023 eval($this->needEmpty('$config->setEnvironmentDir("/var/www/fareofficeroot")')); 00024 eval($this->needEqual('$config->getEnvironmentDir()', '"/var/www/fareofficeroot/"')); 00025 00026 eval($this->needEqual('$config->getLogDir()', '"/var/www/fareofficeroot/Log/"')); 00027 eval($this->needEqual('$config->getSiteDir()', '"/var/www/fareofficeroot/Site/"')); 00028 00029 eval($this->needNotEmpty('$config->getSites()')); 00030 00031 foreach($config->getSites() as $siteConfig) 00032 { 00033 eval($this->needEqual('get_class($siteConfig)', '"SiteConfig"')); 00034 } 00035 }
UTConfig::_testDbConfig | ( | ) | [private] |
Definition at line 52 of file UTConfig.class.php.
Referenced by doTest().
00053 { 00054 $config = new Config(); 00055 $this->setSectionLabel('DbConfig'); 00056 eval($this->needNotEmpty('$config->getSite("fareofficelib")')); 00057 00058 eval($this->needEqual('$config->getSite("fareofficelib")->getLogDir()', '"/var/www/fareofficeroot/Site/fareofficelib/Temp/Log/"')); 00059 eval($this->needEqual('$config->getSite("fareofficelib")->getCacheDir()', '"/var/www/fareofficeroot/Site/fareofficelib/Temp/Cache/"')); 00060 00061 }
UTConfig::_testSiteConfig | ( | ) | [private] |
Definition at line 37 of file UTConfig.class.php.
Referenced by doTest().
00038 { 00039 $config = new Config(); 00040 $this->setSectionLabel('SiteConfig'); 00041 eval($this->needNotEmpty('$dbConfig = $config->getDbConfig()')); 00042 eval($this->needEmpty('$dbConfig->getDSN("mysql_database")')); 00043 00044 eval($this->needEmpty('$dbConfig->clearDSN()')); 00045 00046 eval($this->needEmpty('$dbConfig->setDSN("mysql_database", "mysql", "localhost", "root", "", "mysql")')); 00047 eval($this->needEqual('$dbConfig->getDSN("mysql_database")', 'array(\'phptype\'=>\'mysql\',\'hostspec\'=>\'localhost\',\'username\'=>\'root\',\'password\'=>\'\',\'database\'=>\'mysql\')')); 00048 00049 eval($this->needEqual('$config->getDBDSN("mysql_database")', 'array(\'phptype\'=>\'mysql\',\'hostspec\'=>\'localhost\',\'username\'=>\'root\',\'password\'=>\'\',\'database\'=>\'mysql\')')); 00050 }
UTConfig::doTest | ( | ) |
Definition at line 10 of file UTConfig.class.php.
References _testConfig(), _testDbConfig(), and _testSiteConfig().
00011 { 00012 $this->_testConfig(); 00013 $this->_testSiteConfig(); 00014 $this->_testDbConfig(); 00015 }