mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Merge branch '2.2' into main
This commit is contained in:
commit
b03e9e414e
3 changed files with 21 additions and 6 deletions
|
@ -1597,7 +1597,10 @@ EOF;
|
|||
));
|
||||
$map = $this->generator->buildPackageMap($this->im, $package, array($dep));
|
||||
$parsed = $this->generator->parseAutoloads($map, $package);
|
||||
$this->assertSame(array(preg_quote(dirname($this->workingDir)).'/excludedroot($|/)', preg_quote($this->workingDir).'/root/excl($|/)'), $parsed['exclude-from-classmap']);
|
||||
$this->assertSame(array(
|
||||
preg_quote(strtr((string) realpath(dirname($this->workingDir)), '\\', '/')).'/excludedroot($|/)',
|
||||
preg_quote(strtr((string) realpath($this->workingDir), '\\', '/')).'/root/excl($|/)'
|
||||
), $parsed['exclude-from-classmap']);
|
||||
}
|
||||
|
||||
public function testEmptyPaths(): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue