diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index d0b4613..b49973e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -38,8 +38,8 @@ jobs: strategy: fail-fast: false matrix: - php: [ 8.0, 8.1, 8.2 ] - laravel: [ 8.*, 9.*, 10.* ] + php: [ 8.0, 8.1, 8.2, 8.3 ] + laravel: [ 8.*, 9.*, 10.*, 11.* ] include: - laravel: 8.* testbench: 6.* @@ -47,6 +47,8 @@ jobs: testbench: 7.* - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - php: 8.0 laravel: 10.* diff --git a/.gitignore b/.gitignore index 2391b68..f7d09b1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ composer.lock phpinsights.json coverage.xml composer.phar +/.phpunit.cache/ diff --git a/README.md b/README.md index 163eb9f..7b69082 100644 --- a/README.md +++ b/README.md @@ -196,19 +196,19 @@ composer test ## 🔰 Version Support -| Larex | L5.8 | L6.x | L7.x | L8.x | L9.x | L10.x | -|:----------------:|:----:|:----:|:----:|:----:|:----:|:-----:| -| ^1.0 | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | -| ^1.2 | ^2.0 | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | -| ^3.0 | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | -| ^4.0 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | - -| Larex | PHP7.2 | PHP7.3 | PHP7.4 | PHP8.0 | PHP8.1 | PHP8.2 | -|:----------------:|:------:|:------:|:------:|:------:|:------:|:------:| -| ^1.0 | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | -| ^1.6 | ^2.0 | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | -| ^3.0 | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ | -| ^4.0 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | +| Larex | L5.8 | L6.x | L7.x | L8.x | L9.x | L10.x | L11.x | +|:----------------:|:----:|:----:|:----:|:----:|:----:|:-----:|-------| +| ^1.0 | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| ^1.2 | ^2.0 | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | +| ^3.0 | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | +| ^4.0 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | + +| Larex | PHP7.2 | PHP7.3 | PHP7.4 | PHP8.0 | PHP8.1 | PHP8.2 | PHP8.3 | +|:----------------:|:------:|:------:|:------:|:------:|:------:|:------:|--------| +| ^1.0 | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | +| ^1.6 | ^2.0 | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | +| ^3.0 | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | +| ^4.0 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ## 📃 Changelog diff --git a/composer.json b/composer.json index b03129e..eeab607 100644 --- a/composer.json +++ b/composer.json @@ -24,16 +24,16 @@ "php": "^8.0", "ext-dom": "*", "ext-json": "*", - "illuminate/support": "^8.0|^9.0|^10.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", "loilo/fuse": "^6.4.6", "spatie/simple-excel": "^3.0.1", "spatie/laravel-collection-macros": "^7.12" }, "require-dev": { - "orchestra/testbench": "^6.0|^7.0|^8.0", - "pestphp/pest": "^1.21", + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", + "pestphp/pest": "^2.0", "psalm/plugin-laravel": "^2.0", - "vimeo/psalm": "^4.24" + "vimeo/psalm": "^5.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 46616e3..6ce5ee7 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,29 +1,32 @@ - - - - tests - - - - - src/ - - src/Support - - - - - - + + + + + tests + + + + + + + + + + src/ + + + src/Support + + + diff --git a/tests/Pest.php b/tests/Pest.php index d23edf1..3e8213d 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -56,7 +56,7 @@ | */ -expect()->extend('fileContent', fn () => $this->and(File::get($this->value))); +expect()->extend('fileContent', fn () => $this->and($this->value = File::get($this->value))); expect()->extend('toEqualStub', fn (string $name, $eol = "\n") => $this->toEqual(getTestStub($name, $eol))); /*