1
0
Fork 0
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:
Jordi Boggiano 2022-04-02 13:04:37 +02:00
commit b03e9e414e
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
3 changed files with 21 additions and 6 deletions

View file

@ -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