mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-02 19:27:37 +02:00
Fix 5.3 syntax
This commit is contained in:
@@ -112,15 +112,15 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
), $formatted);
|
), $formatted);
|
||||||
|
|
||||||
$formatter = new NormalizerFormatter('Y-m-d');
|
$formatter = new NormalizerFormatter('Y-m-d');
|
||||||
$e = new \SoapFault('foo', 'bar', 'hello', (object) ['bar' => (object) ['biz' => 'baz'], 'foo' => 'world']);
|
$e = new \SoapFault('foo', 'bar', 'hello', (object) array('bar' => (object) array('biz' => 'baz'), 'foo' => 'world'));
|
||||||
$formatted = $formatter->format([
|
$formatted = $formatter->format(array(
|
||||||
'exception' => $e,
|
'exception' => $e,
|
||||||
]);
|
));
|
||||||
|
|
||||||
unset($formatted['exception']['trace']);
|
unset($formatted['exception']['trace']);
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertEquals(array(
|
||||||
'exception' => [
|
'exception' => array(
|
||||||
'class' => 'SoapFault',
|
'class' => 'SoapFault',
|
||||||
'message' => 'bar',
|
'message' => 'bar',
|
||||||
'code' => 0,
|
'code' => 0,
|
||||||
@@ -128,8 +128,8 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
'faultcode' => 'foo',
|
'faultcode' => 'foo',
|
||||||
'faultactor' => 'hello',
|
'faultactor' => 'hello',
|
||||||
'detail' => '{"bar":{"biz":"baz"},"foo":"world"}',
|
'detail' => '{"bar":{"biz":"baz"},"foo":"world"}',
|
||||||
],
|
),
|
||||||
], $formatted);
|
), $formatted);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFormatToStringExceptionHandle()
|
public function testFormatToStringExceptionHandle()
|
||||||
|
Reference in New Issue
Block a user