Code Duplication    Length = 4-4 lines in 2 locations

application/tests/_ci_phpunit_test/CIPHPUnitTestCase.php 2 locations

@@ 110-113 (lines=4) @@
107
		$this->CI->load->model($classname);
108
109
		// Is the model in a sub-folder?
110
		if (($last_slash = strrpos($classname, '/')) !== FALSE)
111
		{
112
			$classname = substr($classname, ++$last_slash);
113
		}
114
115
		return $this->CI->$classname;
116
	}
@@ 131-134 (lines=4) @@
128
		$this->CI->load->library($classname, $args);
129
130
		// Is the library in a sub-folder?
131
		if (($last_slash = strrpos($classname, '/')) !== FALSE)
132
		{
133
			$classname = substr($classname, ++$last_slash);
134
		}
135
		$classname = strtolower($classname);
136
137
		return $this->CI->$classname;