| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class PathTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testAbsolutePath(): void |
||
| 11 | { |
||
| 12 | Path::setRoot('/tmp'); |
||
| 13 | self::assertStringEndsWith('/tmp/akmal', Path::get('akmal')); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function testRoot(): void |
||
| 17 | { |
||
| 18 | Path::setRoot(__DIR__); |
||
| 19 | self::assertStringEndsWith(__DIR__, Path::getRoot()); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testNames(): void |
||
| 23 | { |
||
| 24 | Path::setRoot('/tmp'); |
||
| 25 | Path::addName('src', 'src'); |
||
| 26 | |||
| 27 | self::assertStringEndsWith('/tmp/src', Path::getName('src')); |
||
| 28 | } |
||
| 30 |