From f670231faa7676fa7bb516dd8e53b4586a0c0de9 Mon Sep 17 00:00:00 2001 From: rxu Date: Wed, 17 Sep 2025 21:56:54 +0700 Subject: [PATCH] [ticket/17543] Adjust PHPUnit XML configuration Define source code directories to test and restrict reporting of deprecation errors to them only to avoid getting this kind of errors from the 3rd party software and temporary/cache files. PHPBB-17543 --- .github/phpunit-mariadb-github.xml | 12 ++++++++++++ .github/phpunit-mssql-github.xml | 12 ++++++++++++ .github/phpunit-mysql-github.xml | 12 ++++++++++++ .github/phpunit-postgres-github.xml | 12 ++++++++++++ .github/phpunit-psql-windows-github.xml | 12 ++++++++++++ .github/phpunit-sqlite3-github.xml | 12 ++++++++++++ phpunit.xml.dist | 12 +++++++++--- 7 files changed, 81 insertions(+), 3 deletions(-) diff --git a/.github/phpunit-mariadb-github.xml b/.github/phpunit-mariadb-github.xml index e301ced053..d5ab282b3d 100644 --- a/.github/phpunit-mariadb-github.xml +++ b/.github/phpunit-mariadb-github.xml @@ -23,6 +23,18 @@ slow + + + ../phpBB/ + ../tests/ + + + ../phpBB/vendor/ + ../phpBB/cache/ + ../phpBB/develop/ + ../phpBB/store/ + + diff --git a/.github/phpunit-mssql-github.xml b/.github/phpunit-mssql-github.xml index b3061cce0e..bd240fa534 100644 --- a/.github/phpunit-mssql-github.xml +++ b/.github/phpunit-mssql-github.xml @@ -23,6 +23,18 @@ slow + + + ../phpBB/ + ../tests/ + + + ../phpBB/vendor/ + ../phpBB/cache/ + ../phpBB/develop/ + ../phpBB/store/ + + diff --git a/.github/phpunit-mysql-github.xml b/.github/phpunit-mysql-github.xml index e15519e8b2..ff42cf36df 100644 --- a/.github/phpunit-mysql-github.xml +++ b/.github/phpunit-mysql-github.xml @@ -23,6 +23,18 @@ slow + + + ../phpBB/ + ../tests/ + + + ../phpBB/vendor/ + ../phpBB/cache/ + ../phpBB/develop/ + ../phpBB/store/ + + diff --git a/.github/phpunit-postgres-github.xml b/.github/phpunit-postgres-github.xml index 57333dacc5..1636901039 100644 --- a/.github/phpunit-postgres-github.xml +++ b/.github/phpunit-postgres-github.xml @@ -23,6 +23,18 @@ slow + + + ../phpBB/ + ../tests/ + + + ../phpBB/vendor/ + ../phpBB/cache/ + ../phpBB/develop/ + ../phpBB/store/ + + diff --git a/.github/phpunit-psql-windows-github.xml b/.github/phpunit-psql-windows-github.xml index ab0c060010..0b80da0774 100644 --- a/.github/phpunit-psql-windows-github.xml +++ b/.github/phpunit-psql-windows-github.xml @@ -23,6 +23,18 @@ slow + + + ../phpBB/ + ../tests/ + + + ../phpBB/vendor/ + ../phpBB/cache/ + ../phpBB/develop/ + ../phpBB/store/ + + diff --git a/.github/phpunit-sqlite3-github.xml b/.github/phpunit-sqlite3-github.xml index 5c7e931b48..1ade12292c 100644 --- a/.github/phpunit-sqlite3-github.xml +++ b/.github/phpunit-sqlite3-github.xml @@ -23,6 +23,18 @@ slow + + + ../phpBB/ + ../tests/ + + + ../phpBB/vendor/ + ../phpBB/cache/ + ../phpBB/develop/ + ../phpBB/store/ + + diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 58d0d5c1df..6240baa320 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -26,10 +26,16 @@ slow - + - ./phpBB/includes/ - ./phpBB/phpbb/ + ./phpBB/ + ./tests/ + + ./phpBB/vendor/ + ./phpBB/cache/ + ./phpBB/develop/ + ./phpBB/store/ +