<file role="test" name="message_rr_helloworld_chunked.txt"/>
<file role="test" name="urls.txt"/>
</dir>
- <file role="test" name="bug61444.phpt"/>
- <file role="test" name="envrequestbody001.phpt"/>
- <file role="test" name="envrequestbody002.phpt"/>
- <file role="test" name="envrequestbody003.phpt"/>
- <file role="test" name="envrequestfiles001.phpt"/>
- <file role="test" name="envrequestfiles002.phpt"/>
- <file role="test" name="envrequestform.phpt"/>
- <file role="test" name="envrequestheader001.phpt"/>
- <file role="test" name="envrequestquery.phpt"/>
- <file role="test" name="envresponsecodes.phpt"/>
- <file role="test" name="envresponseheader001.phpt"/>
- <file role="test" name="envresponseranges001.phpt"/>
- <file role="test" name="etag001.phpt"/>
- <file role="test" name="filterchunked.phpt"/>
- <file role="test" name="filterzlib.phpt"/>
- <file role="test" name="info.phpt"/>
- <file role="test" name="info_001.phpt"/>
- <file role="test" name="message001.phpt"/>
- <file role="test" name="message002.phpt"/>
- <file role="test" name="message003.phpt"/>
- <file role="test" name="message004.phpt"/>
- <file role="test" name="message005.phpt"/>
- <file role="test" name="message006.phpt"/>
- <file role="test" name="negotiate001.phpt"/>
- <file role="test" name="params001.phpt"/>
- <file role="test" name="params002.phpt"/>
- <file role="test" name="phpunit.phpt"/>
- <file role="test" name="propertyproxy001.phpt"/>
- <file role="test" name="querystring_001.phpt"/>
- <file role="test" name="response001.phpt"/>
- <file role="test" name="response002.phpt"/>
- <file role="test" name="response003.phpt"/>
- <file role="test" name="response004.phpt"/>
- <file role="test" name="response005.phpt"/>
- <file role="test" name="serialize001.phpt"/>
- <file role="test" name="url001.phpt"/>
+ <file role="test" name="bug61444.phpt"/>
+ <file role="test" name="client001.phpt"/>
+ <file role="test" name="client002.phpt"/>
+ <file role="test" name="client003.phpt"/>
+ <file role="test" name="client004.phpt"/>
+ <file role="test" name="client005.phpt"/>
+ <file role="test" name="client006.phpt"/>
+ <file role="test" name="client007.phpt"/>
+ <file role="test" name="client008.phpt"/>
+ <file role="test" name="client009.phpt"/>
+ <file role="test" name="client010.phpt"/>
+ <file role="test" name="clientrequest001.phpt"/>
+ <file role="test" name="clientrequest002.phpt"/>
+ <file role="test" name="clientrequest003.phpt"/>
+ <file role="test" name="clientrequest004.phpt"/>
+ <file role="test" name="clientresponse001.phpt"/>
+ <file role="test" name="clientresponse002.phpt"/>
+ <file role="test" name="clientresponse003.phpt"/>
+ <file role="test" name="envrequestbody001.phpt"/>
+ <file role="test" name="envrequestbody002.phpt"/>
+ <file role="test" name="envrequestbody003.phpt"/>
+ <file role="test" name="envrequestfiles001.phpt"/>
+ <file role="test" name="envrequestfiles002.phpt"/>
+ <file role="test" name="envrequestform.phpt"/>
+ <file role="test" name="envrequestheader001.phpt"/>
+ <file role="test" name="envrequestjson001.phpt"/>
+ <file role="test" name="envrequestjson002.phpt"/>
+ <file role="test" name="envrequestquery.phpt"/>
+ <file role="test" name="envresponsebody001.phpt"/>
+ <file role="test" name="envresponsebody002.phpt"/>
+ <file role="test" name="envresponsecodes.phpt"/>
+ <file role="test" name="envresponseheader001.phpt"/>
+ <file role="test" name="envresponseranges001.phpt"/>
+ <file role="test" name="etag001.phpt"/>
+ <file role="test" name="filterchunked.phpt"/>
+ <file role="test" name="filterzlib.phpt"/>
+ <file role="test" name="info_001.phpt"/>
+ <file role="test" name="info.phpt"/>
+ <file role="test" name="message001.phpt"/>
+ <file role="test" name="message002.phpt"/>
+ <file role="test" name="message003.phpt"/>
+ <file role="test" name="message004.phpt"/>
+ <file role="test" name="message005.phpt"/>
+ <file role="test" name="message006.phpt"/>
+ <file role="test" name="negotiate001.phpt"/>
+ <file role="test" name="params001.phpt"/>
+ <file role="test" name="params002.phpt"/>
+ <file role="test" name="phpunit.phpt"/>
+ <file role="test" name="propertyproxy001.phpt"/>
+ <file role="test" name="querystring_001.phpt"/>
+ <file role="test" name="response001.phpt"/>
+ <file role="test" name="response002.phpt"/>
+ <file role="test" name="response003.phpt"/>
+ <file role="test" name="response004.phpt"/>
+ <file role="test" name="response005.phpt"/>
+ <file role="test" name="response006.phpt"/>
+ <file role="test" name="response007.phpt"/>
+ <file role="test" name="response008.phpt"/>
+ <file role="test" name="response009.phpt"/>
+ <file role="test" name="response010.phpt"/>
+ <file role="test" name="response011.phpt"/>
+ <file role="test" name="response012.phpt"/>
+ <file role="test" name="response013.phpt"/>
+ <file role="test" name="response014.phpt"/>
+ <file role="test" name="serialize001.phpt"/>
+ <file role="test" name="url001.phpt"/>
+ <file role="test" name="version001.phpt"/>
</dir>
<dir name="phpunit">
- <file role="test" name="ClientRequestTest.php"/>
<file role="test" name="ClientTest.php"/>
<file role="test" name="CookieTest.php"/>
<file role="test" name="EncodingTest.php"/>
+++ /dev/null
-<?php
-
-use http\Client\Request;
-use http\Message\Body;
-
-class ClientRequestTest extends PHPUnit_Framework_TestCase
-{
- function testStandard() {
- $r = new Request($m = "POST", $u = "http://localhost/foo", $h = array("header", "value"),
- $b = new Body(fopen(__FILE__, "r+b"))
- );
-
- $this->assertEquals($b, $r->getBody());
- $this->assertEquals($h, $r->getHeaders());
- $this->assertEquals($u, $r->getRequestUrl());
- $this->assertEquals($m, $r->getRequestMethod());
- }
-
- function testContentType() {
- $r = new Request("POST", "http://localhost/");
- $this->assertEquals($r, $r->setContentType($ct = "text/plain; charset=utf-8"));
- $this->assertEquals($ct, $r->getContentType());
- }
-
- function testQuery() {
- $r = new Request("GET", "http://localhost/");
- $this->assertEquals(null, $r->getQuery());
- $this->assertEquals($r, $r->setQuery($q = "foo=bar"));
- $this->assertEquals($q, $r->getQuery());
- $this->assertEquals($r, $r->addQuery("a[]=1&a[]=2"));
- $this->assertEquals("foo=bar&a%5B0%5D=1&a%5B1%5D=2", $r->getQuery());
- $this->assertEquals(null, $r->setQuery(null)->getQuery());
- }
-
- function testOptions() {
- $r = new Request("GET", "http://localhost");
- $this->assertEquals($r, $r->setOptions($o = array("redirect"=>5, "timeout"=>5)));
- $this->assertEquals($o, $r->getOptions());
- $this->assertEquals($r, $r->setSslOptions($o = array("verify_peer"=>false)));
- $this->assertEquals($o, $r->getSslOptions());
- }
-}
-