/** * @test */ public function cloneCommandWithoutDestination() { $cloneCmd = Factory::createClone(); $cloneCmd->setSource('C:\\xampp\\source'); $cloneCmd->setUncompressed(true); $cloneCmd->setInsecure(true); $expected = 'hg clone --uncompressed --insecure \'C:\\xampp\\source\''; if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $expected = str_replace("'", '"', $expected); } $this->assertSame($expected, $cloneCmd->asString()); }