/**
  * @test
  */
 public function tagCommand()
 {
     $tagCmd = Factory::createTag();
     $tagCmd->addName('rev');
     $tagCmd->addName('rev2');
     $tagCmd->setForce(true);
     $tagCmd->setLocal(true);
     $tagCmd->setRev('test');
     $tagCmd->setRemove(true);
     $tagCmd->setEdit(true);
     $tagCmd->setMessage('text');
     $tagCmd->setDate('date');
     $tagCmd->setUser('user');
     $name = 'rev rev2';
     $expected = 'hg tag --force --local --rev ' . escapeshellarg('test') . ' --remove --edit --message ' . escapeshellarg('text') . ' --date ' . escapeshellarg('date') . ' --user ' . escapeshellarg('user') . ' ';
     $this->assertSame($name, implode(' ', $tagCmd->getName()));
     $this->assertSame($expected . $name, $tagCmd->asString());
 }