Reputation: 456
I have an environment variable in my Symfony 7. Basically it is a feature toggle. I'm writing application test using PHPUnit 10. I need to write a test for both cases: feature on and feature off. I set the default value of the variable in the .env.test. How to change its value in the application test to cover both cases?
Upvotes: -1
Views: 45