| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function branchCommand() |
||
| 23 | { |
||
| 24 | $branchCmd = Factory::createBranch(); |
||
| 25 | $branchCmd->setName('test'); |
||
| 26 | $branchCmd->setClean(true); |
||
| 27 | $branchCmd->setForce(true); |
||
| 28 | |||
| 29 | $name = '\'test\''; |
||
| 30 | $expected = 'hg branch --force --clean '; |
||
| 31 | |||
| 32 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { |
||
| 33 | $name = str_replace("'", '"', $name); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->assertSame($name, $branchCmd->getName()); |
||
| 37 | $this->assertSame($expected . $name, $branchCmd->asString()); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |