public __toString ( ) : string | ||
return | string |
public function __toString()
{
return sprintf("The name of the task:\n - %s", implode("\n - ", $this->getCommands()));
}
/** * 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()); }