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 13
13
14
14
use Symfony \Component \Filesystem \Exception \InvalidArgumentException ;
15
15
use Symfony \Component \Filesystem \Exception \IOException ;
16
+ use Symfony \Component \Filesystem \Path ;
16
17
17
18
/**
18
19
* Test class for Filesystem.
@@ -1087,18 +1088,18 @@ public function testReadBrokenLink()
1087
1088
{
1088
1089
$ this ->markAsSkippedIfSymlinkIsMissing ();
1089
1090
1090
- $ file = $ this ->workspace . ' / file ' ;
1091
- $ link = $ this ->workspace . ' / link ' ;
1091
+ $ file = Path:: join ( $ this ->workspace , ' file ') ;
1092
+ $ link = Path:: join ( $ this ->workspace , ' link ') ;
1092
1093
1093
1094
touch ($ file );
1094
1095
$ this ->filesystem ->symlink ($ file , $ link );
1095
1096
$ this ->filesystem ->remove ($ file );
1096
1097
1097
- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link ));
1098
+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link) ));
1098
1099
$ this ->assertNull ($ this ->filesystem ->readlink ($ link , true ));
1099
1100
1100
1101
touch ($ file );
1101
- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link , true ));
1102
+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link , true ) ));
1102
1103
}
1103
1104
1104
1105
public function testReadLinkDefaultPathDoesNotExist ()
You can’t perform that action at this time.
0 commit comments