1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 11:51:32 +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

@@ -115,7 +115,7 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
public function testFormatToStringExceptionHandle()
{
$formatter = new NormalizerFormatter('Y-m-d');
$this->setExpectedException('RuntimeException', 'Could not convert to string');
$this->expectException('RuntimeException', 'Could not convert to string');
$formatter->format([
'myObject' => new TestToStringError(),
]);
@@ -313,7 +313,7 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
$reflMethod = new \ReflectionMethod($formatter, 'handleJsonError');
$reflMethod->setAccessible(true);
$this->setExpectedException('RuntimeException', $msg);
$this->expectException('RuntimeException', $msg);
$reflMethod->invoke($formatter, $code, 'faked');
}