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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -