yield ['/css/style.css', '/webmozart/symfony', '/css/style.css'
];
yield ['\\css\\style.css', '/webmozart/symfony', '/css/style.css'
];
yield ['C:/css/style.css', 'C:/webmozart/symfony', 'C:/css/style.css'
];
yield ['D:\\css\\style.css', 'D:/webmozart/symfony', 'D:/css/style.css'
];
} /**
* @dataProvider provideMakeAbsoluteTests
*/
public function testMakeAbsolute(string
$relativePath, string
$basePath, string
$absolutePath) { $this->
assertSame($absolutePath, Path::
makeAbsolute($relativePath,
$basePath));
} public function testMakeAbsoluteFailsIfBasePathNotAbsolute() { $this->
expectException(\InvalidArgumentException::
class);
$this->
expectExceptionMessage('The base path "webmozart/symfony" is not an absolute path.'
);
Path::
makeAbsolute('css/style.css', 'webmozart/symfony'
);
} public function testMakeAbsoluteFailsIfBasePathEmpty() {