ci_core_class('cfg'); // set predictable config values $test->ci_set_config(array( 'index_page' => 'index.php', 'base_url' => 'http://example.com/', 'subclass_prefix' => 'MY_' )); $this->config = new $cls; } protected function _is_cli_request() { return FALSE; } }