php - Ignore .env file on unit tests -
most of classes include loading env variables configuration. when coding thought vlucas/phpdotenv ignored .env
file on testing environments since there conf file phpunit.xml
define them.
is possible make dotenv ignore .env when on testing environment?
testing use .env
file, can override of settings in phpunit.xml
.
<php> <env name="app_env" value="testing"/> <env name="cache_driver" value="array"/> <env name="session_driver" value="array"/> <env name="db_driver" value="sqlite"/> <env name="cache_host" value="localhost"/> <env name="session_host" value="localhost"/> </php>
Comments
Post a Comment