let DEV_2 be trunk
[m6w6/ext-http] / tests / envresponsecodes.phpt
diff --git a/tests/envresponsecodes.phpt b/tests/envresponsecodes.phpt
new file mode 100644 (file)
index 0000000..ec6ea21
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+env response codes
+--SKIPIF--
+<?php include "skipif.inc"; ?>
+--FILE--
+<?php
+echo "Test\n";
+
+var_dump(
+       array_diff_assoc(
+               http\Env::getResponseStatusForAllCodes(),
+               array_filter(
+                       array_map(
+                               array("http\\Env", "getResponseStatusForCode"),
+                               range(0, 600)
+                       )
+               )
+       )
+);
+?>
+Done
+--EXPECT--
+Test
+array(0) {
+}
+Done