File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,15 @@ private function getPhpParserNodeMock(): \PhpParser\Node
8282
8383 public function testParseTheSameFileWithDifferentMethod (): void
8484 {
85+ $ fileHelper = self ::getContainer ()->getByType (FileHelper::class);
8586 $ pathRoutingParser = new PathRoutingParser (
86- self :: getContainer ()-> getByType (FileHelper::class) ,
87+ $ fileHelper ,
8788 self ::getContainer ()->getService ('currentPhpVersionRichParser ' ),
8889 self ::getContainer ()->getService ('currentPhpVersionSimpleDirectParser ' ),
8990 self ::getContainer ()->getService ('php8Parser ' )
9091 );
9192 $ parser = new CachedParser ($ pathRoutingParser , 500 );
92- $ path = __DIR__ . '/data/test.php ' ;
93+ $ path = $ fileHelper -> normalizePath ( __DIR__ . '/data/test.php ' ) ;
9394 $ pathRoutingParser ->setAnalysedFiles ([$ path ]);
9495 $ contents = FileReader::read ($ path );
9596 $ stmts = $ parser ->parseString ($ contents );
You can’t perform that action at this time.
0 commit comments