You are here

public function ResponseTest::testGetScore in reCAPTCHA 7.2

File

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

Class

ResponseTest

Namespace

ReCaptcha

Code

public function testGetScore() {
  $score = 0.5;
  $response = new Response(true, array(), 'hostname', 'timestamp', 'apk', $score);
  $this
    ->assertEquals($score, $response
    ->getScore());
}