This is bad advice. Mocking libraries have come from many years of experience. Rolling your own test library will be like reinventing the wheel, but with less documentation and more inconsistencies.
this post was submitted on 26 Apr 2024
1 points (100.0% liked)
PHP
3 readers
1 users here now
founded 1 year ago
@symfonystation You forgot the benefits of anonymous classes. I almost never use a mocking framework anymore since they were added.