mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Added more tests for Filesystem util and some fixes
This commit is contained in:
parent
304ce3b375
commit
927be089ba
2 changed files with 15 additions and 16 deletions
|
@ -49,6 +49,8 @@ class FilesystemTest extends TestCase
|
|||
array('c:\\bin\\run', 'd:/vendor/acme/bin/run', true, "'d:/vendor/acme/bin/run'"),
|
||||
array('C:/Temp/test', 'C:\Temp', true, "dirname(__DIR__)"),
|
||||
array('C:/Temp', 'C:\Temp\test', true, "__DIR__ . '/test'"),
|
||||
array('/tmp/test', '/tmp', true, "dirname(__DIR__)"),
|
||||
array('/tmp', '/tmp/test', true, "__DIR__ . '/test'"),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -73,7 +75,11 @@ class FilesystemTest extends TestCase
|
|||
array('c:\\bin\\run', 'c:/vendor/acme/bin/run', "../vendor/acme/bin/run"),
|
||||
array('c:/bin/run', 'd:/vendor/acme/bin/run', "d:/vendor/acme/bin/run"),
|
||||
array('c:\\bin\\run', 'd:/vendor/acme/bin/run', "d:/vendor/acme/bin/run"),
|
||||
array('C:/Temp/test', 'C:\Temp', "../"),
|
||||
array('C:/Temp/test', 'C:\Temp', "./"),
|
||||
array('/tmp/test', '/tmp', "./"),
|
||||
array('C:/Temp/test/sub', 'C:\Temp', "../"),
|
||||
array('/tmp/test/sub', '/tmp', "../"),
|
||||
array('/tmp', '/tmp/test', "test"),
|
||||
array('C:/Temp', 'C:\Temp\test', "test"),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue