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