diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cca2d5f..8ce0d56 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,8 +12,9 @@ jobs: timeout-minutes: 10 strategy: matrix: - php-versions: ['8.1', '8.2'] - laravel-versions: ['^9.0', '^10.0'] + php-version: ['8.2'] + laravel-version: ['^11.0'] + steps: - name: Checkout uses: actions/checkout@v3 @@ -21,10 +22,10 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-versions }} + php-version: ${{ matrix.php-version }} - name: Setup Laravel - run: composer require -W --dev laravel/laravel:${{ matrix.laravel-versions }} + run: composer require -W --dev laravel/laravel:${{ matrix.laravel-version }} - name: Run tests run: ./vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index 3ffdd8a..682fc88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /vendor/ .phpunit.result.cache composer.lock +.phpunit.cache diff --git a/composer.json b/composer.json index 2f781c3..0661b2b 100644 --- a/composer.json +++ b/composer.json @@ -4,16 +4,16 @@ "type": "library", "license": "MIT", "require": { - "illuminate/console": "^9.0 || ^10.0", - "illuminate/filesystem": "^9.0 || ^10.0", - "illuminate/support": "^9.0 || ^10.0", - "symfony/finder": "^6.0", + "illuminate/console": "^11.0", + "illuminate/filesystem": "^11.0", + "illuminate/support": "^11.0", + "symfony/finder": "^7.0", "guzzlehttp/guzzle": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^9.0", + "phpunit/phpunit": "^10.0", "mockery/mockery": "^1.2", - "laravel/laravel": "^9.0 || ^10.0" + "laravel/laravel": "^11.0" }, "authors": [ { diff --git a/phpunit.xml b/phpunit.xml index 9ddd9c4..1686ef8 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,13 +1,13 @@ - - - - src - - + tests + + + src + + diff --git a/tests/FileCacheServiceProviderTest.php b/tests/FileCacheServiceProviderTest.php index cb743e4..e65702c 100644 --- a/tests/FileCacheServiceProviderTest.php +++ b/tests/FileCacheServiceProviderTest.php @@ -11,8 +11,8 @@ class FileCacheServiceProviderTest extends TestCase public function testScheduledCommand() { config(['file-cache.prune_interval' => '*/5 * * * *']); - $schedule = $this->app[Schedule::class]; - $event = $schedule->events()[0]; + $events = $this->app[Schedule::class]->events(); + $event = end($events); $this->assertStringContainsString('prune-file-cache', $event->command); $this->assertEquals('*/5 * * * *', $event->expression); }