let DEV_2 be trunk
[m6w6/ext-http] / tests / header008.phpt
diff --git a/tests/header008.phpt b/tests/header008.phpt
new file mode 100644 (file)
index 0000000..089e2ea
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+header params
+--SKIPIF--
+<?php 
+include "skipif.inc";
+?>
+--FILE--
+<?php
+
+echo "Test\n";
+
+$header = new http\Header("Cache-control", "public, must-revalidate, max-age=0");
+var_dump(
+       array(
+               "public" => array("value" => true, "arguments" => array()),
+               "must-revalidate" => array("value" => true, "arguments" => array()),
+               "max-age" => array("value" => "0", "arguments" => array()),
+       ) === $header->getParams()->params
+);
+
+?>
+Done
+--EXPECT--
+Test
+bool(true)
+Done