Skip to content

Commit

Permalink
Update Terminal logger test:
Browse files Browse the repository at this point in the history
- fix PHPStan warnings
  • Loading branch information
webeweb committed Mar 10, 2024
1 parent 63d9ec8 commit b4c46c8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions tests/logger/TerminalLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function testAlert(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->alert("alert"));
$obj->alert("alert");
$this->assertNull(null);
}

/**
Expand All @@ -42,7 +43,8 @@ public function testCritical(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->critical("critical"));
$obj->critical("critical");
$this->assertNull(null);
}

/**
Expand All @@ -54,7 +56,8 @@ public function testDebug(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->debug("debug"));
$obj->debug("debug");
$this->assertNull(null);
}

/**
Expand All @@ -66,7 +69,8 @@ public function testEmergency(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->emergency("emergency"));
$obj->emergency("emergency");
$this->assertNull(null);
}

/**
Expand All @@ -78,7 +82,8 @@ public function testError(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->error("error"));
$obj->error("error");
$this->assertNull(null);
}

/**
Expand All @@ -90,7 +95,8 @@ public function testInfo(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->info("info"));
$obj->info("info");
$this->assertNull(null);
}

/**
Expand All @@ -102,7 +108,8 @@ public function testNotice(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->notice("notice"));
$obj->notice("notice");
$this->assertNull(null);
}

/**
Expand All @@ -114,6 +121,7 @@ public function testWarning(): void {

$obj = new TerminalLogger();

$this->assertNull($obj->warning("warning"));
$obj->warning("warning");
$this->assertNull(null);
}
}

0 comments on commit b4c46c8

Please sign in to comment.