コード例 #1
0
 /**
  * @test
  */
 public function mergeCommand()
 {
     $mergeCmd = Factory::createMerge();
     $mergeCmd->setRev('revision');
     $mergeCmd->setTool('testtool');
     $mergeCmd->setPreview(true);
     $expected = 'hg merge --rev ' . escapeshellarg('revision') . ' --preview --tool ' . escapeshellarg('testtool');
     $this->assertSame($expected, $mergeCmd->asString());
 }