@@ -85,6 +85,7 @@ public function graphQLEndpointUriProvider()
8585 public function testEndpointWithEmptyQuery ()
8686 {
8787 $ client = static ::createClient ();
88+ $ this ->disableCatchExceptions ($ client );
8889 $ client ->request ('GET ' , '/ ' , []);
8990 $ client ->getResponse ()->getContent ();
9091 }
@@ -96,6 +97,7 @@ public function testEndpointWithEmptyQuery()
9697 public function testEndpointWithEmptyJsonBodyQuery ()
9798 {
9899 $ client = static ::createClient ();
100+ $ this ->disableCatchExceptions ($ client );
99101 $ client ->request ('GET ' , '/ ' , [], [], ['CONTENT_TYPE ' => 'application/json ' ]);
100102 $ client ->getResponse ()->getContent ();
101103 }
@@ -107,6 +109,7 @@ public function testEndpointWithEmptyJsonBodyQuery()
107109 public function testEndpointWithInvalidBodyQuery ()
108110 {
109111 $ client = static ::createClient ();
112+ $ this ->disableCatchExceptions ($ client );
110113 $ client ->request ('GET ' , '/ ' , [], [], ['CONTENT_TYPE ' => 'application/json ' ], '{ ' );
111114 $ client ->getResponse ()->getContent ();
112115 }
@@ -143,6 +146,7 @@ public function testEndpointActionWithVariables()
143146 public function testEndpointActionWithInvalidVariables ()
144147 {
145148 $ client = static ::createClient (['test_case ' => 'connection ' ]);
149+ $ this ->disableCatchExceptions ($ client );
146150
147151 $ query = <<<'EOF'
148152query {
@@ -160,6 +164,7 @@ public function testEndpointActionWithInvalidVariables()
160164 public function testMultipleEndpointActionWithUnknownSchemaName ()
161165 {
162166 $ client = static ::createClient (['test_case ' => 'connection ' ]);
167+ $ this ->disableCatchExceptions ($ client );
163168
164169 $ query = <<<'EOF'
165170query {
@@ -225,6 +230,7 @@ public function graphQLBatchEndpointUriProvider()
225230 public function testBatchEndpointWithEmptyQuery ()
226231 {
227232 $ client = static ::createClient ();
233+ $ this ->disableCatchExceptions ($ client );
228234 $ client ->request ('GET ' , '/batch ' , [], [], ['CONTENT_TYPE ' => 'application/json ' ], '{} ' );
229235 $ client ->getResponse ()->getContent ();
230236 }
@@ -236,6 +242,7 @@ public function testBatchEndpointWithEmptyQuery()
236242 public function testBatchEndpointWrongContentType ()
237243 {
238244 $ client = static ::createClient ();
245+ $ this ->disableCatchExceptions ($ client );
239246 $ client ->request ('GET ' , '/batch ' );
240247 $ client ->getResponse ()->getContent ();
241248 }
@@ -247,6 +254,7 @@ public function testBatchEndpointWrongContentType()
247254 public function testBatchEndpointWithInvalidJson ()
248255 {
249256 $ client = static ::createClient ();
257+ $ this ->disableCatchExceptions ($ client );
250258 $ client ->request ('GET ' , '/batch ' , [], [], ['CONTENT_TYPE ' => 'application/json ' ], '{ ' );
251259 $ client ->getResponse ()->getContent ();
252260 }
@@ -258,6 +266,7 @@ public function testBatchEndpointWithInvalidJson()
258266 public function testBatchEndpointWithInvalidQuery ()
259267 {
260268 $ client = static ::createClient ();
269+ $ this ->disableCatchExceptions ($ client );
261270 $ client ->request ('GET ' , '/batch ' , [], [], ['CONTENT_TYPE ' => 'application/json ' ], '{"test" : {"query": 1}} ' );
262271 $ client ->getResponse ()->getContent ();
263272 }
0 commit comments