Skip to content

Commit 328e486

Browse files
committed
fixing windows bug
1 parent 92aeff5 commit 328e486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Util/AutoloaderUtilTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testGetPathForFutureClass()
4646
foreach ($this->getPathForFutureClassTests() as $className => $expectedPath) {
4747
$this->assertSame(
4848
// the paths will start in vendor/composer and be relative
49-
$rootDir.'/vendor/composer/../../'.$expectedPath,
49+
str_replace('\\', '/', $rootDir.'/vendor/composer/../../'.$expectedPath),
5050
// normalize slashes for Windows comparison
5151
str_replace('\\', '/', $autoloaderUtil->getPathForFutureClass($className)),
5252
sprintf('class "%s" should have been in path "%s"', $className, $expectedPath)

0 commit comments

Comments
 (0)