| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function identifyCommand() |
||
| 23 | { |
||
| 24 | $identifyCmd = Factory::createIdentify(); |
||
| 25 | $identifyCmd->setSource('C:\\xampp\\source\\'); |
||
| 26 | $identifyCmd->setNum(true); |
||
| 27 | $identifyCmd->setInsecure(true); |
||
| 28 | |||
| 29 | $source = '\'C:\xampp\source\\\''; |
||
| 30 | $expected = "hg identify --num --insecure "; |
||
| 31 | |||
| 32 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { |
||
| 33 | $source = str_replace("'", '"', $source); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->assertSame($source, $identifyCmd->getSource()); |
||
| 37 | $this->assertSame($expected . $source, $identifyCmd->asString()); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |