createMock(RequestedRightServiceInterface::class); $userSourceDirectorService = $this->createMock(UserSourceDirectorServiceInterface::class); $service = new RequestedUserService($userSourceDirectorService, $requestedRightService); $this->assertInstanceOf(RequestedUserServiceInterface::class, $service); } }