Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function unbundleCommand() |
||
23 | { |
||
24 | $unbundleCmd = Factory::createUnbundle(); |
||
25 | $unbundleCmd->addFile('C:\\xampp\\file1\\'); |
||
26 | $unbundleCmd->addFile('C:\\xampp\\file2\\'); |
||
27 | $unbundleCmd->setUpdate(true); |
||
28 | |||
29 | $file = '\'C:\xampp\file1\\\' \'C:\xampp\file2\\\''; |
||
30 | $expected = 'hg unbundle --update '; |
||
31 | |||
32 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { |
||
33 | $file = str_replace("'", '"', $file); |
||
34 | } |
||
35 | |||
36 | $this->assertSame($file, implode(' ', $unbundleCmd->getFile())); |
||
37 | $this->assertSame($expected . $file, $unbundleCmd->asString()); |
||
38 | } |
||
39 | } |
||
40 |