Skip to content

Commit

Permalink
test windows, macos
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed May 2, 2023
1 parent 492afe7 commit 18e9ff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
php: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]

name: PHP ${{ matrix.php }}
name: ${{ matrix.os }} PHP ${{ matrix.php }}
env:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, grpc
key: cache-v1 # can be any string, change to clear the extension cache.
Expand Down
4 changes: 2 additions & 2 deletions tests/ReceiverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Illuminate\Http\JsonResponse;
use Illuminate\Http\UploadedFile;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use PHPUnit\Framework\TestCase;
use Recca0120\Upload\Contracts\Api;
use Recca0120\Upload\Exceptions\ChunkedResponseException;
Expand All @@ -25,7 +25,7 @@ public function testReceive(): void
$path = 'temp';
$domain = 'https://foo.bar/';

$uploadedFile = UploadedFile::fake()->create('test.php');
$uploadedFile = UploadedFile::fake()->create('中文.php');

$api = m::spy(Api::class);
$api->allows('path')->andReturn($path);
Expand Down

0 comments on commit 18e9ff4

Please sign in to comment.