Skip to content

Commit 5885558

Browse files
committed
use Assert
1 parent bd67b3b commit 5885558

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/integration/LiltLoggerCest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use lilthq\craftliltplugin\Craftliltplugin;
1111
use lilthq\craftliltplugin\LiltLogger;
1212
use lilthq\craftliltplugintests\integration\AbstractIntegrationCest;
13+
use PHPUnit\Framework\Assert;
1314
use ReflectionClass;
1415
use 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

Comments
 (0)