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