Skip to content

Commit fa4a173

Browse files
committed
Fix 5.3 syntax
1 parent c50950d commit fa4a173

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/Monolog/Formatter/NormalizerFormatterTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,24 @@ public function testFormatSoapFaultException()
112112
), $formatted);
113113

114114
$formatter = new NormalizerFormatter('Y-m-d');
115-
$e = new \SoapFault('foo', 'bar', 'hello', (object) ['bar' => (object) ['biz' => 'baz'], 'foo' => 'world']);
116-
$formatted = $formatter->format([
115+
$e = new \SoapFault('foo', 'bar', 'hello', (object) array('bar' => (object) array('biz' => 'baz'), 'foo' => 'world'));
116+
$formatted = $formatter->format(array(
117117
'exception' => $e,
118-
]);
118+
));
119119

120120
unset($formatted['exception']['trace']);
121121

122-
$this->assertEquals([
123-
'exception' => [
122+
$this->assertEquals(array(
123+
'exception' => array(
124124
'class' => 'SoapFault',
125125
'message' => 'bar',
126126
'code' => 0,
127127
'file' => $e->getFile().':'.$e->getLine(),
128128
'faultcode' => 'foo',
129129
'faultactor' => 'hello',
130130
'detail' => '{"bar":{"biz":"baz"},"foo":"world"}',
131-
],
132-
], $formatted);
131+
),
132+
), $formatted);
133133
}
134134

135135
public function testFormatToStringExceptionHandle()

0 commit comments

Comments
 (0)