diff options
author | nornholdj <nornholdj@gmail.com> | 2014-11-14 16:25:36 -0500 |
---|---|---|
committer | nornholdj <nornholdj@gmail.com> | 2014-11-14 16:25:36 -0500 |
commit | 2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28 (patch) | |
tree | 6934c8cf3d9c91852a76e57314246e17c81b4f80 /test/unit/SparkPostTest.php | |
parent | 39f2699a7e7850397882a6d2ee3a8438a105b72d (diff) | |
parent | 3095de0dca14565911a2bdcc1ee5960e63b9b1f4 (diff) | |
download | php-sparkpost-2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28.zip php-sparkpost-2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28.tar.gz php-sparkpost-2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28.tar.bz2 |
Merge branch 'feature/MA-1084' into develop
Diffstat (limited to 'test/unit/SparkPostTest.php')
-rw-r--r-- | test/unit/SparkPostTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/SparkPostTest.php b/test/unit/SparkPostTest.php index 1b86a8f..650cb36 100644 --- a/test/unit/SparkPostTest.php +++ b/test/unit/SparkPostTest.php @@ -1,7 +1,7 @@ <?php namespace SparkPost\Test; -use MessageSystems\SparkPost; +use SparkPost\SparkPost; class SparkPostTest extends \PHPUnit_Framework_TestCase { @@ -9,7 +9,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { * @desc Ensures that the configuration class is not instantiable. */ public function testConstructorCannotBeCalled() { - $class = new \ReflectionClass('\MessageSystems\SparkPost'); + $class = new \ReflectionClass('\SparkPost\SparkPost'); $this->assertFalse($class->isInstantiable()); } @@ -29,7 +29,7 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { * @expectedExceptionMessage You must provide an API key */ public function testSetConfigAPIKeyNotSetException() { - SparkPost::setConfig(['something'=>'other than an API Key']); + SparkPost::setConfig(array('something'=>'other than an API Key')); } /** @@ -38,14 +38,14 @@ class SparkPostTest extends \PHPUnit_Framework_TestCase { * @expectedExceptionMessage You must provide an API key */ public function testSetConfigAPIKeyEmptyException() { - SparkPost::setConfig(['key'=>'']); + SparkPost::setConfig(array('key'=>'')); } /** * @desc Tests overridable values are set while invalid values are ignored */ public function testSetConfigMultipleValuesAndGetConfig() { - SparkPost::setConfig(['key'=>'lala', 'version'=>'v8', 'port'=>1024, 'someOtherValue'=>'fakeValue']); + SparkPost::setConfig(array('key'=>'lala', 'version'=>'v8', 'port'=>1024, 'someOtherValue'=>'fakeValue')); $testConfig = SparkPost::getConfig(); $this->assertEquals('lala', $testConfig['key']); |