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