From cf0ef79c42d5b113fb3f1cc499fbcca01fca35b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20HULARD?= Date: Mon, 4 Apr 2016 19:11:00 +0200 Subject: [PATCH] Update ApiFunctionalTest to use HttpClient --- tests/ApiFunctionalTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ApiFunctionalTest.php b/tests/ApiFunctionalTest.php index 85a1f1b..0deb0c3 100644 --- a/tests/ApiFunctionalTest.php +++ b/tests/ApiFunctionalTest.php @@ -27,7 +27,7 @@ namespace Ovh\tests; -use GuzzleHttp\Client; +use Http\Adapter\Guzzle6\Client; use Ovh\Api; /** @@ -238,7 +238,7 @@ class ApiFunctionalTest extends \PHPUnit_Framework_TestCase */ public function testApiGetWithParameters() { - $this->setExpectedException('\\GuzzleHttp\\Exception\\ClientException', '400'); + $this->setExpectedException('Http\Client\Exception\HttpException', '400'); $this->api->get('/me/accessRestriction/ip', ['foo' => 'bar']); }