@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace spec\Subreality\Dilmun\Anshar\Http; |
| 4 | 4 | |
| 5 | +use PhpSpec\ObjectBehavior; |
|
| 5 | 6 | use Psr\Http\Message\StreamInterface; |
| 6 | 7 | use Psr\Http\Message\UriInterface; |
| 7 | 8 | use Subreality\Dilmun\Anshar\Http\Request; |
| 8 | -use PhpSpec\ObjectBehavior; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Class RequestSpec |
@@ -1,9 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace spec\Subreality\Dilmun\Anshar\Http; |
| 3 | 3 | |
| 4 | -use Subreality\Dilmun\Anshar\Http\Uri; |
|
| 5 | 4 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 5 | +use Subreality\Dilmun\Anshar\Http\Uri; |
|
| 7 | 6 | |
| 8 | 7 | class UriSpec extends ObjectBehavior |
| 9 | 8 | { |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | * Checks if a header exists by the given case-insensitive name. |
| 107 | 107 | * |
| 108 | 108 | * @param string $name Case-insensitive header field name. |
| 109 | - * @return bool Returns true if any header names match the given header |
|
| 109 | + * @return boolean|null Returns true if any header names match the given header |
|
| 110 | 110 | * name using a case-insensitive string comparison. Returns false if |
| 111 | 111 | * no matching header name is found in the message. |
| 112 | 112 | */ |
@@ -397,6 +397,9 @@ |
||
| 397 | 397 | // TODO: Implement __toString() method. |
| 398 | 398 | } |
| 399 | 399 | |
| 400 | + /** |
|
| 401 | + * @param string $uri |
|
| 402 | + */ |
|
| 400 | 403 | private function explodeUri($uri) |
| 401 | 404 | { |
| 402 | 405 | echo $uri . "\n"; |