Skip to content

Commit 4d41086

Browse files
committed
Fixed TraitsCachingIssueIntegrationTest on Windows
1 parent 67e8f8e commit 4d41086

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/PHPStan/Analyser/traitsCachingIssue/TraitsCachingIssueIntegrationTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Analyser;
44

5+
use PHPStan\File\FileHelper;
56
use PHPStan\File\FileReader;
67
use PHPStan\Testing\TestCase;
78
use RecursiveDirectoryIterator;
@@ -87,7 +88,9 @@ public function testCachingIssue(
8788
$this->originalTraitTwoContents = $this->changeTrait(__DIR__ . '/data/TraitTwo.php');
8889
}
8990

90-
$errorPath = __DIR__ . '/data/TestClassUsingTrait.php';
91+
$fileHelper = new FileHelper(__DIR__);
92+
93+
$errorPath = $fileHelper->normalizePath(__DIR__ . '/data/TestClassUsingTrait.php');
9194
[$statusCode, $errors] = $this->runPhpStan();
9295

9396
if (count($expectedErrors) === 0) {

0 commit comments

Comments
 (0)