1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 10:06:08 +02:00

Replace deprecated setExpectedException methods with expectException

This commit is contained in:
Chris Forrence
2017-03-21 10:14:16 -04:00
parent 59355d5ce3
commit 85250d3c72
4 changed files with 6 additions and 6 deletions

View File

@@ -134,7 +134,7 @@ class ElasticSearchHandlerTest extends TestCase
$handler = new ElasticSearchHandler($client, $handlerOpts);
if ($expectedError) {
$this->setExpectedException($expectedError[0], $expectedError[1]);
$this->expectException($expectedError[0], $expectedError[1]);
$handler->handle($this->getRecord());
} else {
$this->assertFalse($handler->handle($this->getRecord()));