From b8f12787758a7dd8fec558b0115718f87409f635 Mon Sep 17 00:00:00 2001 From: Greg Rundlett Date: Fri, 24 Jan 2025 14:25:08 -0500 Subject: [PATCH 1/3] Update I18nJsonFileIntegrityTest.php to use namespaced class Since v6 of PHPUnit, the classes are fully namespaced rather than namespaced by the underscore convention. --- tests/phpunit/Integration/I18nJsonFileIntegrityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php b/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php index 6725451..474dbb6 100644 --- a/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php +++ b/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php @@ -16,7 +16,7 @@ * @author mwjames * @author Tobias Oetterer */ -class I18nJsonFileIntegrityTest extends \PHPUnit_Framework_TestCase { +class I18nJsonFileIntegrityTest extends \PHPUnit\Framework\TestCase { use PHPUnitCompat; From 10603e6474b804b1022ff0440e6f8a1641c31204 Mon Sep 17 00:00:00 2001 From: Greg Rundlett Date: Fri, 24 Jan 2025 15:28:35 -0500 Subject: [PATCH 2/3] remove leading backslash It is not advised to use a leading backslash since the classname will be scoped properly without it. --- tests/phpunit/Integration/I18nJsonFileIntegrityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php b/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php index 474dbb6..4865a32 100644 --- a/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php +++ b/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php @@ -16,7 +16,7 @@ * @author mwjames * @author Tobias Oetterer */ -class I18nJsonFileIntegrityTest extends \PHPUnit\Framework\TestCase { +class I18nJsonFileIntegrityTest extends PHPUnit\Framework\TestCase { use PHPUnitCompat; From 27d8d48724af4a69de81afd019d0f033b0651ce9 Mon Sep 17 00:00:00 2001 From: Greg Rundlett Date: Fri, 24 Jan 2025 18:17:47 -0500 Subject: [PATCH 3/3] Revert "remove leading backslash" This reverts commit 10603e6474b804b1022ff0440e6f8a1641c31204. --- tests/phpunit/Integration/I18nJsonFileIntegrityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php b/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php index 4865a32..474dbb6 100644 --- a/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php +++ b/tests/phpunit/Integration/I18nJsonFileIntegrityTest.php @@ -16,7 +16,7 @@ * @author mwjames * @author Tobias Oetterer */ -class I18nJsonFileIntegrityTest extends PHPUnit\Framework\TestCase { +class I18nJsonFileIntegrityTest extends \PHPUnit\Framework\TestCase { use PHPUnitCompat;