public function ResponseTest::testGetErrorCodes in reCAPTCHA 6.2
Same name and namespace in other branches
- 7.2 recaptcha-php/tests/ReCaptcha/ResponseTest.php \ReCaptcha\ResponseTest::testGetErrorCodes()
File
- recaptcha-php/
tests/ ReCaptcha/ ResponseTest.php, line 62
Class
Namespace
ReCaptchaCode
public function testGetErrorCodes() {
$errorCodes = array(
'test',
);
$response = new Response(true, $errorCodes);
$this
->assertEquals($errorCodes, $response
->getErrorCodes());
}