getContainer()->get(RequestSignerInterface::class); self::assertEquals($expectedHash, $signer->generateSign($request, $appData, $request['sign_method'])); } public function signDataProvider(): array { /** @var TopRequestFactoryInterface $factory */ $factory = $this->getContainer()->get(TopRequestFactoryInterface::class); $appData = $this->getAppData(); return [ [ $factory->getRequestArray($this->getTestRequest(AvailableSignMethods::MD5)), $appData, '4BC79C5FAA1B5E254E95A97E65BACEAB' ], [ $factory->getRequestArray($this->getTestRequest(AvailableSignMethods::HMAC_MD5)), $appData, '497FA7FCAD98F4F335EFAE2451F8291D' ], [ $factory->getRequestArray($this->getTestRequest(AvailableSignMethods::MD5, true)), $appData, '4BC79C5FAA1B5E254E95A97E65BACEAB' ], [ $factory->getRequestArray($this->getTestRequest(AvailableSignMethods::HMAC_MD5, true)), $appData, '497FA7FCAD98F4F335EFAE2451F8291D' ] ]; } }