diff options
Diffstat (limited to 'test/unit/SparkPostTest.php')
-rw-r--r-- | test/unit/SparkPostTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/SparkPostTest.php b/test/unit/SparkPostTest.php index 218cb6e..b019a15 100644 --- a/test/unit/SparkPostTest.php +++ b/test/unit/SparkPostTest.php @@ -7,6 +7,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { /** * @desc Ensures that the configuration class is not instantiable. + * @covers SparkPost::__construct */ public function testConstructorCannotBeCalled() { $class = new \ReflectionClass('\MessageSystems\SparkPost'); @@ -16,6 +17,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { /** * @desc Tests that an exception is thrown when a library tries to recieve the config and it has not yet been set. * Since its a singleton this test must come before any setConfig tests. + * @covers SparkPost::getConfig * @expectedException Exception * @expectedExceptionMessage No configuration has been provided */ @@ -25,6 +27,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { /** * @desc Tests that the api key is set when setting the config + * @covers SparkPost::setConfig * @expectedException Exception * @expectedExceptionMessage You must provide an API key */ @@ -34,6 +37,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { /** * @desc Tests that the api key is set when setting the config and that its not empty + * @covers SparkPost::setConfig * @expectedException Exception * @expectedExceptionMessage You must provide an API key */ @@ -43,6 +47,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { /** * @desc Tests overridable values are set while invalid values are ignored + * @covers SparkPost::setConfig */ public function testSetConfigMultipleValuesAndGetConfig() { SparkPost::setConfig(['key'=>'lala', 'version'=>'v8', 'port'=>1024, 'someOtherValue'=>'fakeValue']); |