let DEV_2 be trunk
[m6w6/ext-http] / tests / header009.phpt
diff --git a/tests/header009.phpt b/tests/header009.phpt
new file mode 100644 (file)
index 0000000..d3ca1de
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+header params w/ args
+--SKIPIF--
+<?php 
+include "skipif.inc";
+?>
+--FILE--
+<?php
+
+echo "Test\n";
+
+$header = new http\Header("Custom", '"foo" is "bar". "bar" is "bis" where "bis" is "where".');
+var_dump(
+               array(
+                               "foo" => array("value" => "bar", "arguments" => array()),
+                               "bar" => array("value" => "bis", "arguments" => array("bis" => "where"))
+               ) === $header->getParams(".", "where", "is")->params
+);
+
+?>
+Done
+--EXPECT--
+Test
+bool(true)
+Done