Skip to content

Commit f5cc760

Browse files
committed
Improve coverage
1 parent a9029df commit f5cc760

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/Functional/App/Serialization/JsonRpcResponseErrorNormalizerTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@ protected function prepareException($exceptionMessage = 'Test exception', $excep
2121
'string' => 'a string',
2222
// Managed argument count being at 5, create a sub bucket
2323
'sub' => [
24-
'a too long string' => str_repeat('a', 100),
24+
'a_too_long_string' => str_repeat('a', 100),
2525
'null' => null,
2626
'resource' => tmpfile(),
27-
'list' => [0, 3, 345],
27+
'sub' => [
28+
'list' => ['foo', 'bar'],
29+
'list_with_holes' => [9 => 'nine', 5 => 'five'],
30+
'mixed_array' => ['foo', 'name' => 'bar']
31+
]
2832
],
33+
'extra_param' => 'will not be normalized!'
2934
];
3035
try {
3136
// create a long stack trace

0 commit comments

Comments
 (0)