By default Laravel loads all UnitTest files via the composer autoloader, the official composer.json looks like this:
"autoload": {
"classmap": [
...
"app/tests/TestCase.php"
...
]
},
This will be used in development and in production, as there's not dev/prod switch afaik. As tests are never run in production, it might be overdozed to load them all.
Question:
How to prevent the Composer autoloader to load all UnitTest files in certain scenarios (like in production) ? Or am I totally misunderstanding something here ?