You are here

public function ResponseTest::testGetErrorCodes in reCAPTCHA 7.2

Same name and namespace in other branches
  1. 6.2 recaptcha-php/tests/ReCaptcha/ResponseTest.php \ReCaptcha\ResponseTest::testGetErrorCodes()

File

recaptcha-php/tests/ReCaptcha/ResponseTest.php, line 107

Class

ResponseTest

Namespace

ReCaptcha

Code

public function testGetErrorCodes() {
  $errorCodes = array(
    'test',
  );
  $response = new Response(true, $errorCodes);
  $this
    ->assertEquals($errorCodes, $response
    ->getErrorCodes());
}