X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fcookie008.phpt;fp=tests%2Fcookie008.phpt;h=5ec43dc04bc49fbc3d0b19fd1c9c3cd2265eb14f;hp=0000000000000000000000000000000000000000;hb=4850e3ba188215f9d0cda9e7c0e7e011b340b7c7;hpb=1cf96ccdd9eec5efd69ea474636bcb9f7ab89bb8 diff --git a/tests/cookie008.phpt b/tests/cookie008.phpt new file mode 100644 index 0000000..5ec43dc --- /dev/null +++ b/tests/cookie008.phpt @@ -0,0 +1,37 @@ +--TEST-- +cookies path +--SKIPIF-- + +--FILE-- +getCookie("this")); +var_dump((string)$c); +var_dump($c->getPath()); +$o = clone $c; +$p = "/up"; +$o->setPath(); +var_dump($o->getPath()); +var_dump($c->getPath()); +$o->setPath($p); +var_dump($o->getPath()); +var_dump($c->getPath()); +var_dump($o->toString()); + +?> +DONE +--EXPECT-- +Test +string(10) "has a path" +string(33) "this=has%20a%20path; path=/down; " +string(5) "/down" +NULL +string(5) "/down" +string(3) "/up" +string(5) "/down" +string(31) "this=has%20a%20path; path=/up; " +DONE