summaryrefslogtreecommitdiffstats
path: root/system/init/init_unit_test.php
blob: 61d5350b6ac562f80369549d6dd15d439a718024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Loads and instantiates unit testing class
 *
 * @access	private called by the app controller
 */	

if ( ! class_exists('CI_Unit_test'))
{
	require_once(BASEPATH.'libraries/Unit_test'.EXT);
}

$obj =& get_instance();
$obj->unit = new CI_Unit_test();
$obj->ci_is_loaded[] = 'unit';

?>