Tomáš Votruba Blog: How to Mock Final Classes in PHPUnit

Do you prefer composition over inheritance? Yes, that’s great. Why aren’t your classes final then? Oh, you have tests and you mock your classes. But why is that a problem?

from PHPDeveloper.org https://ift.tt/2CPCe42
via IFTTT

Leave a Reply