1010use lilthq \craftliltplugin \Craftliltplugin ;
1111use lilthq \craftliltplugin \LiltLogger ;
1212use lilthq \craftliltplugintests \integration \AbstractIntegrationCest ;
13+ use PHPUnit \Framework \Assert ;
1314use ReflectionClass ;
1415use RuntimeException ;
1516
@@ -47,7 +48,7 @@ public function testNonErrorLogsAreOnlyLocalWhenFlagIsTrue(IntegrationTester $I)
4748 LiltLogger::info ('Test info message ' );
4849 LiltLogger::warning ('Test warning message ' );
4950
50- $ I -> assertCount (2 , $ this ->spyLogger ->calls );
51+ Assert:: assertCount (2 , $ this ->spyLogger ->calls );
5152 }
5253
5354 public function testErrorLogsAreSentWhenFlagIsTrue (IntegrationTester $ I ): void
@@ -56,12 +57,12 @@ public function testErrorLogsAreSentWhenFlagIsTrue(IntegrationTester $I): void
5657 $ this ->setRemoteLogErrorsOnly (true );
5758
5859 $ I ->expectLogsPostRequest ('Test error message ' , 200 );
59- $ I ->expectLogPsostRequest ('Test exception ' , 200 );
60+ $ I ->expectLogsPostRequest ('Test exception ' , 200 );
6061
6162 LiltLogger::error ('Test error message ' );
6263 LiltLogger::logException (new RuntimeException ('Test exception ' ));
6364
64- $ I -> assertCount (2 , $ this ->spyLogger ->calls );
65+ Assert:: assertCount (2 , $ this ->spyLogger ->calls );
6566 }
6667
6768 public function testAllLogsAreSentWhenFlagIsFalse (IntegrationTester $ I ): void
@@ -75,6 +76,6 @@ public function testAllLogsAreSentWhenFlagIsFalse(IntegrationTester $I): void
7576 LiltLogger::info ('Test info message ' );
7677 LiltLogger::logException (new RuntimeException ('Test exception ' ));
7778
78- $ I -> assertCount (2 , $ this ->spyLogger ->calls );
79+ Assert:: assertCount (2 , $ this ->spyLogger ->calls );
7980 }
8081}
0 commit comments