mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 09:50:26 +02:00
Upgrade PHPUnit to v8
This commit is contained in:
@@ -22,18 +22,19 @@ function error_log()
|
||||
|
||||
class ErrorLogHandlerTest extends TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$GLOBALS['error_log'] = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Monolog\Handler\ErrorLogHandler::__construct
|
||||
* @expectedException InvalidArgumentException
|
||||
* @expectedExceptionMessage The given message type "42" is not supported
|
||||
*/
|
||||
public function testShouldNotAcceptAnInvalidTypeOnConstructor()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('The given message type "42" is not supported');
|
||||
|
||||
new ErrorLogHandler(42);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user