| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function configCommand() |
||
| 23 | { |
||
| 24 | $configCmd = Factory::createConfig() |
||
| 25 | ->addName('test') |
||
| 26 | ->setUntrusted(true) |
||
| 27 | ->setEdit(true) |
||
| 28 | ->setLocal(true) |
||
| 29 | ->setGlobal(true); |
||
| 30 | |||
| 31 | $name = '\'test\''; |
||
| 32 | $expected = 'hg config --untrusted --edit --local --global '; |
||
| 33 | |||
| 34 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { |
||
| 35 | $name = str_replace("'", '"', $name); |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->assertSame($name, implode(' ', $configCmd->getName())); |
||
| 39 | $this->assertSame($expected . $name, $configCmd->asString()); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |