/** * @dataProvider provideValidData */ public function testToArray($secret, $captchaId, $captchaValue, $expectedArray, $expectedQuery) { $params = new RequestParameters($secret, $captchaId, $captchaValue); $this->assertEquals($params->toArray(), $expectedArray); }
/** * @dataProvider provideValidData */ public function testToArray($secret, $response, $remoteIp, $version, $expectedArray, $expectedQuery) { $params = new RequestParameters($secret, $response, $remoteIp, $version); $this->assertEquals($params->toArray(), $expectedArray); }