__toString() public method

By using the __toString() method, we ensure that the help text is lazy loaded at a time where the autoloader is available (required by $this->getCommands()).
public __toString ( ) : string
return string
 /**
  * Tests the __toString() method.
  */
 public function testToString()
 {
     $command = new AutomatorCommand('contao:automator');
     $command->setFramework($this->mockContaoFramework());
     $this->assertContains('The name of the task:', $command->__toString());
 }