diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php
index 165e1fcf5f..8043ee45c1 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php
@@ -906,7 +906,7 @@ class ResponseTest extends ResponseTestCase
)));
$ianaHttpStatusCodes->load('https://www.iana.org/assignments/http-status-codes/http-status-codes.xml');
- if (!$ianaHttpStatusCodes->relaxNGValidate('https://www.iana.org/assignments/http-status-codes/http-status-codes.rng')) {
+ if (!$ianaHttpStatusCodes->relaxNGValidate(__DIR__.'/schema/http-status-codes.rng')) {
self::fail('Invalid IANA\'s HTTP status code list.');
}
diff --git a/src/Symfony/Component/HttpFoundation/Tests/schema/http-status-codes.rng b/src/Symfony/Component/HttpFoundation/Tests/schema/http-status-codes.rng
new file mode 100644
index 0000000000..73708ca680
--- /dev/null
+++ b/src/Symfony/Component/HttpFoundation/Tests/schema/http-status-codes.rng
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Symfony/Component/HttpFoundation/Tests/schema/iana-registry.rng b/src/Symfony/Component/HttpFoundation/Tests/schema/iana-registry.rng
new file mode 100644
index 0000000000..b9c3ca9d94
--- /dev/null
+++ b/src/Symfony/Component/HttpFoundation/Tests/schema/iana-registry.rng
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ uri
+
+
+
+ rfc
+
+
+ (rfc|bcp|std)\d+
+
+
+
+
+ rfc-errata
+
+
+
+ draft
+
+
+ (draft|RFC)(-[a-zA-Z0-9]+)+
+
+
+
+
+ registry
+
+
+
+ person
+
+
+
+ text
+
+
+ note
+
+
+
+ unicode
+
+
+ ucd\d+\.\d+\.\d+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (\d+|0x[\da-fA-F]+)(\s*-\s*(\d+|0x[\da-fA-F]+))?
+
+
+
+
+
+
+
+
+
+
+
+
+ 0x[0-9]{8}
+
+
+
+
+
+ [0-1]+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ legacy
+ mib
+ template
+ json
+
+
+
+
+
+
+
+
+
+