diff options
author | Jason Rhodes <jason.matthew.rhodes@gmail.com> | 2016-05-03 22:10:04 -0400 |
---|---|---|
committer | Richard Leland <rich@richleland.com> | 2016-05-03 22:10:04 -0400 |
commit | d4c3a89c103e551a3cd71d20f36414095158365b (patch) | |
tree | 86ff4277800b41e1cf9def71b1753d53c0b25def /test/unit/APIResourceExceptionTest.php | |
parent | d96d825aa138af92628ec7311c05e9659917ba79 (diff) | |
download | php-sparkpost-d4c3a89c103e551a3cd71d20f36414095158365b.zip php-sparkpost-d4c3a89c103e551a3cd71d20f36414095158365b.tar.gz php-sparkpost-d4c3a89c103e551a3cd71d20f36414095158365b.tar.bz2 |
Add php-cs-fixer as composer script and make initial fix-style run
* Add php-cs-fixer as composer script
* Make initial fix-style run
* Fix indentation on all files
* Add editorconfig file
Diffstat (limited to 'test/unit/APIResourceExceptionTest.php')
-rw-r--r-- | test/unit/APIResourceExceptionTest.php | 61 |
1 files changed, 34 insertions, 27 deletions
diff --git a/test/unit/APIResourceExceptionTest.php b/test/unit/APIResourceExceptionTest.php index 5bb4758..8ae80de 100644 --- a/test/unit/APIResourceExceptionTest.php +++ b/test/unit/APIResourceExceptionTest.php @@ -1,36 +1,43 @@ <?php -namespace SparkPost\Test; -use SparkPost\APIResponseException; -class APIResourceExceptionTest extends \PHPUnit_Framework_TestCase { +namespace SparkPost\Test; - private $message; - private $code; - private $description; - private $exception; +use SparkPost\APIResponseException; - /** - * (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); - } +class APIResourceExceptionTest extends \PHPUnit_Framework_TestCase +{ + private $message; + private $code; + private $description; + private $exception; - public function testAPIMessage() { - $this->assertEquals($this->message, $this->exception->getAPIMessage()); - } + /** + * (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 testAPICode() { - $this->assertEquals($this->code, $this->exception->getAPICode()); - } + public function testAPIMessage() + { + $this->assertEquals($this->message, $this->exception->getAPIMessage()); + } - public function testAPIDescription() { - $this->assertEquals($this->description, $this->exception->getAPIDescription()); - } + public function testAPICode() + { + $this->assertEquals($this->code, $this->exception->getAPICode()); + } + public function testAPIDescription() + { + $this->assertEquals($this->description, $this->exception->getAPIDescription()); + } } |