From f8341ace95e8b4abbdbe1bb4b4e2d5b278d5b90f Mon Sep 17 00:00:00 2001 From: Michael COULLERET Date: Wed, 13 May 2020 13:31:56 +0200 Subject: [PATCH 01/11] Add support for Symfony 5.x --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cd2d577..8c2e745 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "minimum-stability": "stable", "require": { "php": "^7.0", - "symfony/property-access": "^3.2|^4.0" + "symfony/property-access": "^3.2|^5.0" }, "require-dev": { "phpunit/phpunit": "^5.7" From 71e6b630aaf5e2f98609fe1a2e0bb19db997e93a Mon Sep 17 00:00:00 2001 From: Michael COULLERET Date: Wed, 13 May 2020 13:38:18 +0200 Subject: [PATCH 02/11] Fix to support 3.2, 4 and 5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8c2e745..77fa9c6 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "minimum-stability": "stable", "require": { "php": "^7.0", - "symfony/property-access": "^3.2|^5.0" + "symfony/property-access": "^3.2 || ^4.0 || ^5.0" }, "require-dev": { "phpunit/phpunit": "^5.7" From 66c3bebee96522742b9034f6836fa401448d6139 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Tue, 13 Apr 2021 22:54:59 -0300 Subject: [PATCH 03/11] Support PHP 8, drop 7.0/7.1 and upgrade PHPUnit --- .gitignore | 1 + .../ClosureNullatorTest.php | 2 +- .../NullableEmbeddableListenerTest.php | 2 +- composer.json | 4 +- phpunit.xml.dist | 55 +++++++++---------- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index c55784d..86c9b6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ composer.lock /vendor/ +.phpunit*.cache diff --git a/Tests/NullableEmbeddable/ClosureNullatorTest.php b/Tests/NullableEmbeddable/ClosureNullatorTest.php index fc3d984..165725c 100644 --- a/Tests/NullableEmbeddable/ClosureNullatorTest.php +++ b/Tests/NullableEmbeddable/ClosureNullatorTest.php @@ -21,7 +21,7 @@ final class ClosureNullatorTest extends TestCase */ private $listener; - protected function setUp() + protected function setUp(): void { $this->listener = NullableEmbeddableListenerFactory::createWithClosureNullator(); } diff --git a/Tests/NullableEmbeddable/NullableEmbeddableListenerTest.php b/Tests/NullableEmbeddable/NullableEmbeddableListenerTest.php index bd1f995..a554c79 100644 --- a/Tests/NullableEmbeddable/NullableEmbeddableListenerTest.php +++ b/Tests/NullableEmbeddable/NullableEmbeddableListenerTest.php @@ -21,7 +21,7 @@ final class NullableEmbeddableListenerTest extends TestCase */ private $listener; - protected function setUp() + protected function setUp(): void { $this->listener = NullableEmbeddableListenerFactory::createWithPropertyAccessor(); } diff --git a/composer.json b/composer.json index 77fa9c6..9553e91 100644 --- a/composer.json +++ b/composer.json @@ -14,10 +14,10 @@ "minimum-stability": "stable", "require": { - "php": "^7.0", + "php": "^7.2 || ^8.0", "symfony/property-access": "^3.2 || ^4.0 || ^5.0" }, "require-dev": { - "phpunit/phpunit": "^5.7" + "phpunit/phpunit": "^8.5 || ^9.5" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index c91b379..78105bb 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,33 +1,32 @@ - - - - - ./Tests - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd" + backupGlobals="false" + backupStaticAttributes="false" + colors="true" + convertErrorsToExceptions="true" + convertNoticesToExceptions="true" + convertWarningsToExceptions="true" + processIsolation="false" + stopOnFailure="true" + stopOnError="true" + forceCoversAnnotation="true" + bootstrap="./vendor/autoload.php"> + + + ./Tests + + - - - . - - ./Tests - ./* - - - + + + . + + ./Tests + ./* + + + From c3d348e72feeba2b79e79e4f67f95b644ab3e4c6 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Wed, 29 Dec 2021 15:31:18 -0300 Subject: [PATCH 04/11] Allow installing with Symfony 6.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9553e91..51b014d 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "minimum-stability": "stable", "require": { "php": "^7.2 || ^8.0", - "symfony/property-access": "^3.2 || ^4.0 || ^5.0" + "symfony/property-access": "^3.2 || ^4.0 || ^5.0 || ^6.0" }, "require-dev": { "phpunit/phpunit": "^8.5 || ^9.5" From ba96467180fabd58386578fb99f8afdb70ba8943 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Thu, 12 Oct 2023 15:28:26 -0300 Subject: [PATCH 05/11] Allow installing on PHPUnit 10.x --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 51b014d..2460b63 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,6 @@ "symfony/property-access": "^3.2 || ^4.0 || ^5.0 || ^6.0" }, "require-dev": { - "phpunit/phpunit": "^8.5 || ^9.5" + "phpunit/phpunit": "^8.5 || ^9.5 || ^10.0" } } From 458a7df4000cf532eda4473ce76c5f943760bdf9 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Thu, 12 Oct 2023 15:47:51 -0300 Subject: [PATCH 06/11] Configure GitHub Actions --- .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7bb4889 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: PHP Tests + +on: [push, pull_request] + +jobs: + tests: + name: 'Tests PHP ${{ matrix.php }}' + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: [7.4, 8.0, 8.1, 8.2] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up PHP ${{ matrix.php }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Validate composer.json and composer.lock + run: composer validate --strict + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php${{ matrix.php }}- + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-interaction + + - name: Tests + run: vendor/bin/phpunit From 306aaf4cce72f3deadb7fd1532c33f754b888898 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Thu, 12 Oct 2023 15:49:20 -0300 Subject: [PATCH 07/11] chore: upgrade actions/cache@v3 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7bb4889..f30c519 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: vendor key: ${{ runner.os }}-php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} From 169b232edb56342536f9995f19c6232d87a7c9a1 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Thu, 12 Oct 2023 15:54:17 -0300 Subject: [PATCH 08/11] ci: Add experimental build for PHP 8.3 --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f30c519..4e7305d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,15 @@ jobs: tests: name: 'Tests PHP ${{ matrix.php }}' runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: php: [7.4, 8.0, 8.1, 8.2] + experimental: [false] + include: + - php: 8.3 + experimental: true steps: - name: Checkout From e999765abbf7886b0766fb0d791d5a07e5cd9bd1 Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Wed, 14 Feb 2024 11:51:16 -0300 Subject: [PATCH 09/11] ci: mark PHP 8.3 as not experimental --- .github/workflows/test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e7305d..2cbb0a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,11 +10,8 @@ jobs: strategy: fail-fast: false matrix: - php: [7.4, 8.0, 8.1, 8.2] + php: [7.4, 8.0, 8.1, 8.2, 8.3] experimental: [false] - include: - - php: 8.3 - experimental: true steps: - name: Checkout From 762b1d730d30d0628515ff5a7de8092b4832a3cc Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Wed, 14 Feb 2024 11:51:56 -0300 Subject: [PATCH 10/11] chore: support Symfony 7 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2460b63..ca8f79d 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "minimum-stability": "stable", "require": { "php": "^7.2 || ^8.0", - "symfony/property-access": "^3.2 || ^4.0 || ^5.0 || ^6.0" + "symfony/property-access": "^3.2 || ^4.0 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { "phpunit/phpunit": "^8.5 || ^9.5 || ^10.0" From 1beebb9bf0ac4e93e4f2066a04ee1648ecc45bde Mon Sep 17 00:00:00 2001 From: Eduardo Dobay Date: Wed, 14 Feb 2024 11:55:03 -0300 Subject: [PATCH 11/11] ci: upgrade deprecated actions/cache version --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cbb0a1..290c18b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: vendor key: ${{ runner.os }}-php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}