| Total Complexity | 2 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class PathTest extends CommonTestClass  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @param array<string> $from  | 
            ||
| 14 | * @param string $to  | 
            ||
| 15 | * @dataProvider transformProvider  | 
            ||
| 16 | */  | 
            ||
| 17 | public function testPaths(/** @scrutinizer ignore-unused */array $from, string $to): void  | 
            ||
| 18 |     { | 
            ||
| 19 | $lib = new XPath();  | 
            ||
| 20 | $this->assertEmpty($lib->getPath());  | 
            ||
| 21 | $lib->setPath($to);  | 
            ||
| 22 | $this->assertEquals($to, $lib->getPath());  | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 | public function transformProvider(): array  | 
            ||
| 26 |     { | 
            ||
| 27 | return [  | 
            ||
| 28 | [['okmijnuhb', ], 'okmijnuhb', ],  | 
            ||
| 29 | // just dirs  | 
            ||
| 30 | [['wsx', 'edc', 'rfv', ], 'wsx' . DIRECTORY_SEPARATOR . 'edc' . DIRECTORY_SEPARATOR . 'rfv', ],  | 
            ||
| 31 | // dir slash  | 
            ||
| 32 | [['wsx/', 'edc', 'r f v', ], 'wsx\/' . DIRECTORY_SEPARATOR . 'edc' . DIRECTORY_SEPARATOR . 'r f v', ],  | 
            ||
| 33 | // too many slashes  | 
            ||
| 34 | [['wsx\\', 'e-dc', 'r&f&v', ], 'wsx\\\\' . DIRECTORY_SEPARATOR . 'e-dc' . DIRECTORY_SEPARATOR . 'r&f&v', ],  | 
            ||
| 35 | // empty path  | 
            ||
| 36 | [['', ], '', ],  | 
            ||
| 37 | ];  | 
            ||
| 46 |