Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Mark test classes as final #130

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* @covers \ComposerRequireChecker\ASTLocator\LocateASTFromFiles
*/
class LocateASTFromFilesTest extends TestCase
final class LocateASTFromFilesTest extends TestCase
{
/** @var LocateASTFromFiles */
private $locator;
Expand Down
2 changes: 1 addition & 1 deletion test/ComposerRequireCheckerTest/BinaryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use function implode;
use PHPUnit\Framework\TestCase;

class BinaryTest extends TestCase
final class BinaryTest extends TestCase
{
/** @var string */
private $bin;
Expand Down
2 changes: 1 addition & 1 deletion test/ComposerRequireCheckerTest/Cli/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Command\Command;

class ApplicationTest extends TestCase
final class ApplicationTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/ComposerRequireCheckerTest/Cli/CheckCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/ComposerRequireCheckerTest/Cli/OptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @covers \ComposerRequireChecker\DefinedExtensionsResolver\DefinedExtensionsResolver
*/
class DefinedExtensionsResolverTest extends TestCase
final class DefinedExtensionsResolverTest extends TestCase
{
/** @var DefinedExtensionsResolver */
private $resolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* @covers \ComposerRequireChecker\DefinedSymbolsLocator\LocateDefinedSymbolsFromASTRoots
*/
class LocateDefinedSymbolsFromASTRootsTest extends TestCase
final class LocateDefinedSymbolsFromASTRootsTest extends TestCase
{
/** @var LocateDefinedSymbolsFromASTRoots */
private $locator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use ComposerRequireChecker\DefinedSymbolsLocator\LocateDefinedSymbolsFromExtensions;
use PHPUnit\Framework\TestCase;

class LocateDefinedSymbolsFromExtensionsTest extends TestCase
final class LocateDefinedSymbolsFromExtensionsTest extends TestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use ComposerRequireChecker\DependencyGuesser\DependencyGuesser;
use PHPUnit\Framework\TestCase;

class DependencyGuesserTest extends TestCase
final class DependencyGuesserTest extends TestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* @covers \ComposerRequireChecker\FileLocator\LocateAllFilesByExtension
*/
class LocateAllFilesByExtensionTest extends TestCase
final class LocateAllFilesByExtensionTest extends TestCase
{
/** @var LocateAllFilesByExtension */
private $locator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @covers \ComposerRequireChecker\FileLocator\LocateComposerPackageDirectDependenciesSourceFiles
*/
class LocateComposerPackageDirectDependenciesSourceFilesTest extends TestCase
final class LocateComposerPackageDirectDependenciesSourceFilesTest extends TestCase
{
/** @var LocateComposerPackageDirectDependenciesSourceFiles */
private $locator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* @covers \ComposerRequireChecker\FileLocator\LocateComposerPackageSourceFiles
*/
class LocateComposerPackageSourceFilesTest extends TestCase
final class LocateComposerPackageSourceFilesTest extends TestCase
{
/** @var LocateComposerPackageSourceFiles */
private $locator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use org\bovigo\vfs\vfsStreamDirectory;
use PHPUnit\Framework\TestCase;

class LocateFilesByGlobPatternTest extends TestCase
final class LocateFilesByGlobPatternTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/ComposerRequireCheckerTest/JsonLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @covers \ComposerRequireChecker\JsonLoader
*/
class JsonLoaderTest extends TestCase
final class JsonLoaderTest extends TestCase
{
public function testHasErrorWithWrongPath(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use PhpParser\ParserFactory;
use PHPUnit\Framework\TestCase;

class DefinedSymbolCollectorTest extends TestCase
final class DefinedSymbolCollectorTest extends TestCase
{
/**
* @var DefinedSymbolCollector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* @covers \ComposerRequireChecker\NodeVisitor\UsedSymbolCollector
*/
class UsedSymbolCollectorTest extends TestCase
final class UsedSymbolCollectorTest extends TestCase
{
/** @var UsedSymbolCollector */
private $visitor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* @covers \ComposerRequireChecker\UsedSymbolsLocator\LocateUsedSymbolsFromASTRoots
*/
class LocateUsedSymbolsFromASTRootsTest extends TestCase
final class LocateUsedSymbolsFromASTRootsTest extends TestCase
{
/** @var LocateUsedSymbolsFromASTRoots */
private $locator;
Expand Down