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

Commit

Permalink
Fix: Reduce visibility of setUp() and tearDown() (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and pimjansen committed Nov 28, 2019
1 parent 88bfb84 commit 29f10e4
Show file tree
Hide file tree
Showing 103 changed files with 105 additions and 105 deletions.
2 changes: 1 addition & 1 deletion test/Faker/Provider/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class AddressTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/BarcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class BarcodeTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Barcode($faker));
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 @@ -14,7 +14,7 @@ final class CompanyTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Company($faker));
Expand Down
4 changes: 2 additions & 2 deletions test/Faker/Provider/DateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

final class DateTimeTest extends TestCase
{
public function setUp()
protected function setUp()
{
$this->defaultTz = 'UTC';
DateTimeProvider::setDefaultTimezone($this->defaultTz);
}

public function tearDown()
protected function tearDown()
{
DateTimeProvider::setDefaultTimezone();
}
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 @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Lorem($faker));
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 @@ -15,7 +15,7 @@ final class PaymentTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new BaseProvider($faker));
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 @@ -15,7 +15,7 @@ final class PhoneNumberTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
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 @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
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 @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
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 @@ -14,7 +14,7 @@ final class PaymentTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Payment($faker));
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 @@ -14,7 +14,7 @@ final class PaymentTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Payment($faker));
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 @@ -8,7 +8,7 @@

final class PersonTest extends TestCase
{
public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
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 @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
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 @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
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 @@ -14,7 +14,7 @@ final class PhoneNumberTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
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 @@ -15,7 +15,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
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 @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_CH/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class PersonTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_CH/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class PhoneNumberTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/de_DE/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/el_GR/TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class TextTest extends TestCase
{
private $textClass;

public function setUp()
protected function setUp()
{
$this->textClass = new \ReflectionClass('Faker\Provider\el_GR\Text');
}
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_AU/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_CA/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_GB/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_IN/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_NG/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_NG/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_NG/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class PersonTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_NG/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class PhoneNumberTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_NZ/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class PhoneNumberTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_PH/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_SG/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

final class AddressTest extends TestCase
{
public function setUp()
protected function setUp()
{
$faker = Factory::create('en_SG');
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_SG/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class PhoneNumberTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$this->faker = Factory::create('en_SG');
$this->faker->seed(1);
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_UG/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AddressTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Address($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_US/CompanyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class CompanyTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Company($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_US/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class PaymentTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Payment($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_US/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class PersonTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_US/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class PhoneNumberTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_ZA/CompanyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class CompanyTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Company($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_ZA/InternetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class InternetTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_ZA/PersonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class PersonTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/en_ZA/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class PhoneNumberTest extends TestCase
{
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
Expand Down
2 changes: 1 addition & 1 deletion test/Faker/Provider/es_ES/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class PaymentTest extends TestCase
*/
private $faker;

public function setUp()
protected function setUp()
{
$faker = new Generator();
$faker->addProvider(new Payment($faker));
Expand Down
Loading

0 comments on commit 29f10e4

Please sign in to comment.