You are here

public function RequestParametersTest::provideValidData in reCAPTCHA 6.2

Same name and namespace in other branches
  1. 7.2 recaptcha-php/tests/ReCaptcha/RequestParametersTest.php \ReCaptcha\RequestParametersTest::provideValidData()

File

recaptcha-php/tests/ReCaptcha/RequestParametersTest.php, line 32

Class

RequestParametersTest

Namespace

ReCaptcha

Code

public function provideValidData() {
  return array(
    array(
      'SECRET',
      'RESPONSE',
      'REMOTEIP',
      'VERSION',
      array(
        'secret' => 'SECRET',
        'response' => 'RESPONSE',
        'remoteip' => 'REMOTEIP',
        'version' => 'VERSION',
      ),
      'secret=SECRET&response=RESPONSE&remoteip=REMOTEIP&version=VERSION',
    ),
    array(
      'SECRET',
      'RESPONSE',
      null,
      null,
      array(
        'secret' => 'SECRET',
        'response' => 'RESPONSE',
      ),
      'secret=SECRET&response=RESPONSE',
    ),
  );
}