Having an annoying issue where I can't run my PHPunit tests, nearly all tests return the following error:
ReflectionException: Class env does not exist
From googling, most results suggest adding
<env name="TELESCOPE_ENABLED" value="false"/> to the
phpunit.xml file. However, I have had this in my config from the start.
The error normally seems to occur after running cache clearing commands such as
php artisan config:cache php artisan cache:clear
I've had the error a number of times now and it appears to resolve itself after a while, but it would be nice to be able to run my tests :)