You are here

public function ResponseTest::testGetChallengeTs in reCAPTCHA 7.2

File

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

Class

ResponseTest

Namespace

ReCaptcha

Code

public function testGetChallengeTs() {
  $timestamp = 'timestamp';
  $errorCodes = array();
  $response = new Response(true, array(), 'hostname', $timestamp);
  $this
    ->assertEquals($timestamp, $response
    ->getChallengeTs());
}