aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-09-14 21:27:55 +0200
committerGravatar GitHub <noreply@github.com> 2025-09-14 21:27:55 +0200
commita7e633bc58bb8ebf466241dac99c58bdafdab937 (patch)
treed39cfb548cddf331d39af921e09089f80867c955
parent697240813d9f086bff30b7e6424538fbef933359 (diff)
Minor explicit namespace fix for PHPUnit (#7960)
* Minor explicit namespace fix for PHPUnit * final
-rw-r--r--tests/app/Models/CategoryTest.php2
-rw-r--r--tests/app/Models/FeedDAOTest.php2
-rw-r--r--tests/app/Models/SearchTest.php2
-rw-r--r--tests/app/Utils/dotNotationUtilTest.php2
-rw-r--r--tests/app/Utils/passwordUtilTest.php2
-rw-r--r--tests/cli/i18n/I18nCompletionValidatorTest.php2
-rw-r--r--tests/cli/i18n/I18nDataTest.php2
-rw-r--r--tests/cli/i18n/I18nFileTest.php2
-rw-r--r--tests/cli/i18n/I18nUsageValidatorTest.php2
-rw-r--r--tests/cli/i18n/I18nValueTest.php2
-rw-r--r--tests/lib/CssXPath/CssXPathTest.php2
-rw-r--r--tests/lib/PHPMailer/PHPMailerTest.php2
-rw-r--r--tests/lib/SimplePie/SimplePieTest.php2
13 files changed, 13 insertions, 13 deletions
diff --git a/tests/app/Models/CategoryTest.php b/tests/app/Models/CategoryTest.php
index 0290b6b61..480448552 100644
--- a/tests/app/Models/CategoryTest.php
+++ b/tests/app/Models/CategoryTest.php
@@ -3,7 +3,7 @@ declare(strict_types=1);
use PHPUnit\Framework\Attributes\DataProvider;
-class CategoryTest extends PHPUnit\Framework\TestCase {
+final class CategoryTest extends \PHPUnit\Framework\TestCase {
public static function test__construct_whenNoParameters_createsObjectWithDefaultValues(): void {
$category = new FreshRSS_Category();
diff --git a/tests/app/Models/FeedDAOTest.php b/tests/app/Models/FeedDAOTest.php
index 2c7f6488f..77f21244a 100644
--- a/tests/app/Models/FeedDAOTest.php
+++ b/tests/app/Models/FeedDAOTest.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
-class FeedDAOTest extends PHPUnit\Framework\TestCase {
+final class FeedDAOTest extends \PHPUnit\Framework\TestCase {
public static function test_ttl_min(): void {
$feed = new FreshRSS_Feed('https://example.net/', false);
$feed->_ttl(-5);
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php
index e6efdbe55..4c66880db 100644
--- a/tests/app/Models/SearchTest.php
+++ b/tests/app/Models/SearchTest.php
@@ -5,7 +5,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
require_once LIB_PATH . '/lib_date.php';
-class SearchTest extends PHPUnit\Framework\TestCase {
+final class SearchTest extends \PHPUnit\Framework\TestCase {
#[DataProvider('provideEmptyInput')]
public static function test__construct_whenInputIsEmpty_getsOnlyNullValues(string $input): void {
diff --git a/tests/app/Utils/dotNotationUtilTest.php b/tests/app/Utils/dotNotationUtilTest.php
index 787d3ddf3..5efa85295 100644
--- a/tests/app/Utils/dotNotationUtilTest.php
+++ b/tests/app/Utils/dotNotationUtilTest.php
@@ -3,7 +3,7 @@ declare(strict_types=1);
use PHPUnit\Framework\Attributes\DataProvider;
-class dotNotationUtilTest extends PHPUnit\Framework\TestCase {
+final class dotNotationUtilTest extends \PHPUnit\Framework\TestCase {
/**
* @return Traversable<array{array<string,mixed>,string,string}>
diff --git a/tests/app/Utils/passwordUtilTest.php b/tests/app/Utils/passwordUtilTest.php
index c6d7a37e9..2d98c5051 100644
--- a/tests/app/Utils/passwordUtilTest.php
+++ b/tests/app/Utils/passwordUtilTest.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
-class passwordUtilTest extends PHPUnit\Framework\TestCase {
+final class passwordUtilTest extends \PHPUnit\Framework\TestCase {
public function testCheck(): void {
$password = '1234567';
diff --git a/tests/cli/i18n/I18nCompletionValidatorTest.php b/tests/cli/i18n/I18nCompletionValidatorTest.php
index 4d62662aa..7eb32d8a3 100644
--- a/tests/cli/i18n/I18nCompletionValidatorTest.php
+++ b/tests/cli/i18n/I18nCompletionValidatorTest.php
@@ -3,7 +3,7 @@ declare(strict_types=1);
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nCompletionValidator.php';
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nValue.php';
-class I18nCompletionValidatorTest extends PHPUnit\Framework\TestCase {
+final class I18nCompletionValidatorTest extends \PHPUnit\Framework\TestCase {
/** @var I18nValue&PHPUnit\Framework\MockObject\MockObject */
private $value;
diff --git a/tests/cli/i18n/I18nDataTest.php b/tests/cli/i18n/I18nDataTest.php
index 2336026eb..02ad7ea9a 100644
--- a/tests/cli/i18n/I18nDataTest.php
+++ b/tests/cli/i18n/I18nDataTest.php
@@ -3,7 +3,7 @@ declare(strict_types=1);
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nData.php';
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nValue.php';
-class I18nDataTest extends PHPUnit\Framework\TestCase {
+final class I18nDataTest extends \PHPUnit\Framework\TestCase {
/** @var array<string,array<string,array<string,I18nValue>>> */
private array $referenceData;
/** @var I18nValue&PHPUnit\Framework\MockObject\MockObject */
diff --git a/tests/cli/i18n/I18nFileTest.php b/tests/cli/i18n/I18nFileTest.php
index b1aca49ea..ee6ac04a5 100644
--- a/tests/cli/i18n/I18nFileTest.php
+++ b/tests/cli/i18n/I18nFileTest.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nFile.php';
-class I18nFileTest extends PHPUnit\Framework\TestCase {
+final class I18nFileTest extends \PHPUnit\Framework\TestCase {
public function test(): void {
$before = $this->computeFilesHash();
diff --git a/tests/cli/i18n/I18nUsageValidatorTest.php b/tests/cli/i18n/I18nUsageValidatorTest.php
index 0429d1277..0d9306f87 100644
--- a/tests/cli/i18n/I18nUsageValidatorTest.php
+++ b/tests/cli/i18n/I18nUsageValidatorTest.php
@@ -3,7 +3,7 @@ declare(strict_types=1);
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nValue.php';
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nUsageValidator.php';
-class I18nUsageValidatorTest extends PHPUnit\Framework\TestCase {
+final class I18nUsageValidatorTest extends \PHPUnit\Framework\TestCase {
private I18nValue $value;
diff --git a/tests/cli/i18n/I18nValueTest.php b/tests/cli/i18n/I18nValueTest.php
index fb1fca804..76bdf03d4 100644
--- a/tests/cli/i18n/I18nValueTest.php
+++ b/tests/cli/i18n/I18nValueTest.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
require_once dirname(__DIR__, 3) . '/cli/i18n/I18nValue.php';
-class I18nValueTest extends PHPUnit\Framework\TestCase {
+final class I18nValueTest extends \PHPUnit\Framework\TestCase {
public static function testConstructorWithoutState(): void {
$value = new I18nValue('some value');
self::assertSame('some value', $value->getValue());
diff --git a/tests/lib/CssXPath/CssXPathTest.php b/tests/lib/CssXPath/CssXPathTest.php
index 8197f5b87..272fc4ce6 100644
--- a/tests/lib/CssXPath/CssXPathTest.php
+++ b/tests/lib/CssXPath/CssXPathTest.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
-class CssXPathTest extends PHPUnit\Framework\TestCase
+final class CssXPathTest extends \PHPUnit\Framework\TestCase
{
public static function testCssXPathTranslatorClassExists(): void {
self::assertTrue(class_exists('Gt\\CssXPath\\Translator'));
diff --git a/tests/lib/PHPMailer/PHPMailerTest.php b/tests/lib/PHPMailer/PHPMailerTest.php
index 8bc8378b6..2d18a3535 100644
--- a/tests/lib/PHPMailer/PHPMailerTest.php
+++ b/tests/lib/PHPMailer/PHPMailerTest.php
@@ -3,7 +3,7 @@ declare(strict_types=1);
use PHPMailer\PHPMailer\PHPMailer;
-class PHPMailerTest extends PHPUnit\Framework\TestCase
+final class PHPMailerTest extends \PHPUnit\Framework\TestCase
{
public static function testPHPMailerClassExists(): void {
self::assertTrue(class_exists(PHPMailer::class));
diff --git a/tests/lib/SimplePie/SimplePieTest.php b/tests/lib/SimplePie/SimplePieTest.php
index 63b2e51f9..a5f4a1844 100644
--- a/tests/lib/SimplePie/SimplePieTest.php
+++ b/tests/lib/SimplePie/SimplePieTest.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
-final class SimplePieTest extends PHPUnit\Framework\TestCase
+final class SimplePieTest extends \PHPUnit\Framework\TestCase
{
public function testSimplePieClassExists(): void {
self::assertTrue(class_exists(\SimplePie\SimplePie::class));