Skip to content

Commit c0a1108

Browse files
committed
PHPStanTestCase - fix current working directory
1 parent 971f58e commit c0a1108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Testing/PHPStanTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public static function getContainer(): Container
5050
}
5151

5252
$rootDir = __DIR__ . '/../..';
53+
$fileHelper = new FileHelper($rootDir);
54+
$rootDir = $fileHelper->normalizePath($rootDir);
5355
$containerFactory = new ContainerFactory($rootDir);
5456
$container = $containerFactory->create($tmpDir, array_merge([
5557
$containerFactory->getConfigDirectory() . '/config.level8.neon',

0 commit comments

Comments
 (0)