1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Update FQN reference, don't need to start with \

This commit is contained in:
Stéphane HULARD 2016-04-04 19:10:25 +02:00
parent 94de85dfaf
commit c0d9223b15

View File

@ -118,7 +118,7 @@ class ApiTest extends \PHPUnit_Framework_TestCase
*/ */
public function testMissingApplicationKey() 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); 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() 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); 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() 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); 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() 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); new Api($this->application_key, $this->application_secret, 'i_am_invalid', $this->consumer_key, $this->client);
} }