/** * @param string $merchantMd5 * @param string $merchantApiLogin * @param float|null $amount * @param string $transactionId * @param string $hash * @param bool $expectedValue * @dataProvider isValidHashDataProvider */ public function testIsValidHash($merchantMd5, $merchantApiLogin, $amount, $transactionId, $hash, $expectedValue) { $this->responseModel->setXAmount($amount); $this->responseModel->setXTransId($transactionId); $this->responseModel->setData('x_MD5_Hash', $hash); $this->assertEquals($expectedValue, $this->responseModel->isValidHash($merchantMd5, $merchantApiLogin)); }