getCommand(); $command->setArguments($arguments); $this->assertSame($expected, $command->getArguments()); } /** * @group disconnected */ public function testParseResponse(): void { $this->assertSame(1, $this->getCommand()->parseResponse(1)); } /** * @group connected * @group relay-incompatible * @requiresRedisVersion >= 7.0.0 */ public function testPublishesMessagesToChannel(): void { $redis1 = $this->getClient(); $redis2 = $this->getClient(); $redis1->ssubscribe('channel:foo'); $this->assertSame(1, $redis2->spublish('channel:foo', 'bar')); $this->assertSame(0, $redis2->spublish('channel:hoge', 'piyo')); } }