We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1edaca commit c48ff84Copy full SHA for c48ff84
lib/SparkPost/SparkPost.php
@@ -51,6 +51,10 @@ public static function getConfig() {
51
}
52
return self::$config;
53
54
+
55
+ public static function unsetConfig() {
56
+ self::$config = NULL;
57
+ }
58
59
60
?>
test/unit/SparkPostTest.php
@@ -20,6 +20,7 @@ public function testConstructorCannotBeCalled() {
20
* @expectedExceptionMessage No configuration has been provided
21
*/
22
public function testGetConfigEmptyException() {
23
+ SparkPost::unsetConfig();
24
SparkPost::getConfig();
25
26
0 commit comments