-
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: Command output not captured when testing #9457
Comments
Oh, cool! That should help, thanks! Is this still an issue, though, since the output isn't captured as documented? |
No, there is no issue. When you run a command using |
That makes sense ... thank you! Thanks also for the quick triaging and responses! :) |
PHP Version
8.1
CodeIgniter4 Version
4.6.0
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MySQL 5.7
What happened?
According to the doc, you can call
command()
and all output is captured. However, I have a command that usesCLI::write()
to output various messages as the command is executed and those outputs are still written to the console. My use case is that I'm writing a test script, which calls thecommand()
function, and it generates output.Steps to Reproduce
command()
with the commandExpected Output
I'm expecting no output unless I'm manually outputting the return value from the
command()
call.Anything else?
No response
The text was updated successfully, but these errors were encountered: