File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Symfony/Component/HttpFoundation/Tests Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -955,7 +955,11 @@ public function ianaCodesReasonPhrasesProvider()
955
955
],
956
956
]);
957
957
958
- $ ianaHttpStatusCodes ->loadXML (file_get_contents ('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml ' , false , $ context ));
958
+ if (!$ rawStatusCodes = file_get_contents ('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml ' , false , $ context )) {
959
+ $ this ->markTestSkipped ('The IANA server is throttling the list of status codes ' );
960
+ }
961
+
962
+ $ ianaHttpStatusCodes ->loadXML ($ rawStatusCodes );
959
963
if (!$ ianaHttpStatusCodes ->relaxNGValidate (__DIR__ .'/schema/http-status-codes.rng ' )) {
960
964
self ::fail ('Invalid IANA \'s HTTP status code list. ' );
961
965
}
You can’t perform that action at this time.
0 commit comments