File tree 1 file changed +5
-4
lines changed
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.
@@ -1095,18 +1096,18 @@ public function testReadBrokenLink()
1095
1096
$ this ->markTestSkipped ('Windows does not support reading "broken" symlinks in PHP < 7.4.0 ' );
1096
1097
}
1097
1098
1098
- $ file = $ this ->workspace . ' / file ' ;
1099
- $ link = $ this ->workspace . ' / link ' ;
1099
+ $ file = Path:: join ( $ this ->workspace , ' file ') ;
1100
+ $ link = Path:: join ( $ this ->workspace , ' link ') ;
1100
1101
1101
1102
touch ($ file );
1102
1103
$ this ->filesystem ->symlink ($ file , $ link );
1103
1104
$ this ->filesystem ->remove ($ file );
1104
1105
1105
- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link ));
1106
+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link) ));
1106
1107
$ this ->assertNull ($ this ->filesystem ->readlink ($ link , true ));
1107
1108
1108
1109
touch ($ file );
1109
- $ this ->assertEquals ($ file , $ this ->filesystem ->readlink ($ link , true ));
1110
+ $ this ->assertEquals ($ file , Path:: normalize ( $ this ->filesystem ->readlink ($ link , true ) ));
1110
1111
}
1111
1112
1112
1113
public function testReadLinkDefaultPathDoesNotExist ()
You can’t perform that action at this time.
0 commit comments