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
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
If I use "console write" in objects of Zend\Mvc\Console\Controller\AbstractConsoleController, when testing, it outputs the content and assertConsoleOutputContents don't recognize the output.
Confirmed, though I think this is more a tradeoff in applying ZF2's MVC model to the console paradigm than an outright bug. In order for your output to be picked up by assertConsoleOutputContains you need to return the string from the controller action rather than calling writeLine on the console adapter directly. assertConsoleOutputContains only checks the controller's Response object and not the contents of the Console adapter also composed into the controller. The console adapters do not buffer so the test helper cannot introspect the output.
Also an obligatory note: zend-mvc-console is deprecated in favor of zf-console.
Hi,
If I use "console write" in objects of
Zend\Mvc\Console\Controller\AbstractConsoleController
, when testing, it outputs the content andassertConsoleOutputContents
don't recognize the output.Example:
It outputs:
The text was updated successfully, but these errors were encountered: