* ------------------------------------------------------ */ $LANG =& load_class('Lang', 'core'); // Set a mark point for benchmarking $BM->mark('loading_time:_base_classes_end'); /* * ------------------------------------------------------ * Is there a "pre_controller" hook? * ------------------------------------------------------ */ $EXT->_call_hook('pre_controller'); function &get_instance() { return CI_Controller::get_instance(); } \Dispatcher\Common\BootstrapInstaller::install(); $CI = new \Dispatcher\BootstrapController(); /* * ------------------------------------------------------ * Is there a "post_controller_constructor" hook? * ------------------------------------------------------ */ $EXT->_call_hook('post_controller_constructor'); /* * ------------------------------------------------------ * Is there a "post_controller" hook? * ------------------------------------------------------ */ $EXT->_call_hook('post_controller'); /* * ------------------------------------------------------
/** * @test */ public function run_OnRouteWithoutInstallation_ShouldAlterRouteWithDefaultController() { $route = array(); BootstrapInstaller::run($route, true); $this->assertTrue(isset($route['default_controller'], $route['(.*)'])); }