summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/Tests/ResponseTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-foundation/Tests/ResponseTest.php')
-rw-r--r--vendor/symfony/http-foundation/Tests/ResponseTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/symfony/http-foundation/Tests/ResponseTest.php b/vendor/symfony/http-foundation/Tests/ResponseTest.php
index adfae08b9e..7856a77c03 100644
--- a/vendor/symfony/http-foundation/Tests/ResponseTest.php
+++ b/vendor/symfony/http-foundation/Tests/ResponseTest.php
@@ -1004,14 +1004,15 @@ class ResponseTest extends ResponseTestCase
$ianaHttpStatusCodes = new \DOMDocument();
- libxml_set_streams_context(stream_context_create([
+ $context = stream_context_create([
'http' => [
'method' => 'GET',
'timeout' => 30,
+ 'user_agent' => __METHOD__,
],
- ]));
+ ]);
- $ianaHttpStatusCodes->load('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml');
+ $ianaHttpStatusCodes->loadXML(file_get_contents('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml', false, $context));
if (!$ianaHttpStatusCodes->relaxNGValidate(__DIR__.'/schema/http-status-codes.rng')) {
self::fail('Invalid IANA\'s HTTP status code list.');
}