$command =
new \
TestCommand();
$this->
assertEquals('description',
$command->
getDescription(), '->getDescription() returns the description'
);
$ret =
$command->
setDescription('description1'
);
$this->
assertEquals($command,
$ret, '->setDescription() implements a fluent interface'
);
$this->
assertEquals('description1',
$command->
getDescription(), '->setDescription() sets the description'
);
} public function testGetSetHelp() { $command =
new \
TestCommand();
$this->
assertEquals('help',
$command->
getHelp(), '->getHelp() returns the help'
);
$ret =
$command->
setHelp('help1'
);
$this->
assertEquals($command,
$ret, '->setHelp() implements a fluent interface'
);
$this->
assertEquals('help1',
$command->
getHelp(), '->setHelp() sets the help'
);
$command->
setHelp(''
);
$this->
assertEquals('',
$command->
getHelp(), '->getHelp() does not fall back to the description'
);
} public function testGetProcessedHelp() { $command =
new \
TestCommand();
$command->
setHelp('The %command.name% command does... Example: %command.full_name%.'
);