strategy = new FlushStrategy(); } /** * @dataProvider argumentsProvider * @group disconnected * @param array $actualArguments * @param array $expectedResponse * @return void */ public function testProcessArguments(array $actualArguments, array $expectedResponse): void { $this->assertSame($expectedResponse, $this->strategy->processArguments($actualArguments)); } public function argumentsProvider(): array { return [ 'with default arguments' => [ ['FLUSH', null], ['FLUSH'], ], 'with mode argument' => [ ['FLUSH', 'sync'], ['FLUSH', 'SYNC'], ], ]; } }