Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JanHenkG's avatar

@alexleonard If I set APP_ENV to testing in my .env.testing file in the sample application and dump the environment in a test file it correctly says testing. Are the other environment values you specify in your .env.testing file picked up by the application?

alexleonard's avatar

Hmm, I wonder what's causing it to not pick it up.

Here's a screenshot showing my functional.suite.yml, .env.testing, the Cept where I dd env values, and my composer.json file, plus CLI output of composer update, codecept build, and codecept run.

https://drive.google.com/file/d/0Byi9NAYvWDPfRFBRdFRuRldIaEU/view?usp=sharing

It seems to wholly be picking up the standard .env instead of .env.testing.

I'll have a bit more of a dig around and see whether I can find out anything else.

Sorry about this!

alexleonard's avatar

D'oh. And there was I thinking I had double checked everything. Sorry dude...

You've fixed me up once again! Working straight out.

Previous

Please or to participate in this conversation.