Mocking magic methods with PHPUnit
Reading Time: < 1 minute Updated: as pointed out in the comments below, using setMethods() or, since this function is deprecated lately, addMethods(), is the much better way for the mocking of magic methods with PHPUnit! Original post: If you Read More …