Skip to content

Commit

Permalink
use proper methods to assert exception messages contain certain strings
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Feb 14, 2023
1 parent 0b4af14 commit bc04b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Style/SymfonyStyleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function testCreateTableWithoutConsoleOutput()
$style = new SymfonyStyle($input, $output);

$this->expectException(RuntimeException::class);
$this->expectDeprecationMessage('Output should be an instance of "Symfony\Component\Console\Output\ConsoleSectionOutput"');
$this->expectExceptionMessage('Output should be an instance of "Symfony\Component\Console\Output\ConsoleSectionOutput"');

$style->createTable()->appendRow(['row']);
}
Expand Down

0 comments on commit bc04b7a

Please sign in to comment.