Skip to content

Commit

Permalink
Merge pull request #11 from protonemedia/php-83
Browse files Browse the repository at this point in the history
Support for PHP 8.3. Dropped support for Laravel 9
  • Loading branch information
pascalbaljet authored Jan 2, 2024
2 parents b1c8dd9 + c2668cb commit f9890f1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 34 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
laravel: [9.*, 10.*]
php: [8.1, 8.2, 8.3]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ It's the *magic* of Inertia.js with the *simplicity* of Blade. [Splade](https://
* Updates and restores the `.env` file.
* Works with [Laravel Dusk](https://laravel.com/docs/9.x/dusk).
* Works on [GitHub Actions](#github-actions)
* Compatible with Laravel 9.0.
* PHP 8.0 or higher is required.
* Compatible with Laravel 10.
* PHP 8.1 or higher is required.

## Installation

Expand Down
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@
}
],
"require": {
"php": "^8.1|^8.2",
"php": "^8.1|^8.2|^8.3",
"guzzlehttp/guzzle": "^7.4",
"illuminate/contracts": "^9.0|^10.0",
"illuminate/contracts": "^10.0",
"spatie/laravel-package-tools": "^1.9.2",
"spatie/temporary-directory": "^2.1"
},
"require-dev": {
"nesbot/carbon": "^2.66",
"nunomaduro/collision": "^6.0",
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpunit/phpunit": "^9.5"
"nunomaduro/collision": "^7.0",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpunit/phpunit": "^10.4"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 1 addition & 19 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,19 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="ProtoneMedia Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
</phpunit>
</phpunit>
3 changes: 2 additions & 1 deletion tests/UsesMinIOServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Illuminate\Foundation\Testing\TestCase;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;
use Orchestra\Testbench\Concerns\CreatesApplication;
use ProtoneMedia\LaravelMinioTestingTools\UsesMinIOServer;

Expand All @@ -19,7 +20,7 @@ class DummyTestCase extends TestCase

Artisan::call('config:clear');

$this->testCase = new DummyTestCase;
$this->testCase = new DummyTestCase(Str::random());
});

it('returns the configured port', function () {
Expand Down

0 comments on commit f9890f1

Please sign in to comment.