getCommand(); $command->setArguments($actualArguments); $this->assertSameValues($expectedArguments, $command->getArguments()); } /** * @group disconnected */ public function testParseResponse(): void { $this->assertSame(1, $this->getCommand()->parseResponse(1)); } /** * @group connected * @group relay-resp3 * @return void * @requiresRediSearchVersion >= 1.4.0 */ public function testDumpTermsFromGivenDictionary(): void { $redis = $this->getClient(); $redis->ftdictadd('dict', 'foo', 'bar'); $this->assertSame(['bar', 'foo'], $redis->ftdictdump('dict')); } /** * @group connected * @return void * @requiresRediSearchVersion >= 1.4.0 * @requiresRedisVersion <= 7.9.0 */ public function testThrowsExceptionOnNonExistingDictionary(): void { $redis = $this->getClient(); $this->expectException(ServerException::class); $redis->ftdictdump('dict'); } }