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