public function setDescription($description)
{
$this->description = $description;
return $this;
}
public function testOverrideDescription() { $container = new Container(); $task = new DefinedTask(); $task->setName("test"); $task->setDescription("custom description"); $application = new Application($container); $application->setAutoExit(false); $application->add(new TestCommand($task)); $command = $application->find("test"); $this->assertEquals("custom description", $command->getDescription()); }