Is there any library in PHP to create a mock object without modification of class under test?
Just went througt PHPUnit manual, as I understand I need to create "attach" method in test target class , call "notified" method and so on. Is there any code out there to avoid it and test any class as mock object without modification (so I can assert if any internal method was called)?
Aucun commentaire:
Enregistrer un commentaire