/** * @test */ public function invokeCallsTheAuthenticationManagerToPerformAuthentication() { $authenticationManager = $this->createMock(AuthenticationManagerInterface::class); $authenticationManager->expects($this->once())->method('authenticate'); $interceptor = new RequireAuthentication($authenticationManager); $interceptor->invoke(); }