|
1 | 1 | <?php |
2 | 2 |
|
3 | | -use FlixtechsLabs\Bytepoint\Bytepoint; |
4 | | -use Illuminate\Http\Request; |
5 | 3 | use Illuminate\Http\UploadedFile; |
6 | | -use Illuminate\Support\Benchmark; |
7 | | -use Illuminate\Support\Facades\Artisan; |
8 | | -use Illuminate\Support\Facades\Http; |
9 | | -use Illuminate\Support\Facades\Route; |
10 | | -use Illuminate\Support\Facades\Storage; |
11 | | - |
12 | 4 |
|
13 | 5 | it('can test', function () { |
14 | 6 | expect(true)->toBeTrue(); |
15 | 7 | }); |
16 | 8 |
|
17 | 9 | it('can optimize uploaded file', function () { |
18 | | - $file = new UploadedFile(__DIR__ . '/test.jpg', 'test.jpg', null, null, true); |
| 10 | + $file = new UploadedFile(__DIR__.'/test.jpg', 'test.jpg', null, null, true); |
19 | 11 |
|
20 | | - $size = $file->getSize(); |
21 | | - $type = $file->getMimeType(); |
| 12 | + $size = $file->getSize(); |
| 13 | + $type = $file->getMimeType(); |
22 | 14 |
|
23 | | - $file = $file->bytepoint(['type' => 'webp']); |
| 15 | + $file = $file->bytepoint(['type' => 'webp']); |
24 | 16 |
|
25 | | - dd($size, $type, $file->getSize(), $file->getMimeType()); |
| 17 | + dd($size, $type, $file->getSize(), $file->getMimeType()); |
26 | 18 | }); |
0 commit comments