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

Commit

Permalink
Merge pull request #1820 from localheinz/fix/final
Browse files Browse the repository at this point in the history
Fix: Mark test classes as final
  • Loading branch information
fzaninotto authored Nov 27, 2019
2 parents 2c9b912 + 70c8eba commit ce73e73
Show file tree
Hide file tree
Showing 130 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion test/Faker/Calculator/EanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Faker\Calculator\Ean;
use PHPUnit\Framework\TestCase;

class EanTest extends TestCase
final class EanTest extends TestCase
{
public function Ean8checksumProvider()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Calculator/IbanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Calculator\Iban;
use PHPUnit\Framework\TestCase;

class IbanTest extends TestCase
final class IbanTest extends TestCase
{

public function checksumProvider()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Calculator/InnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Calculator\Inn;
use PHPUnit\Framework\TestCase;

class InnTest extends TestCase
final class InnTest extends TestCase
{

public function checksumProvider()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Calculator/LuhnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Calculator\Luhn;
use PHPUnit\Framework\TestCase;

class LuhnTest extends TestCase
final class LuhnTest extends TestCase
{

public function checkDigitProvider()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Calculator/TCNoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Calculator\TCNo;
use PHPUnit\Framework\TestCase;

class TCNoTest extends TestCase
final class TCNoTest extends TestCase
{
public function checksumProvider()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/DefaultGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\DefaultGenerator;
use PHPUnit\Framework\TestCase;

class DefaultGeneratorTest extends TestCase
final class DefaultGeneratorTest extends TestCase
{
public function testGeneratorReturnsNullByDefault()
{
Expand Down
6 changes: 3 additions & 3 deletions test/Faker/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Generator;
use PHPUnit\Framework\TestCase;

class GeneratorTest extends TestCase
final class GeneratorTest extends TestCase
{
public function testAddProviderGivesPriorityToNewlyAddedProvider()
{
Expand Down Expand Up @@ -126,7 +126,7 @@ public function testSeed()
}
}

class FooProvider
final class FooProvider
{
public function fooFormatter()
{
Expand All @@ -139,7 +139,7 @@ public function fooFormatterWithArguments($value = '')
}
}

class BarProvider
final class BarProvider
{
public function fooFormatter()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\Address;
use PHPUnit\Framework\TestCase;

class AddressTest extends TestCase
final class AddressTest extends TestCase
{
private $faker;

Expand Down
4 changes: 2 additions & 2 deletions test/Faker/Provider/BarcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\Barcode;
use PHPUnit\Framework\TestCase;

class BarcodeTest extends TestCase
final class BarcodeTest extends TestCase
{
private $faker;

Expand Down Expand Up @@ -37,7 +37,7 @@ public function testEan13()
}
}

class TestableBarcode extends Barcode
final class TestableBarcode extends Barcode
{
public static function eanChecksum($input)
{
Expand Down
4 changes: 2 additions & 2 deletions test/Faker/Provider/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use PHPUnit\Framework\TestCase;
use Traversable;

class BaseTest extends TestCase
final class BaseTest extends TestCase
{
public function testRandomDigitReturnsInteger()
{
Expand Down Expand Up @@ -567,6 +567,6 @@ public function testRandomElements()
}
}

class Collection extends \ArrayObject
final class Collection extends \ArrayObject
{
}
2 changes: 1 addition & 1 deletion test/Faker/Provider/BiasedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Generator;
use PHPUnit\Framework\TestCase;

class BiasedTest extends TestCase
final class BiasedTest extends TestCase
{
const MAX = 10;
const NUMBERS = 25000;
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/ColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Provider\Color;
use PHPUnit\Framework\TestCase;

class ColorTest extends TestCase
final class ColorTest extends TestCase
{

public function testHexColor()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/CompanyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Faker\Provider\Lorem;
use PHPUnit\Framework\TestCase;

class CompanyTest extends TestCase
final class CompanyTest extends TestCase
{
/**
* @var Generator
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/DateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Provider\DateTime as DateTimeProvider;
use PHPUnit\Framework\TestCase;

class DateTimeTest extends TestCase
final class DateTimeTest extends TestCase
{
public function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/HtmlLoremTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\HtmlLorem;
use PHPUnit\Framework\TestCase;

class HtmlLoremTest extends TestCase
final class HtmlLoremTest extends TestCase
{

public function testProvider()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Provider\Image;
use PHPUnit\Framework\TestCase;

class ImageTest extends TestCase
final class ImageTest extends TestCase
{
public function testImageUrlUses640x680AsTheDefaultSize()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Faker\Provider\Person;
use PHPUnit\Framework\TestCase;

class InternetTest extends TestCase
final class InternetTest extends TestCase
{
/**
* @var Generator
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/LocalizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Factory;
use PHPUnit\Framework\TestCase;

class LocalizationTest extends TestCase
final class LocalizationTest extends TestCase
{
public function testLocalizedNameProvidersDoNotThrowErrors()
{
Expand Down
4 changes: 2 additions & 2 deletions test/Faker/Provider/LoremTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Provider\Lorem;
use PHPUnit\Framework\TestCase;

class LoremTest extends TestCase
final class LoremTest extends TestCase
{
/**
* @expectedException \InvalidArgumentException
Expand Down Expand Up @@ -89,7 +89,7 @@ public function testParagraphsAsText()
}
}

class TestableLorem extends Lorem
final class TestableLorem extends Lorem
{

public static function word()
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/MiscellaneousTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Provider\Miscellaneous;
use PHPUnit\Framework\TestCase;

class MiscellaneousTest extends TestCase
final class MiscellaneousTest extends TestCase
{
public function testBoolean()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Faker\Provider\Person as PersonProvider;
use PHPUnit\Framework\TestCase;

class PaymentTest extends TestCase
final class PaymentTest extends TestCase
{
private $faker;

Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Generator;
use PHPUnit\Framework\TestCase;

class PersonTest extends TestCase
final class PersonTest extends TestCase
{
/**
* @dataProvider firstNameProvider
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Faker\Provider\PhoneNumber;
use PHPUnit\Framework\TestCase;

class PhoneNumberTest extends TestCase
final class PhoneNumberTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/ProviderOverrideTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* locale specific provider (can) has specific implementations. The goal of this test is to test the common denominator
* and to try to catch possible invalid multi-byte sequences.
*/
class ProviderOverrideTest extends TestCase
final class ProviderOverrideTest extends TestCase
{
/**
* Constants with regular expression patterns for testing the output.
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Generator;
use PHPUnit\Framework\TestCase;

class TextTest extends TestCase
final class TextTest extends TestCase
{
/**
* @var Generator
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/UserAgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Faker\Provider\UserAgent;
use PHPUnit\Framework\TestCase;

class UserAgentTest extends TestCase
final class UserAgentTest extends TestCase
{
public function testRandomUserAgent()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/UuidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\Uuid as BaseProvider;
use PHPUnit\Framework\TestCase;

class UuidTest extends TestCase
final class UuidTest extends TestCase
{
public function testUuidReturnsUuid()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/ar_JO/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Faker\Provider\fi_FI\Company;
use PHPUnit\Framework\TestCase;

class InternetTest extends TestCase
final class InternetTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/ar_SA/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Faker\Provider\ar_SA\Company;
use PHPUnit\Framework\TestCase;

class InternetTest extends TestCase
final class InternetTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/at_AT/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\at_AT\Payment;
use PHPUnit\Framework\TestCase;

class PaymentTest extends TestCase
final class PaymentTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/bg_BG/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\bg_BG\Payment;
use PHPUnit\Framework\TestCase;

class PaymentTest extends TestCase
final class PaymentTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/bn_BD/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\bn_BD\Person;
use PHPUnit\Framework\TestCase;

class PersonTest extends TestCase
final class PersonTest extends TestCase
{
public function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/cs_CZ/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Faker\Provider\Miscellaneous;
use PHPUnit\Framework\TestCase;

class PersonTest extends TestCase
final class PersonTest extends TestCase
{
public function testBirthNumber()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/da_DK/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Faker\Provider\da_DK\Company;
use PHPUnit\Framework\TestCase;

class InternetTest extends TestCase
final class InternetTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_AT/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Faker\Provider\de_AT\Address;
use PHPUnit\Framework\TestCase;

class AddressTest extends TestCase
final class AddressTest extends TestCase
{
/**
* @var Generator
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_AT/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Faker\Provider\de_AT\Company;
use PHPUnit\Framework\TestCase;

class InternetTest extends TestCase
final class InternetTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_AT/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Faker\Provider\de_AT\PhoneNumber;
use PHPUnit\Framework\TestCase;

class PhoneNumberTest extends TestCase
final class PhoneNumberTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_CH/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Faker\Provider\de_CH\Person;
use PHPUnit\Framework\TestCase;

class AddressTest extends TestCase
final class AddressTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_CH/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Faker\Provider\de_CH\Company;
use PHPUnit\Framework\TestCase;

class InternetTest extends TestCase
final class InternetTest extends TestCase
{

/**
Expand Down
Loading

0 comments on commit ce73e73

Please sign in to comment.