From 1447be15904a47aa6c87519d67cf24421db0f68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 11 Aug 2019 23:02:29 +0200 Subject: [PATCH] Enhancement: Mark test classes as final --- .../ASTLocator/LocateASTFromFilesTest.php | 2 +- test/ComposerRequireCheckerTest/BinaryTest.php | 2 +- test/ComposerRequireCheckerTest/Cli/ApplicationTest.php | 2 +- test/ComposerRequireCheckerTest/Cli/CheckCommandTest.php | 2 +- test/ComposerRequireCheckerTest/Cli/OptionsTest.php | 2 +- .../DefinedExtensionsResolver/DefinedExtensionsResolverTest.php | 2 +- .../LocateDefinedSymbolsFromASTRootsTest.php | 2 +- .../LocateDefinedSymbolsFromExtensionsTest.php | 2 +- .../DependencyGuesser/DependencyGuesserTest.php | 2 +- .../FileLocator/LocateAllFilesByExtensionTest.php | 2 +- .../LocateComposerPackageDirectDependenciesSourceFilesTest.php | 2 +- .../FileLocator/LocateComposerPackageSourceFilesTest.php | 2 +- .../FileLocator/LocateFilesByGlobPatternTest.php | 2 +- test/ComposerRequireCheckerTest/JsonLoaderTest.php | 2 +- .../NodeVisitor/DefinedSymbolCollectorTest.php | 2 +- .../NodeVisitor/UsedSymbolCollectorTest.php | 2 +- .../UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/test/ComposerRequireCheckerTest/ASTLocator/LocateASTFromFilesTest.php b/test/ComposerRequireCheckerTest/ASTLocator/LocateASTFromFilesTest.php index fc973f00..826b3546 100644 --- a/test/ComposerRequireCheckerTest/ASTLocator/LocateASTFromFilesTest.php +++ b/test/ComposerRequireCheckerTest/ASTLocator/LocateASTFromFilesTest.php @@ -15,7 +15,7 @@ /** * @covers \ComposerRequireChecker\ASTLocator\LocateASTFromFiles */ -class LocateASTFromFilesTest extends TestCase +final class LocateASTFromFilesTest extends TestCase { /** @var LocateASTFromFiles */ private $locator; diff --git a/test/ComposerRequireCheckerTest/BinaryTest.php b/test/ComposerRequireCheckerTest/BinaryTest.php index cac9e5bb..85dd415f 100644 --- a/test/ComposerRequireCheckerTest/BinaryTest.php +++ b/test/ComposerRequireCheckerTest/BinaryTest.php @@ -5,7 +5,7 @@ use function implode; use PHPUnit\Framework\TestCase; -class BinaryTest extends TestCase +final class BinaryTest extends TestCase { /** @var string */ private $bin; diff --git a/test/ComposerRequireCheckerTest/Cli/ApplicationTest.php b/test/ComposerRequireCheckerTest/Cli/ApplicationTest.php index cd3125f4..a6e50e64 100644 --- a/test/ComposerRequireCheckerTest/Cli/ApplicationTest.php +++ b/test/ComposerRequireCheckerTest/Cli/ApplicationTest.php @@ -6,7 +6,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Command\Command; -class ApplicationTest extends TestCase +final class ApplicationTest extends TestCase { /** diff --git a/test/ComposerRequireCheckerTest/Cli/CheckCommandTest.php b/test/ComposerRequireCheckerTest/Cli/CheckCommandTest.php index be457a58..37c032a6 100644 --- a/test/ComposerRequireCheckerTest/Cli/CheckCommandTest.php +++ b/test/ComposerRequireCheckerTest/Cli/CheckCommandTest.php @@ -8,7 +8,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Tester\CommandTester; -class CheckCommandTest extends TestCase +final class CheckCommandTest extends TestCase { /** diff --git a/test/ComposerRequireCheckerTest/Cli/OptionsTest.php b/test/ComposerRequireCheckerTest/Cli/OptionsTest.php index bc5848d5..2b679ad0 100644 --- a/test/ComposerRequireCheckerTest/Cli/OptionsTest.php +++ b/test/ComposerRequireCheckerTest/Cli/OptionsTest.php @@ -11,7 +11,7 @@ use ComposerRequireChecker\Cli\Options; use PHPUnit\Framework\TestCase; -class OptionsTest extends TestCase +final class OptionsTest extends TestCase { public function testOptionsAcceptPhpCoreExtensions(): void { diff --git a/test/ComposerRequireCheckerTest/DefinedExtensionsResolver/DefinedExtensionsResolverTest.php b/test/ComposerRequireCheckerTest/DefinedExtensionsResolver/DefinedExtensionsResolverTest.php index 665802e5..fd65a59c 100644 --- a/test/ComposerRequireCheckerTest/DefinedExtensionsResolver/DefinedExtensionsResolverTest.php +++ b/test/ComposerRequireCheckerTest/DefinedExtensionsResolver/DefinedExtensionsResolverTest.php @@ -10,7 +10,7 @@ /** * @covers \ComposerRequireChecker\DefinedExtensionsResolver\DefinedExtensionsResolver */ -class DefinedExtensionsResolverTest extends TestCase +final class DefinedExtensionsResolverTest extends TestCase { /** @var DefinedExtensionsResolver */ private $resolver; diff --git a/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromASTRootsTest.php b/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromASTRootsTest.php index 20f946dd..05c0ecab 100644 --- a/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromASTRootsTest.php +++ b/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromASTRootsTest.php @@ -16,7 +16,7 @@ /** * @covers \ComposerRequireChecker\DefinedSymbolsLocator\LocateDefinedSymbolsFromASTRoots */ -class LocateDefinedSymbolsFromASTRootsTest extends TestCase +final class LocateDefinedSymbolsFromASTRootsTest extends TestCase { /** @var LocateDefinedSymbolsFromASTRoots */ private $locator; diff --git a/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromExtensionsTest.php b/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromExtensionsTest.php index d8336930..096b4171 100644 --- a/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromExtensionsTest.php +++ b/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromExtensionsTest.php @@ -5,7 +5,7 @@ use ComposerRequireChecker\DefinedSymbolsLocator\LocateDefinedSymbolsFromExtensions; use PHPUnit\Framework\TestCase; -class LocateDefinedSymbolsFromExtensionsTest extends TestCase +final class LocateDefinedSymbolsFromExtensionsTest extends TestCase { /** diff --git a/test/ComposerRequireCheckerTest/DependencyGuesser/DependencyGuesserTest.php b/test/ComposerRequireCheckerTest/DependencyGuesser/DependencyGuesserTest.php index 091edc87..adf67cf1 100644 --- a/test/ComposerRequireCheckerTest/DependencyGuesser/DependencyGuesserTest.php +++ b/test/ComposerRequireCheckerTest/DependencyGuesser/DependencyGuesserTest.php @@ -6,7 +6,7 @@ use ComposerRequireChecker\DependencyGuesser\DependencyGuesser; use PHPUnit\Framework\TestCase; -class DependencyGuesserTest extends TestCase +final class DependencyGuesserTest extends TestCase { /** diff --git a/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php b/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php index 070eb4a5..ae2a2640 100644 --- a/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php +++ b/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php @@ -11,7 +11,7 @@ /** * @covers \ComposerRequireChecker\FileLocator\LocateAllFilesByExtension */ -class LocateAllFilesByExtensionTest extends TestCase +final class LocateAllFilesByExtensionTest extends TestCase { /** @var LocateAllFilesByExtension */ private $locator; diff --git a/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php b/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php index ffd03417..0c82ea99 100644 --- a/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php +++ b/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php @@ -10,7 +10,7 @@ /** * @covers \ComposerRequireChecker\FileLocator\LocateComposerPackageDirectDependenciesSourceFiles */ -class LocateComposerPackageDirectDependenciesSourceFilesTest extends TestCase +final class LocateComposerPackageDirectDependenciesSourceFilesTest extends TestCase { /** @var LocateComposerPackageDirectDependenciesSourceFiles */ private $locator; diff --git a/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php b/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php index 4fbe9787..0b3a2969 100644 --- a/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php +++ b/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php @@ -11,7 +11,7 @@ /** * @covers \ComposerRequireChecker\FileLocator\LocateComposerPackageSourceFiles */ -class LocateComposerPackageSourceFilesTest extends TestCase +final class LocateComposerPackageSourceFilesTest extends TestCase { /** @var LocateComposerPackageSourceFiles */ private $locator; diff --git a/test/ComposerRequireCheckerTest/FileLocator/LocateFilesByGlobPatternTest.php b/test/ComposerRequireCheckerTest/FileLocator/LocateFilesByGlobPatternTest.php index 6ab8bf71..15794c31 100644 --- a/test/ComposerRequireCheckerTest/FileLocator/LocateFilesByGlobPatternTest.php +++ b/test/ComposerRequireCheckerTest/FileLocator/LocateFilesByGlobPatternTest.php @@ -8,7 +8,7 @@ use org\bovigo\vfs\vfsStreamDirectory; use PHPUnit\Framework\TestCase; -class LocateFilesByGlobPatternTest extends TestCase +final class LocateFilesByGlobPatternTest extends TestCase { /** diff --git a/test/ComposerRequireCheckerTest/JsonLoaderTest.php b/test/ComposerRequireCheckerTest/JsonLoaderTest.php index d38113f9..711722e9 100644 --- a/test/ComposerRequireCheckerTest/JsonLoaderTest.php +++ b/test/ComposerRequireCheckerTest/JsonLoaderTest.php @@ -10,7 +10,7 @@ /** * @covers \ComposerRequireChecker\JsonLoader */ -class JsonLoaderTest extends TestCase +final class JsonLoaderTest extends TestCase { public function testHasErrorWithWrongPath(): void { diff --git a/test/ComposerRequireCheckerTest/NodeVisitor/DefinedSymbolCollectorTest.php b/test/ComposerRequireCheckerTest/NodeVisitor/DefinedSymbolCollectorTest.php index 50a7730f..4d7eb35f 100644 --- a/test/ComposerRequireCheckerTest/NodeVisitor/DefinedSymbolCollectorTest.php +++ b/test/ComposerRequireCheckerTest/NodeVisitor/DefinedSymbolCollectorTest.php @@ -15,7 +15,7 @@ use PhpParser\ParserFactory; use PHPUnit\Framework\TestCase; -class DefinedSymbolCollectorTest extends TestCase +final class DefinedSymbolCollectorTest extends TestCase { /** * @var DefinedSymbolCollector diff --git a/test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorTest.php b/test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorTest.php index a01d15df..9bc8e637 100644 --- a/test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorTest.php +++ b/test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorTest.php @@ -25,7 +25,7 @@ /** * @covers \ComposerRequireChecker\NodeVisitor\UsedSymbolCollector */ -class UsedSymbolCollectorTest extends TestCase +final class UsedSymbolCollectorTest extends TestCase { /** @var UsedSymbolCollector */ private $visitor; diff --git a/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php b/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php index 17e76c87..a8a0ff11 100644 --- a/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php +++ b/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php @@ -12,7 +12,7 @@ /** * @covers \ComposerRequireChecker\UsedSymbolsLocator\LocateUsedSymbolsFromASTRoots */ -class LocateUsedSymbolsFromASTRootsTest extends TestCase +final class LocateUsedSymbolsFromASTRootsTest extends TestCase { /** @var LocateUsedSymbolsFromASTRoots */ private $locator;