@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @param string|UriInterface $path |
|
| 61 | + * @param string $path |
|
| 62 | 62 | * @param array $params |
| 63 | 63 | * @param array $headers |
| 64 | 64 | * |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @param string|UriInterface $path |
|
| 78 | + * @param string $path |
|
| 79 | 79 | * @param array $params |
| 80 | 80 | * @param array $headers |
| 81 | 81 | * |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * @param string|UriInterface $path |
| 92 | - * @param resource|string|StreamInterface|null $body |
|
| 92 | + * @param string $body |
|
| 93 | 93 | * @param array $headers |
| 94 | 94 | * |
| 95 | 95 | * @return \Psr\Http\Message\ResponseInterface |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @param string|UriInterface $path |
|
| 106 | + * @param string $path |
|
| 107 | 107 | * @param array $params |
| 108 | 108 | * @param array $headers |
| 109 | 109 | * |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @param string|UriInterface $path |
|
| 121 | + * @param string $path |
|
| 122 | 122 | * @param array $params |
| 123 | 123 | * @param array $headers |
| 124 | 124 | * |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /** |
| 136 | - * @param string|UriInterface $path |
|
| 136 | + * @param string $path |
|
| 137 | 137 | * @param array $params |
| 138 | 138 | * @param array $headers |
| 139 | 139 | * |
@@ -153,6 +153,7 @@ |
||
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | 155 | * @param \Http\Client\Common\Plugin ...$plugins |
| 156 | + * @param Plugin[] $plugins |
|
| 156 | 157 | * |
| 157 | 158 | * @return $this |
| 158 | 159 | */ |
@@ -3,15 +3,12 @@ |
||
| 3 | 3 | namespace IBM\Watson\Common\HttpClient; |
| 4 | 4 | |
| 5 | 5 | use Http\Client\Common\Plugin; |
| 6 | -use Http\Client\Common\Plugin\AuthenticationPlugin; |
|
| 7 | 6 | use Http\Client\Common\PluginClient; |
| 7 | +use Http\Client\Common\Plugin\AuthenticationPlugin; |
|
| 8 | 8 | use Http\Client\HttpClient; |
| 9 | -use Http\Discovery\UriFactoryDiscovery; |
|
| 10 | -use http\Exception\RuntimeException; |
|
| 11 | 9 | use Http\Message\Authentication\BasicAuth; |
| 12 | 10 | use Http\Message\UriFactory; |
| 13 | 11 | use IBM\Watson\Common\Exception\Api\InvalidArgumentException; |
| 14 | -use IBM\Watson\Common\Hydrator\HydratorInterface; |
|
| 15 | 12 | use IBM\Watson\Common\Util\DiscoveryTrait; |
| 16 | 13 | |
| 17 | 14 | /** |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use IBM\Watson\Common\HttpClient\Builder; |
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 7 | |
| 9 | 8 | class BuilderSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace spec\IBM\Watson\Common\Hydrator; |
| 4 | 4 | |
| 5 | 5 | use IBM\Watson\Common\Hydrator\ArrayHydrator; |
| 6 | -use PhpSpec\ObjectBehavior; |
|
| 7 | 6 | use Mockery as m; |
| 7 | +use PhpSpec\ObjectBehavior; |
|
| 8 | 8 | use Psr\Http\Message\ResponseInterface; |
| 9 | 9 | use Psr\Http\Message\StreamInterface; |
| 10 | 10 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use IBM\Watson\Common\Hydrator\ModelHydrator; |
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 7 | |
| 9 | 8 | class ModelHydratorSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use IBM\Watson\Common\RequestBuilder; |
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 7 | |
| 9 | 8 | class RequestBuilderSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -3,13 +3,11 @@ |
||
| 3 | 3 | namespace spec\IBM\Watson\Common\stubs; |
| 4 | 4 | |
| 5 | 5 | use Http\Client\HttpClient; |
| 6 | -use http\Env\Response; |
|
| 7 | 6 | use IBM\Watson\Common\Api\AbstractApi; |
| 8 | 7 | use IBM\Watson\Common\Hydrator\HydratorInterface; |
| 9 | 8 | use IBM\Watson\Common\RequestBuilder; |
| 10 | 9 | use IBM\Watson\Common\stubs\Api; |
| 11 | 10 | use PhpSpec\ObjectBehavior; |
| 12 | -use Prophecy\Argument; |
|
| 13 | 11 | |
| 14 | 12 | class ApiSpec extends ObjectBehavior |
| 15 | 13 | { |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | use Http\Client\HttpClient; |
| 7 | 7 | use Http\Message\UriFactory; |
| 8 | 8 | use IBM\Watson\Common\HttpClient\Builder; |
| 9 | -use PHPUnit\Framework\TestCase; |
|
| 10 | 9 | use Mockery as m; |
| 10 | +use PHPUnit\Framework\TestCase; |
|
| 11 | 11 | |
| 12 | 12 | class BuilderTest extends TestCase |
| 13 | 13 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace IBM\Watson\Common\Hydrator\ArrayHydratorTest; |
| 4 | 4 | |
| 5 | 5 | use IBM\Watson\Common\Hydrator\ArrayHydrator; |
| 6 | -use PHPUnit\Framework\TestCase; |
|
| 7 | 6 | use Mockery as m; |
| 7 | +use PHPUnit\Framework\TestCase; |
|
| 8 | 8 | use Psr\Http\Message\ResponseInterface; |
| 9 | 9 | use Psr\Http\Message\StreamInterface; |
| 10 | 10 | |