fixed config.w32
[m6w6/ext-http] / tests / clientresponse001.phpt
1 --TEST--
2 client response cookie
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $request = new http\Client\Request("GET", "http://dev.iworks.at/ext-http/.cookie1.php");
12
13 foreach (http\Client::getAvailableDrivers() as $driver) {
14 $client = new http\Client($driver);
15 foreach($client->enqueue($request)->send()->getResponse()->getCookies(0, array("comment")) as $cookies) {
16 var_dump($cookies->toArray());
17 }
18 }
19 ?>
20 Done
21 --EXPECTREGEX--
22 Test
23 (?:array\(7\) \{
24 \["cookies"\]\=\>
25 array\(2\) \{
26 \["foo"\]\=\>
27 string\(3\) "bar"
28 \["bar"\]\=\>
29 string\(3\) "foo"
30 \}
31 \["extras"\]\=\>
32 array\(0\) \{
33 \}
34 \["flags"\]\=\>
35 int\(0\)
36 \["expires"\]\=\>
37 int\(\-1\)
38 \["max\-age"\]\=\>
39 int\(\-1\)
40 \["path"\]\=\>
41 string\(0\) ""
42 \["domain"\]\=\>
43 string\(0\) ""
44 \}
45 )+Done