From 0e9e7a3bc6fc37b22c5c9274f859b130b1a7ba82 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sat, 4 Nov 2017 13:48:32 -0200 Subject: [PATCH] Use PSR-1 for PHPUnit TestCase --- test/Faker/Calculator/IbanTest.php | 3 ++- test/Faker/Calculator/InnTest.php | 3 ++- test/Faker/Calculator/LuhnTest.php | 3 ++- test/Faker/DefaultGeneratorTest.php | 3 ++- test/Faker/GeneratorTest.php | 3 ++- test/Faker/Provider/AddressTest.php | 3 ++- test/Faker/Provider/BarcodeTest.php | 3 ++- test/Faker/Provider/BaseTest.php | 3 ++- test/Faker/Provider/BiasedTest.php | 13 +++++++------ test/Faker/Provider/ColorTest.php | 3 ++- test/Faker/Provider/CompanyTest.php | 3 ++- test/Faker/Provider/DateTimeTest.php | 3 ++- test/Faker/Provider/HtmlLoremTest.php | 3 ++- test/Faker/Provider/ImageTest.php | 3 ++- test/Faker/Provider/InternetTest.php | 3 ++- test/Faker/Provider/LocalizationTest.php | 3 ++- test/Faker/Provider/LoremTest.php | 3 ++- test/Faker/Provider/MiscellaneousTest.php | 3 ++- test/Faker/Provider/PaymentTest.php | 3 ++- test/Faker/Provider/PersonTest.php | 3 ++- test/Faker/Provider/PhoneNumberTest.php | 3 ++- test/Faker/Provider/ProviderOverrideTest.php | 3 ++- test/Faker/Provider/TextTest.php | 3 ++- test/Faker/Provider/UserAgentTest.php | 3 ++- test/Faker/Provider/UuidTest.php | 3 ++- test/Faker/Provider/ar_JO/InternetTest.php | 3 ++- test/Faker/Provider/ar_SA/InternetTest.php | 3 ++- test/Faker/Provider/at_AT/PaymentTest.php | 3 ++- test/Faker/Provider/bg_BG/PaymentTest.php | 3 ++- test/Faker/Provider/bn_BD/PersonTest.php | 3 ++- test/Faker/Provider/cs_CZ/PersonTest.php | 5 +++-- test/Faker/Provider/da_DK/InternetTest.php | 3 ++- test/Faker/Provider/de_AT/InternetTest.php | 3 ++- test/Faker/Provider/de_AT/PhoneNumberTest.php | 3 ++- test/Faker/Provider/de_CH/AddressTest.php | 3 ++- test/Faker/Provider/de_CH/InternetTest.php | 3 ++- test/Faker/Provider/de_CH/PhoneNumberTest.php | 3 ++- test/Faker/Provider/de_DE/InternetTest.php | 3 ++- test/Faker/Provider/en_AU/AddressTest.php | 3 ++- test/Faker/Provider/en_CA/AddressTest.php | 3 ++- test/Faker/Provider/en_GB/AddressTest.php | 3 ++- test/Faker/Provider/en_IN/AddressTest.php | 3 ++- test/Faker/Provider/en_NG/AddressTest.php | 5 +++-- test/Faker/Provider/en_NG/InternetTest.php | 3 ++- test/Faker/Provider/en_NG/PersonTest.php | 3 ++- test/Faker/Provider/en_NG/PhoneNumberTest.php | 3 ++- test/Faker/Provider/en_NZ/PhoneNumberTest.php | 3 ++- test/Faker/Provider/en_PH/AddressTest.php | 3 ++- test/Faker/Provider/en_SG/AddressTest.php | 3 ++- test/Faker/Provider/en_SG/PhoneNumberTest.php | 3 ++- test/Faker/Provider/en_UG/AddressTest.php | 3 ++- test/Faker/Provider/en_US/PaymentTest.php | 3 ++- test/Faker/Provider/en_US/PersonTest.php | 3 ++- test/Faker/Provider/en_US/PhoneNumberTest.php | 3 ++- test/Faker/Provider/en_ZA/CompanyTest.php | 5 +++-- test/Faker/Provider/en_ZA/InternetTest.php | 3 ++- test/Faker/Provider/en_ZA/PersonTest.php | 3 ++- test/Faker/Provider/en_ZA/PhoneNumberTest.php | 5 +++-- test/Faker/Provider/es_ES/PaymentTest.php | 3 ++- test/Faker/Provider/es_ES/PersonTest.php | 3 ++- test/Faker/Provider/es_ES/TextTest.php | 3 ++- test/Faker/Provider/es_PE/PersonTest.php | 3 ++- test/Faker/Provider/es_VE/CompanyTest.php | 4 ++-- test/Faker/Provider/es_VE/PersonTest.php | 4 ++-- test/Faker/Provider/fi_FI/InternetTest.php | 3 ++- test/Faker/Provider/fi_FI/PersonTest.php | 3 ++- test/Faker/Provider/fr_BE/PaymentTest.php | 3 ++- test/Faker/Provider/fr_CH/AddressTest.php | 3 ++- test/Faker/Provider/fr_CH/InternetTest.php | 3 ++- test/Faker/Provider/fr_CH/PhoneNumberTest.php | 3 ++- test/Faker/Provider/fr_FR/CompanyTest.php | 3 ++- test/Faker/Provider/fr_FR/PersonTest.php | 7 ++++--- test/Faker/Provider/id_ID/PersonTest.php | 3 ++- test/Faker/Provider/it_CH/AddressTest.php | 3 ++- test/Faker/Provider/it_CH/InternetTest.php | 3 ++- test/Faker/Provider/it_CH/PhoneNumberTest.php | 3 ++- test/Faker/Provider/it_IT/CompanyTest.php | 5 +++-- test/Faker/Provider/it_IT/PersonTest.php | 5 +++-- test/Faker/Provider/ja_JP/InternetTest.php | 3 ++- test/Faker/Provider/ja_JP/PersonTest.php | 3 ++- test/Faker/Provider/ja_JP/PhoneNumberTest.php | 3 ++- test/Faker/Provider/kk_KZ/CompanyTest.php | 3 ++- test/Faker/Provider/kk_KZ/PersonTest.php | 3 ++- test/Faker/Provider/mn_MN/PersonTest.php | 3 ++- test/Faker/Provider/nl_BE/PaymentTest.php | 3 ++- test/Faker/Provider/nl_NL/CompanyTest.php | 3 ++- test/Faker/Provider/nl_NL/PersonTest.php | 3 ++- test/Faker/Provider/pl_PL/AddressTest.php | 3 ++- test/Faker/Provider/pt_BR/CompanyTest.php | 3 ++- test/Faker/Provider/pt_BR/PersonTest.php | 3 ++- test/Faker/Provider/pt_PT/AddressTest.php | 3 ++- test/Faker/Provider/pt_PT/PersonTest.php | 3 ++- test/Faker/Provider/pt_PT/PhoneNumberTest.php | 3 ++- test/Faker/Provider/ro_RO/PersonTest.php | 3 ++- test/Faker/Provider/ro_RO/PhoneNumberTest.php | 3 ++- test/Faker/Provider/ru_RU/CompanyTest.php | 3 ++- test/Faker/Provider/sv_SE/PersonTest.php | 3 ++- test/Faker/Provider/uk_UA/AddressTest.php | 3 ++- test/Faker/Provider/uk_UA/PersonTest.php | 3 ++- test/Faker/Provider/uk_UA/PhoneNumberTest.php | 3 ++- test/Faker/Provider/zh_TW/CompanyTest.php | 3 ++- test/Faker/Provider/zh_TW/PersonTest.php | 3 ++- test/Faker/Provider/zh_TW/TextTest.php | 4 +++- 103 files changed, 220 insertions(+), 118 deletions(-) diff --git a/test/Faker/Calculator/IbanTest.php b/test/Faker/Calculator/IbanTest.php index 12fe8e6d2d..197048e5fd 100644 --- a/test/Faker/Calculator/IbanTest.php +++ b/test/Faker/Calculator/IbanTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Calculator; use Faker\Calculator\Iban; +use PHPUnit\Framework\TestCase; -class IbanTest extends \PHPUnit_Framework_TestCase +class IbanTest extends TestCase { public function checksumProvider() diff --git a/test/Faker/Calculator/InnTest.php b/test/Faker/Calculator/InnTest.php index 4dfb880202..71d9193fd1 100644 --- a/test/Faker/Calculator/InnTest.php +++ b/test/Faker/Calculator/InnTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Calculator; use Faker\Calculator\Inn; +use PHPUnit\Framework\TestCase; -class InnTest extends \PHPUnit_Framework_TestCase +class InnTest extends TestCase { public function checksumProvider() diff --git a/test/Faker/Calculator/LuhnTest.php b/test/Faker/Calculator/LuhnTest.php index 9eb30b5de6..2e81414497 100644 --- a/test/Faker/Calculator/LuhnTest.php +++ b/test/Faker/Calculator/LuhnTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Calculator; use Faker\Calculator\Luhn; +use PHPUnit\Framework\TestCase; -class LuhnTest extends \PHPUnit_Framework_TestCase +class LuhnTest extends TestCase { public function checkDigitProvider() diff --git a/test/Faker/DefaultGeneratorTest.php b/test/Faker/DefaultGeneratorTest.php index 262243d104..5bb7bbebf6 100644 --- a/test/Faker/DefaultGeneratorTest.php +++ b/test/Faker/DefaultGeneratorTest.php @@ -3,8 +3,9 @@ namespace Faker\Test; use Faker\DefaultGenerator; +use PHPUnit\Framework\TestCase; -class DefaultGeneratorTest extends \PHPUnit_Framework_TestCase +class DefaultGeneratorTest extends TestCase { public function testGeneratorReturnsNullByDefault() { diff --git a/test/Faker/GeneratorTest.php b/test/Faker/GeneratorTest.php index e437292abf..8771ab88ee 100644 --- a/test/Faker/GeneratorTest.php +++ b/test/Faker/GeneratorTest.php @@ -3,8 +3,9 @@ namespace Faker\Test; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class GeneratorTest extends \PHPUnit_Framework_TestCase +class GeneratorTest extends TestCase { public function testAddProviderGivesPriorityToNewlyAddedProvider() { diff --git a/test/Faker/Provider/AddressTest.php b/test/Faker/Provider/AddressTest.php index 5a5f66d4cc..c7f1814ca5 100644 --- a/test/Faker/Provider/AddressTest.php +++ b/test/Faker/Provider/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/BarcodeTest.php b/test/Faker/Provider/BarcodeTest.php index 1373b2b5bd..16ca3cd812 100644 --- a/test/Faker/Provider/BarcodeTest.php +++ b/test/Faker/Provider/BarcodeTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\Barcode; +use PHPUnit\Framework\TestCase; -class BarcodeTest extends \PHPUnit_Framework_TestCase +class BarcodeTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/BaseTest.php b/test/Faker/Provider/BaseTest.php index 313b0021c4..ad2e21592b 100644 --- a/test/Faker/Provider/BaseTest.php +++ b/test/Faker/Provider/BaseTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\Base as BaseProvider; +use PHPUnit\Framework\TestCase; -class BaseTest extends \PHPUnit_Framework_TestCase +class BaseTest extends TestCase { public function testRandomDigitReturnsInteger() { diff --git a/test/Faker/Provider/BiasedTest.php b/test/Faker/Provider/BiasedTest.php index 1f7a99acbb..cce3dc0acf 100644 --- a/test/Faker/Provider/BiasedTest.php +++ b/test/Faker/Provider/BiasedTest.php @@ -3,14 +3,15 @@ use Faker\Provider\Biased; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class BiasedTest extends \PHPUnit_Framework_TestCase +class BiasedTest extends TestCase { const MAX = 10; const NUMBERS = 25000; protected $generator; protected $results = array(); - + protected function setUp() { $this->generator = new Generator(); @@ -18,14 +19,14 @@ protected function setUp() $this->results = array_fill(1, self::MAX, 0); } - + public function performFake($function) { for($i = 0; $i < self::NUMBERS; $i++) { $this->results[$this->generator->biasedNumberBetween(1, self::MAX, $function)]++; } } - + public function testUnbiased() { $this->performFake(array('\Faker\Provider\Biased', 'unbiased')); @@ -40,7 +41,7 @@ public function testUnbiased() $this->assertLessThan(self::NUMBERS * $assumed * 1.05, $amount, "Value was more than 5 percent over the expected value"); } } - + public function testLinearHigh() { $this->performFake(array('\Faker\Provider\Biased', 'linearHigh')); @@ -54,7 +55,7 @@ public function testLinearHigh() $this->assertLessThan(self::NUMBERS * $assumed * 1.1, $amount, "Value was more than 10 percent over the expected value"); } } - + public function testLinearLow() { $this->performFake(array('\Faker\Provider\Biased', 'linearLow')); diff --git a/test/Faker/Provider/ColorTest.php b/test/Faker/Provider/ColorTest.php index f73831b1a4..ff5edac240 100644 --- a/test/Faker/Provider/ColorTest.php +++ b/test/Faker/Provider/ColorTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\Color; +use PHPUnit\Framework\TestCase; -class ColorTest extends \PHPUnit_Framework_TestCase +class ColorTest extends TestCase { public function testHexColor() diff --git a/test/Faker/Provider/CompanyTest.php b/test/Faker/Provider/CompanyTest.php index ac26c5a0f8..28ce0eb4d0 100644 --- a/test/Faker/Provider/CompanyTest.php +++ b/test/Faker/Provider/CompanyTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\Company; use Faker\Provider\Lorem; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/DateTimeTest.php b/test/Faker/Provider/DateTimeTest.php index 91b17f818b..526654522e 100644 --- a/test/Faker/Provider/DateTimeTest.php +++ b/test/Faker/Provider/DateTimeTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\DateTime as DateTimeProvider; +use PHPUnit\Framework\TestCase; -class DateTimeTest extends \PHPUnit_Framework_TestCase +class DateTimeTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/HtmlLoremTest.php b/test/Faker/Provider/HtmlLoremTest.php index f40e0a2826..f7814fafc6 100644 --- a/test/Faker/Provider/HtmlLoremTest.php +++ b/test/Faker/Provider/HtmlLoremTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\HtmlLorem; +use PHPUnit\Framework\TestCase; -class HtmlLoremTest extends \PHPUnit_Framework_TestCase +class HtmlLoremTest extends TestCase { public function testProvider() diff --git a/test/Faker/Provider/ImageTest.php b/test/Faker/Provider/ImageTest.php index 2a62e6ad89..c73992ce0c 100644 --- a/test/Faker/Provider/ImageTest.php +++ b/test/Faker/Provider/ImageTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\Image; +use PHPUnit\Framework\TestCase; -class ImageTest extends \PHPUnit_Framework_TestCase +class ImageTest extends TestCase { public function testImageUrlUses640x680AsTheDefaultSize() { diff --git a/test/Faker/Provider/InternetTest.php b/test/Faker/Provider/InternetTest.php index 11ad2c6e12..93fe7b48d4 100644 --- a/test/Faker/Provider/InternetTest.php +++ b/test/Faker/Provider/InternetTest.php @@ -7,8 +7,9 @@ use Faker\Provider\Internet; use Faker\Provider\Lorem; use Faker\Provider\Person; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/LocalizationTest.php b/test/Faker/Provider/LocalizationTest.php index 347b13512f..6cfcc89189 100644 --- a/test/Faker/Provider/LocalizationTest.php +++ b/test/Faker/Provider/LocalizationTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Factory; +use PHPUnit\Framework\TestCase; -class LocalizationTest extends \PHPUnit_Framework_TestCase +class LocalizationTest extends TestCase { public function testLocalizedNameProvidersDoNotThrowErrors() { diff --git a/test/Faker/Provider/LoremTest.php b/test/Faker/Provider/LoremTest.php index 62785d43d6..16d98891e4 100644 --- a/test/Faker/Provider/LoremTest.php +++ b/test/Faker/Provider/LoremTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\Lorem; +use PHPUnit\Framework\TestCase; -class LoremTest extends \PHPUnit_Framework_TestCase +class LoremTest extends TestCase { /** * @expectedException \InvalidArgumentException diff --git a/test/Faker/Provider/MiscellaneousTest.php b/test/Faker/Provider/MiscellaneousTest.php index 8e39eb2c71..6a29cd5531 100644 --- a/test/Faker/Provider/MiscellaneousTest.php +++ b/test/Faker/Provider/MiscellaneousTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\Miscellaneous; +use PHPUnit\Framework\TestCase; -class MiscellaneousTest extends \PHPUnit_Framework_TestCase +class MiscellaneousTest extends TestCase { public function testBoolean() { diff --git a/test/Faker/Provider/PaymentTest.php b/test/Faker/Provider/PaymentTest.php index 773b722718..ab5e64fe77 100644 --- a/test/Faker/Provider/PaymentTest.php +++ b/test/Faker/Provider/PaymentTest.php @@ -9,8 +9,9 @@ use Faker\Provider\DateTime as DateTimeProvider; use Faker\Provider\Payment as PaymentProvider; use Faker\Provider\Person as PersonProvider; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/PersonTest.php b/test/Faker/Provider/PersonTest.php index a8d1c0f2f5..f53076f7bb 100644 --- a/test/Faker/Provider/PersonTest.php +++ b/test/Faker/Provider/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Provider\Person; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** * @dataProvider firstNameProvider diff --git a/test/Faker/Provider/PhoneNumberTest.php b/test/Faker/Provider/PhoneNumberTest.php index f73bda88cf..520ecea371 100644 --- a/test/Faker/Provider/PhoneNumberTest.php +++ b/test/Faker/Provider/PhoneNumberTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Calculator\Luhn; use Faker\Provider\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/ProviderOverrideTest.php b/test/Faker/Provider/ProviderOverrideTest.php index 7fa046ba01..61d7d63aa2 100644 --- a/test/Faker/Provider/ProviderOverrideTest.php +++ b/test/Faker/Provider/ProviderOverrideTest.php @@ -6,6 +6,7 @@ namespace Faker\Test\Provider; use Faker; +use PHPUnit\Framework\TestCase; /** * Class ProviderOverrideTest @@ -16,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 \PHPUnit_Framework_TestCase +class ProviderOverrideTest extends TestCase { /** * Constants with regular expression patterns for testing the output. diff --git a/test/Faker/Provider/TextTest.php b/test/Faker/Provider/TextTest.php index 3baf49f373..a43d8d43c2 100644 --- a/test/Faker/Provider/TextTest.php +++ b/test/Faker/Provider/TextTest.php @@ -3,8 +3,9 @@ use Faker\Provider\en_US\Text; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class TextTest extends \PHPUnit_Framework_TestCase +class TextTest extends TestCase { public function testTextMaxLength() { diff --git a/test/Faker/Provider/UserAgentTest.php b/test/Faker/Provider/UserAgentTest.php index b45b9f8660..5ba2459c29 100644 --- a/test/Faker/Provider/UserAgentTest.php +++ b/test/Faker/Provider/UserAgentTest.php @@ -3,8 +3,9 @@ namespace Faker\Test\Provider; use Faker\Provider\UserAgent; +use PHPUnit\Framework\TestCase; -class UserAgentTest extends \PHPUnit_Framework_TestCase +class UserAgentTest extends TestCase { public function testRandomUserAgent() { diff --git a/test/Faker/Provider/UuidTest.php b/test/Faker/Provider/UuidTest.php index 22f9efb749..ebd4ae4c6c 100644 --- a/test/Faker/Provider/UuidTest.php +++ b/test/Faker/Provider/UuidTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\Uuid as BaseProvider; +use PHPUnit\Framework\TestCase; -class UuidTest extends \PHPUnit_Framework_TestCase +class UuidTest extends TestCase { public function testUuidReturnsUuid() { diff --git a/test/Faker/Provider/ar_JO/InternetTest.php b/test/Faker/Provider/ar_JO/InternetTest.php index d323f1e7ee..33d70c434d 100644 --- a/test/Faker/Provider/ar_JO/InternetTest.php +++ b/test/Faker/Provider/ar_JO/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\fi_FI\Person; use Faker\Provider\fi_FI\Internet; use Faker\Provider\fi_FI\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/ar_SA/InternetTest.php b/test/Faker/Provider/ar_SA/InternetTest.php index 3765a107dc..8059f0008c 100644 --- a/test/Faker/Provider/ar_SA/InternetTest.php +++ b/test/Faker/Provider/ar_SA/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\ar_SA\Person; use Faker\Provider\ar_SA\Internet; use Faker\Provider\ar_SA\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/at_AT/PaymentTest.php b/test/Faker/Provider/at_AT/PaymentTest.php index afc8c27b01..f62dae81e5 100644 --- a/test/Faker/Provider/at_AT/PaymentTest.php +++ b/test/Faker/Provider/at_AT/PaymentTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\at_AT\Payment; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { /** diff --git a/test/Faker/Provider/bg_BG/PaymentTest.php b/test/Faker/Provider/bg_BG/PaymentTest.php index 31c6325cda..b5645f9bd2 100644 --- a/test/Faker/Provider/bg_BG/PaymentTest.php +++ b/test/Faker/Provider/bg_BG/PaymentTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\bg_BG\Payment; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { /** diff --git a/test/Faker/Provider/bn_BD/PersonTest.php b/test/Faker/Provider/bn_BD/PersonTest.php index 606599ff06..e82fe8b7cd 100644 --- a/test/Faker/Provider/bn_BD/PersonTest.php +++ b/test/Faker/Provider/bn_BD/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\bn_BD\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/cs_CZ/PersonTest.php b/test/Faker/Provider/cs_CZ/PersonTest.php index 40023cfe1f..0b19872513 100644 --- a/test/Faker/Provider/cs_CZ/PersonTest.php +++ b/test/Faker/Provider/cs_CZ/PersonTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\cs_CZ\Person; use Faker\Provider\Miscellaneous; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function testBirthNumber() { @@ -14,7 +15,7 @@ public function testBirthNumber() $faker->addProvider(new Person($faker)); $faker->addProvider(new Miscellaneous($faker)); - for ($i = 0; $i < 1000; $i++) { + for ($i = 0; $i < 1000; $i++) { $birthNumber = $faker->birthNumber(); $birthNumber = str_replace('/', '', $birthNumber); diff --git a/test/Faker/Provider/da_DK/InternetTest.php b/test/Faker/Provider/da_DK/InternetTest.php index ddbdd7af66..43c09be405 100644 --- a/test/Faker/Provider/da_DK/InternetTest.php +++ b/test/Faker/Provider/da_DK/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\da_DK\Person; use Faker\Provider\da_DK\Internet; use Faker\Provider\da_DK\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/de_AT/InternetTest.php b/test/Faker/Provider/de_AT/InternetTest.php index 91ce5ca5fb..1d778eea95 100644 --- a/test/Faker/Provider/de_AT/InternetTest.php +++ b/test/Faker/Provider/de_AT/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\de_AT\Person; use Faker\Provider\de_AT\Internet; use Faker\Provider\de_AT\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/de_AT/PhoneNumberTest.php b/test/Faker/Provider/de_AT/PhoneNumberTest.php index 2d61ad5ee7..7cc6e6b11b 100644 --- a/test/Faker/Provider/de_AT/PhoneNumberTest.php +++ b/test/Faker/Provider/de_AT/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\de_AT\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/de_CH/AddressTest.php b/test/Faker/Provider/de_CH/AddressTest.php index 2f2de276f2..668f2117a6 100644 --- a/test/Faker/Provider/de_CH/AddressTest.php +++ b/test/Faker/Provider/de_CH/AddressTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\de_CH\Address; use Faker\Provider\de_CH\Person; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/de_CH/InternetTest.php b/test/Faker/Provider/de_CH/InternetTest.php index 907af21036..31dcc5522d 100644 --- a/test/Faker/Provider/de_CH/InternetTest.php +++ b/test/Faker/Provider/de_CH/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\de_CH\Person; use Faker\Provider\de_CH\Internet; use Faker\Provider\de_CH\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/de_CH/PhoneNumberTest.php b/test/Faker/Provider/de_CH/PhoneNumberTest.php index 0c5f937976..5102297c30 100644 --- a/test/Faker/Provider/de_CH/PhoneNumberTest.php +++ b/test/Faker/Provider/de_CH/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\de_CH\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/de_DE/InternetTest.php b/test/Faker/Provider/de_DE/InternetTest.php index 8d39ff0846..a15f366473 100644 --- a/test/Faker/Provider/de_DE/InternetTest.php +++ b/test/Faker/Provider/de_DE/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\de_DE\Person; use Faker\Provider\de_DE\Internet; use Faker\Provider\de_DE\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/en_AU/AddressTest.php b/test/Faker/Provider/en_AU/AddressTest.php index ef8e9f2ef9..b2f72e8b54 100644 --- a/test/Faker/Provider/en_AU/AddressTest.php +++ b/test/Faker/Provider/en_AU/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_AU\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/en_CA/AddressTest.php b/test/Faker/Provider/en_CA/AddressTest.php index fb17c09f1b..6b1ece7290 100644 --- a/test/Faker/Provider/en_CA/AddressTest.php +++ b/test/Faker/Provider/en_CA/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_CA\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/en_GB/AddressTest.php b/test/Faker/Provider/en_GB/AddressTest.php index 0bad562ee3..762e11a868 100644 --- a/test/Faker/Provider/en_GB/AddressTest.php +++ b/test/Faker/Provider/en_GB/AddressTest.php @@ -3,8 +3,9 @@ namespace Faker\Provider\en_GB; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/en_IN/AddressTest.php b/test/Faker/Provider/en_IN/AddressTest.php index a5e965b284..125cbdf0b5 100644 --- a/test/Faker/Provider/en_IN/AddressTest.php +++ b/test/Faker/Provider/en_IN/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_IN\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/en_NG/AddressTest.php b/test/Faker/Provider/en_NG/AddressTest.php index 912de54132..27c591b7b7 100644 --- a/test/Faker/Provider/en_NG/AddressTest.php +++ b/test/Faker/Provider/en_NG/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_NG\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** @@ -53,4 +54,4 @@ public function testRegionIsAValidString() $this->assertInternalType('string', $region); } -} \ No newline at end of file +} diff --git a/test/Faker/Provider/en_NG/InternetTest.php b/test/Faker/Provider/en_NG/InternetTest.php index fd1a0e763d..6ebc620f38 100644 --- a/test/Faker/Provider/en_NG/InternetTest.php +++ b/test/Faker/Provider/en_NG/InternetTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\en_NG\Person; use Faker\Provider\en_NG\Internet; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/en_NG/PersonTest.php b/test/Faker/Provider/en_NG/PersonTest.php index 50760a439c..2180e36ea3 100644 --- a/test/Faker/Provider/en_NG/PersonTest.php +++ b/test/Faker/Provider/en_NG/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_NG\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/en_NG/PhoneNumberTest.php b/test/Faker/Provider/en_NG/PhoneNumberTest.php index a8997e6cd2..c591b8abae 100644 --- a/test/Faker/Provider/en_NG/PhoneNumberTest.php +++ b/test/Faker/Provider/en_NG/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_NG\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/en_NZ/PhoneNumberTest.php b/test/Faker/Provider/en_NZ/PhoneNumberTest.php index f8a8f6cfbe..14b145c7d2 100644 --- a/test/Faker/Provider/en_NZ/PhoneNumberTest.php +++ b/test/Faker/Provider/en_NZ/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_NZ\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/en_PH/AddressTest.php b/test/Faker/Provider/en_PH/AddressTest.php index d3b4682b36..19367a497a 100644 --- a/test/Faker/Provider/en_PH/AddressTest.php +++ b/test/Faker/Provider/en_PH/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_PH\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/en_SG/AddressTest.php b/test/Faker/Provider/en_SG/AddressTest.php index a62e1c6d52..abc62aacce 100644 --- a/test/Faker/Provider/en_SG/AddressTest.php +++ b/test/Faker/Provider/en_SG/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Factory; use Faker\Provider\en_SG\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/en_SG/PhoneNumberTest.php b/test/Faker/Provider/en_SG/PhoneNumberTest.php index 9b72d14a70..c8bb13f84c 100644 --- a/test/Faker/Provider/en_SG/PhoneNumberTest.php +++ b/test/Faker/Provider/en_SG/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Factory; use Faker\Provider\en_SG\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/en_UG/AddressTest.php b/test/Faker/Provider/en_UG/AddressTest.php index 484b125bf0..571d93fb21 100644 --- a/test/Faker/Provider/en_UG/AddressTest.php +++ b/test/Faker/Provider/en_UG/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_UG\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/en_US/PaymentTest.php b/test/Faker/Provider/en_US/PaymentTest.php index d17593fe00..ec82691b6f 100644 --- a/test/Faker/Provider/en_US/PaymentTest.php +++ b/test/Faker/Provider/en_US/PaymentTest.php @@ -4,8 +4,9 @@ namespace Faker\Provider\en_US; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/en_US/PersonTest.php b/test/Faker/Provider/en_US/PersonTest.php index 544a7b38e6..3ddb38b28d 100644 --- a/test/Faker/Provider/en_US/PersonTest.php +++ b/test/Faker/Provider/en_US/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Provider\en_US\Person; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** diff --git a/test/Faker/Provider/en_US/PhoneNumberTest.php b/test/Faker/Provider/en_US/PhoneNumberTest.php index ae2951a57f..a54ff88262 100644 --- a/test/Faker/Provider/en_US/PhoneNumberTest.php +++ b/test/Faker/Provider/en_US/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_US\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/en_ZA/CompanyTest.php b/test/Faker/Provider/en_ZA/CompanyTest.php index 678a38865f..0e51d49283 100644 --- a/test/Faker/Provider/en_ZA/CompanyTest.php +++ b/test/Faker/Provider/en_ZA/CompanyTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_ZA\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { private $faker; @@ -23,4 +24,4 @@ public function testGenerateValidCompanyNumber() $this->assertEquals(14, strlen($companyRegNo)); $this->assertRegExp('#^\d{4}/\d{6}/\d{2}$#', $companyRegNo); } -} \ No newline at end of file +} diff --git a/test/Faker/Provider/en_ZA/InternetTest.php b/test/Faker/Provider/en_ZA/InternetTest.php index 7edd63f999..02c2940402 100644 --- a/test/Faker/Provider/en_ZA/InternetTest.php +++ b/test/Faker/Provider/en_ZA/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\en_ZA\Person; use Faker\Provider\en_ZA\Internet; use Faker\Provider\en_ZA\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/en_ZA/PersonTest.php b/test/Faker/Provider/en_ZA/PersonTest.php index a97ee62c0c..d7973e72cc 100644 --- a/test/Faker/Provider/en_ZA/PersonTest.php +++ b/test/Faker/Provider/en_ZA/PersonTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\en_ZA\Person; use Faker\Provider\DateTime; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/en_ZA/PhoneNumberTest.php b/test/Faker/Provider/en_ZA/PhoneNumberTest.php index bfb516a4c3..37b781b505 100644 --- a/test/Faker/Provider/en_ZA/PhoneNumberTest.php +++ b/test/Faker/Provider/en_ZA/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\en_ZA\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { private $faker; @@ -62,4 +63,4 @@ public function testCellPhoneNumber() $this->assertRegExp('/^(\+27|27)?(\()?0?([6][0-4]|[7][1-9]|[8][1-9])(\))?( |-|\.|_)?(\d{3})( |-|\.|_)?(\d{4})/', $number); } } -} \ No newline at end of file +} diff --git a/test/Faker/Provider/es_ES/PaymentTest.php b/test/Faker/Provider/es_ES/PaymentTest.php index 344ce23687..e636544b71 100644 --- a/test/Faker/Provider/es_ES/PaymentTest.php +++ b/test/Faker/Provider/es_ES/PaymentTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\es_ES\Payment; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/es_ES/PersonTest.php b/test/Faker/Provider/es_ES/PersonTest.php index 55360bac77..527b0aad24 100644 --- a/test/Faker/Provider/es_ES/PersonTest.php +++ b/test/Faker/Provider/es_ES/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\es_ES\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/es_ES/TextTest.php b/test/Faker/Provider/es_ES/TextTest.php index 75bfee5feb..a8ae3486f9 100644 --- a/test/Faker/Provider/es_ES/TextTest.php +++ b/test/Faker/Provider/es_ES/TextTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\es_ES\Text; +use PHPUnit\Framework\TestCase; -class TextTest extends \PHPUnit_Framework_TestCase +class TextTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/es_PE/PersonTest.php b/test/Faker/Provider/es_PE/PersonTest.php index 666ed2bf7f..6014938789 100644 --- a/test/Faker/Provider/es_PE/PersonTest.php +++ b/test/Faker/Provider/es_PE/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\es_PE\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/es_VE/CompanyTest.php b/test/Faker/Provider/es_VE/CompanyTest.php index 2ee22fd1d8..3c9b162a84 100644 --- a/test/Faker/Provider/es_VE/CompanyTest.php +++ b/test/Faker/Provider/es_VE/CompanyTest.php @@ -7,11 +7,11 @@ namespace Faker\Test\Provider\es_VE; - use Faker\Generator; use Faker\Provider\es_VE\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/es_VE/PersonTest.php b/test/Faker/Provider/es_VE/PersonTest.php index b74b9bd34e..bb42cd75fc 100644 --- a/test/Faker/Provider/es_VE/PersonTest.php +++ b/test/Faker/Provider/es_VE/PersonTest.php @@ -7,11 +7,11 @@ namespace Faker\Test\Provider\es_VE; - use Faker\Generator; use Faker\Provider\es_VE\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** diff --git a/test/Faker/Provider/fi_FI/InternetTest.php b/test/Faker/Provider/fi_FI/InternetTest.php index 3f0e50679a..6009bbd174 100644 --- a/test/Faker/Provider/fi_FI/InternetTest.php +++ b/test/Faker/Provider/fi_FI/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\fi_FI\Person; use Faker\Provider\fi_FI\Internet; use Faker\Provider\fi_FI\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/fi_FI/PersonTest.php b/test/Faker/Provider/fi_FI/PersonTest.php index 6c77097e73..5aefb85845 100644 --- a/test/Faker/Provider/fi_FI/PersonTest.php +++ b/test/Faker/Provider/fi_FI/PersonTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\DateTime; use Faker\Provider\fi_FI\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** @var Generator */ protected $faker; diff --git a/test/Faker/Provider/fr_BE/PaymentTest.php b/test/Faker/Provider/fr_BE/PaymentTest.php index 46c1cd7784..6944c55fca 100644 --- a/test/Faker/Provider/fr_BE/PaymentTest.php +++ b/test/Faker/Provider/fr_BE/PaymentTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\fr_BE\Payment; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/fr_CH/AddressTest.php b/test/Faker/Provider/fr_CH/AddressTest.php index f589c1f84e..217ac9f603 100644 --- a/test/Faker/Provider/fr_CH/AddressTest.php +++ b/test/Faker/Provider/fr_CH/AddressTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\fr_CH\Address; use Faker\Provider\fr_CH\Person; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/fr_CH/InternetTest.php b/test/Faker/Provider/fr_CH/InternetTest.php index 2f20871a70..f4e948486a 100644 --- a/test/Faker/Provider/fr_CH/InternetTest.php +++ b/test/Faker/Provider/fr_CH/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\fr_CH\Person; use Faker\Provider\fr_CH\Internet; use Faker\Provider\fr_CH\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/fr_CH/PhoneNumberTest.php b/test/Faker/Provider/fr_CH/PhoneNumberTest.php index 1f3fc20f27..7bfcca76b7 100644 --- a/test/Faker/Provider/fr_CH/PhoneNumberTest.php +++ b/test/Faker/Provider/fr_CH/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\fr_CH\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/fr_FR/CompanyTest.php b/test/Faker/Provider/fr_FR/CompanyTest.php index 5486cf9d87..83e54d92f7 100644 --- a/test/Faker/Provider/fr_FR/CompanyTest.php +++ b/test/Faker/Provider/fr_FR/CompanyTest.php @@ -5,8 +5,9 @@ use Faker\Calculator\Luhn; use Faker\Generator; use Faker\Provider\fr_FR\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/fr_FR/PersonTest.php b/test/Faker/Provider/fr_FR/PersonTest.php index b5bc805623..8c5fc6547a 100644 --- a/test/Faker/Provider/fr_FR/PersonTest.php +++ b/test/Faker/Provider/fr_FR/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\fr_FR\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { private $faker; @@ -21,13 +22,13 @@ public function testNIRReturnsTheRightGender() $nir = $this->faker->nir(\Faker\Provider\Person::GENDER_MALE); $this->assertStringStartsWith('1', $nir); } - + public function testNIRReturnsTheRightPattern() { $nir = $this->faker->nir; $this->assertRegExp("/^[12]\d{5}[0-9A-B]\d{8}$/", $nir); } - + public function testNIRFormattedReturnsTheRightPattern() { $nir = $this->faker->nir(null, true); diff --git a/test/Faker/Provider/id_ID/PersonTest.php b/test/Faker/Provider/id_ID/PersonTest.php index abd039f057..5ebfeee4b1 100644 --- a/test/Faker/Provider/id_ID/PersonTest.php +++ b/test/Faker/Provider/id_ID/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\id_ID\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/it_CH/AddressTest.php b/test/Faker/Provider/it_CH/AddressTest.php index 76122532eb..0f0df5e952 100644 --- a/test/Faker/Provider/it_CH/AddressTest.php +++ b/test/Faker/Provider/it_CH/AddressTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\it_CH\Address; use Faker\Provider\it_CH\Person; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/it_CH/InternetTest.php b/test/Faker/Provider/it_CH/InternetTest.php index 16616c70c5..d46f6b7df9 100644 --- a/test/Faker/Provider/it_CH/InternetTest.php +++ b/test/Faker/Provider/it_CH/InternetTest.php @@ -6,8 +6,9 @@ use Faker\Provider\it_CH\Person; use Faker\Provider\it_CH\Internet; use Faker\Provider\it_CH\Company; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { /** diff --git a/test/Faker/Provider/it_CH/PhoneNumberTest.php b/test/Faker/Provider/it_CH/PhoneNumberTest.php index d3f17b8a05..5cda5345dd 100644 --- a/test/Faker/Provider/it_CH/PhoneNumberTest.php +++ b/test/Faker/Provider/it_CH/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\it_CH\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/it_IT/CompanyTest.php b/test/Faker/Provider/it_IT/CompanyTest.php index 7bef3fae48..33977e136b 100644 --- a/test/Faker/Provider/it_IT/CompanyTest.php +++ b/test/Faker/Provider/it_IT/CompanyTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\it_IT\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { public function setUp() { @@ -19,5 +20,5 @@ public function testIfTaxIdCanReturnData() $vatId = $this->faker->vatId(); $this->assertRegExp('/^IT[0-9]{11}$/', $vatId); } - + } diff --git a/test/Faker/Provider/it_IT/PersonTest.php b/test/Faker/Provider/it_IT/PersonTest.php index 5d0dc2314a..3e7b1a4f90 100644 --- a/test/Faker/Provider/it_IT/PersonTest.php +++ b/test/Faker/Provider/it_IT/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\it_IT\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function setUp() { @@ -19,5 +20,5 @@ public function testIfTaxIdCanReturnData() $taxId = $this->faker->taxId(); $this->assertRegExp('/^[a-zA-Z]{6}[0-9]{2}[a-zA-Z][0-9]{2}[a-zA-Z][0-9]{3}[a-zA-Z]$/', $taxId); } - + } diff --git a/test/Faker/Provider/ja_JP/InternetTest.php b/test/Faker/Provider/ja_JP/InternetTest.php index 355567a5b5..b4a19fde78 100644 --- a/test/Faker/Provider/ja_JP/InternetTest.php +++ b/test/Faker/Provider/ja_JP/InternetTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\ja_JP\Internet; +use PHPUnit\Framework\TestCase; -class InternetTest extends \PHPUnit_Framework_TestCase +class InternetTest extends TestCase { public function testUserName() { diff --git a/test/Faker/Provider/ja_JP/PersonTest.php b/test/Faker/Provider/ja_JP/PersonTest.php index d64ac04329..e7854826cf 100644 --- a/test/Faker/Provider/ja_JP/PersonTest.php +++ b/test/Faker/Provider/ja_JP/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\ja_JP\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function testKanaNameMaleReturns() { diff --git a/test/Faker/Provider/ja_JP/PhoneNumberTest.php b/test/Faker/Provider/ja_JP/PhoneNumberTest.php index d90d974375..158718a7dd 100644 --- a/test/Faker/Provider/ja_JP/PhoneNumberTest.php +++ b/test/Faker/Provider/ja_JP/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\ja_JP\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { public function testPhoneNumber() { diff --git a/test/Faker/Provider/kk_KZ/CompanyTest.php b/test/Faker/Provider/kk_KZ/CompanyTest.php index 779e73a61f..b6a3c06125 100644 --- a/test/Faker/Provider/kk_KZ/CompanyTest.php +++ b/test/Faker/Provider/kk_KZ/CompanyTest.php @@ -3,8 +3,9 @@ use Faker\Generator; use Faker\Provider\kk_KZ\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { /** diff --git a/test/Faker/Provider/kk_KZ/PersonTest.php b/test/Faker/Provider/kk_KZ/PersonTest.php index 0f2f981cd3..a641bf5aa7 100644 --- a/test/Faker/Provider/kk_KZ/PersonTest.php +++ b/test/Faker/Provider/kk_KZ/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\DateTime; use Faker\Provider\kk_KZ\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** diff --git a/test/Faker/Provider/mn_MN/PersonTest.php b/test/Faker/Provider/mn_MN/PersonTest.php index f3c9572e73..232f8f4b7c 100644 --- a/test/Faker/Provider/mn_MN/PersonTest.php +++ b/test/Faker/Provider/mn_MN/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\mn_MN\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function testName() { diff --git a/test/Faker/Provider/nl_BE/PaymentTest.php b/test/Faker/Provider/nl_BE/PaymentTest.php index 9216de751a..e84410338d 100644 --- a/test/Faker/Provider/nl_BE/PaymentTest.php +++ b/test/Faker/Provider/nl_BE/PaymentTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\nl_BE\Payment; +use PHPUnit\Framework\TestCase; -class PaymentTest extends \PHPUnit_Framework_TestCase +class PaymentTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/nl_NL/CompanyTest.php b/test/Faker/Provider/nl_NL/CompanyTest.php index 4775b14e61..6d5484ce40 100644 --- a/test/Faker/Provider/nl_NL/CompanyTest.php +++ b/test/Faker/Provider/nl_NL/CompanyTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\nl_NL\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/nl_NL/PersonTest.php b/test/Faker/Provider/nl_NL/PersonTest.php index 971fa78ad8..c8735f5fba 100644 --- a/test/Faker/Provider/nl_NL/PersonTest.php +++ b/test/Faker/Provider/nl_NL/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\nl_NL\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { private $faker; diff --git a/test/Faker/Provider/pl_PL/AddressTest.php b/test/Faker/Provider/pl_PL/AddressTest.php index 9bdc0515d2..bbfdf4d3e7 100644 --- a/test/Faker/Provider/pl_PL/AddressTest.php +++ b/test/Faker/Provider/pl_PL/AddressTest.php @@ -3,8 +3,9 @@ namespace Faker\Provider\pl_PL; use Faker\Generator; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/pt_BR/CompanyTest.php b/test/Faker/Provider/pt_BR/CompanyTest.php index f59142bd25..b0feecaca8 100644 --- a/test/Faker/Provider/pt_BR/CompanyTest.php +++ b/test/Faker/Provider/pt_BR/CompanyTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\pt_BR\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { public function setUp() diff --git a/test/Faker/Provider/pt_BR/PersonTest.php b/test/Faker/Provider/pt_BR/PersonTest.php index 767c1887cd..0b8318dddf 100644 --- a/test/Faker/Provider/pt_BR/PersonTest.php +++ b/test/Faker/Provider/pt_BR/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\pt_BR\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function setUp() diff --git a/test/Faker/Provider/pt_PT/AddressTest.php b/test/Faker/Provider/pt_PT/AddressTest.php index 7db5b68f96..3783fd52d6 100644 --- a/test/Faker/Provider/pt_PT/AddressTest.php +++ b/test/Faker/Provider/pt_PT/AddressTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\pt_PT\Address; use Faker\Provider\pt_PT\Person; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/pt_PT/PersonTest.php b/test/Faker/Provider/pt_PT/PersonTest.php index 9bfb7a2f55..662f12a721 100644 --- a/test/Faker/Provider/pt_PT/PersonTest.php +++ b/test/Faker/Provider/pt_PT/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\pt_PT\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function setUp() diff --git a/test/Faker/Provider/pt_PT/PhoneNumberTest.php b/test/Faker/Provider/pt_PT/PhoneNumberTest.php index 04b2f63dae..fd5d31945d 100644 --- a/test/Faker/Provider/pt_PT/PhoneNumberTest.php +++ b/test/Faker/Provider/pt_PT/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\pt_PT\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/ro_RO/PersonTest.php b/test/Faker/Provider/ro_RO/PersonTest.php index fbd3949f65..27a2eff250 100644 --- a/test/Faker/Provider/ro_RO/PersonTest.php +++ b/test/Faker/Provider/ro_RO/PersonTest.php @@ -5,8 +5,9 @@ use Faker\Generator; use Faker\Provider\DateTime; use Faker\Provider\ro_RO\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { const TEST_CNP_REGEX = '/^[1-9][0-9]{2}(?:0[1-9]|1[012])(?:0[1-9]|[12][0-9]|3[01])(?:0[1-9]|[123][0-9]|4[0-6]|5[12])[0-9]{3}[0-9]$/'; diff --git a/test/Faker/Provider/ro_RO/PhoneNumberTest.php b/test/Faker/Provider/ro_RO/PhoneNumberTest.php index 8a406da999..b7965cd8d7 100644 --- a/test/Faker/Provider/ro_RO/PhoneNumberTest.php +++ b/test/Faker/Provider/ro_RO/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\ro_RO\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { public function setUp() { diff --git a/test/Faker/Provider/ru_RU/CompanyTest.php b/test/Faker/Provider/ru_RU/CompanyTest.php index 08dd24775a..8fbcf26517 100644 --- a/test/Faker/Provider/ru_RU/CompanyTest.php +++ b/test/Faker/Provider/ru_RU/CompanyTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\ru_RU\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/sv_SE/PersonTest.php b/test/Faker/Provider/sv_SE/PersonTest.php index 623723a640..584998da9f 100644 --- a/test/Faker/Provider/sv_SE/PersonTest.php +++ b/test/Faker/Provider/sv_SE/PersonTest.php @@ -5,8 +5,9 @@ use Faker\Calculator\Luhn; use Faker\Generator; use Faker\Provider\sv_SE\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** @var Generator */ protected $faker; diff --git a/test/Faker/Provider/uk_UA/AddressTest.php b/test/Faker/Provider/uk_UA/AddressTest.php index a3e38d733a..4c4a06120f 100644 --- a/test/Faker/Provider/uk_UA/AddressTest.php +++ b/test/Faker/Provider/uk_UA/AddressTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\uk_UA\Address; +use PHPUnit\Framework\TestCase; -class AddressTest extends \PHPUnit_Framework_TestCase +class AddressTest extends TestCase { /** diff --git a/test/Faker/Provider/uk_UA/PersonTest.php b/test/Faker/Provider/uk_UA/PersonTest.php index 5d73d7258f..a8d70f69f9 100644 --- a/test/Faker/Provider/uk_UA/PersonTest.php +++ b/test/Faker/Provider/uk_UA/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\uk_UA\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { public function testFirstNameMaleReturns() { diff --git a/test/Faker/Provider/uk_UA/PhoneNumberTest.php b/test/Faker/Provider/uk_UA/PhoneNumberTest.php index 13620c7262..f7f9f14b41 100644 --- a/test/Faker/Provider/uk_UA/PhoneNumberTest.php +++ b/test/Faker/Provider/uk_UA/PhoneNumberTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\uk_UA\PhoneNumber; +use PHPUnit\Framework\TestCase; -class PhoneNumberTest extends \PHPUnit_Framework_TestCase +class PhoneNumberTest extends TestCase { /** diff --git a/test/Faker/Provider/zh_TW/CompanyTest.php b/test/Faker/Provider/zh_TW/CompanyTest.php index 329c3a8ad8..f2134b9b54 100644 --- a/test/Faker/Provider/zh_TW/CompanyTest.php +++ b/test/Faker/Provider/zh_TW/CompanyTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\zh_TW\Company; +use PHPUnit\Framework\TestCase; -class CompanyTest extends \PHPUnit_Framework_TestCase +class CompanyTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/zh_TW/PersonTest.php b/test/Faker/Provider/zh_TW/PersonTest.php index 1ba05a53ea..167d0fa0e2 100644 --- a/test/Faker/Provider/zh_TW/PersonTest.php +++ b/test/Faker/Provider/zh_TW/PersonTest.php @@ -4,8 +4,9 @@ use Faker\Generator; use Faker\Provider\zh_TW\Person; +use PHPUnit\Framework\TestCase; -class PersonTest extends \PHPUnit_Framework_TestCase +class PersonTest extends TestCase { /** * @var Generator diff --git a/test/Faker/Provider/zh_TW/TextTest.php b/test/Faker/Provider/zh_TW/TextTest.php index 5bcabe4465..ab56f83c79 100644 --- a/test/Faker/Provider/zh_TW/TextTest.php +++ b/test/Faker/Provider/zh_TW/TextTest.php @@ -2,7 +2,9 @@ namespace Faker\Test\Provider\zh_TW; -class TextTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class TextTest extends TestCase { private $textClass;