Suggestion: Option to load a different .env file
              
              #207
            
            
                  
                    
                      ThomasLandauer
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
My use case: My app uses the Symfony HTTP Client, which throws a
TransportExceptionif it can't connect: https://symfony.com/doc/current/http_client.html#handling-exceptionsAnd I want to assert that my app catches it correctly. So my idea: Put some bogus URL in
.env.test-failing, then load it inframework.php:So something like
$I->loadEnvFile('/.env.test-failing')would be great! And if that's not possible, maybe a CLI parameter--env-file=.env.test-failing?Beta Was this translation helpful? Give feedback.
All reactions