diff options
author | Avi Goldman <avrahamymgoldman@gmail.com> | 2016-06-24 15:51:34 -0400 |
---|---|---|
committer | Avi Goldman <avrahamymgoldman@gmail.com> | 2016-06-24 15:51:34 -0400 |
commit | 55d1bdc1ac65d63df6490f588f3d6e9eb506da79 (patch) | |
tree | b21a8ac66224692fe10b2a3cced0374d18ee7de1 /test/unit/APIResourceExceptionTest.php | |
parent | 1b61a81471fc46cde5a515381e9642e0c884481c (diff) | |
parent | 12f363bb1f99891fb4b105009d20c596c35c87ae (diff) | |
download | php-sparkpost-55d1bdc1ac65d63df6490f588f3d6e9eb506da79.zip php-sparkpost-55d1bdc1ac65d63df6490f588f3d6e9eb506da79.tar.gz php-sparkpost-55d1bdc1ac65d63df6490f588f3d6e9eb506da79.tar.bz2 |
merged in 2x
Diffstat (limited to 'test/unit/APIResourceExceptionTest.php')
-rw-r--r-- | test/unit/APIResourceExceptionTest.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/unit/APIResourceExceptionTest.php b/test/unit/APIResourceExceptionTest.php deleted file mode 100644 index 8ae80de..0000000 --- a/test/unit/APIResourceExceptionTest.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -namespace SparkPost\Test; - -use SparkPost\APIResponseException; - -class APIResourceExceptionTest extends \PHPUnit_Framework_TestCase -{ - private $message; - private $code; - private $description; - private $exception; - - /** - * (non-PHPdoc). - * - * @before - * - * @see PHPUnit_Framework_TestCase::setUp() - */ - public function setUp() - { - $this->message = 'Test message'; - $this->code = 400; - $this->description = 'Test description'; - $this->exception = new APIResponseException(null, 0, $this->message, $this->code, $this->description); - } - - public function testAPIMessage() - { - $this->assertEquals($this->message, $this->exception->getAPIMessage()); - } - - public function testAPICode() - { - $this->assertEquals($this->code, $this->exception->getAPICode()); - } - - public function testAPIDescription() - { - $this->assertEquals($this->description, $this->exception->getAPIDescription()); - } -} |