createMock(UserSourceDirectorInterface::class); $requestedUserService = $this->createMock(RequestedUserServiceInterface::class); $service = new RequestedActionService($userSourceDirector, $requestedUserService); $this->assertInstanceOf(RequestedActionServiceInterface::class, $service); } }