mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-15 02:33:51 -04:00
Minor explicit namespace fix for PHPUnit (#7960)
* Minor explicit namespace fix for PHPUnit * final
This commit is contained in:
committed by
GitHub
parent
697240813d
commit
a7e633bc58
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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'));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user