diff --git a/tests/RecaptchaTest.php b/tests/RecaptchaTest.php index 69b5941..67eee16 100644 --- a/tests/RecaptchaTest.php +++ b/tests/RecaptchaTest.php @@ -9,6 +9,14 @@ */ final class RecaptchaTest extends CIUnitTestCase { + public function testExceptionAPIKey() + { + $this->expectException(Exception::class); + $this->expectExceptionMessage('To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin'); + + $recaptcha = new Recaptcha(); + } + public function testGetScriptTagDefault() { $expected = '';