getCommand(); $command->setArguments($actualArguments); $this->assertSameValues($expectedArguments, $command->getArguments()); } /** * @group disconnected */ public function testParseResponse(): void { $this->assertSame(1, $this->getCommand()->parseResponse(1)); } /** * @group disconnected */ public function testPrefixKeys(): void { /** @var PrefixableCommand $command */ $command = $this->getCommand(); $actualArguments = ['arg1']; $prefix = 'prefix:'; $expectedArguments = ['prefix:arg1']; $command->setArguments($actualArguments); $command->prefixKeys($prefix); $this->assertSame($expectedArguments, $command->getArguments()); } /** * @group connected * @group relay-resp3 * @return void * @requiresRediSearchVersion >= 1.4.0 */ public function testAddTermsIntoGivenDictionary(): void { $redis = $this->getClient(); $actualResponse = $redis->ftdictadd('dict', 'foo', 'bar'); $this->assertSame(2, $actualResponse); } /** * @group connected * @return void * @requiresRediSearchVersion >= 2.8.0 */ public function testAddTermsIntoGivenDictionaryResp3(): void { $redis = $this->getResp3Client(); $actualResponse = $redis->ftdictadd('dict', 'foo', 'bar'); $this->assertSame(2, $actualResponse); } }