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

Fix: Reduce visibility of setUp() and tearDown() #1821

Merged
merged 1 commit into from
Nov 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ 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 @@ 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 @@ 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 @@

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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@

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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@

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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ 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 @@ class PaymentTest extends TestCase
*/
private $faker;

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