mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Normalization of URLs caused discrepancy on Windows with unit tests.
This commit is contained in:
parent
84fed02df1
commit
aef4820abe
1 changed files with 4 additions and 1 deletions
|
@ -101,6 +101,9 @@ class PathRepositoryTest extends TestCase
|
|||
|
||||
$package = $packages[0];
|
||||
$this->assertEquals('test/path-versioned', $package->getName());
|
||||
$this->assertEquals(rtrim($relativeUrl, DIRECTORY_SEPARATOR), rtrim($package->getDistUrl(), DIRECTORY_SEPARATOR));
|
||||
|
||||
// Convert platform specific separators back to generic URL slashes
|
||||
$relativeUrl = str_replace(DIRECTORY_SEPARATOR, '/', $relativeUrl);
|
||||
$this->assertEquals(rtrim($relativeUrl, '/'), rtrim($package->getDistUrl(), '/'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue