If you need to test commands, you might need to tweak the output to your needs. You can adjust the command verbosity:
# app/config/config_test.yml
alexis_lefebvre_test:
command_verbosity: debug
Supported values are quiet, normal, verbose, very_verbose
and debug. The default value is normal.
You can also configure this on a per-test basis:
use AlexisLefebvre\TestBundle\Test\WebTestCase;
class MyTestCase extends WebTestCase {
public function myTest() {
$this->verbosityLevel = 'debug';
$this->runCommand('myCommand');
}
}
Depending where your tests are running, you might want to disable the output decorator:
# app/config/config_test.yml
alexis_lefebvre_test:
command_decoration: false
The default value is true.
You can also configure this on a per-test basis:
use AlexisLefebvre\TestBundle\Test\WebTestCase;
class MyTestCase extends WebTestCase {
public function myTest() {
$this->decorated = false;
$this->runCommand('myCommand');
}
}
How can I help you explore Laravel packages today?