Skip to content

Instantly share code, notes, and snippets.

@ckdarby
Created June 5, 2012 19:15
Show Gist options
  • Save ckdarby/2877099 to your computer and use it in GitHub Desktop.
Save ckdarby/2877099 to your computer and use it in GitHub Desktop.
CI /tests/codeigniter/core/Config_test.php
public function set_up()
{
$cls =& $this->ci_core_class('cfg');
// set predictable config values
$this->ci_set_config(array(
'index_page' => 'index.php',
'base_url' => 'http://example.com/',
'subclass_prefix' => 'MY_'
));
$this->config = new $cls;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment