From 84eab4b697bd9c00ea881511ca1bd694b9f9a59f Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 15 Sep 2023 18:11:30 +0000 Subject: [PATCH] Define test classes as `final` --- tests/Feature/BooksTest.php | 2 +- tests/Feature/SettingsTest.php | 2 +- tests/Install/InstallTest.php | 2 +- tests/Unit/ExampleTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Feature/BooksTest.php b/tests/Feature/BooksTest.php index 83ade8800..952afe337 100644 --- a/tests/Feature/BooksTest.php +++ b/tests/Feature/BooksTest.php @@ -4,7 +4,7 @@ namespace Tests\Feature; use Tests\TestCase; -class BooksTest extends TestCase +final class BooksTest extends TestCase { /** * @throws \DariusIII\ItunesApi\Exceptions\InvalidProviderException diff --git a/tests/Feature/SettingsTest.php b/tests/Feature/SettingsTest.php index d3e5b6d11..0fec271c1 100644 --- a/tests/Feature/SettingsTest.php +++ b/tests/Feature/SettingsTest.php @@ -4,7 +4,7 @@ namespace Tests\Feature; use Tests\TestCase; -class SettingsTest extends TestCase +final class SettingsTest extends TestCase { public function testSettingValue(): void { diff --git a/tests/Install/InstallTest.php b/tests/Install/InstallTest.php index 10dce04c9..a782a9b29 100644 --- a/tests/Install/InstallTest.php +++ b/tests/Install/InstallTest.php @@ -18,7 +18,7 @@ require_once \dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; /** * Class InstallTest. */ -class InstallTest extends \PHPUnit\Framework\TestCase +final class InstallTest extends \PHPUnit\Framework\TestCase { public function testFullInstall(): void { diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php index 5773b0ceb..fff6e3c4c 100644 --- a/tests/Unit/ExampleTest.php +++ b/tests/Unit/ExampleTest.php @@ -4,7 +4,7 @@ namespace Tests\Unit; use PHPUnit\Framework\TestCase; -class ExampleTest extends TestCase +final class ExampleTest extends TestCase { /** * A basic test example.