/** * @expectedException PHPUnit_Framework_Error */ public function testGetConfigFileException() { /** * Second Test * * Passing a non-exist config file */ $fileName = APPROOT . '/config/' . "non-exist.json"; $return = Erdiko::getConfigFile($fileName); }
/** * Get the compiled application routes from the config files * * @todo cache the loaded/compiled routes */ public static function getRoutes() { $file = __DIR__ . '/app/config/application.json'; $applicationConfig = Erdiko::getConfigFile($file); return $applicationConfig['routes']; }
/** * Get the compiled application routes from the config files * * @todo cache the loaded/compiled routes */ public static function getRoutes() { $file = APPROOT . '/config/application/routes.json'; $applicationConfig = Erdiko::getConfigFile($file); return $applicationConfig['routes']; }