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

Popular posts from this blog

What Are The Best Universities In The World?

Hard vs. Soft Water: What's The Difference?

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -