File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1023,7 +1023,11 @@ public function ianaCodesReasonPhrasesProvider()
10231023 ],
10241024 ]);
10251025
1026- $ ianaHttpStatusCodes ->loadXML (file_get_contents ('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml ' , false , $ context ));
1026+ if (!$ rawStatusCodes = file_get_contents ('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml ' , false , $ context )) {
1027+ $ this ->markTestSkipped ('The IANA server is throttling the list of status codes ' );
1028+ }
1029+
1030+ $ ianaHttpStatusCodes ->loadXML ($ rawStatusCodes );
10271031 if (!$ ianaHttpStatusCodes ->relaxNGValidate (__DIR__ .'/schema/http-status-codes.rng ' )) {
10281032 self ::fail ('Invalid IANA \'s HTTP status code list. ' );
10291033 }
You can’t perform that action at this time.
0 commit comments