matchRequest() public method

Matches a \Neos\Flow\Mvc\RequestInterface against its set controller object name pattern rules
public matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean
$request Neos\Flow\Mvc\RequestInterface The request that should be matched
return boolean TRUE if the pattern matched, FALSE otherwise
 /**
  * @test
  */
 public function matchRequestReturnsFalseIfTheCurrentRequestDoesNotMatchTheControllerObjectNamePattern()
 {
     $request = $this->getMockBuilder(ActionRequest::class)->disableOriginalConstructor()->setMethods(['getControllerObjectName'])->getMock();
     $request->expects($this->once())->method('getControllerObjectName')->will($this->returnValue('Some\\Package\\Controller\\SomeController'));
     $requestPattern = new ControllerObjectName(['controllerObjectNamePattern' => 'Neos\\Flow\\Security\\.*']);
     $this->assertFalse($requestPattern->matchRequest($request));
 }