| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function testRootDiff(): void |
||
| 41 | { |
||
| 42 | $dtc = DiffTreeCommand::getInstance(); |
||
| 43 | $commit = $this->getRepository()->getCommit(); |
||
| 44 | $command = $dtc->rootDiff($commit); |
||
| 45 | $this->assertEquals( |
||
| 46 | sprintf("diff-tree '--cc' '--root' '--dst-prefix=DST/' '--src-prefix=SRC/' '%s'", $commit), |
||
| 47 | $command |
||
| 48 | ); |
||
| 49 | $this->addFile('test'); |
||
| 50 | $this->getRepository()->commit('test commit', true); |
||
| 51 | $this->expectException('InvalidArgumentException'); |
||
| 52 | $this->fail($dtc->rootDiff($this->getRepository()->getCommit())); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |