1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix normalization of relative paths

This commit is contained in:
Martin Hasoň 2013-04-05 06:41:14 +02:00
parent 2b385cbe58
commit 97f67c09e4
2 changed files with 17 additions and 5 deletions

View file

@ -160,6 +160,11 @@ class FilesystemTest extends TestCase
array('phar://c:/Foo', 'phar://c:/Foo/Bar/..'),
array('phar://c:/', 'phar://c:/Foo/Bar/../../../..'),
array('/', '/Foo/Bar/../../../..'),
array('/', '/'),
array('c:/', 'c:\\'),
array('../src', 'Foo/Bar/../../../src'),
array('c:../b', 'c:.\\..\\a\\..\\b'),
array('phar://c:../Foo', 'phar://c:../Foo'),
);
}
}