We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e8f8e commit 4d41086Copy full SHA for 4d41086
tests/PHPStan/Analyser/traitsCachingIssue/TraitsCachingIssueIntegrationTest.php
@@ -2,6 +2,7 @@
2
3
namespace PHPStan\Analyser;
4
5
+use PHPStan\File\FileHelper;
6
use PHPStan\File\FileReader;
7
use PHPStan\Testing\TestCase;
8
use RecursiveDirectoryIterator;
@@ -87,7 +88,9 @@ public function testCachingIssue(
87
88
$this->originalTraitTwoContents = $this->changeTrait(__DIR__ . '/data/TraitTwo.php');
89
}
90
- $errorPath = __DIR__ . '/data/TestClassUsingTrait.php';
91
+ $fileHelper = new FileHelper(__DIR__);
92
+
93
+ $errorPath = $fileHelper->normalizePath(__DIR__ . '/data/TestClassUsingTrait.php');
94
[$statusCode, $errors] = $this->runPhpStan();
95
96
if (count($expectedErrors) === 0) {
0 commit comments