Skip to content

Commit

Permalink
test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yapro committed Jul 22, 2024
1 parent 5a6a3e1 commit 24ab247
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Unit/WhiteBox/Handler/JsonToStdErrHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Closure;
use Generator;
use Monolog\Logger;
use PHPUnit\Framework\TestCase;
use stdClass;
use Symfony\Component\VarDumper\Dumper\CliDumper;
Expand Down Expand Up @@ -79,7 +80,7 @@ public function testWrite(): void
->setMethodsExcept(['write'])
->getMock();
$mock->expects($this->exactly(1))->method('writeToStdErr');
$record = ['any'];
$record = ['any', 'level' => Logger::INFO];
$mock->write($record);
$mock->write($record);

Expand All @@ -90,7 +91,7 @@ public function testWrite(): void
->getMock();
$mock->expects($this->exactly(2))->method('writeToStdErr');
$mock->method('getMessage')->willReturn('{"first":"message"}', '{"first":"message"}','{"second":"message"}');
$record = ['any'];
$record = ['any', 'level' => Logger::INFO];
$mock->write($record);
$mock->write($record);
$mock->write($record);
Expand Down

0 comments on commit 24ab247

Please sign in to comment.