coverity fix
[m6w6/ext-http] / tests / envrequestcookie001.phpt
1 --TEST--
2 env request cookie
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --COOKIE--
8 foo=bar;bar=123
9 --FILE--
10 <?php
11 echo "Test\n";
12
13 $r = new http\Env\Request;
14 var_dump($r->getCookie()->toArray());
15 var_dump($r->getCookie("foo", "s"));
16 var_dump($r->getCookie("bar", "i"));
17 var_dump($r->getCookie("baz", "b", true));
18
19 ?>
20 DONE
21 --EXPECT--
22 Test
23 array(2) {
24 ["foo"]=>
25 string(3) "bar"
26 ["bar"]=>
27 string(3) "123"
28 }
29 string(3) "bar"
30 int(123)
31 bool(true)
32 DONE