Skip to content

Commit 10683b4

Browse files
Merge branch '3.4' into 4.4
* 3.4: [HttpFoundation] skip tests when the IANA server is throttling the list of status codes [DoctrineBridge] fix DBAL v3 compat
2 parents ff509ca + 946db27 commit 10683b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/ResponseTest.php

+5-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)