-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: FeatureTest dies when throws RedirectException/cached page #4288
Comments
The method description says
Is the issue that this mocking is not happening by default for Feature Test Cases? |
@MGatner Yes. See
|
We have system/Test/Mock/MockCodeIgniter.php but I see it isn't being used. It isn't immediately apparent to me how we would inject that during CIUnitTest but I believe that is the solution. |
@MGatner Thank you for the info. |
See #4315 |
Fix #4288 FeatureTest dies when throws RedirectException/cached page
Describe the bug
CodeIgniter::run()
may callexit()
and if you hit the point, FeatureTest (phpunit) dies.CodeIgniter4/system/CodeIgniter.php
Line 328 in 18d0c3c
CodeIgniter4/system/CodeIgniter.php
Line 345 in 18d0c3c
CodeIgniter4/system/CodeIgniter.php
Lines 1139 to 1144 in 18d0c3c
CodeIgniter 4 version
develop branch
Affected module(s)
CodeIgniter.php, Tests
Expected behavior, and steps to reproduce if appropriate
phpunit does not die.
Context
The text was updated successfully, but these errors were encountered: