@@ -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 |
@@ -7,8 +7,8 @@ |
||
7 | 7 | use IBM\Watson\Common\Hydrator\ModelHydrator; |
8 | 8 | use IBM\Watson\Common\stubs\CreateableFromArrayModel; |
9 | 9 | use IBM\Watson\Common\stubs\Model; |
10 | -use PHPUnit\Framework\TestCase; |
|
11 | 10 | use Mockery as m; |
11 | +use PHPUnit\Framework\TestCase; |
|
12 | 12 | use Psr\Http\Message\ResponseInterface; |
13 | 13 | use Psr\Http\Message\StreamInterface; |
14 | 14 |