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