strategy = new ListStrategy(); } /** * @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' => [ ['LIST', null, false], ['LIST'], ], 'with LIBRARYNAME modifier' => [ ['LIST', 'libraryname', false], ['LIST', 'LIBRARYNAME', 'libraryname'], ], 'with WITHCODE modifier' => [ ['LIST', null, true], ['LIST', 'WITHCODE'], ], 'with all arguments' => [ ['LIST', 'libraryname', true], ['LIST', 'LIBRARYNAME', 'libraryname', 'WITHCODE'], ], ]; } }