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()
181181 'CodeIgniter\View\Parser ' => BASEPATH . 'View/Parser.php ' ,
182182 'CodeIgniter\View\Cell ' => BASEPATH . 'View/Cell.php ' ,
183183 'Zend\Escaper\Escaper ' => BASEPATH . 'ThirdParty/ZendEscaper/Escaper.php ' ,
184- 'CodeIgniter\Log\TestLogger ' => SUPPORTPATH . 'Log/TestLogger.php ' ,
185- 'CIDatabaseTestCase ' => SUPPORTPATH . 'CIDatabaseTestCase.php ' ,
186184 ];
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+ }
187191 }
188192
189193 //--------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments