Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testFromPath() : void |
||
20 | { |
||
21 | $path = sys_get_temp_dir() . '/' . uniqid('testPath', true); |
||
22 | mkdir($path, 0777, true); |
||
23 | mkdir($path . '/.git'); |
||
24 | |||
25 | $checkedOutRepository = CheckedOutRepository::fromPath($path); |
||
26 | self::assertSame($path, (string) $checkedOutRepository); |
||
27 | |||
28 | rmdir($path . '/.git'); |
||
29 | rmdir($path); |
||
30 | } |
||
32 |