Skip to content

Commit 353b42e

Browse files
Merge branch '4.4' into 5.1
* 4.4: [HttpFoundation] skip tests when the IANA server is throttling the list of status codes [DoctrineBridge] fix DBAL v3 compat
2 parents 6cca6b2 + 10683b4 commit 353b42e

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
@@ -1026,7 +1026,11 @@ public function ianaCodesReasonPhrasesProvider()
10261026
],
10271027
]);
10281028

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);
10301034
if (!$ianaHttpStatusCodes->relaxNGValidate(__DIR__.'/schema/http-status-codes.rng')) {
10311035
self::fail('Invalid IANA\'s HTTP status code list.');
10321036
}

0 commit comments

Comments
 (0)