File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
tests/Functional/App/Serialization Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ $jsonRpcSerializer = new JsonRpcCallSerializer(
120
120
),
121
121
new JsonRpcCallResponseNormalizer(
122
122
new JsonRpcResponseNormalizer()
123
- // or `new JsonRpcResponseNormalizer(new JsonRpcResponseErrorNormalizer())` for debug purpose
123
+ // Or `new JsonRpcResponseNormalizer(new JsonRpcResponseErrorNormalizer())` for debug purpose
124
+ // To also dump arguments, be sure 'zend.exception_ignore_args' ini option is not at true/1
124
125
)
125
126
);
126
127
$responseCreator = new ResponseCreator();
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ public function testShouldNotDisplayTraceOnZeroSize()
99
99
*/
100
100
public function testShouldShowTraceArguments ()
101
101
{
102
+ ini_set ('zend.exception_ignore_args ' , 0 ); // Be sure arguments will be available on the stack trace
102
103
$ exception = $ this ->prepareException ();
103
104
104
105
$ normalizer = new JsonRpcResponseErrorNormalizer (99 , true );
@@ -120,6 +121,7 @@ public function testShouldShowTraceArguments()
120
121
*/
121
122
public function testShouldHideTraceArguments ()
122
123
{
124
+ ini_set ('zend.exception_ignore_args ' , 0 ); // Be sure arguments will be available on the stack trace
123
125
$ exception = $ this ->prepareException ();
124
126
125
127
$ normalizer = new JsonRpcResponseErrorNormalizer (99 , false );
You can’t perform that action at this time.
0 commit comments