private function stubIsNotAuthenticated($notAuthenticated) { $this->flagManager->expects($this->any())->method('isNotAuthenticated')->willReturn($notAuthenticated); }