mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-29 11:26:09 +01:00
Move expectException before the line where exception is thrown
This commit is contained in:
@@ -112,11 +112,12 @@ class ElasticsearchHandlerTest extends TestCase
|
||||
*/
|
||||
public function testSetFormatterInvalid()
|
||||
{
|
||||
$handler = new ElasticsearchHandler($this->client);
|
||||
$formatter = new NormalizerFormatter();
|
||||
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('ElasticsearchHandler is only compatible with ElasticsearchFormatter');
|
||||
|
||||
$handler = new ElasticsearchHandler($this->client);
|
||||
$formatter = new NormalizerFormatter();
|
||||
$handler->setFormatter($formatter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user