diff options
Diffstat (limited to 'test/TinifyTest.php')
-rw-r--r-- | test/TinifyTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/TinifyTest.php b/test/TinifyTest.php index a002989..3f3f3e4 100644 --- a/test/TinifyTest.php +++ b/test/TinifyTest.php @@ -43,6 +43,12 @@ class ClientTest extends TestCase { $this->assertInstanceOf("Tinify\Client", Tinify\Tinify::getClient()); } + public function testSetClientShouldReplaceClient() { + Tinify\setKey("abcde"); + Tinify\Tinify::setClient("foo"); + $this->assertSame("foo", Tinify\Tinify::getClient()); + } + public function testValidateWithValidKeyShouldReturnTrue() { Tinify\setKey("valid"); CurlMock::register("https://api.tinify.com/shrink", array( |