From 09855016021511370af5be06db6f89032ccbc26c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 2 Apr 2022 12:38:23 +0200 Subject: [PATCH] Fix windows build --- tests/Composer/Test/Autoload/AutoloadGeneratorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index 1c7ca36f3..a95b72dfb 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -1606,7 +1606,7 @@ 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(realpath(dirname($this->workingDir))).'/excludedroot($|/)', preg_quote(realpath($this->workingDir)).'/root/excl($|/)'), $parsed['exclude-from-classmap']); } public function testEmptyPaths()