| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function testRename() |
||
| 36 | { |
||
| 37 | $mc = MvCommand::getInstance(); |
||
| 38 | $this->assertEquals("mv '-k' 'a' 'b'", $mc->rename('a', 'b')); |
||
| 39 | $tree = $this->repository->getTree('HEAD', 'test'); |
||
| 40 | $this->assertEquals("mv '-k' 'test' 'b'", $mc->rename($tree->getBlob(), 'b')); |
||
| 41 | $tree = $this->repository->getTree('HEAD', 'test_folder/test2'); |
||
| 42 | $this->assertEquals("mv '-k' 'test_folder/test2' 'b'", $mc->rename($tree->getBlob(), 'b')); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |