File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,13 @@ public function __construct()
181
181
'CodeIgniter\View\Parser ' => BASEPATH . 'View/Parser.php ' ,
182
182
'CodeIgniter\View\Cell ' => BASEPATH . 'View/Cell.php ' ,
183
183
'Zend\Escaper\Escaper ' => BASEPATH . 'ThirdParty/ZendEscaper/Escaper.php ' ,
184
- 'CodeIgniter\Log\TestLogger ' => SUPPORTPATH . 'Log/TestLogger.php ' ,
185
- 'CIDatabaseTestCase ' => SUPPORTPATH . 'CIDatabaseTestCase.php ' ,
186
184
];
185
+
186
+ if (isset ($ _SERVER ['CI_ENVIRONMENT ' ]) && $ _SERVER ['CI_ENVIRONMENT ' ] === 'testing ' )
187
+ {
188
+ $ this ->classmap ['CodeIgniter\Log\TestLogger ' ] = SUPPORTPATH . 'Log/TestLogger.php ' ;
189
+ $ this ->classmap ['CIDatabaseTestCase ' ] = SUPPORTPATH . 'CIDatabaseTestCase.php ' ;
190
+ }
187
191
}
188
192
189
193
//--------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments