You are here

public function ResponseTest::testGetHostname in reCAPTCHA 7.2

File

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

Class

ResponseTest

Namespace

ReCaptcha

Code

public function testGetHostname() {
  $hostname = 'google.com';
  $errorCodes = array();
  $response = new Response(true, $errorCodes, $hostname);
  $this
    ->assertEquals($hostname, $response
    ->getHostname());
}