protected function setUp(): void
{ $this->application =
new Application();
$this->application->
setAutoExit(false
);
$this->application->
register('foo'
) ->
addArgument('foo'
) ->
setCode(function D
$input,
$output) { $output->
writeln('foo'
);
}) ;
$this->tester =
new ApplicationTester($this->application
);
$this->tester->
run(['command' => 'foo', 'foo' => 'bar'
],
['interactive' => false, 'decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE
]);
} public function testRun() { $this->
assertFalse($this->tester->
getInput()->
isInteractive(), '->execute() takes an interactive option'
);
$this->
assertFalse($this->tester->
getOutput()->
isDecorated(), '->execute() takes a decorated option'
);
$this->
assertEquals(Output::VERBOSITY_VERBOSE,
$this->tester->
getOutput()->
getVerbosity(), '->execute() takes a verbosity option'
);
} public function testGetInput() {