Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit ce73e73

Browse files
authored
Merge pull request #1820 from localheinz/fix/final
Fix: Mark test classes as final
2 parents 2c9b912 + 70c8eba commit ce73e73

File tree

130 files changed

+136
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+136
-136
lines changed

test/Faker/Calculator/EanTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Faker\Calculator\Ean;
88
use PHPUnit\Framework\TestCase;
99

10-
class EanTest extends TestCase
10+
final class EanTest extends TestCase
1111
{
1212
public function Ean8checksumProvider()
1313
{

test/Faker/Calculator/IbanTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Faker\Calculator\Iban;
66
use PHPUnit\Framework\TestCase;
77

8-
class IbanTest extends TestCase
8+
final class IbanTest extends TestCase
99
{
1010

1111
public function checksumProvider()

test/Faker/Calculator/InnTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Faker\Calculator\Inn;
66
use PHPUnit\Framework\TestCase;
77

8-
class InnTest extends TestCase
8+
final class InnTest extends TestCase
99
{
1010

1111
public function checksumProvider()

test/Faker/Calculator/LuhnTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Faker\Calculator\Luhn;
66
use PHPUnit\Framework\TestCase;
77

8-
class LuhnTest extends TestCase
8+
final class LuhnTest extends TestCase
99
{
1010

1111
public function checkDigitProvider()

test/Faker/Calculator/TCNoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Faker\Calculator\TCNo;
66
use PHPUnit\Framework\TestCase;
77

8-
class TCNoTest extends TestCase
8+
final class TCNoTest extends TestCase
99
{
1010
public function checksumProvider()
1111
{

test/Faker/DefaultGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Faker\DefaultGenerator;
66
use PHPUnit\Framework\TestCase;
77

8-
class DefaultGeneratorTest extends TestCase
8+
final class DefaultGeneratorTest extends TestCase
99
{
1010
public function testGeneratorReturnsNullByDefault()
1111
{

test/Faker/GeneratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Faker\Generator;
66
use PHPUnit\Framework\TestCase;
77

8-
class GeneratorTest extends TestCase
8+
final class GeneratorTest extends TestCase
99
{
1010
public function testAddProviderGivesPriorityToNewlyAddedProvider()
1111
{
@@ -126,7 +126,7 @@ public function testSeed()
126126
}
127127
}
128128

129-
class FooProvider
129+
final class FooProvider
130130
{
131131
public function fooFormatter()
132132
{
@@ -139,7 +139,7 @@ public function fooFormatterWithArguments($value = '')
139139
}
140140
}
141141

142-
class BarProvider
142+
final class BarProvider
143143
{
144144
public function fooFormatter()
145145
{

test/Faker/Provider/AddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Faker\Provider\Address;
77
use PHPUnit\Framework\TestCase;
88

9-
class AddressTest extends TestCase
9+
final class AddressTest extends TestCase
1010
{
1111
private $faker;
1212

test/Faker/Provider/BarcodeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Faker\Provider\Barcode;
77
use PHPUnit\Framework\TestCase;
88

9-
class BarcodeTest extends TestCase
9+
final class BarcodeTest extends TestCase
1010
{
1111
private $faker;
1212

@@ -37,7 +37,7 @@ public function testEan13()
3737
}
3838
}
3939

40-
class TestableBarcode extends Barcode
40+
final class TestableBarcode extends Barcode
4141
{
4242
public static function eanChecksum($input)
4343
{

test/Faker/Provider/BaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use PHPUnit\Framework\TestCase;
77
use Traversable;
88

9-
class BaseTest extends TestCase
9+
final class BaseTest extends TestCase
1010
{
1111
public function testRandomDigitReturnsInteger()
1212
{
@@ -567,6 +567,6 @@ public function testRandomElements()
567567
}
568568
}
569569

570-
class Collection extends \ArrayObject
570+
final class Collection extends \ArrayObject
571571
{
572572
}

0 commit comments

Comments
 (0)