| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class GitCliWrapperTest extends TestCase |
||
| 14 | { |
||
| 15 | public function testGitDiffCommandFails(): void |
||
| 16 | { |
||
| 17 | $projectRoot = ProjectRoot::fromCurrentWorkingDirectory(__DIR__); |
||
| 18 | $gitCliWrapper = new GitCliWrapper(); |
||
| 19 | $nonExistentGitSha = new GitCommit('0000000000000000000000000000000000000000'); |
||
| 20 | $this->expectException(GitException::class); |
||
| 21 | $gitCliWrapper->getGitDiff($projectRoot, $nonExistentGitSha); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testGetGitShaCommandFails(): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |