Token 'env' should be a valid type. Please declare it virtual if it is an Interface

In reply to Ankur Jain4:

Thanks for your reply. I have used env as class name for environment class. It is declared as

env ev with env as class name and ev as its object instantiation. Can u please rectify my mistake?.Also please provide me with an exmaple for your statement “Also update your constructor with parent argument in test and check if env is registered with factory.”