mirror of
https://github.com/ovh/php-ovh.git
synced 2023-11-05 03:20:26 +01:00
Update ApiFunctionalTest to use HttpClient
This commit is contained in:
parent
c0d9223b15
commit
cf0ef79c42
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
namespace Ovh\tests;
|
namespace Ovh\tests;
|
||||||
|
|
||||||
use GuzzleHttp\Client;
|
use Http\Adapter\Guzzle6\Client;
|
||||||
use Ovh\Api;
|
use Ovh\Api;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -238,7 +238,7 @@ class ApiFunctionalTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testApiGetWithParameters()
|
public function testApiGetWithParameters()
|
||||||
{
|
{
|
||||||
$this->setExpectedException('\\GuzzleHttp\\Exception\\ClientException', '400');
|
$this->setExpectedException('Http\Client\Exception\HttpException', '400');
|
||||||
|
|
||||||
$this->api->get('/me/accessRestriction/ip', ['foo' => 'bar']);
|
$this->api->get('/me/accessRestriction/ip', ['foo' => 'bar']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user