/**
  * @test
  */
 public function matchRequestReturnsFalseIfTheCurrentRequestDoesNotMatchTheControllerObjectNamePattern()
 {
     $request = $this->getMock(ActionRequest::class, array('getControllerObjectName'), array(), '', false);
     $request->expects($this->once())->method('getControllerObjectName')->will($this->returnValue('Some\\Package\\Controller\\SomeController'));
     $requestPattern = new ControllerObjectName(['controllerObjectNamePattern' => 'TYPO3\\Flow\\Security\\.*']);
     $this->assertFalse($requestPattern->matchRequest($request));
 }
 /**
  * @test
  */
 public function matchRequestReturnsFalseIfTheCurrentRequestDoesNotMatchTheControllerObjectNamePattern()
 {
     $request = $this->getMockBuilder(\TYPO3\Flow\Mvc\ActionRequest::class)->disableOriginalConstructor()->setMethods(array('getControllerObjectName'))->getMock();
     $request->expects($this->once())->method('getControllerObjectName')->will($this->returnValue('Some\\Package\\Controller\\SomeController'));
     $requestPattern = new ControllerObjectName(['controllerObjectNamePattern' => 'TYPO3\\Flow\\Security\\.*']);
     $this->assertFalse($requestPattern->matchRequest($request));
 }