1
0
Fork 0

Fix windows build

pull/10701/head
Jordi Boggiano 2022-04-02 12:48:02 +02:00
parent 96f087a273
commit 34fa266114
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 1 deletions

View File

@ -1606,7 +1606,10 @@ EOF;
)); ));
$map = $this->generator->buildPackageMap($this->im, $package, array($dep)); $map = $this->generator->buildPackageMap($this->im, $package, array($dep));
$parsed = $this->generator->parseAutoloads($map, $package); $parsed = $this->generator->parseAutoloads($map, $package);
$this->assertSame(array(preg_quote(realpath(dirname($this->workingDir))).'/excludedroot($|/)', preg_quote(realpath($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(dirname($this->workingDir))), '\\', '/').'/root/excl($|/)'
), $parsed['exclude-from-classmap']);
} }
public function testEmptyPaths() public function testEmptyPaths()