I have task where I should stub database but I wonder if it is good idea to use interface instead of entity class as variable in my application? I need only data from two fields so I'm using only getters and I could stub this class in test scope, because without database and information about it I can't implement entity class, Am I right?
Aucun commentaire:
Enregistrer un commentaire