mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-03 19:57:41 +02:00
Upgrade PHPUnit to v8
This commit is contained in:
@@ -33,7 +33,7 @@ class ElasticsearchHandlerTest extends TestCase
|
||||
'type' => 'doc_type',
|
||||
];
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
// Elasticsearch lib required
|
||||
if (!class_exists('Elasticsearch\Client')) {
|
||||
@@ -109,11 +109,12 @@ class ElasticsearchHandlerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers Monolog\Handler\ElasticsearchHandler::setFormatter
|
||||
* @expectedException InvalidArgumentException
|
||||
* @expectedExceptionMessage ElasticsearchHandler is only compatible with ElasticsearchFormatter
|
||||
*/
|
||||
public function testSetFormatterInvalid()
|
||||
{
|
||||
$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