summaryrefslogtreecommitdiffstats
path: root/test/unit/APIResourceExceptionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/APIResourceExceptionTest.php')
-rw-r--r--test/unit/APIResourceExceptionTest.php43
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());
- }
-}