Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testCheckoutAndRemove() : void |
||
19 | { |
||
20 | $sourceRepositoryPath = realpath(__DIR__ . '/../../../'); |
||
21 | |||
22 | $git = new GitCheckoutRevisionToTemporaryPath(); |
||
23 | |||
24 | $temporaryClone = $git->checkout( |
||
25 | CheckedOutRepository::fromPath($sourceRepositoryPath), |
||
26 | Revision::fromSha1('428327492a803b6e0c612b157a67a50a47275461') |
||
27 | ); |
||
28 | |||
29 | self::assertInstanceOf(CheckedOutRepository::class, $temporaryClone); |
||
30 | |||
31 | $git->remove($temporaryClone); |
||
32 | } |
||
34 |