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