mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 22:26:41 +02:00
Move expectException before the line where exception is thrown
This commit is contained in:
@@ -86,14 +86,14 @@ class GelfMessageFormatterTest extends TestCase
|
||||
*/
|
||||
public function testFormatInvalidFails()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
|
||||
$formatter = new GelfMessageFormatter();
|
||||
$record = [
|
||||
'level' => Logger::ERROR,
|
||||
'level_name' => 'ERROR',
|
||||
];
|
||||
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
|
||||
$formatter->format($record);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user