Skip to content

Commit

Permalink
Bumping to mantle-framework/testkit v1 and PHPUnit 10 (#290)
Browse files Browse the repository at this point in the history
* Bumping to mantle-framework v1 to get PHPUnit 10

* Upgrading to PHP 8.1+

* Bump more places to PHP 8.1

* Bump more places to PHP 8.1

* Reverting buddy
  • Loading branch information
srtfisher authored Nov 30, 2023
1 parent 31480a6 commit 9341fa6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
php-tests:
strategy:
matrix:
php: [8.0, 8.1, 8.2]
php: [8.1, 8.2]
wordpress: ["latest"]
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@main
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Requires at least: 5.9

Tested up to: 6.1

Requires PHP: 8.0
Requires PHP: 8.1

License: GPL v2 or later

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"alleyinteractive/composer-wordpress-autoloader": "^1.0"
},
"require-dev": {
"alleyinteractive/alley-coding-standards": "^2.0",
"mantle-framework/testkit": "^0.12",
"mantle-framework/testkit": "^1.0",
"szepeviktor/phpstan-wordpress": "^1.1"
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
die( 'Not supported in Windows. 🪟' );
}

if ( version_compare( PHP_VERSION, '8.0.0', '<' ) ) {
die( 'PHP 8.0.0 or greater is required.' );
if ( version_compare( PHP_VERSION, '8.1.0', '<' ) ) {
die( 'PHP 8.1.0 or greater is required.' );
}

// Parse the command line arguments from $argv.
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printer"
>
<testsuites>
<testsuite name="Feature">
Expand Down

0 comments on commit 9341fa6

Please sign in to comment.