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:
parent
2b385cbe58
commit
97f67c09e4
2 changed files with 17 additions and 5 deletions
|
@ -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'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue