From da8fa0cc4e5ee1bb9ee04f585e4511ebc89f2324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 28 Jul 2026 22:35:34 -0300 Subject: [PATCH] Migrate PHPUnit configuration to version 11.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename phpunit.xml.dist to phpunit.xml - Rename tests/bootstrap-dist.php to tests/bootstrap.php Signed-off-by: MaurĂ­cio Meneghini Fauth --- .gitattributes | 2 ++ .github/workflows/test-selenium.yml | 2 +- .github/workflows/tests.yml | 7 +++---- .gitignore | 3 --- phpunit.xml.dist => phpunit.xml | 14 ++++++-------- tests/{bootstrap-dist.php => bootstrap.php} | 0 6 files changed, 12 insertions(+), 16 deletions(-) rename phpunit.xml.dist => phpunit.xml (74%) rename tests/{bootstrap-dist.php => bootstrap.php} (100%) diff --git a/.gitattributes b/.gitattributes index f5ca857d11..c45ae2eddf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -29,6 +29,8 @@ tests/*-local-server export-ignore tests/*.conf export-ignore tests/*.ini export-ignore tests/ci-phplint export-ignore +tests/bootstrap.php export-ignore +phpunit.xml export-ignore .browserslistrc export-ignore CODE_OF_CONDUCT.md export-ignore CONTRIBUTING.md export-ignore diff --git a/.github/workflows/test-selenium.yml b/.github/workflows/test-selenium.yml index a805cd2dfc..a2e7e199ac 100644 --- a/.github/workflows/test-selenium.yml +++ b/.github/workflows/test-selenium.yml @@ -135,7 +135,7 @@ jobs: TESTSUITE_DATABASE_PREFIX: "selenium" TESTSUITE_SELENIUM_HOST: "127.0.0.1" TESTSUITE_SELENIUM_PORT: "4444" - run: ./vendor/bin/phpunit --testsuite end-to-end --no-logging --no-coverage --stop-on-skipped --testdox tests/end-to-end/${{ matrix.test-name }}Test.php + run: ./vendor/bin/phpunit --testsuite end-to-end --no-logging --no-coverage --display-all-issues --stop-on-skipped --testdox tests/end-to-end/${{ matrix.test-name }}Test.php - name: Output logs and stop server env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65d1e87e05..469507a1b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,7 +50,7 @@ jobs: composer config version "$(php -r "define('VERSION_SUFFIX', ''); require_once('src/Version.php'); echo \PhpMyAdmin\Version::VERSION;")" && \ composer install && \ ./bin/generate-mo && \ - php\$V -d memory_limit=512M ./vendor/bin/phpunit --no-logging --no-coverage --testsuite unit %s" \ + php\$V -d memory_limit=512M ./vendor/bin/phpunit --no-logging --no-coverage --testsuite unit --display-all-issues %s" \ "${{ matrix.php-version }}" "${{ matrix.exclude-phpunit-groups }}" > ./do-tests.sh - name: Set up multi arch support @@ -106,7 +106,7 @@ jobs: composer-options: ${{ matrix.composer-options }} - name: Run PHP tests - run: composer run phpunit -- --testsuite unit --display-deprecations --display-notices --display-warnings --display-errors + run: composer run phpunit -- --testsuite unit --display-all-issues - name: Send coverage uses: codecov/codecov-action@v3 @@ -165,7 +165,7 @@ jobs: uses: ramsey/composer-install@v4 - name: Run PHP tests - run: composer run phpunit -- --testsuite unit + run: composer run phpunit -- --testsuite unit --display-all-issues - name: Send coverage uses: codecov/codecov-action@v3 @@ -225,7 +225,6 @@ jobs: composer config --unset platform --no-interaction --ansi composer remove --dev vimeo/psalm psalm/plugin-phpunit --no-update --no-interaction --ansi composer require --dev phpunit/phpunit:^"$PHPUNIT_VERSION" --no-update --no-interaction --ansi - composer validate --strict - name: Install Composer dependencies uses: ramsey/composer-install@v4 diff --git a/.gitignore b/.gitignore index 4a39667c3b..7de13862d4 100644 --- a/.gitignore +++ b/.gitignore @@ -61,9 +61,6 @@ phpcs.xml .phpcs-cache # PHPUnit -.phpunit.result.cache -phpunit.xml -/tests/bootstrap.php /tests/gis/*-actual.json /tests/gis/*-actual.pdf /tests/gis/*-actual.png diff --git a/phpunit.xml.dist b/phpunit.xml similarity index 74% rename from phpunit.xml.dist rename to phpunit.xml index c9a01aba76..ca8a18f49d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml @@ -1,8 +1,8 @@ + colors="true"> - src + src @@ -33,10 +31,10 @@ - tests/unit + tests/unit - tests/end-to-end + tests/end-to-end diff --git a/tests/bootstrap-dist.php b/tests/bootstrap.php similarity index 100% rename from tests/bootstrap-dist.php rename to tests/bootstrap.php