invoke() публичный Метод

Invokes the the authentication, if needed.
public invoke ( ) : boolean
Результат boolean TRUE if the security checks was passed
 /**
  * @test
  */
 public function invokeCallsTheAuthenticationManagerToPerformAuthentication()
 {
     $authenticationManager = $this->createMock(AuthenticationManagerInterface::class);
     $authenticationManager->expects($this->once())->method('authenticate');
     $interceptor = new RequireAuthentication($authenticationManager);
     $interceptor->invoke();
 }