From c0d9223b15bdce1adbdbfbc5de58c01f9cd7fe05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20HULARD?= Date: Mon, 4 Apr 2016 19:10:25 +0200 Subject: [PATCH] Update FQN reference, don't need to start with \ --- tests/ApiTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 59ecbec..a8bc585 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -118,7 +118,7 @@ class ApiTest extends \PHPUnit_Framework_TestCase */ public function testMissingApplicationKey() { - $this->setExpectedException('\\Ovh\\Exceptions\\InvalidParameterException', 'Application key'); + $this->setExpectedException('Ovh\Exceptions\InvalidParameterException', 'Application key'); new Api(null, $this->application_secret, $this->endpoint, $this->consumer_key, $this->client); } @@ -127,7 +127,7 @@ class ApiTest extends \PHPUnit_Framework_TestCase */ public function testMissingApplicationSecret() { - $this->setExpectedException('\\Ovh\\Exceptions\\InvalidParameterException', 'Application secret'); + $this->setExpectedException('Ovh\Exceptions\InvalidParameterException', 'Application secret'); new Api($this->application_key, null, $this->endpoint, $this->consumer_key, $this->client); } @@ -136,7 +136,7 @@ class ApiTest extends \PHPUnit_Framework_TestCase */ public function testMissingApiEndpoint() { - $this->setExpectedException('\\Ovh\\Exceptions\\InvalidParameterException', 'Endpoint'); + $this->setExpectedException('Ovh\Exceptions\InvalidParameterException', 'Endpoint'); new Api($this->application_key, $this->application_secret, null, $this->consumer_key, $this->client); } @@ -145,7 +145,7 @@ class ApiTest extends \PHPUnit_Framework_TestCase */ public function testBadApiEndpoint() { - $this->setExpectedException('\\Ovh\\Exceptions\\InvalidParameterException', 'Unknown'); + $this->setExpectedException('Ovh\Exceptions\InvalidParameterException', 'Unknown'); new Api($this->application_key, $this->application_secret, 'i_am_invalid', $this->consumer_key, $this->client); }