public function RequestParametersTest::testToArray in reCAPTCHA 7.2
Same name and namespace in other branches
- 6.2 recaptcha-php/tests/ReCaptcha/RequestParametersTest.php \ReCaptcha\RequestParametersTest::testToArray()
@dataProvider provideValidData
File
- recaptcha-php/
tests/ ReCaptcha/ RequestParametersTest.php, line 48
Class
Namespace
ReCaptchaCode
public function testToArray($secret, $response, $remoteIp, $version, $expectedArray, $expectedQuery) {
$params = new RequestParameters($secret, $response, $remoteIp, $version);
$this
->assertEquals($params
->toArray(), $expectedArray);
}