We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2264e38 commit 946db27Copy full SHA for 946db27
Tests/ResponseTest.php
@@ -955,7 +955,11 @@ public function ianaCodesReasonPhrasesProvider()
955
],
956
]);
957
958
- $ianaHttpStatusCodes->loadXML(file_get_contents('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml', false, $context));
+ 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);
963
if (!$ianaHttpStatusCodes->relaxNGValidate(__DIR__.'/schema/http-status-codes.rng')) {
964
self::fail('Invalid IANA\'s HTTP status code list.');
965
}
0 commit comments