1919use CodeIgniter \Test \CIUnitTestCase ;
2020use CodeIgniter \Test \ReflectionHelper ;
2121use Config \Exceptions as ExceptionsConfig ;
22- use Config \Services ;
2322use ErrorException ;
2423use RuntimeException ;
2524
@@ -52,7 +51,7 @@ protected function setUp(): void
5251 {
5352 parent ::setUp ();
5453
55- $ this ->exception = new Exceptions (new ExceptionsConfig (), Services:: request (), Services:: response () );
54+ $ this ->exception = new Exceptions (new ExceptionsConfig ());
5655 }
5756
5857 /**
@@ -65,7 +64,7 @@ public function testDeprecationsOnPhp81DoNotThrow(): void
6564 $ config ->logDeprecations = true ;
6665 $ config ->deprecationLogLevel = 'error ' ;
6766
68- $ this ->exception = new Exceptions ($ config, Services:: request (), Services:: response () );
67+ $ this ->exception = new Exceptions ($ config );
6968 $ this ->exception ->initialize ();
7069
7170 // this is only needed for IDEs not to complain that strlen does not accept explicit null
@@ -89,7 +88,7 @@ public function testSuppressedDeprecationsAreLogged(): void
8988 $ config ->logDeprecations = true ;
9089 $ config ->deprecationLogLevel = 'error ' ;
9190
92- $ this ->exception = new Exceptions ($ config, Services:: request (), Services:: response () );
91+ $ this ->exception = new Exceptions ($ config );
9392 $ this ->exception ->initialize ();
9493
9594 @trigger_error ('Hello! I am a deprecation! ' , E_USER_DEPRECATED );
0 commit comments