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()
1023
1023
],
1024
1024
]);
1025
1025
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 );
1027
1031
if (!$ ianaHttpStatusCodes ->relaxNGValidate (__DIR__ .'/schema/http-status-codes.rng ' )) {
1028
1032
self ::fail ('Invalid IANA \'s HTTP status code list. ' );
1029
1033
}
You can’t perform that action at this time.
0 commit comments