mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-11 15:44:34 +02:00
Move expectException before the line where exception is thrown
This commit is contained in:
@@ -30,9 +30,10 @@ class NewRelicHandlerTest extends TestCase
|
||||
|
||||
public function testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
|
||||
{
|
||||
$handler = new StubNewRelicHandlerWithoutExtension();
|
||||
|
||||
$this->expectException(MissingExtensionException::class);
|
||||
|
||||
$handler = new StubNewRelicHandlerWithoutExtension();
|
||||
$handler->handle($this->getRecord(Logger::ERROR));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user