X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fenvrequestcookie001.phpt;fp=tests%2Fenvrequestcookie001.phpt;h=00ac9dfc771eb09d1c482d1165c961e029b0515b;hp=0000000000000000000000000000000000000000;hb=cc26dfb22b469d8cf70c2f6103a064250a71944e;hpb=c67228639ce71c21859f73bf72fad67354281adb diff --git a/tests/envrequestcookie001.phpt b/tests/envrequestcookie001.phpt new file mode 100644 index 0000000..00ac9df --- /dev/null +++ b/tests/envrequestcookie001.phpt @@ -0,0 +1,32 @@ +--TEST-- +env request cookie +--SKIPIF-- + +--COOKIE-- +foo=bar;bar=123 +--FILE-- +getCookie()->toArray()); +var_dump($r->getCookie("foo", "s")); +var_dump($r->getCookie("bar", "i")); +var_dump($r->getCookie("baz", "b", true)); + +?> +DONE +--EXPECT-- +Test +array(2) { + ["foo"]=> + string(3) "bar" + ["bar"]=> + string(3) "123" +} +string(3) "bar" +int(123) +bool(true) +DONE