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