@@ -37,7 +37,7 @@ public function testSingleServiceWithNoParamsSupplied(string $service): void
3737        $ service1  = single_service ($ service ); // @phpstan-ignore codeigniter.unknownServiceMethod 
3838        $ service2  = single_service ($ service ); // @phpstan-ignore codeigniter.unknownServiceMethod 
3939
40-         assert ($ service1 !==  null );
40+         $ this -> assertNotNull ($ service1 );
4141
4242        $ this  ->assertInstanceOf ($ service1 ::class, $ service2 );
4343        $ this  ->assertNotSame ($ service1 , $ service2 );
@@ -65,7 +65,7 @@ public function testSingleServiceWithAtLeastOneParamSupplied(string $service): v
6565        $ service1  = single_service ($ service , ...$ params ); // @phpstan-ignore codeigniter.unknownServiceMethod 
6666        $ service2  = single_service ($ service , ...$ params ); // @phpstan-ignore codeigniter.unknownServiceMethod 
6767
68-         assert ($ service1 !==  null );
68+         $ this -> assertNotNull ($ service1 );
6969
7070        $ this  ->assertInstanceOf ($ service1 ::class, $ service2 );
7171        $ this  ->assertNotSame ($ service1 , $ service2 );
@@ -120,8 +120,8 @@ public function testSingleServiceWithAllParamsSupplied(): void
120120        $ cache1  = single_service ('cache ' , null , true );
121121        $ cache2  = single_service ('cache ' , null , true );
122122
123-         assert ($ cache1 !==  null );
124-         assert ($ cache2 !==  null );
123+         $ this -> assertNotNull ($ cache1 );
124+         $ this -> assertNotNull ($ cache2 );
125125
126126        // Assert that even passing true as last param this will 
127127        // not create a shared instance. 
0 commit comments