@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use chillerlan\TinyCurl\RequestOptions; |
| 16 | 16 | use chillerlan\TinyCurl\Response\Response; |
| 17 | 17 | use chillerlan\TinyCurl\URL; |
| 18 | -use stdClass; |
|
| 19 | 18 | |
| 20 | 19 | class RequestTest extends \PHPUnit_Framework_TestCase{ |
| 21 | 20 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | $this->curl = $curl; |
| 61 | - $this->curl_info = new stdClass; |
|
| 61 | + $this->curl_info = new stdClass; |
|
| 62 | 62 | $this->response_error = new stdClass; |
| 63 | 63 | $this->response_headers = new stdClass; |
| 64 | 64 | |
@@ -93,12 +93,12 @@ |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | $url = parse_url($url); |
| 96 | - $this->host = !isset($url['host']) ? null : $url['host']; |
|
| 97 | - $this->port = !isset($url['port']) ? null : $url['port']; |
|
| 98 | - $this->path = !isset($url['path']) ? null : $url['path']; |
|
| 99 | - $this->scheme = !isset($url['scheme']) ? null : $url['scheme']; |
|
| 100 | - $this->query = !isset($url['query']) ? null : $url['query']; |
|
| 101 | - $this->fragment = !isset($url['fragment']) ? null : $url['fragment']; |
|
| 96 | + $this->host = !isset($url['host']) ? null : $url['host']; |
|
| 97 | + $this->port = !isset($url['port']) ? null : $url['port']; |
|
| 98 | + $this->path = !isset($url['path']) ? null : $url['path']; |
|
| 99 | + $this->scheme = !isset($url['scheme']) ? null : $url['scheme']; |
|
| 100 | + $this->query = !isset($url['query']) ? null : $url['query']; |
|
| 101 | + $this->fragment = !isset($url['fragment']) ? null : $url['fragment']; |
|
| 102 | 102 | |
| 103 | 103 | if($this->query){ |
| 104 | 104 | parse_str($this->query, $this->parsedquery); |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | protected function getURLs(){ |
| 21 | 21 | |
| 22 | 22 | $ids = [ |
| 23 | - [1,2,6,11,15,23,24,56,57,58,59,60,61,62,63,64,68,69,70,71,72,73,74,75,76], |
|
| 24 | - [77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101], |
|
| 23 | + [1, 2, 6, 11, 15, 23, 24, 56, 57, 58, 59, 60, 61, 62, 63, 64, 68, 69, 70, 71, 72, 73, 74, 75, 76], |
|
| 24 | + [77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101], |
|
| 25 | 25 | ]; |
| 26 | 26 | |
| 27 | 27 | $urls = []; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function testSetHandlerExistsException(){ |
| 83 | 83 | $options = new MultiRequestOptions; |
| 84 | - $options->handler = 'foobar'; |
|
| 84 | + $options->handler = 'foobar'; |
|
| 85 | 85 | |
| 86 | 86 | new MultiRequest($options); |
| 87 | 87 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function testSetHandlerImplementsException(){ |
| 94 | 94 | $options = new MultiRequestOptions; |
| 95 | - $options->handler = stdClass::class; |
|
| 95 | + $options->handler = stdClass::class; |
|
| 96 | 96 | |
| 97 | 97 | new MultiRequest($options); |
| 98 | 98 | } |