X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient009.phpt;h=0eb08f73a96f0c2e779a677854da3c3788713522;hb=b6eeba772d69a317ee541c95c43bd0459444fec8;hp=e1553d65449240ec83a1d70875b4023c4881af5c;hpb=ecc1f256af2a1b93adf6da6b013900da586a0ac1;p=m6w6%2Fext-http diff --git a/tests/client009.phpt b/tests/client009.phpt index e1553d6..0eb08f7 100644 --- a/tests/client009.phpt +++ b/tests/client009.phpt @@ -3,34 +3,49 @@ client static cookies --SKIPIF-- --FILE-- setCookies(array("test" => "bar")); $client->addCookies(array("foo" => "test")); + + $request = new http\Client\Request("GET", "http://localhost:$port"); $client->enqueue($request); $client->send(); - var_dump($client->getResponse()->getBody()->toString()); + echo $client->getResponse()->getBody()->toString(); + $request->setOptions(array("cookies" => x($client->getCookies()))); $client->requeue($request); $client->send(); - var_dump($client->getResponse()->getBody()->toString()); -} + echo $client->getResponse()->getBody()->toString(); +}); ?> Done ---EXPECTREGEX-- +--EXPECT-- Test -(?:string\(46\) "Array\n\(\n \[test\] \=\> bar\n \[foo\] \=\> test\n\)\n"\nstring\(46\) "Array\n\(\n \[test\] \=\> test\n \[foo\] \=\> bar\n\)\n"\n)+Done +Array +( + [test] => bar + [foo] => test +) +Array +( + [test] => test + [foo] => bar +) +Done