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
That's assuming that the app needs to be instantiated exactly the same as in the bootstrap.php file within the test case over its lifetime. Hence why the code is duplicated.
The code used to create the app instance is duplicated in
public/index.php
andtests/TestCase.php
.What would you think about moving this logic to a dedicated file (e.g.
app/bootstrap.php
) which would return the app instance?Wherever the app is needed you can now just do:
The text was updated successfully, but these errors were encountered: