+
+ function testParams() {
+ $header = new http\Header("Cache-control", "public, must-revalidate, max-age=0");
+ $this->assertEquals(
+ array(
+ "public" => array("value" => true, "arguments" => array()),
+ "must-revalidate" => array("value" => true, "arguments" => array()),
+ "max-age" => array("value" => 0, "arguments" => array()),
+ ),
+ $header->getParams()->params
+ );
+ }
+
+ function testParamsWithArgs() {
+ $header = new http\Header("Custom", '"foo" is "bar". "bar" is "bis" where "bis" is "where".');
+ $this->assertEquals(
+ array(
+ "foo" => array("value" => "bar", "arguments" => array()),
+ "bar" => array("value" => "bis", "arguments" => array("bis" => "where"))
+ ),
+ $header->getParams(".", "where", "is")->params
+ );
+ }