$tester->
run(['--no-ansi' => true
]);
$this->
assertFalse($tester->
getOutput()->
isDecorated(), '->run() forces color output to be disabled if --no-ansi is passed'
);
$tester->
run(['--version' => true
],
['decorated' => false
]);
$this->
assertStringEqualsFile(self::
$fixturesPath.'/application_run4.txt',
$tester->
getDisplay(true
), '->run() displays the program version if --version is passed'
);
$tester->
run(['-V' => true
],
['decorated' => false
]);
$this->
assertStringEqualsFile(self::
$fixturesPath.'/application_run4.txt',
$tester->
getDisplay(true
), '->run() displays the program version if -v is passed'
);
$tester->
run(['command' => 'list', '--quiet' => true
]);
$this->
assertSame('',
$tester->
getDisplay(), '->run() removes all output if --quiet is passed'
);
$this->
assertFalse($tester->
getInput()->
isInteractive(), '->run() sets off the interactive mode if --quiet is passed'
);
$tester->
run(['command' => 'list', '-q' => true
]);
$this->
assertSame('',
$tester->
getDisplay(), '->run() removes all output if -q is passed'
);
$this->
assertFalse($tester->
getInput()->
isInteractive(), '->run() sets off the interactive mode if -q is passed'
);
$tester->
run(['command' => 'list', '--verbose' => true
]);
$this->
assertSame(Output::VERBOSITY_VERBOSE,
$tester->
getOutput()->
getVerbosity(), '->run() sets the output to verbose if --verbose is passed'
);
$tester->
run(['command' => 'list', '--verbose' => 1
]);
$this->
assertSame(Output::VERBOSITY_VERBOSE,
$tester->
getOutput()->
getVerbosity(), '->run() sets the output to verbose if --verbose=1 is passed'
);