mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Fixed path analysis
This commit is contained in:
parent
05ffc605f1
commit
3c0a620ad5
4 changed files with 44 additions and 9 deletions
|
@ -60,6 +60,8 @@ class FilesystemTest extends TestCase
|
|||
array('C:/Temp/../..', 'd:\Temp\..\..\test', true, "'d:/test'"),
|
||||
array('/foo/bar', '/foo/bar_vendor', true, "dirname(__DIR__).'/bar_vendor'"),
|
||||
array('/foo/bar_vendor', '/foo/bar', true, "dirname(__DIR__).'/bar'"),
|
||||
array('/foo/bar_vendor', '/foo/bar/src', true, "dirname(__DIR__).'/bar/src'"),
|
||||
array('/foo/bar_vendor/src2', '/foo/bar/src/lib', true, "dirname(dirname(__DIR__)).'/bar/src/lib'"),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -107,6 +109,8 @@ class FilesystemTest extends TestCase
|
|||
array('/tmp', '/tmp/../../test', '/test', true),
|
||||
array('/foo/bar', '/foo/bar_vendor', '../bar_vendor', true),
|
||||
array('/foo/bar_vendor', '/foo/bar', '../bar', true),
|
||||
array('/foo/bar_vendor', '/foo/bar/src', '../bar/src', true),
|
||||
array('/foo/bar_vendor/src2', '/foo/bar/src/lib', '../../bar/src/lib', true),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue