X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient009.phpt;h=0eb08f73a96f0c2e779a677854da3c3788713522;hb=refs%2Fheads%2Fmaster;hp=9b5579dc71994a80f94a6d1c9ec903c1ad99fc1f;hpb=95c6c900d04096d332c422e3f597186b7184c5ab;p=m6w6%2Fext-http diff --git a/tests/client009.phpt b/tests/client009.phpt index 9b5579d..0eb08f7 100644 --- a/tests/client009.phpt +++ b/tests/client009.phpt @@ -3,35 +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