File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313
1414use Symfony \Component \Filesystem \Exception \InvalidArgumentException ;
1515use Symfony \Component \Filesystem \Exception \IOException ;
16+ use Symfony \Component \Filesystem \Path ;
1617
1718/**
1819 * Test class for Filesystem.
@@ -1095,18 +1096,18 @@ public function testReadBrokenLink()
10951096 $ this ->markTestSkipped ('Windows does not support reading "broken" symlinks in PHP < 7.4.0 ' );
10961097 }
10971098
1098- $ file = $ this ->workspace . ' / file ' ;
1099- $ link = $ this ->workspace . ' / link ' ;
1099+ $ file = Path:: join ( $ this ->workspace , ' file ') ;
1100+ $ link = Path:: join ( $ this ->workspace , ' link ') ;
11001101
11011102 touch ($ file );
11021103 $ this ->filesystem ->symlink ($ file , $ link );
11031104 $ this ->filesystem ->remove ($ file );
11041105
1105- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link ));
1106+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link) ));
11061107 $ this ->assertNull ($ this ->filesystem ->readlink ($ link , true ));
11071108
11081109 touch ($ file );
1109- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link , true ));
1110+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link , true ) ));
11101111 }
11111112
11121113 public function testReadLinkDefaultPathDoesNotExist ()
You can’t perform that action at this time.
0 commit comments