Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jun 7, 2015
1 parent 72332e0 commit 095f876
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions application/tests/_ci_phpunit_test/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,7 @@ function reset_instance()
*/
function get_new_instance()
{
// Reset loaded classes
load_class('', '', '', TRUE);
is_loaded('', TRUE);

// Load core classes
load_class('Benchmark', 'core');
load_class('Hooks', 'core');
load_class('Config', 'core');
// load_class('Utf8', 'core');
load_class('URI', 'core');
load_class('Router', 'core');
load_class('Output', 'core');
load_class('Security', 'core');
load_class('Input', 'core');
load_class('Lang', 'core');

$loader = new CITEST_Loader();
load_class_instance('Loader', $loader);
reset_instance();

$controller = new CI_Controller();
return $controller;
Expand Down

0 comments on commit 095f876

Please sign in to comment.