@@ -7,7 +7,6 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase {
77
88 /**
99 * @desc Ensures that the configuration class is not instantiable.
10- * @covers SparkPost::__construct
1110 */
1211 public function testConstructorCannotBeCalled () {
1312 $ class = new \ReflectionClass ('\MessageSystems\SparkPost ' );
@@ -17,7 +16,6 @@ public function testConstructorCannotBeCalled() {
1716 /**
1817 * @desc Tests that an exception is thrown when a library tries to recieve the config and it has not yet been set.
1918 * Since its a singleton this test must come before any setConfig tests.
20- * @covers SparkPost::getConfig
2119 * @expectedException Exception
2220 * @expectedExceptionMessage No configuration has been provided
2321 */
@@ -27,7 +25,6 @@ public function testGetConfigEmptyException() {
2725
2826 /**
2927 * @desc Tests that the api key is set when setting the config
30- * @covers SparkPost::setConfig
3128 * @expectedException Exception
3229 * @expectedExceptionMessage You must provide an API key
3330 */
@@ -37,7 +34,6 @@ public function testSetConfigAPIKeyNotSetException() {
3734
3835 /**
3936 * @desc Tests that the api key is set when setting the config and that its not empty
40- * @covers SparkPost::setConfig
4137 * @expectedException Exception
4238 * @expectedExceptionMessage You must provide an API key
4339 */
@@ -47,7 +43,6 @@ public function testSetConfigAPIKeyEmptyException() {
4743
4844 /**
4945 * @desc Tests overridable values are set while invalid values are ignored
50- * @covers SparkPost::setConfig
5146 */
5247 public function testSetConfigMultipleValuesAndGetConfig () {
5348 SparkPost::setConfig (['key ' =>'lala ' , 'version ' =>'v8 ' , 'port ' =>1024 , 'someOtherValue ' =>'fakeValue ' ]);
@@ -58,7 +53,7 @@ public function testSetConfigMultipleValuesAndGetConfig() {
5853 $ this ->assertEquals (1024 , $ testConfig ['port ' ]);
5954 $ this ->assertNotContains ('someOtherValue ' , array_keys ($ testConfig ));
6055 $ this ->assertEquals ('https ' , $ testConfig ['protocol ' ]);
61- $ this ->assertEquals ('app.cloudplaceholder .com ' , $ testConfig ['host ' ]);
56+ $ this ->assertEquals ('api.sparkpost .com ' , $ testConfig ['host ' ]);
6257 $ this ->assertEquals (true , $ testConfig ['strictSSL ' ]);
6358 }
6459}
0 commit comments