Skip to content

Commit

Permalink
Check sysmlinks in tmp_name
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Sep 4, 2023
1 parent 612215c commit d383fe8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Feature/UploadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
->toMatchArray($data['expect'])
->toHaveKey('tmp_name')
->{$data['file']}->tmp_name
->toStartWith(sys_get_temp_dir());
->toStartWith(
is_link(sys_get_temp_dir()) // OSX
? readlink(sys_get_temp_dir())
: sys_get_temp_dir()
);

})->with('UPLOAD');

Expand Down

0 comments on commit d383fe8

Please sign in to comment.