processRequest() public method

Processes a command line request.
public processRequest ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void
$request Neos\Flow\Mvc\RequestInterface The request object
$response Neos\Flow\Mvc\ResponseInterface The response, modified by this handler
return void
 /**
  * @test
  */
 public function processRequestResetsCommandMethodArguments()
 {
     $mockRequest = $this->getMockBuilder(Request::class)->disableOriginalConstructor()->getMock();
     $mockResponse = $this->getMockBuilder(Mvc\ResponseInterface::class)->getMock();
     $mockArguments = new Arguments();
     $mockArguments->addNewArgument('foo');
     $this->inject($this->commandController, 'arguments', $mockArguments);
     $this->assertCount(1, $this->commandController->_get('arguments'));
     $this->commandController->processRequest($mockRequest, $mockResponse);
     $this->assertCount(0, $this->commandController->_get('arguments'));
 }