Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksucherek committed Dec 5, 2024
1 parent 7af00b3 commit cab0f1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/src/Ouzo/Core/Logger/LoggerAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Psr\Log\AbstractLogger;
use Psr\Log\LoggerInterface;

class LoggerAdapterTest extends TestCase
{
Expand Down Expand Up @@ -160,6 +161,15 @@ public function shouldIgnoreDebugMessageIfDebugIsOff()
Config::clearProperty('debug');
}

#[Test]
public function shouldBeInstanceOfLoggerInterface(): void
{
// given
// when
// then
Assert::that($this->logger)->isInstanceOf(LoggerInterface::class);
}

private function readStreamContent(string $streamFile): string
{
return file_get_contents($streamFile);
Expand Down

0 comments on commit cab0f1c

Please sign in to comment.