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?
Comments are closed.