diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-03-26 11:38:51 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-03-31 17:33:17 +0100 |
| commit | 202c018b592d5a516e4a465dc6dc515f3be37399 (patch) | |
| tree | 06e060fc19a494f1e5dcf89fc7ce04a8011e8176 /tests/app/Statistics/Google | |
| parent | 1ff45046fabc22237b5d0d8e489c96f031fc598d (diff) | |
| download | webtrees-202c018b592d5a516e4a465dc6dc515f3be37399.tar.gz webtrees-202c018b592d5a516e4a465dc6dc515f3be37399.tar.bz2 webtrees-202c018b592d5a516e4a465dc6dc515f3be37399.zip | |
PHPUnit 11 deprecates docblocks, use annotations instead
Diffstat (limited to 'tests/app/Statistics/Google')
17 files changed, 68 insertions, 102 deletions
diff --git a/tests/app/Statistics/Google/ChartAgeTest.php b/tests/app/Statistics/Google/ChartAgeTest.php index d0a3e219da..1c63dc6be0 100644 --- a/tests/app/Statistics/Google/ChartAgeTest.php +++ b/tests/app/Statistics/Google/ChartAgeTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartAge - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartAge - */ + +#[CoversClass(ChartAge::class)] class ChartAgeTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartAge::class)); + $this->assertTrue(class_exists(ChartAge::class)); } } diff --git a/tests/app/Statistics/Google/ChartBirthTest.php b/tests/app/Statistics/Google/ChartBirthTest.php index 334319aa68..7a5d763111 100644 --- a/tests/app/Statistics/Google/ChartBirthTest.php +++ b/tests/app/Statistics/Google/ChartBirthTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartBirth - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartBirth - */ + +#[CoversClass(ChartBirth::class)] class ChartBirthTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartBirth::class)); + $this->assertTrue(class_exists(ChartBirth::class)); } } diff --git a/tests/app/Statistics/Google/ChartChildrenTest.php b/tests/app/Statistics/Google/ChartChildrenTest.php index 2d2388d074..dc905ce28b 100644 --- a/tests/app/Statistics/Google/ChartChildrenTest.php +++ b/tests/app/Statistics/Google/ChartChildrenTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartChildren - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartChildren - */ + +#[CoversClass(ChartChildren::class)] class ChartChildrenTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartChildren::class)); + $this->assertTrue(class_exists(ChartChildren::class)); } } diff --git a/tests/app/Statistics/Google/ChartCommonGivenTest.php b/tests/app/Statistics/Google/ChartCommonGivenTest.php index cb87f92e5b..0559f59cc8 100644 --- a/tests/app/Statistics/Google/ChartCommonGivenTest.php +++ b/tests/app/Statistics/Google/ChartCommonGivenTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartCommonGiven - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartCommonGiven - */ + +#[CoversClass(ChartCommonGiven::class)] class ChartCommonGivenTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartCommonGiven::class)); + $this->assertTrue(class_exists(ChartCommonGiven::class)); } } diff --git a/tests/app/Statistics/Google/ChartCommonSurnameTest.php b/tests/app/Statistics/Google/ChartCommonSurnameTest.php index 6b4297e2e8..0b74967dab 100644 --- a/tests/app/Statistics/Google/ChartCommonSurnameTest.php +++ b/tests/app/Statistics/Google/ChartCommonSurnameTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartCommonSurname - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartCommonSurname - */ + +#[CoversClass(ChartCommonSurname::class)] class ChartCommonSurnameTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartCommonSurname::class)); + $this->assertTrue(class_exists(ChartCommonSurname::class)); } } diff --git a/tests/app/Statistics/Google/ChartDeathTest.php b/tests/app/Statistics/Google/ChartDeathTest.php index 104b0a0695..cd54c53079 100644 --- a/tests/app/Statistics/Google/ChartDeathTest.php +++ b/tests/app/Statistics/Google/ChartDeathTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartDeath - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartDeath - */ + +#[CoversClass(ChartDeath::class)] class ChartDeathTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartDeath::class)); + $this->assertTrue(class_exists(ChartDeath::class)); } } diff --git a/tests/app/Statistics/Google/ChartDistributionTest.php b/tests/app/Statistics/Google/ChartDistributionTest.php index 38c3e88eb0..0f775f73ed 100644 --- a/tests/app/Statistics/Google/ChartDistributionTest.php +++ b/tests/app/Statistics/Google/ChartDistributionTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartDistribution - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartDistribution - */ + +#[CoversClass(ChartDistribution::class)] class ChartDistributionTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartDistribution::class)); + $this->assertTrue(class_exists(ChartDistribution::class)); } } diff --git a/tests/app/Statistics/Google/ChartDivorceTest.php b/tests/app/Statistics/Google/ChartDivorceTest.php index b698b7e545..14ca8fbab5 100644 --- a/tests/app/Statistics/Google/ChartDivorceTest.php +++ b/tests/app/Statistics/Google/ChartDivorceTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartDivorce - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartDivorce - */ + +#[CoversClass(ChartDivorce::class)] class ChartDivorceTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartDivorce::class)); + $this->assertTrue(class_exists(ChartDivorce::class)); } } diff --git a/tests/app/Statistics/Google/ChartFamilyLargestTest.php b/tests/app/Statistics/Google/ChartFamilyLargestTest.php index 0a22df53d9..fd25c2707e 100644 --- a/tests/app/Statistics/Google/ChartFamilyLargestTest.php +++ b/tests/app/Statistics/Google/ChartFamilyLargestTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartFamilyLargest - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartFamilyLargest - */ + +#[CoversClass(ChartFamilyLargest::class)] class ChartFamilyLargestTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartFamilyLargest::class)); + $this->assertTrue(class_exists(ChartFamilyLargest::class)); } } diff --git a/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php b/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php index f1a2af34c2..2e932e4b35 100644 --- a/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php +++ b/tests/app/Statistics/Google/ChartFamilyWithSourcesTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartFamilyWithSources - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartFamilyWithSources - */ + +#[CoversClass(ChartFamilyWithSources::class)] class ChartFamilyWithSourcesTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartFamilyWithSources::class)); + $this->assertTrue(class_exists(ChartFamilyWithSources::class)); } } diff --git a/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php b/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php index 3409215c51..41aad2d5e6 100644 --- a/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php +++ b/tests/app/Statistics/Google/ChartIndividualWithSourcesTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartIndividualWithSources - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartIndividualWithSources - */ + +#[CoversClass(ChartIndividualWithSources::class)] class ChartIndividualWithSourcesTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartIndividualWithSources::class)); + $this->assertTrue(class_exists(ChartIndividualWithSources::class)); } } diff --git a/tests/app/Statistics/Google/ChartMarriageAgeTest.php b/tests/app/Statistics/Google/ChartMarriageAgeTest.php index c426e5ab27..53379835bd 100644 --- a/tests/app/Statistics/Google/ChartMarriageAgeTest.php +++ b/tests/app/Statistics/Google/ChartMarriageAgeTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartMarriageAge - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartMarriageAge - */ + +#[CoversClass(ChartMarriageAge::class)] class ChartMarriageAgeTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartMarriageAge::class)); + $this->assertTrue(class_exists(ChartMarriageAge::class)); } } diff --git a/tests/app/Statistics/Google/ChartMarriageTest.php b/tests/app/Statistics/Google/ChartMarriageTest.php index c3b605521c..4891a26507 100644 --- a/tests/app/Statistics/Google/ChartMarriageTest.php +++ b/tests/app/Statistics/Google/ChartMarriageTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartMarriage - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartMarriage - */ + +#[CoversClass(ChartMarriage::class)] class ChartMarriageTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartMarriage::class)); + $this->assertTrue(class_exists(ChartMarriage::class)); } } diff --git a/tests/app/Statistics/Google/ChartMediaTest.php b/tests/app/Statistics/Google/ChartMediaTest.php index ca51e178ef..8c453bafdd 100644 --- a/tests/app/Statistics/Google/ChartMediaTest.php +++ b/tests/app/Statistics/Google/ChartMediaTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartMedia - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartMedia - */ + +#[CoversClass(ChartMedia::class)] class ChartMediaTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartMedia::class)); + $this->assertTrue(class_exists(ChartMedia::class)); } } diff --git a/tests/app/Statistics/Google/ChartMortalityTest.php b/tests/app/Statistics/Google/ChartMortalityTest.php index 934432ae9e..a993738a45 100644 --- a/tests/app/Statistics/Google/ChartMortalityTest.php +++ b/tests/app/Statistics/Google/ChartMortalityTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartMortality - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartMortality - */ + +#[CoversClass(ChartMortality::class)] class ChartMortalityTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartMortality::class)); + $this->assertTrue(class_exists(ChartMortality::class)); } } diff --git a/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php b/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php index b01953d2d5..9ab5b4faa9 100644 --- a/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php +++ b/tests/app/Statistics/Google/ChartNoChildrenFamiliesTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartNoChildrenFamilies - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartNoChildrenFamilies - */ + +#[CoversClass(ChartNoChildrenFamilies::class)] class ChartNoChildrenFamiliesTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartNoChildrenFamilies::class)); + $this->assertTrue(class_exists(ChartNoChildrenFamilies::class)); } } diff --git a/tests/app/Statistics/Google/ChartSexTest.php b/tests/app/Statistics/Google/ChartSexTest.php index 071486d369..769c2b8bf8 100644 --- a/tests/app/Statistics/Google/ChartSexTest.php +++ b/tests/app/Statistics/Google/ChartSexTest.php @@ -20,16 +20,14 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Statistics\Google; use Fisharebest\Webtrees\TestCase; +use PHPUnit\Framework\Attributes\CoversClass; -/** - * Test harness for the class ChartSex - * - * @covers \Fisharebest\Webtrees\Statistics\Google\ChartSex - */ + +#[CoversClass(ChartSex::class)] class ChartSexTest extends TestCase { public function testClass(): void { - $this->assertTrue(class_exists(\Fisharebest\Webtrees\Statistics\Google\ChartSex::class)); + $this->assertTrue(class_exists(ChartSex::class)); } } |
