config.w32: fix missing icule.lib and iculx.lib
[m6w6/ext-http] / tests / clientresponse001.phpt
1 --TEST--
2 client response cookie
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 skip_client_test();
7 ?>
8 --FILE--
9 <?php
10
11 include "helper/server.inc";
12
13 echo "Test\n";
14
15 server("cookie1.inc", function($port) {
16 $request = new http\Client\Request("GET", "http://localhost:$port");
17
18 foreach (http\Client::getAvailableDrivers() as $driver) {
19 $client = new http\Client($driver);
20 foreach($client->enqueue($request)->send()->getResponse()->getCookies(0, array("comment")) as $cookies) {
21 var_dump($cookies->toArray());
22 }
23 }
24 });
25 ?>
26 Done
27 --EXPECTREGEX--
28 Test
29 (?:array\(7\) \{\n \["cookies"\]\=\>\n array\(2\) \{\n \["foo"\]\=\>\n string\(3\) "bar"\n \["bar"\]\=\>\n string\(3\) "foo"\n \}\n \["extras"\]\=\>\n array\(0\) \{\n \}\n \["flags"\]\=\>\n int\(0\)\n \["expires"\]\=\>\n int\(\-1\)\n \["max\-age"\]\=\>\n int\(\-1\)\n \["path"\]\=\>\n string\(0\) ""\n \["domain"\]\=\>\n string\(0\) ""\n\}\n)+Done