Skip to content

Commit bc04b7a

Browse files
committed
use proper methods to assert exception messages contain certain strings
1 parent 0b4af14 commit bc04b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Style/SymfonyStyleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testCreateTableWithoutConsoleOutput()
151151
$style = new SymfonyStyle($input, $output);
152152

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

156156
$style->createTable()->appendRow(['row']);
157157
}

0 commit comments

Comments
 (0)