I'm working on another PHP project that uses end-to-end tests and .env files. However before running the tests I need to modify the .env file to point to the test database (instead of the development one). When I work on Symfony projects I don't believe I need to do that, it just loads the test environment automatically.
I know from some previous experience with older versions that there used to be a different front controller for each environment, like app.php, app_dev.php etc. but afaik that isn't the case now.
How does Symfony know to load the test environment for end-to-end tests?