1
0
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:
Stéphane HULARD 2016-04-04 19:11:00 +02:00
parent c0d9223b15
commit cf0ef79c42

View File

@ -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']);
} }