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.
@@ -1087,18 +1088,18 @@ public function testReadBrokenLink()
10871088 {
10881089 $ this ->markAsSkippedIfSymlinkIsMissing ();
10891090
1090- $ file = $ this ->workspace . ' / file ' ;
1091- $ link = $ this ->workspace . ' / link ' ;
1091+ $ file = Path:: join ( $ this ->workspace , ' file ') ;
1092+ $ link = Path:: join ( $ this ->workspace , ' link ') ;
10921093
10931094 touch ($ file );
10941095 $ this ->filesystem ->symlink ($ file , $ link );
10951096 $ this ->filesystem ->remove ($ file );
10961097
1097- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link ));
1098+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link) ));
10981099 $ this ->assertNull ($ this ->filesystem ->readlink ($ link , true ));
10991100
11001101 touch ($ file );
1101- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link , true ));
1102+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link , true ) ));
11021103 }
11031104
11041105 public function testReadLinkDefaultPathDoesNotExist ()
You can’t perform that action at this time.
0 commit comments