File tree 1 file changed +3
-3
lines changed
lib/internal/Magento/Framework/Filesystem/Test/Unit/Io
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ private function getTmpDir()
24
24
* To cover the issue on GitHub: #27866
25
25
* @throws LocalizedException
26
26
*/
27
- public function testReadShouldCopyTheSourceFileToTheGivenGileResource ()
27
+ public function testReadShouldCopyTheSourceFileToTheGivenFileResource ()
28
28
{
29
29
$ content = \mt_rand ();
30
30
$ sourceFileName = "source-file.txt " ;
@@ -33,9 +33,9 @@ public function testReadShouldCopyTheSourceFileToTheGivenGileResource()
33
33
34
34
$ file = new File ();
35
35
$ targetFileName = "target-file.txt " ;
36
- $ targetFileHandle = \fopen ("{$ tmpDir }/ {$ targetFileName }" , 'w ' );
36
+ $ targetFileHandle = \fopen ("{$ tmpDir }/ {$ targetFileName }" , 'w ' );
37
37
$ file ->cd ($ tmpDir );
38
- $ result = $ file ->read ($ sourceFileName , $ targetFileHandle );
38
+ $ file ->read ($ sourceFileName , $ targetFileHandle );
39
39
40
40
$ targetContent = file_get_contents ("{$ tmpDir }/ {$ targetFileName }" );
41
41
$ this ->assertEquals ($ content , $ targetContent );
You can’t perform that action at this time.
0 commit comments