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 @@ -1026,7 +1026,11 @@ public function ianaCodesReasonPhrasesProvider()
1026
1026
],
1027
1027
]);
1028
1028
1029
- $ ianaHttpStatusCodes ->loadXML (file_get_contents ('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml ' , false , $ context ));
1029
+ if (!$ rawStatusCodes = file_get_contents ('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml ' , false , $ context )) {
1030
+ $ this ->markTestSkipped ('The IANA server is throttling the list of status codes ' );
1031
+ }
1032
+
1033
+ $ ianaHttpStatusCodes ->loadXML ($ rawStatusCodes );
1030
1034
if (!$ ianaHttpStatusCodes ->relaxNGValidate (__DIR__ .'/schema/http-status-codes.rng ' )) {
1031
1035
self ::fail ('Invalid IANA \'s HTTP status code list. ' );
1032
1036
}
You can’t perform that action at this time.
0 commit comments