assertEquals($expectedStrategy, $resolver->resolve('functions', 'load')); } /** * @group disconnected * @return void */ public function testResolveCorrectlyResolvesStrategyWithGivenWordSeparator(): void { $resolver = new SubcommandStrategyResolver('_'); $expectedStrategy = new LoadStrategy(); $this->assertEquals($expectedStrategy, $resolver->resolve('functions_', 'load_')); } /** * @return void */ public function testResolveThrowsExceptionOnNonExistingStrategy(): void { $resolver = new SubcommandStrategyResolver(); $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage('Non-existing container command given'); $resolver->resolve('foo', 'bar'); } }