Skip to content

Commit

Permalink
mark new classes as final
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelHartmann committed Apr 30, 2019
1 parent abcc775 commit 7a0a7a9
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/Framework/MockObject/ConfigurableMethod.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class ConfigurableMethod
final class ConfigurableMethod
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/MockClass.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class MockClass implements MockType
final class MockClass implements MockType
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/MockTrait.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class MockTrait implements MockType
final class MockTrait implements MockType
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/NullType.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class NullType extends Type
final class NullType extends Type
{
public function isAssignable(Type $other): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/ObjectType.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class ObjectType extends Type
final class ObjectType extends Type
{
/**
* @var TypeName
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/SimpleType.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class SimpleType extends Type
final class SimpleType extends Type
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/UnknownType.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class UnknownType extends Type
final class UnknownType extends Type
{
public function isAssignable(Type $other): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/VoidType.php
Expand Up @@ -12,7 +12,7 @@
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
class VoidType extends Type
final class VoidType extends Type
{
public function isAssignable(Type $other): bool
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/ConfigurableMethodTest.php
Expand Up @@ -11,7 +11,7 @@

use PHPUnit\Framework\TestCase;

class ConfigurableMethodTest extends TestCase
final class ConfigurableMethodTest extends TestCase
{
public function testMethodMayReturnAssignableValue(): void
{
Expand Down
Expand Up @@ -14,7 +14,7 @@
use PHPUnit\TestFixture\MockObject\ClassBUsingConfigurableMethods;
use PHPUnit\TestFixture\MockObject\ReinitializeConfigurableMethods;

class ConfigurableMethodsTest extends TestCase
final class ConfigurableMethodsTest extends TestCase
{
public function testTwoClassesUsingConfigurableMethodsDontInterfere(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/MockClassTest.php
Expand Up @@ -12,7 +12,7 @@
use PHPUnit\Framework\TestCase;
use PHPUnit\TestFixture\MockObject\MockClassWithConfigurableMethods;

class MockClassTest extends TestCase
final class MockClassTest extends TestCase
{
public function testGenerateClassFromSource(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/MockTraitTest.php
Expand Up @@ -11,7 +11,7 @@

use PHPUnit\Framework\TestCase;

class MockTraitTest extends TestCase
final class MockTraitTest extends TestCase
{
public function testGenerateClassFromSource(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/NullTypeTest.php
Expand Up @@ -11,7 +11,7 @@

use PHPUnit\Framework\TestCase;

class NullTypeTest extends TestCase
final class NullTypeTest extends TestCase
{
/**
* @dataProvider assignableTypes
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/ObjectTypeTest.php
Expand Up @@ -16,7 +16,7 @@
/**
* @covers \PHPUnit\Framework\MockObject\ObjectType
*/
class ObjectTypeTest extends TestCase
final class ObjectTypeTest extends TestCase
{
/**
* @var ObjectType
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/SimpleTypeTest.php
Expand Up @@ -14,7 +14,7 @@
/**
* @covers \PHPUnit\Framework\MockObject\SimpleType
*/
class SimpleTypeTest extends TestCase
final class SimpleTypeTest extends TestCase
{
/**
* @dataProvider assignablePairs
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/TypeNameTest.php
Expand Up @@ -11,7 +11,7 @@

use PHPUnit\Framework\TestCase;

class TypeNameTest extends TestCase
final class TypeNameTest extends TestCase
{
public function testFromReflection(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/TypeTest.php
Expand Up @@ -14,7 +14,7 @@
/**
* @covers \PHPUnit\Framework\MockObject\Type
*/
class TypeTest extends TestCase
final class TypeTest extends TestCase
{
/**
* @dataProvider valuesToNullableType
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/UnknownTypeTest.php
Expand Up @@ -14,7 +14,7 @@
/**
* @covers \PHPUnit\Framework\MockObject\UnknownType
*/
class UnknownTypeTest extends TestCase
final class UnknownTypeTest extends TestCase
{
/**
* @dataProvider assignableTypes
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Framework/MockObject/VoidTypeTest.php
Expand Up @@ -14,7 +14,7 @@
/**
* @covers \PHPUnit\Framework\MockObject\VoidType
*/
class VoidTypeTest extends TestCase
final class VoidTypeTest extends TestCase
{
/**
* @dataProvider assignableTypes
Expand Down

0 comments on commit 7a0a7a9

Please sign in to comment.