public function ReCaptchaTest::testVerifyApkPackageNameMatch in reCAPTCHA 7.2
File
- recaptcha-php/
tests/ ReCaptcha/ ReCaptchaTest.php, line 110
Class
Namespace
ReCaptchaCode
public function testVerifyApkPackageNameMatch() {
$method = $this
->getMockRequestMethod('{"success": true, "apk_package_name": "apk.name"}');
$rc = new ReCaptcha('secret', $method);
$response = $rc
->setExpectedApkPackageName('apk.name')
->verify('response');
$this
->assertTrue($response
->isSuccess());
}