public function testGetNameSetName() { $name = 'mycommand'; $name2 = 'othername'; $command = new Command($name); $this->assertEquals($name, $command->getName()); $command->setName($name2); $this->assertEquals($name2, $command->getName()); }
public function __construct($enabled) { $this->enabled = $enabled; parent::__construct('my_command'); }