Neos\Flow\Tests\Unit\Cli\RequestBuilderTest::argumentsAreDetectedAfterOptions PHP Method

argumentsAreDetectedAfterOptions() public method

    public function argumentsAreDetectedAfterOptions()
    {
        $methodParameters = ['some' => ['optional' => true, 'type' => 'boolean'], 'option' => ['optional' => true, 'type' => 'string'], 'argument1' => ['optional' => false, 'type' => 'string'], 'argument2' => ['optional' => false, 'type' => 'string']];
        $this->mockCommandManager->expects($this->once())->method('getCommandMethodParameters')->with('Acme\\Test\\Command\\DefaultCommandController', 'listCommand')->will($this->returnValue($methodParameters));
        $request = $this->requestBuilder->build('acme.test:default:list --some -option=value file1 file2');
        $this->assertSame('list', $request->getControllerCommandName());
        $this->assertTrue($request->getArgument('some'));
        $this->assertSame('file1', $request->getArgument('argument1'));
        $this->assertSame('file2', $request->getArgument('argument2'));
    }