You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case: My app uses the Symfony HTTP Client, which throws a TransportException if it can't connect: https://symfony.com/doc/current/http_client.html#handling-exceptions
And I want to assert that my app catches it correctly. So my idea: Put some bogus URL in .env.test-failing, then load it in framework.php:
'base_uri' => '%env(string:URL)%'
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?
The text was updated successfully, but these errors were encountered:
My use case: My app uses the Symfony HTTP Client, which throws a
TransportException
if 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
?The text was updated successfully, but these errors were encountered: