getCommand(); $command->setArguments($arguments); $this->assertSame($expected, $command->getArguments()); } /** * @group disconnected */ public function testPrefixKeys(): void { /** @var PrefixableCommand $command */ $command = $this->getCommand(); $actualArguments = ['arg1', 'arg2', 'arg3', 'arg4']; $prefix = 'prefix:'; $expectedArguments = ['prefix:arg1', 'arg2', 'arg3', 'arg4']; $command->setArguments($actualArguments); $command->prefixKeys($prefix); $this->assertSame($expectedArguments, $command->getArguments()); } /** * @group disconnected */ public function testParseResponse(): void { $raw = "\x00\xC0\n\x06\x00\xF8r?\xC5\xFB\xFB_("; $expected = "\x00\xC0\n\x06\x00\xF8r?\xC5\xFB\xFB_("; $command = $this->getCommand(); $this->assertSame($expected, $command->parseResponse($raw)); } }