Ever been tempted to make a property public just so a test can assert on it? Tod...
Joel Clermont @jclermont@phpc.social
Ever been tempted to make a property public just so a test can assert on it? Today's tip shares a rule we follow on every project, and the trick that lets you keep your tests isolated without touching application code. #php #laravel https://masteringlaravel.io/daily/2026-07-29-republished-avoid-changing-your-code-purely-for-a-test