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