mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Upgrade PHPUnit to v8
This commit is contained in:
@@ -21,18 +21,17 @@ class NewRelicHandlerTest extends TestCase
|
||||
public static $customParameters;
|
||||
public static $transactionName;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::$appname = null;
|
||||
self::$customParameters = [];
|
||||
self::$transactionName = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Monolog\Handler\MissingExtensionException
|
||||
*/
|
||||
public function testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
|
||||
{
|
||||
$this->expectException(MissingExtensionException::class);
|
||||
|
||||
$handler = new StubNewRelicHandlerWithoutExtension();
|
||||
$handler->handle($this->getRecord(Logger::ERROR));
|
||||
}
|
||||
|
Reference in New Issue
Block a user