dimanche 18 mars 2018

Laravel: Disable Artisan console output when running tests

When running PHPUnit tests that are testing an Artisan command PHPUnit outputs any console ->info() or ->writeln() function calls.

Tests to not fail due to this although its ugly.

Example:

enter image description here

see the progress bar? How can we disable output during testing?

Aucun commentaire:

Enregistrer un commentaire