Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Nov 3, 2024
1 parent c06b082 commit 66a113d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function testOutputMessagesFromMessageBagToCli()
$this->assertEquals("Message 1", $outputs[0]);
$this->assertEquals("<gray>Message 2</gray>", $outputs[1]);
$this->assertEquals("<comment>Message 3</comment>", $outputs[2]);
$this->assertEquals("<error>Message 4</error>", $outputs[3]);
$this->assertEquals("<red-text>Message 4</red-text>", $outputs[3]);

// Five messages

Expand All @@ -97,7 +97,7 @@ public function testOutputMessagesFromMessageBagToCli()
$this->assertEquals("Message 1", $outputs[0]);
$this->assertEquals("<gray>Message 2</gray>", $outputs[1]);
$this->assertEquals("<comment>Message 3</comment>", $outputs[2]);
$this->assertEquals("<error>Message 4</error>", $outputs[3]);
$this->assertEquals("<red-text>Message 4</red-text>", $outputs[3]);
$this->assertEquals("<info>Message 5</info>", $outputs[4]);

// Six messages
Expand All @@ -114,11 +114,11 @@ public function testOutputMessagesFromMessageBagToCli()
$this->assertEquals("Message 1", $outputs[0]);
$this->assertEquals("<gray>Message 2</gray>", $outputs[1]);
$this->assertEquals("<comment>Message 3</comment>", $outputs[2]);
$this->assertEquals("<error>Message 4</error>", $outputs[3]);
$this->assertEquals("<red-text>Message 4</red-text>", $outputs[3]);
$this->assertEquals("<info>Message 5</info>", $outputs[4]);
$this->assertStringContainsString("<error>ExceptionMessage 1 in", $outputs[5]);
$this->assertStringContainsString("<red-text>ExceptionMessage 1 in", $outputs[5]);
$this->assertStringContainsString("ConcernConsoleOutputsMessageBagMessagesTest.php", $outputs[5]);
$this->assertStringContainsString("</error>", $outputs[5]);
$this->assertStringContainsString("</red-text", $outputs[5]);

// Clear message bag

Expand Down

0 comments on commit 66a113d

Please sign in to comment.