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

Fix 5.3 syntax

This commit is contained in:
Jordi Boggiano
2020-05-21 16:56:55 +02:00
parent c50950d79e
commit fa4a173f69

View File

@@ -112,15 +112,15 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
), $formatted);
$formatter = new NormalizerFormatter('Y-m-d');
$e = new \SoapFault('foo', 'bar', 'hello', (object) ['bar' => (object) ['biz' => 'baz'], 'foo' => 'world']);
$formatted = $formatter->format([
$e = new \SoapFault('foo', 'bar', 'hello', (object) array('bar' => (object) array('biz' => 'baz'), 'foo' => 'world'));
$formatted = $formatter->format(array(
'exception' => $e,
]);
));
unset($formatted['exception']['trace']);
$this->assertEquals([
'exception' => [
$this->assertEquals(array(
'exception' => array(
'class' => 'SoapFault',
'message' => 'bar',
'code' => 0,
@@ -128,8 +128,8 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
'faultcode' => 'foo',
'faultactor' => 'hello',
'detail' => '{"bar":{"biz":"baz"},"foo":"world"}',
],
], $formatted);
),
), $formatted);
}
public function testFormatToStringExceptionHandle()