From 390c4ad3b2aa39357a8f5ba5f0f3bd6030d88056 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 14:58:15 +0900 Subject: [PATCH 001/132] Changed to PHP7 or greater. Signed-off-by: Sacha Telgenhof --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8926198e..31dbac790 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: php php: - - 5.6 - 7.0 - 7.1 + - 7.2 - hhvm - nightly @@ -29,3 +29,5 @@ matrix: include: - php: 7.1 env: PHPSTAN=1 + - php: 7.2 + env: PHPSTAN=1 From 640f64cd2657254eebb853c635ac45ea896e36a6 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 14:58:44 +0900 Subject: [PATCH 002/132] Changed to PHP7 or greater. Signed-off-by: Sacha Telgenhof --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7f69404d3..741ffa39a 100755 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=5.6.0" + "php": ">=7.0" }, "require-dev": { "phpunit/phpunit": "~5.7", From 79bd721c6bb5021c764fe4a94adfbffd3b36deb5 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 15:58:24 +0900 Subject: [PATCH 003/132] Added return type hints. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Filters/BankHolidaysFilter.php | 4 +- src/Yasumi/Filters/BetweenFilter.php | 4 +- src/Yasumi/Filters/ObservedHolidaysFilter.php | 4 +- src/Yasumi/Filters/OfficialHolidaysFilter.php | 4 +- src/Yasumi/Filters/OtherHolidaysFilter.php | 4 +- src/Yasumi/Filters/SeasonalHolidaysFilter.php | 4 +- src/Yasumi/Holiday.php | 2 +- src/Yasumi/Provider/AbstractProvider.php | 26 +++++----- src/Yasumi/Provider/ChristianHolidays.php | 48 +++++++++---------- src/Yasumi/Provider/CommonHolidays.php | 18 +++---- src/Yasumi/Provider/Greece.php | 2 +- src/Yasumi/Provider/Romania.php | 2 +- src/Yasumi/Provider/Ukraine.php | 2 +- src/Yasumi/Translations.php | 4 +- src/Yasumi/TranslationsInterface.php | 2 +- src/Yasumi/Yasumi.php | 10 ++-- tests/Base/YasumiTest.php | 2 +- 17 files changed, 71 insertions(+), 71 deletions(-) diff --git a/src/Yasumi/Filters/BankHolidaysFilter.php b/src/Yasumi/Filters/BankHolidaysFilter.php index 5b341486e..3bd6f191b 100644 --- a/src/Yasumi/Filters/BankHolidaysFilter.php +++ b/src/Yasumi/Filters/BankHolidaysFilter.php @@ -33,7 +33,7 @@ class BankHolidaysFilter extends FilterIterator implements Countable * * @return bool */ - public function accept() + public function accept(): bool { return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_BANK; } @@ -41,7 +41,7 @@ public function accept() /** * @return integer Returns the number of filtered holidays. */ - public function count() + public function count(): int { return iterator_count($this); } diff --git a/src/Yasumi/Filters/BetweenFilter.php b/src/Yasumi/Filters/BetweenFilter.php index b19c1221e..b55b9b2fa 100644 --- a/src/Yasumi/Filters/BetweenFilter.php +++ b/src/Yasumi/Filters/BetweenFilter.php @@ -68,7 +68,7 @@ public function __construct( /** * @return bool Check whether the current element of the iterator is acceptable */ - public function accept() + public function accept(): bool { $holiday = $this->getInnerIterator()->current(); @@ -82,7 +82,7 @@ public function accept() /** * @return integer Returns the number of holidays between the given start and end date. */ - public function count() + public function count(): int { return iterator_count($this); } diff --git a/src/Yasumi/Filters/ObservedHolidaysFilter.php b/src/Yasumi/Filters/ObservedHolidaysFilter.php index 3ad2ddb7b..dfc1f1248 100644 --- a/src/Yasumi/Filters/ObservedHolidaysFilter.php +++ b/src/Yasumi/Filters/ObservedHolidaysFilter.php @@ -33,7 +33,7 @@ class ObservedHolidaysFilter extends FilterIterator implements Countable * * @return bool */ - public function accept() + public function accept(): bool { return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_OBSERVANCE; } @@ -41,7 +41,7 @@ public function accept() /** * @return integer Returns the number of filtered holidays. */ - public function count() + public function count(): int { return iterator_count($this); } diff --git a/src/Yasumi/Filters/OfficialHolidaysFilter.php b/src/Yasumi/Filters/OfficialHolidaysFilter.php index 58ecd4a1f..df5a9cdbc 100644 --- a/src/Yasumi/Filters/OfficialHolidaysFilter.php +++ b/src/Yasumi/Filters/OfficialHolidaysFilter.php @@ -33,7 +33,7 @@ class OfficialHolidaysFilter extends FilterIterator implements Countable * * @return bool */ - public function accept() + public function accept(): bool { return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_OFFICIAL; } @@ -41,7 +41,7 @@ public function accept() /** * @return integer Returns the number of filtered holidays. */ - public function count() + public function count(): int { return iterator_count($this); } diff --git a/src/Yasumi/Filters/OtherHolidaysFilter.php b/src/Yasumi/Filters/OtherHolidaysFilter.php index 43fadbf94..2b06088b0 100644 --- a/src/Yasumi/Filters/OtherHolidaysFilter.php +++ b/src/Yasumi/Filters/OtherHolidaysFilter.php @@ -33,7 +33,7 @@ class OtherHolidaysFilter extends FilterIterator implements Countable * * @return bool */ - public function accept() + public function accept(): bool { return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_OTHER; } @@ -41,7 +41,7 @@ public function accept() /** * @return integer Returns the number of filtered holidays. */ - public function count() + public function count(): int { return iterator_count($this); } diff --git a/src/Yasumi/Filters/SeasonalHolidaysFilter.php b/src/Yasumi/Filters/SeasonalHolidaysFilter.php index 31130526d..c90ba1cbf 100644 --- a/src/Yasumi/Filters/SeasonalHolidaysFilter.php +++ b/src/Yasumi/Filters/SeasonalHolidaysFilter.php @@ -33,7 +33,7 @@ class SeasonalHolidaysFilter extends FilterIterator implements Countable * * @return bool */ - public function accept() + public function accept(): bool { return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_SEASON; } @@ -41,7 +41,7 @@ public function accept() /** * @return integer Returns the number of filtered holidays. */ - public function count() + public function count(): int { return iterator_count($this); } diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index fb9a6ece4..ff19a8414 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -138,7 +138,7 @@ public function __construct( * * @return string the type of holiday (official, observance, season, bank or other). */ - public function getType() + public function getType(): string { return $this->type; } diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index ad3a75dca..c26e0d252 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -96,7 +96,7 @@ protected function clearHolidays() * @return int result where 0 means dates are equal, -1 the first date is before the second date, and 1 if the * second date is after the first. */ - private static function compareDates(DateTime $dateA, DateTime $dateB) + private static function compareDates(DateTime $dateA, DateTime $dateB): int { if ($dateA == $dateB) { return 0; @@ -131,7 +131,7 @@ public function addHoliday(Holiday $holiday) * * @return bool true if date represents a working day, otherwise false */ - public function isWorkingDay($date) + public function isWorkingDay($date): bool { // Check if date is a holiday if ($this->isHoliday($date)) { @@ -155,7 +155,7 @@ public function isWorkingDay($date) * * @return bool true if date represents a holiday, otherwise false */ - public function isHoliday($date) + public function isHoliday($date): bool { // Return false if given date is empty if (null === $date) { @@ -175,7 +175,7 @@ public function isHoliday($date) * * @return array list of all holiday dates defined for the given year */ - public function getHolidayDates() + public function getHolidayDates(): array { return array_map(function ($holiday) { return (string)$holiday; @@ -191,7 +191,7 @@ public function getHolidayDates() * * @return string the date of the requested holiday */ - public function whenIs($shortName) + public function whenIs($shortName): string { $this->isHolidayNameNotEmpty($shortName); // Validate if short name is not empty @@ -207,7 +207,7 @@ public function whenIs($shortName) * * @return true upon success, otherwise an InvalidArgumentException is thrown */ - protected function isHolidayNameNotEmpty($shortName) + protected function isHolidayNameNotEmpty($shortName): bool { if (empty($shortName)) { throw new InvalidArgumentException('Holiday name can not be blank.'); @@ -228,7 +228,7 @@ protected function isHolidayNameNotEmpty($shortName) * * @return int the index of the weekdays of the requested holiday (0 = Sunday, 1 = Monday, etc.) */ - public function whatWeekDayIs($shortName) + public function whatWeekDayIs($shortName): int { $this->isHolidayNameNotEmpty($shortName); // Validate if short name is not empty @@ -240,7 +240,7 @@ public function whatWeekDayIs($shortName) * * @return int number of holidays */ - public function count() + public function count(): int { return count($this->getHolidays()); } @@ -250,7 +250,7 @@ public function count() * * @return Holiday[] list of all holidays defined for the given year */ - public function getHolidays() + public function getHolidays(): array { return $this->holidays; } @@ -260,7 +260,7 @@ public function getHolidays() * * @return array list of all holiday names defined for the given year */ - public function getHolidayNames() + public function getHolidayNames(): array { return array_keys($this->holidays); } @@ -270,7 +270,7 @@ public function getHolidayNames() * * @return int the year set for this Holiday calendar */ - public function getYear() + public function getYear(): int { return $this->year; } @@ -372,7 +372,7 @@ public function previous($shortName) * * @return \Yasumi\Filters\BetweenFilter */ - public function between(DateTime $start_date, DateTime $end_date, $equals = true) + public function between(DateTime $start_date, DateTime $end_date, $equals = true): BetweenFilter { if ($start_date > $end_date) { throw new InvalidArgumentException('Start date must be a date before the end date.'); @@ -386,7 +386,7 @@ public function between(DateTime $start_date, DateTime $end_date, $equals = true * * @return ArrayIterator iterator for the holidays of this calendar */ - public function getIterator() + public function getIterator(): ArrayIterator { return new ArrayIterator($this->getHolidays()); } diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index 81faddbbc..359bcb453 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -45,7 +45,7 @@ trait ChristianHolidays * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function easter($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easter($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('easter', [], $easter = $this->calculateEaster($year, $timezone), $locale, $type); } @@ -70,7 +70,7 @@ public function easter($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function easterMonday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterMonday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easterMonday', @@ -101,7 +101,7 @@ public function easterMonday($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function ascensionDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function ascensionDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'ascensionDay', @@ -129,7 +129,7 @@ public function ascensionDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function pentecost($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function pentecost($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'pentecost', @@ -157,7 +157,7 @@ public function pentecost($year, $timezone, $locale, $type = Holiday::TYPE_OFFIC * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function pentecostMonday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function pentecostMonday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'pentecostMonday', @@ -188,7 +188,7 @@ public function pentecostMonday($year, $timezone, $locale, $type = Holiday::TYPE * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function corpusChristi($year, $timezone, $locale, $type = Holiday::TYPE_OTHER) + public function corpusChristi($year, $timezone, $locale, $type = Holiday::TYPE_OTHER): Holiday { return new Holiday( 'corpusChristi', @@ -220,7 +220,7 @@ public function corpusChristi($year, $timezone, $locale, $type = Holiday::TYPE_O * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function christmasEve($year, $timezone, $locale, $type = Holiday::TYPE_OBSERVANCE) + public function christmasEve($year, $timezone, $locale, $type = Holiday::TYPE_OBSERVANCE): Holiday { return new Holiday( 'christmasEve', @@ -249,7 +249,7 @@ public function christmasEve($year, $timezone, $locale, $type = Holiday::TYPE_OB * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function christmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function christmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'christmasDay', @@ -278,7 +278,7 @@ public function christmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function secondChristmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function secondChristmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'secondChristmasDay', @@ -310,7 +310,7 @@ public function secondChristmasDay($year, $timezone, $locale, $type = Holiday::T * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function allSaintsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function allSaintsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('allSaintsDay', [], new DateTime("$year-11-1", new DateTimeZone($timezone)), $locale, $type); } @@ -335,7 +335,7 @@ public function allSaintsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function assumptionOfMary($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function assumptionOfMary($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'assumptionOfMary', @@ -364,7 +364,7 @@ public function assumptionOfMary($year, $timezone, $locale, $type = Holiday::TYP * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function goodFriday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function goodFriday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'goodFriday', @@ -397,7 +397,7 @@ public function goodFriday($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function epiphany($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function epiphany($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('epiphany', [], new DateTime("$year-1-6", new DateTimeZone($timezone)), $locale, $type); } @@ -422,7 +422,7 @@ public function epiphany($year, $timezone, $locale, $type = Holiday::TYPE_OFFICI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function ashWednesday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function ashWednesday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'ashWednesday', @@ -454,7 +454,7 @@ public function ashWednesday($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function immaculateConception($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function immaculateConception($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'immaculateConception', @@ -487,7 +487,7 @@ public function immaculateConception($year, $timezone, $locale, $type = Holiday: * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stStephensDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function stStephensDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'stStephensDay', @@ -520,7 +520,7 @@ public function stStephensDay($year, $timezone, $locale, $type = Holiday::TYPE_O * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stJosephsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function stJosephsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('stJosephsDay', [], new DateTime("$year-3-19", new DateTimeZone($timezone)), $locale, $type); } @@ -546,7 +546,7 @@ public function stJosephsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function maundyThursday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function maundyThursday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'maundyThursday', @@ -578,7 +578,7 @@ public function maundyThursday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stGeorgesDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function stGeorgesDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('stGeorgesDay', [], new DateTime("$year-4-23", new DateTimeZone($timezone)), $locale, $type); } @@ -605,7 +605,7 @@ public function stGeorgesDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stJohnsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function stJohnsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('stJohnsDay', [], new DateTime("$year-06-24", new DateTimeZone($timezone)), $locale, $type); } @@ -632,7 +632,7 @@ public function stJohnsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function annunciation($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function annunciation($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'annunciation', @@ -654,7 +654,7 @@ public function annunciation($year, $timezone, $locale, $type = Holiday::TYPE_OF * @link http://php.net/manual/en/function.easter-date.php#83794 * @link https://en.wikipedia.org/wiki/Computus#Adaptation_for_Western_Easter_of_Meeus.27_Julian_algorithm */ - public function calculateOrthodoxEaster($year, $timezone) + public function calculateOrthodoxEaster($year, $timezone): \Datetime { $a = $year % 4; $b = $year % 7; @@ -693,7 +693,7 @@ public function calculateOrthodoxEaster($year, $timezone) * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function reformationDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function reformationDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'reformationDay', @@ -727,7 +727,7 @@ public function reformationDay($year, $timezone, $locale, $type = Holiday::TYPE_ * * @return \DateTime date of Easter */ - protected function calculateEaster($year, $timezone) + protected function calculateEaster($year, $timezone): DateTime { if (extension_loaded('calendar')) { $easter_days = \easter_days($year); diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index e818c6517..d0550248b 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -46,7 +46,7 @@ trait CommonHolidays * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function newYearsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function newYearsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('newYearsDay', [], new DateTime("$year-1-1", new DateTimeZone($timezone)), $locale, $type); } @@ -73,7 +73,7 @@ public function newYearsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function internationalWorkersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function internationalWorkersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'internationalWorkersDay', @@ -106,7 +106,7 @@ public function internationalWorkersDay($year, $timezone, $locale, $type = Holid * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function valentinesDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function valentinesDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'valentinesDay', @@ -137,7 +137,7 @@ public function valentinesDay($year, $timezone, $locale, $type = Holiday::TYPE_O * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function worldAnimalDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function worldAnimalDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'worldAnimalDay', @@ -170,7 +170,7 @@ public function worldAnimalDay($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stMartinsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function stMartinsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'stMartinsDay', @@ -202,7 +202,7 @@ public function stMartinsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function fathersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function fathersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'fathersDay', @@ -234,7 +234,7 @@ public function fathersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function mothersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function mothersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'mothersDay', @@ -266,7 +266,7 @@ public function mothersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function victoryInEuropeDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function victoryInEuropeDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'victoryInEuropeDay', @@ -300,7 +300,7 @@ public function victoryInEuropeDay($year, $timezone, $locale, $type = Holiday::T * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function armisticeDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function armisticeDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'armisticeDay', diff --git a/src/Yasumi/Provider/Greece.php b/src/Yasumi/Provider/Greece.php index d4e6a8e88..1a0ba620d 100644 --- a/src/Yasumi/Provider/Greece.php +++ b/src/Yasumi/Provider/Greece.php @@ -116,7 +116,7 @@ public function calculateCleanMonday() * * @return \DateTime */ - public function calculateEaster($year, $timezone) + public function calculateEaster($year, $timezone): DateTime { return $this->calculateOrthodoxEaster($year, $timezone); } diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index c153f2757..4abb643cf 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -235,7 +235,7 @@ public function calculateChildrensDay() * * @return \DateTime */ - public function calculateEaster($year, $timezone) + public function calculateEaster($year, $timezone): DateTime { return $this->calculateOrthodoxEaster($year, $timezone); } diff --git a/src/Yasumi/Provider/Ukraine.php b/src/Yasumi/Provider/Ukraine.php index c1c3b3ddd..2a00c4048 100644 --- a/src/Yasumi/Provider/Ukraine.php +++ b/src/Yasumi/Provider/Ukraine.php @@ -220,7 +220,7 @@ public function calculateDefenderOfUkraineDay() * * @return \DateTime */ - public function calculateEaster($year, $timezone) + public function calculateEaster($year, $timezone): \DateTime { return $this->calculateOrthodoxEaster($year, $timezone); } diff --git a/src/Yasumi/Translations.php b/src/Yasumi/Translations.php index 5cd66453f..750b17b21 100644 --- a/src/Yasumi/Translations.php +++ b/src/Yasumi/Translations.php @@ -93,7 +93,7 @@ public function loadTranslations($directoryPath) * * @return true upon success, otherwise an UnknownLocaleException is thrown */ - protected function isValidLocale($locale) + protected function isValidLocale($locale): bool { if (! in_array($locale, $this->availableLocales, true)) { throw new UnknownLocaleException(sprintf('Locale "%s" is not a valid locale.', $locale)); @@ -150,7 +150,7 @@ public function getTranslation($shortName, $locale) * * @return array holiday name translations ['' => '', ...] */ - public function getTranslations($shortName) + public function getTranslations($shortName): array { if (! array_key_exists($shortName, $this->translations)) { return []; diff --git a/src/Yasumi/TranslationsInterface.php b/src/Yasumi/TranslationsInterface.php index c9523b1cf..36c6707ee 100644 --- a/src/Yasumi/TranslationsInterface.php +++ b/src/Yasumi/TranslationsInterface.php @@ -34,5 +34,5 @@ public function getTranslation($shortName, $locale); * * @return array holiday name translations ['' => '', ...] */ - public function getTranslations($shortName); + public function getTranslations($shortName): array; } diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 696778d6e..f01b1a349 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -61,7 +61,7 @@ class Yasumi * * @return array list of available holiday providers */ - public static function getProviders() + public static function getProviders(): array { // Basic static cache static $providers; @@ -114,7 +114,7 @@ public static function getProviders() * @throws \RuntimeException * @throws \InvalidArgumentException */ - public static function nextWorkingDay($class, DateTime $startDate, $workingDays = 1) + public static function nextWorkingDay($class, DateTime $startDate, $workingDays = 1): DateTime { // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof DateTime ? clone $startDate : new DateTime($startDate); @@ -209,7 +209,7 @@ public static function create($class, $year = null, $locale = self::DEFAULT_LOCA * * @return AbstractProvider An instance of class $class is created and returned */ - public static function createByISO3166_2($iso3166_2, $year = null, $locale = self::DEFAULT_LOCALE) + public static function createByISO3166_2($iso3166_2, $year = null, $locale = self::DEFAULT_LOCALE): AbstractProvider { $availableProviders = self::getProviders(); @@ -229,7 +229,7 @@ public static function createByISO3166_2($iso3166_2, $year = null, $locale = sel * * @return array list of available locales */ - public static function getAvailableLocales() + public static function getAvailableLocales(): array { return require __DIR__ . '/data/locales.php'; } @@ -247,7 +247,7 @@ public static function getAvailableLocales() * @throws \RuntimeException * @throws \InvalidArgumentException */ - public static function prevWorkingDay($class, DateTime $startDate, $workingDays = 1) + public static function prevWorkingDay($class, DateTime $startDate, $workingDays = 1): DateTime { // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof DateTime ? clone $startDate : new DateTime($startDate); diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 0102c902b..aa0acf5b4 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -79,7 +79,7 @@ public function testCreateWithAbstractClassProvider() } /** - * Tests that classes that Yasumi allows external classes that extend the ProviderInterface. + * Tests that Yasumi allows external classes that extend the ProviderInterface. */ public function testCreateWithAbstractExtension() { From 8d0dd3e7df27b00779388736d7a2fe1e60419c65 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 15:59:26 +0900 Subject: [PATCH 004/132] Use null coalescing operator. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index c26e0d252..1d5bd987b 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -330,7 +330,7 @@ public function getHoliday($shortName) $holidays = $this->getHolidays(); - return isset($holidays[$shortName]) ? $holidays[$shortName] : null; + return $holidays[$shortName] ?? null; } /** From d2dbadfd10287222262416fe59b9191c3548fb4f Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 16:09:22 +0900 Subject: [PATCH 005/132] Added return type hints. Signed-off-by: Sacha Telgenhof --- tests/Australia/AnzacDayTest.php | 2 +- tests/Australia/AustraliaDayTest.php | 2 +- tests/Australia/BoxingDayTest.php | 2 +- tests/Australia/ChristmasDayTest.php | 2 +- tests/Australia/EasterMondayTest.php | 2 +- tests/Australia/GoodFridayTest.php | 2 +- tests/Australia/NewYearsDayTest.php | 2 +- tests/Australia/QueensBirthdayTest.php | 2 +- .../Victoria/AFLGrandFinalFridayTest.php | 2 +- tests/Australia/Victoria/LabourDayTest.php | 2 +- tests/Austria/AllSaintsDayTest.php | 2 +- tests/Austria/AssumptionOfMaryTest.php | 2 +- tests/Austria/ChristmasTest.php | 2 +- tests/Austria/EpiphanyTest.php | 2 +- tests/Austria/ImmaculateConceptionTest.php | 2 +- tests/Austria/InternationalWorkersDayTest.php | 2 +- tests/Austria/NewYearsDayTest.php | 2 +- tests/Austria/SecondChristmasDayTest.php | 2 +- tests/Belgium/AllSaintsDayTest.php | 2 +- tests/Belgium/ArmisticeDayTest.php | 2 +- tests/Belgium/AssumptionOfMaryTest.php | 2 +- tests/Belgium/ChristmasTest.php | 2 +- tests/Belgium/InternationalWorkersDayTest.php | 2 +- tests/Belgium/NationalDayTest.php | 2 +- tests/Belgium/NewYearsDayTest.php | 2 +- tests/Croatia/AllSaintsDayTest.php | 2 +- tests/Croatia/AssumptionOfMaryTest.php | 2 +- tests/Croatia/ChristmasDayTest.php | 2 +- tests/Croatia/EpiphanyTest.php | 2 +- tests/Croatia/InternationalWorkersDayTest.php | 2 +- tests/Croatia/NewYearsDayTest.php | 2 +- tests/Croatia/StStephensDayTest.php | 2 +- tests/CzechRepublic/ChristmasDayTest.php | 2 +- tests/CzechRepublic/ChristmasEveTest.php | 2 +- tests/CzechRepublic/CzechStateHoodDayTest.php | 2 +- .../IndependentCzechoslovakStateDayTest.php | 2 +- .../InternationalWorkersDayTest.php | 2 +- tests/CzechRepublic/JanHusDayTest.php | 2 +- tests/CzechRepublic/NewYearsDayTest.php | 2 +- .../SaintsCyrilAndMethodiusDayTest.php | 2 +- .../CzechRepublic/SecondChristmasDayTest.php | 2 +- .../StruggleForFreedomAndDemocracyDayTest.php | 2 +- .../CzechRepublic/VictoryInEuropeDayTest.php | 2 +- tests/Denmark/ChristmasDayTest.php | 2 +- tests/Denmark/NewYearsDayTest.php | 2 +- tests/Denmark/SecondChristmasDayTest.php | 2 +- tests/Estonia/ChristmasDayTest.php | 2 +- tests/Estonia/ChristmasEveDayTest.php | 2 +- tests/Estonia/EasterDayTest.php | 2 +- tests/Estonia/GoodFridayDayTest.php | 2 +- tests/Estonia/InternationalWorkersDayTest.php | 2 +- tests/Estonia/NewYearsDayTest.php | 2 +- tests/Estonia/PentecostTest.php | 2 +- tests/Estonia/SecondChristmasDayTest.php | 2 +- tests/Estonia/StJohnsDayTest.php | 2 +- tests/Finland/AllSaintsDayTest.php | 2 +- tests/Finland/ChristmasDayTest.php | 2 +- tests/Finland/EpiphanyTest.php | 2 +- tests/Finland/InternationalWorkersDayTest.php | 2 +- tests/Finland/NewYearsDayTest.php | 2 +- tests/Finland/SecondChristmasDayTest.php | 2 +- tests/France/AllSaintsDayTest.php | 2 +- tests/France/AssumptionOfMaryTest.php | 2 +- tests/France/BasRhin/stStephensDayTest.php | 2 +- tests/France/ChristmasDayTest.php | 2 +- tests/France/HautRhin/stStephensDayTest.php | 2 +- tests/France/InternationalWorkersDayTest.php | 2 +- tests/France/Moselle/stStephensDayTest.php | 2 +- tests/France/NewYearsDayTest.php | 2 +- .../BadenWurttemberg/AllSaintsDayTest.php | 2 +- .../Germany/BadenWurttemberg/EpiphanyTest.php | 2 +- tests/Germany/Bavaria/AllSaintsDayTest.php | 2 +- tests/Germany/Bavaria/EpiphanyTest.php | 2 +- .../Brandenburg/ReformationDayTest.php | 2 +- tests/Germany/ChristmasTest.php | 2 +- tests/Germany/InternationalWorkersDayTest.php | 2 +- .../ReformationDayTest.php | 2 +- tests/Germany/NewYearsDayTest.php | 2 +- .../NorthRhineWestphalia/AllSaintsDayTest.php | 2 +- .../RhinelandPalatinate/AllSaintsDayTest.php | 2 +- tests/Germany/Saarland/AllSaintsDayTest.php | 2 +- .../Germany/Saarland/AssumptionOfMaryTest.php | 2 +- tests/Germany/Saxony/ReformationDayTest.php | 2 +- tests/Germany/SaxonyAnhalt/EpiphanyTest.php | 2 +- .../SaxonyAnhalt/ReformationDayTest.php | 2 +- tests/Germany/SecondChristmasDayTest.php | 2 +- .../Germany/Thuringia/ReformationDayTest.php | 2 +- tests/Greece/AnnunciationTest.php | 2 +- tests/Greece/AssumptionOfMaryTest.php | 2 +- tests/Greece/ChristmasDayTest.php | 2 +- tests/Greece/EpiphanyTest.php | 2 +- tests/Greece/InternationalWorkersDayTest.php | 2 +- tests/Greece/NewYearsDayTest.php | 2 +- tests/Greece/ThreeHolyHierarchsTest.php | 2 +- tests/Hungary/AllSaintsDayTest.php | 2 +- tests/Hungary/ChristmasTest.php | 2 +- tests/Hungary/InternationalWorkersDayTest.php | 2 +- tests/Hungary/NewYearsDayTest.php | 2 +- tests/Hungary/SecondChristmasDayTest.php | 2 +- tests/Ireland/AugustHolidayTest.php | 2 +- tests/Ireland/ChristmasDayTest.php | 2 +- tests/Ireland/EasterMondayTest.php | 2 +- tests/Ireland/EasterTest.php | 2 +- tests/Ireland/GoodFridayTest.php | 2 +- tests/Ireland/JuneHolidayTest.php | 2 +- tests/Ireland/MayDayTest.php | 2 +- tests/Ireland/NewYearsDayTest.php | 2 +- tests/Ireland/OctoberHolidayTest.php | 2 +- tests/Ireland/PentecostTest.php | 2 +- tests/Ireland/StPatricksDayTest.php | 2 +- tests/Ireland/StStephensDayTest.php | 2 +- tests/Ireland/pentecostMondayTest.php | 2 +- tests/Italy/AllSaintsDayTest.php | 2 +- tests/Italy/AssumptionOfMaryTest.php | 2 +- tests/Italy/ChristmasTest.php | 2 +- tests/Italy/EpiphanyTest.php | 2 +- tests/Italy/ImmaculateConceptionTest.php | 2 +- tests/Italy/InternationalWorkersDayTest.php | 2 +- tests/Italy/NewYearsDayTest.php | 2 +- tests/Italy/stStephensDayTest.php | 2 +- tests/Japan/AutumnalEquinoxDayTest.php | 2 +- tests/Japan/VernalEquinoxDayTest.php | 2 +- tests/Latvia/ChristmasDayTest.php | 2 +- tests/Latvia/ChristmasEveDayTest.php | 2 +- tests/Latvia/EasterDayTest.php | 2 +- tests/Latvia/EasterMondayDayTest.php | 2 +- tests/Latvia/GoodFridayDayTest.php | 2 +- tests/Latvia/InternationalWorkersDayTest.php | 2 +- tests/Latvia/MidsummerEveDayTest.php | 2 +- tests/Latvia/NewYearsDayTest.php | 2 +- tests/Latvia/NewYearsEveDayTest.php | 2 +- ...oclamationOfTheRepublicOfLatviaDayTest.php | 2 +- .../RestorationOfIndependenceDayTest.php | 2 +- tests/Latvia/SecondChristmasDayTest.php | 2 +- tests/Latvia/StJohnsDayTest.php | 2 +- tests/Lithuania/AllSaintsDayTest.php | 2 +- tests/Lithuania/AssumptionOfMaryDayTest.php | 2 +- tests/Lithuania/ChristmasDayTest.php | 2 +- tests/Lithuania/ChristmasEveDayTest.php | 2 +- tests/Lithuania/EasterDayTest.php | 2 +- tests/Lithuania/EasterMondayDayTest.php | 2 +- .../Lithuania/InternationalWorkersDayTest.php | 2 +- tests/Lithuania/NewYearsDayTest.php | 2 +- tests/Lithuania/SecondChristmasDayTest.php | 2 +- tests/Lithuania/StJohnsDayTest.php | 2 +- tests/Netherlands/ChristmasDayTest.php | 2 +- tests/Netherlands/EpiphanyTest.php | 2 +- tests/Netherlands/HalloweenTest.php | 2 +- .../InternationalWorkersDayTest.php | 2 +- tests/Netherlands/NewYearsDayTest.php | 2 +- tests/Netherlands/ValentinesDayTest.php | 2 +- tests/Netherlands/secondChristmasdayTest.php | 2 +- tests/Netherlands/stMartinsDayTest.php | 2 +- tests/Netherlands/stNicholasDayTest.php | 2 +- tests/NewZealand/AnzacDayTest.php | 2 +- tests/NewZealand/BoxingDayTest.php | 2 +- tests/NewZealand/ChristmasDayTest.php | 2 +- tests/NewZealand/DayAfterNewYearsDayTest.php | 2 +- tests/NewZealand/EasterMondayTest.php | 2 +- tests/NewZealand/GoodFridayTest.php | 2 +- tests/NewZealand/LabourDayTest.php | 2 +- tests/NewZealand/NewYearsDayTest.php | 2 +- tests/NewZealand/QueensBirthdayTest.php | 2 +- tests/NewZealand/WaitangiDayTest.php | 2 +- tests/Norway/ChristmasDayTest.php | 2 +- tests/Norway/InternationalWorkersDayTest.php | 2 +- tests/Norway/NewYearsDayTest.php | 2 +- tests/Norway/SecondChristmasDayTest.php | 2 +- tests/Poland/AllSaintsDayTest.php | 2 +- tests/Poland/AssumptionOfMaryTest.php | 2 +- tests/Poland/ChristmasTest.php | 2 +- tests/Poland/EpiphanyTest.php | 2 +- tests/Poland/InternationalWorkersDayTest.php | 2 +- tests/Poland/NewYearsDayTest.php | 2 +- tests/Poland/SecondChristmasDayTest.php | 2 +- tests/Portugal/AssumptionOfMaryTest.php | 2 +- tests/Portugal/ChristmasTest.php | 2 +- tests/Portugal/ImmaculateConceptionTest.php | 2 +- .../Portugal/InternationalWorkersDayTest.php | 2 +- tests/Portugal/NewYearsDayTest.php | 2 +- tests/Romania/ChristmasDayTest.php | 2 +- tests/Romania/DayAfterNewYearsDayTest.php | 2 +- tests/Romania/InternationalWorkersDayTest.php | 2 +- tests/Romania/NewYearsDayTest.php | 2 +- tests/Romania/SecondChristmasDayTest.php | 2 +- tests/Russia/InternationalWomensDayTest.php | 2 +- tests/Russia/NewYearHolidaysDay2Test.php | 2 +- tests/Russia/NewYearHolidaysDay3Test.php | 2 +- tests/Russia/NewYearHolidaysDay4Test.php | 2 +- tests/Russia/NewYearHolidaysDay5Test.php | 2 +- tests/Russia/NewYearHolidaysDay6Test.php | 2 +- tests/Russia/NewYearHolidaysDay8Test.php | 2 +- tests/Russia/NewYearsDayTest.php | 2 +- tests/Russia/OrthodoxChristmasDayTest.php | 2 +- tests/Russia/SpringAndLabourDayTest.php | 2 +- tests/Russia/VictoryDayTest.php | 2 +- tests/Slovakia/AllSaintsDayTest.php | 2 +- tests/Slovakia/ChristmasDayTest.php | 2 +- tests/Slovakia/ChristmasEveTest.php | 2 +- tests/Slovakia/EasterMondayTest.php | 2 +- tests/Slovakia/EpiphanyTest.php | 2 +- tests/Slovakia/GoodFridayTest.php | 2 +- .../Slovakia/InternationalWorkersDayTest.php | 2 +- tests/Slovakia/NewYearsDayTest.php | 2 +- tests/Slovakia/OurLadyOfSorrowsDayTest.php | 2 +- .../SaintsCyrilAndMethodiusDayTest.php | 2 +- tests/Slovakia/SecondChristmasDayTest.php | 2 +- tests/Slovakia/SlovakConstitutionDayTest.php | 2 +- .../SlovakNationalUprisingDayTest.php | 2 +- .../StruggleForFreedomAndDemocracyDayTest.php | 2 +- tests/Slovakia/VictoryInEuropeDayTest.php | 2 +- tests/SouthAfrica/ChristmasDayTest.php | 2 +- tests/SouthAfrica/FamilyDayTest.php | 2 +- tests/SouthAfrica/FreedomDayTest.php | 2 +- tests/SouthAfrica/GoodFridayTest.php | 2 +- tests/SouthAfrica/HeritageDayTest.php | 2 +- tests/SouthAfrica/HumanRightsDayTest.php | 2 +- tests/SouthAfrica/NationalWomensDayTest.php | 2 +- tests/SouthAfrica/NewYearsDayTest.php | 2 +- tests/SouthAfrica/ReconciliationDayTest.php | 2 +- tests/SouthAfrica/SecondChristmasDayTest.php | 2 +- tests/SouthAfrica/WorkersDayTest.php | 2 +- tests/SouthAfrica/YouthDayTest.php | 2 +- tests/Spain/AllSaintsDayTest.php | 2 +- tests/Spain/AssumptionOfMaryTest.php | 2 +- tests/Spain/Catalonia/stJohnsDayTest.php | 2 +- tests/Spain/ChristmasTest.php | 2 +- tests/Spain/EpiphanyTest.php | 2 +- tests/Spain/ImmaculateConceptionTest.php | 2 +- tests/Spain/InternationalWorkersDayTest.php | 2 +- tests/Spain/NewYearsDayTest.php | 2 +- tests/Spain/ValentinesDayTest.php | 2 +- tests/Spain/stJosephsDayTest.php | 2 +- tests/Sweden/AllSaintsDayTest.php | 2 +- tests/Sweden/ChristmasDayTest.php | 2 +- tests/Sweden/ChristmasEveTest.php | 2 +- tests/Sweden/EpiphanyTest.php | 2 +- tests/Sweden/InternationalWorkersDayTest.php | 2 +- tests/Sweden/NewYearsDayTest.php | 2 +- tests/Sweden/SecondChristmasDayTest.php | 2 +- tests/Switzerland/Aargau/ChristmasDayTest.php | 2 +- tests/Switzerland/Aargau/NewYearsDayTest.php | 2 +- .../ChristmasDayTest.php | 2 +- .../AppenzellAusserrhoden/NewYearsDayTest.php | 2 +- .../StStephensDayTest.php | 2 +- .../AppenzellInnerrhoden/AllSaintsDayTest.php | 2 +- .../AssumptionOfMaryTest.php | 2 +- .../AppenzellInnerrhoden/ChristmasDayTest.php | 2 +- .../ImmaculateConceptionTest.php | 2 +- .../AppenzellInnerrhoden/NewYearsDayTest.php | 2 +- .../StStephensDayTest.php | 2 +- .../BaselLandschaft/ChristmasDayTest.php | 2 +- .../BaselLandschaft/NewYearsDayTest.php | 2 +- .../BaselLandschaft/StStephensDayTest.php | 2 +- .../BaselLandschaft/WorkersDayTest.php | 2 +- .../BaselStadt/ChristmasDayTest.php | 2 +- .../BaselStadt/NewYearsDayTest.php | 2 +- .../BaselStadt/StStephensDayTest.php | 2 +- .../Switzerland/BaselStadt/WorkersDayTest.php | 2 +- tests/Switzerland/Bern/ChristmasDayTest.php | 2 +- tests/Switzerland/Bern/NewYearsDayTest.php | 2 +- tests/Switzerland/Bern/StStephensDayTest.php | 2 +- .../Switzerland/Fribourg/ChristmasDayTest.php | 2 +- .../Switzerland/Fribourg/NewYearsDayTest.php | 2 +- tests/Switzerland/Geneva/ChristmasDayTest.php | 2 +- tests/Switzerland/Geneva/NewYearsDayTest.php | 2 +- tests/Switzerland/Glarus/AllSaintsDayTest.php | 2 +- tests/Switzerland/Glarus/ChristmasDayTest.php | 2 +- tests/Switzerland/Glarus/NewYearsDayTest.php | 2 +- .../Switzerland/Glarus/StStephensDayTest.php | 2 +- .../Switzerland/Grisons/ChristmasDayTest.php | 2 +- tests/Switzerland/Grisons/NewYearsDayTest.php | 2 +- .../Switzerland/Grisons/StStephensDayTest.php | 2 +- tests/Switzerland/Jura/AllSaintsDayTest.php | 2 +- .../Switzerland/Jura/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Jura/ChristmasDayTest.php | 2 +- tests/Switzerland/Jura/NewYearsDayTest.php | 2 +- tests/Switzerland/Jura/WorkersDayTest.php | 2 +- .../Switzerland/Lucerne/AllSaintsDayTest.php | 2 +- .../Lucerne/AssumptionOfMaryTest.php | 2 +- .../Switzerland/Lucerne/ChristmasDayTest.php | 2 +- .../Lucerne/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Lucerne/NewYearsDayTest.php | 2 +- .../Switzerland/Lucerne/StStephensDayTest.php | 2 +- .../Neuchatel/ChristmasDayTest.php | 2 +- .../Switzerland/Neuchatel/NewYearsDayTest.php | 2 +- .../Switzerland/Neuchatel/WorkersDayTest.php | 2 +- .../Nidwalden/AllSaintsDayTest.php | 2 +- .../Nidwalden/AssumptionOfMaryTest.php | 2 +- .../Nidwalden/ChristmasDayTest.php | 2 +- .../Nidwalden/ImmaculateConceptionTest.php | 2 +- .../Switzerland/Nidwalden/NewYearsDayTest.php | 2 +- .../Switzerland/Nidwalden/StJosephDayTest.php | 2 +- .../Nidwalden/StStephensDayTest.php | 2 +- .../Switzerland/Obwalden/AllSaintsDayTest.php | 2 +- .../Obwalden/AssumptionOfMaryTest.php | 2 +- .../Switzerland/Obwalden/ChristmasDayTest.php | 2 +- .../Obwalden/ImmaculateConceptionTest.php | 2 +- .../Switzerland/Obwalden/NewYearsDayTest.php | 2 +- .../Obwalden/StStephensDayTest.php | 2 +- .../Schaffhausen/ChristmasDayTest.php | 2 +- .../Schaffhausen/NewYearsDayTest.php | 2 +- .../Schaffhausen/StStephensDayTest.php | 2 +- .../Schaffhausen/WorkersDayTest.php | 2 +- tests/Switzerland/Schwyz/AllSaintsDayTest.php | 2 +- .../Schwyz/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Schwyz/ChristmasDayTest.php | 2 +- tests/Switzerland/Schwyz/EpiphanyTest.php | 2 +- .../Schwyz/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Schwyz/NewYearsDayTest.php | 2 +- tests/Switzerland/Schwyz/StJosephDayTest.php | 2 +- .../Switzerland/Schwyz/StStephensDayTest.php | 2 +- .../Solothurn/ChristmasDayTest.php | 2 +- .../Switzerland/Solothurn/NewYearsDayTest.php | 2 +- .../Switzerland/StGallen/AllSaintsDayTest.php | 2 +- .../Switzerland/StGallen/ChristmasDayTest.php | 2 +- .../Switzerland/StGallen/NewYearsDayTest.php | 2 +- .../StGallen/StStephensDayTest.php | 2 +- .../Switzerland/Thurgau/ChristmasDayTest.php | 2 +- tests/Switzerland/Thurgau/NewYearsDayTest.php | 2 +- .../Switzerland/Thurgau/StStephensDayTest.php | 2 +- tests/Switzerland/Thurgau/WorkersDayTest.php | 2 +- tests/Switzerland/Ticino/AllSaintsDayTest.php | 2 +- .../Ticino/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Ticino/ChristmasDayTest.php | 2 +- tests/Switzerland/Ticino/EpiphanyTest.php | 2 +- .../Ticino/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Ticino/NewYearsDayTest.php | 2 +- tests/Switzerland/Ticino/StJosephDayTest.php | 2 +- tests/Switzerland/Ticino/StPeterPaulTest.php | 2 +- .../Switzerland/Ticino/StStephensDayTest.php | 2 +- tests/Switzerland/Ticino/WorkersDayTest.php | 2 +- tests/Switzerland/Uri/AllSaintsDayTest.php | 2 +- .../Switzerland/Uri/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Uri/ChristmasDayTest.php | 2 +- tests/Switzerland/Uri/EpiphanyTest.php | 2 +- .../Uri/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Uri/NewYearsDayTest.php | 2 +- tests/Switzerland/Uri/StJosephDayTest.php | 2 +- tests/Switzerland/Uri/StStephensDayTest.php | 2 +- tests/Switzerland/Valais/AllSaintsDayTest.php | 2 +- .../Valais/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Valais/ChristmasDayTest.php | 2 +- .../Valais/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Valais/NewYearsDayTest.php | 2 +- tests/Switzerland/Valais/StJosephDayTest.php | 2 +- tests/Switzerland/Vaud/ChristmasDayTest.php | 2 +- tests/Switzerland/Vaud/NewYearsDayTest.php | 2 +- tests/Switzerland/Zug/AllSaintsDayTest.php | 2 +- .../Switzerland/Zug/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Zug/ChristmasDayTest.php | 2 +- .../Zug/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Zug/NewYearsDayTest.php | 2 +- tests/Switzerland/Zug/StStephensDayTest.php | 2 +- tests/Switzerland/Zurich/ChristmasDayTest.php | 2 +- tests/Switzerland/Zurich/NewYearsDayTest.php | 2 +- .../Switzerland/Zurich/StStephensDayTest.php | 2 +- tests/Switzerland/Zurich/WorkersDayTest.php | 2 +- tests/Ukraine/ChristmasDayTest.php | 2 +- tests/Ukraine/InternationalWomensDayTest.php | 2 +- tests/Ukraine/InternationalWorkersDayTest.php | 2 +- tests/Ukraine/NewYearsDayTest.php | 2 +- .../SecondInternationalWorkersDayTest.php | 2 +- tests/Ukraine/VictoryDayTest.php | 2 +- tests/UnitedKingdom/BoxingDayTest.php | 2 +- tests/UnitedKingdom/ChristmasDayTest.php | 2 +- tests/UnitedKingdom/EasterMondayTest.php | 2 +- tests/UnitedKingdom/NewYearsDayTest.php | 2 +- tests/YasumiBase.php | 22 +++++++++---------- 369 files changed, 379 insertions(+), 379 deletions(-) diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index a9d74c474..a56ed73b8 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -63,7 +63,7 @@ public function testNotHoliday() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-04-26'], diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index b8a431643..9d60c1c6a 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -72,7 +72,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-01-26'], diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index 4418a9885..b3f4096f7 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-12-28'], diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index c9a9966e0..212d97e8f 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-12-27'], diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index a98201b1e..157b6d23b 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index c28d82033..9f57a557f 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index 94bd3f095..dc3b79619 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-01-01'], diff --git a/tests/Australia/QueensBirthdayTest.php b/tests/Australia/QueensBirthdayTest.php index 8e96d0387..eebec927d 100644 --- a/tests/Australia/QueensBirthdayTest.php +++ b/tests/Australia/QueensBirthdayTest.php @@ -58,7 +58,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-06-14'], diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index 5ef8f1b30..d9fef3876 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -88,7 +88,7 @@ public function testNotHoliday() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2015, '2015-10-02'], diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index 443a13cb0..3b06030a7 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -28,7 +28,7 @@ class LabourDayTest extends \Yasumi\tests\Australia\LabourDayTest * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-03-08'], diff --git a/tests/Austria/AllSaintsDayTest.php b/tests/Austria/AllSaintsDayTest.php index 6794f02c8..b42522de4 100644 --- a/tests/Austria/AllSaintsDayTest.php +++ b/tests/Austria/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Austria/AssumptionOfMaryTest.php b/tests/Austria/AssumptionOfMaryTest.php index cb21affb7..cff990bf6 100644 --- a/tests/Austria/AssumptionOfMaryTest.php +++ b/tests/Austria/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Austria/ChristmasTest.php b/tests/Austria/ChristmasTest.php index 8ac8dc38f..c121c2797 100644 --- a/tests/Austria/ChristmasTest.php +++ b/tests/Austria/ChristmasTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Austria/EpiphanyTest.php b/tests/Austria/EpiphanyTest.php index f2a195949..81e9eff19 100644 --- a/tests/Austria/EpiphanyTest.php +++ b/tests/Austria/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Austria/ImmaculateConceptionTest.php b/tests/Austria/ImmaculateConceptionTest.php index 2e47a0146..d8761c969 100644 --- a/tests/Austria/ImmaculateConceptionTest.php +++ b/tests/Austria/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Austria/InternationalWorkersDayTest.php b/tests/Austria/InternationalWorkersDayTest.php index 4c078f852..48086390b 100644 --- a/tests/Austria/InternationalWorkersDayTest.php +++ b/tests/Austria/InternationalWorkersDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Austria/NewYearsDayTest.php b/tests/Austria/NewYearsDayTest.php index a55a4b125..9660d0169 100644 --- a/tests/Austria/NewYearsDayTest.php +++ b/tests/Austria/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Austria/SecondChristmasDayTest.php b/tests/Austria/SecondChristmasDayTest.php index 2dc1f4dff..f78e6622e 100644 --- a/tests/Austria/SecondChristmasDayTest.php +++ b/tests/Austria/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Belgium/AllSaintsDayTest.php b/tests/Belgium/AllSaintsDayTest.php index 1a4cdad01..81effa9dc 100644 --- a/tests/Belgium/AllSaintsDayTest.php +++ b/tests/Belgium/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Belgium/ArmisticeDayTest.php b/tests/Belgium/ArmisticeDayTest.php index cd59b51e5..e4e0ca104 100644 --- a/tests/Belgium/ArmisticeDayTest.php +++ b/tests/Belgium/ArmisticeDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 11, self::TIMEZONE); } diff --git a/tests/Belgium/AssumptionOfMaryTest.php b/tests/Belgium/AssumptionOfMaryTest.php index 1b332b6ec..c8aedd454 100644 --- a/tests/Belgium/AssumptionOfMaryTest.php +++ b/tests/Belgium/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Belgium/ChristmasTest.php b/tests/Belgium/ChristmasTest.php index 40b006d04..de6320c96 100644 --- a/tests/Belgium/ChristmasTest.php +++ b/tests/Belgium/ChristmasTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Belgium/InternationalWorkersDayTest.php b/tests/Belgium/InternationalWorkersDayTest.php index b3f12c801..2685a274f 100644 --- a/tests/Belgium/InternationalWorkersDayTest.php +++ b/tests/Belgium/InternationalWorkersDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Belgium/NationalDayTest.php b/tests/Belgium/NationalDayTest.php index 1b9e4d06e..963fcf970 100644 --- a/tests/Belgium/NationalDayTest.php +++ b/tests/Belgium/NationalDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(7, 21, self::TIMEZONE); } diff --git a/tests/Belgium/NewYearsDayTest.php b/tests/Belgium/NewYearsDayTest.php index 3d9be24a7..28b158dab 100644 --- a/tests/Belgium/NewYearsDayTest.php +++ b/tests/Belgium/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Croatia/AllSaintsDayTest.php b/tests/Croatia/AllSaintsDayTest.php index f589799c8..4ac97847a 100644 --- a/tests/Croatia/AllSaintsDayTest.php +++ b/tests/Croatia/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Croatia/AssumptionOfMaryTest.php b/tests/Croatia/AssumptionOfMaryTest.php index d867daab6..607524eab 100644 --- a/tests/Croatia/AssumptionOfMaryTest.php +++ b/tests/Croatia/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Croatia/ChristmasDayTest.php b/tests/Croatia/ChristmasDayTest.php index 8413c3e47..825be8719 100644 --- a/tests/Croatia/ChristmasDayTest.php +++ b/tests/Croatia/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Croatia/EpiphanyTest.php b/tests/Croatia/EpiphanyTest.php index d54d7d40a..bab9a1138 100644 --- a/tests/Croatia/EpiphanyTest.php +++ b/tests/Croatia/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Croatia/InternationalWorkersDayTest.php b/tests/Croatia/InternationalWorkersDayTest.php index 874474627..8201453ef 100644 --- a/tests/Croatia/InternationalWorkersDayTest.php +++ b/tests/Croatia/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Croatia/NewYearsDayTest.php b/tests/Croatia/NewYearsDayTest.php index d6000ad66..39394c086 100644 --- a/tests/Croatia/NewYearsDayTest.php +++ b/tests/Croatia/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Croatia/StStephensDayTest.php b/tests/Croatia/StStephensDayTest.php index 4b6fac68e..ade3b7e60 100644 --- a/tests/Croatia/StStephensDayTest.php +++ b/tests/Croatia/StStephensDayTest.php @@ -44,7 +44,7 @@ public function teststStephensDay($year, $expected) * * @return array list of test dates for St. Stephen's Day */ - public function stStephensDayDataProvider() + public function stStephensDayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/CzechRepublic/ChristmasDayTest.php b/tests/CzechRepublic/ChristmasDayTest.php index 35243d735..81585e00d 100644 --- a/tests/CzechRepublic/ChristmasDayTest.php +++ b/tests/CzechRepublic/ChristmasDayTest.php @@ -48,7 +48,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/CzechRepublic/ChristmasEveTest.php b/tests/CzechRepublic/ChristmasEveTest.php index aaec124b5..c5882ab23 100644 --- a/tests/CzechRepublic/ChristmasEveTest.php +++ b/tests/CzechRepublic/ChristmasEveTest.php @@ -48,7 +48,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 24, self::TIMEZONE); } diff --git a/tests/CzechRepublic/CzechStateHoodDayTest.php b/tests/CzechRepublic/CzechStateHoodDayTest.php index 3424984ee..acb6c0699 100644 --- a/tests/CzechRepublic/CzechStateHoodDayTest.php +++ b/tests/CzechRepublic/CzechStateHoodDayTest.php @@ -48,7 +48,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(9, 28, self::TIMEZONE); } diff --git a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php index 127824b07..aa5ec92c2 100644 --- a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php +++ b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(10, 28, self::TIMEZONE); } diff --git a/tests/CzechRepublic/InternationalWorkersDayTest.php b/tests/CzechRepublic/InternationalWorkersDayTest.php index e4a4927f3..4dd3423e4 100644 --- a/tests/CzechRepublic/InternationalWorkersDayTest.php +++ b/tests/CzechRepublic/InternationalWorkersDayTest.php @@ -69,7 +69,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/CzechRepublic/JanHusDayTest.php b/tests/CzechRepublic/JanHusDayTest.php index 057e7f994..094f64fe1 100644 --- a/tests/CzechRepublic/JanHusDayTest.php +++ b/tests/CzechRepublic/JanHusDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(7, 6, self::TIMEZONE); } diff --git a/tests/CzechRepublic/NewYearsDayTest.php b/tests/CzechRepublic/NewYearsDayTest.php index e1d3a050a..10cbbf784 100644 --- a/tests/CzechRepublic/NewYearsDayTest.php +++ b/tests/CzechRepublic/NewYearsDayTest.php @@ -48,7 +48,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php index 5e6da8eba..7c8179620 100644 --- a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php @@ -48,7 +48,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(7, 5, self::TIMEZONE); } diff --git a/tests/CzechRepublic/SecondChristmasDayTest.php b/tests/CzechRepublic/SecondChristmasDayTest.php index 2c865d50d..ee2e7550a 100644 --- a/tests/CzechRepublic/SecondChristmasDayTest.php +++ b/tests/CzechRepublic/SecondChristmasDayTest.php @@ -48,7 +48,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php index f1d861874..ab9c688b7 100644 --- a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 17, self::TIMEZONE); } diff --git a/tests/CzechRepublic/VictoryInEuropeDayTest.php b/tests/CzechRepublic/VictoryInEuropeDayTest.php index 6a5d09bc5..edcb802f7 100644 --- a/tests/CzechRepublic/VictoryInEuropeDayTest.php +++ b/tests/CzechRepublic/VictoryInEuropeDayTest.php @@ -48,7 +48,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 8, self::TIMEZONE); } diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 1f1456652..08a2aaa83 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Denmark/NewYearsDayTest.php b/tests/Denmark/NewYearsDayTest.php index 92b5b4588..0b0544ad7 100644 --- a/tests/Denmark/NewYearsDayTest.php +++ b/tests/Denmark/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Denmark/SecondChristmasDayTest.php b/tests/Denmark/SecondChristmasDayTest.php index 8046ac742..af03792aa 100644 --- a/tests/Denmark/SecondChristmasDayTest.php +++ b/tests/Denmark/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Estonia/ChristmasDayTest.php b/tests/Estonia/ChristmasDayTest.php index e9c8515c9..4162a6536 100644 --- a/tests/Estonia/ChristmasDayTest.php +++ b/tests/Estonia/ChristmasDayTest.php @@ -31,7 +31,7 @@ class ChristmasDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInte /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Estonia/ChristmasEveDayTest.php b/tests/Estonia/ChristmasEveDayTest.php index 163ff2794..b1fec75e8 100644 --- a/tests/Estonia/ChristmasEveDayTest.php +++ b/tests/Estonia/ChristmasEveDayTest.php @@ -31,7 +31,7 @@ class ChristmasEveDayTest extends EstoniaBaseTestCase implements YasumiTestCaseI /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 24, self::TIMEZONE); } diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index b15bf6ddf..344b58b26 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -31,7 +31,7 @@ class EasterDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterfa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomEasterDates(self::TIMEZONE); } diff --git a/tests/Estonia/GoodFridayDayTest.php b/tests/Estonia/GoodFridayDayTest.php index 1d0045d48..174c13a73 100644 --- a/tests/Estonia/GoodFridayDayTest.php +++ b/tests/Estonia/GoodFridayDayTest.php @@ -33,7 +33,7 @@ class GoodFridayDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInt * * @throws \Exception */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomGoodFridayDates(self::TIMEZONE); } diff --git a/tests/Estonia/InternationalWorkersDayTest.php b/tests/Estonia/InternationalWorkersDayTest.php index 4394a548b..fd52144ef 100644 --- a/tests/Estonia/InternationalWorkersDayTest.php +++ b/tests/Estonia/InternationalWorkersDayTest.php @@ -31,7 +31,7 @@ class InternationalWorkersDayTest extends EstoniaBaseTestCase implements YasumiT /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Estonia/NewYearsDayTest.php b/tests/Estonia/NewYearsDayTest.php index 64f034622..08c308334 100644 --- a/tests/Estonia/NewYearsDayTest.php +++ b/tests/Estonia/NewYearsDayTest.php @@ -31,7 +31,7 @@ class NewYearsDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInter /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Estonia/PentecostTest.php b/tests/Estonia/PentecostTest.php index 4a7643f70..441075846 100644 --- a/tests/Estonia/PentecostTest.php +++ b/tests/Estonia/PentecostTest.php @@ -33,7 +33,7 @@ class PentecostTest extends EstoniaBaseTestCase implements YasumiTestCaseInterfa * * @throws \Exception */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomPentecostDates(self::TIMEZONE); } diff --git a/tests/Estonia/SecondChristmasDayTest.php b/tests/Estonia/SecondChristmasDayTest.php index 9f3aa95e2..709a21f39 100644 --- a/tests/Estonia/SecondChristmasDayTest.php +++ b/tests/Estonia/SecondChristmasDayTest.php @@ -31,7 +31,7 @@ class SecondChristmasDayTest extends EstoniaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Estonia/StJohnsDayTest.php b/tests/Estonia/StJohnsDayTest.php index 53cd5519a..6428e4267 100644 --- a/tests/Estonia/StJohnsDayTest.php +++ b/tests/Estonia/StJohnsDayTest.php @@ -31,7 +31,7 @@ class StJohnsDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterf /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(6, 24, self::TIMEZONE); } diff --git a/tests/Finland/AllSaintsDayTest.php b/tests/Finland/AllSaintsDayTest.php index 04206dcc5..c47183f5b 100644 --- a/tests/Finland/AllSaintsDayTest.php +++ b/tests/Finland/AllSaintsDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Finland/ChristmasDayTest.php b/tests/Finland/ChristmasDayTest.php index 5f7ed30a0..0d035b67b 100644 --- a/tests/Finland/ChristmasDayTest.php +++ b/tests/Finland/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Finland/EpiphanyTest.php b/tests/Finland/EpiphanyTest.php index 26234b0bf..9f32b9fde 100644 --- a/tests/Finland/EpiphanyTest.php +++ b/tests/Finland/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Finland/InternationalWorkersDayTest.php b/tests/Finland/InternationalWorkersDayTest.php index 26706035d..d9e35089a 100644 --- a/tests/Finland/InternationalWorkersDayTest.php +++ b/tests/Finland/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Finland/NewYearsDayTest.php b/tests/Finland/NewYearsDayTest.php index 20fa75095..67c42e588 100644 --- a/tests/Finland/NewYearsDayTest.php +++ b/tests/Finland/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Finland/SecondChristmasDayTest.php b/tests/Finland/SecondChristmasDayTest.php index e257b3692..f077cfe20 100644 --- a/tests/Finland/SecondChristmasDayTest.php +++ b/tests/Finland/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/France/AllSaintsDayTest.php b/tests/France/AllSaintsDayTest.php index 01f71b020..e67c702a5 100644 --- a/tests/France/AllSaintsDayTest.php +++ b/tests/France/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/France/AssumptionOfMaryTest.php b/tests/France/AssumptionOfMaryTest.php index 9a5743c70..14dc356b7 100644 --- a/tests/France/AssumptionOfMaryTest.php +++ b/tests/France/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/France/BasRhin/stStephensDayTest.php b/tests/France/BasRhin/stStephensDayTest.php index 185378886..a08ca429f 100644 --- a/tests/France/BasRhin/stStephensDayTest.php +++ b/tests/France/BasRhin/stStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/France/ChristmasDayTest.php b/tests/France/ChristmasDayTest.php index 15ce75a6c..13ab252ea 100644 --- a/tests/France/ChristmasDayTest.php +++ b/tests/France/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/France/HautRhin/stStephensDayTest.php b/tests/France/HautRhin/stStephensDayTest.php index cb72647ba..c4bd585da 100644 --- a/tests/France/HautRhin/stStephensDayTest.php +++ b/tests/France/HautRhin/stStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/France/InternationalWorkersDayTest.php b/tests/France/InternationalWorkersDayTest.php index 59fdff013..6bb357972 100644 --- a/tests/France/InternationalWorkersDayTest.php +++ b/tests/France/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/France/Moselle/stStephensDayTest.php b/tests/France/Moselle/stStephensDayTest.php index 2fa6a9cd1..bd5228d0c 100644 --- a/tests/France/Moselle/stStephensDayTest.php +++ b/tests/France/Moselle/stStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/France/NewYearsDayTest.php b/tests/France/NewYearsDayTest.php index ad7705809..a873a7df8 100644 --- a/tests/France/NewYearsDayTest.php +++ b/tests/France/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php index 85bc14ea7..6c3b9b152 100644 --- a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php +++ b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Germany/BadenWurttemberg/EpiphanyTest.php b/tests/Germany/BadenWurttemberg/EpiphanyTest.php index a64ad03ae..2ac7336df 100644 --- a/tests/Germany/BadenWurttemberg/EpiphanyTest.php +++ b/tests/Germany/BadenWurttemberg/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Germany/Bavaria/AllSaintsDayTest.php b/tests/Germany/Bavaria/AllSaintsDayTest.php index c58b14fbf..157614b5d 100644 --- a/tests/Germany/Bavaria/AllSaintsDayTest.php +++ b/tests/Germany/Bavaria/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Germany/Bavaria/EpiphanyTest.php b/tests/Germany/Bavaria/EpiphanyTest.php index d8f6fa18c..3583392c0 100644 --- a/tests/Germany/Bavaria/EpiphanyTest.php +++ b/tests/Germany/Bavaria/EpiphanyTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Germany/Brandenburg/ReformationDayTest.php b/tests/Germany/Brandenburg/ReformationDayTest.php index 7b3c7220b..5dbd0ce22 100644 --- a/tests/Germany/Brandenburg/ReformationDayTest.php +++ b/tests/Germany/Brandenburg/ReformationDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Germany/ChristmasTest.php b/tests/Germany/ChristmasTest.php index 764b49a1c..7836f9598 100644 --- a/tests/Germany/ChristmasTest.php +++ b/tests/Germany/ChristmasTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Germany/InternationalWorkersDayTest.php b/tests/Germany/InternationalWorkersDayTest.php index 4bc69df80..d0ebae1c6 100644 --- a/tests/Germany/InternationalWorkersDayTest.php +++ b/tests/Germany/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php index 7517bb4b1..217655b1f 100644 --- a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php @@ -37,7 +37,7 @@ class ReformationDayTest extends MecklenburgWesternPomeraniaBaseTestCase impleme * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Germany/NewYearsDayTest.php b/tests/Germany/NewYearsDayTest.php index 8054430ba..2fc0fc4ff 100644 --- a/tests/Germany/NewYearsDayTest.php +++ b/tests/Germany/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php index e887eac70..20cb610f0 100644 --- a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php index 6e3ea3d56..f834c55be 100644 --- a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php +++ b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Germany/Saarland/AllSaintsDayTest.php b/tests/Germany/Saarland/AllSaintsDayTest.php index 38860d38d..a97b0b83b 100644 --- a/tests/Germany/Saarland/AllSaintsDayTest.php +++ b/tests/Germany/Saarland/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Germany/Saarland/AssumptionOfMaryTest.php b/tests/Germany/Saarland/AssumptionOfMaryTest.php index 817bb3975..2166279b2 100644 --- a/tests/Germany/Saarland/AssumptionOfMaryTest.php +++ b/tests/Germany/Saarland/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Germany/Saxony/ReformationDayTest.php b/tests/Germany/Saxony/ReformationDayTest.php index b1e451cf1..c12d9d305 100644 --- a/tests/Germany/Saxony/ReformationDayTest.php +++ b/tests/Germany/Saxony/ReformationDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php index 6e4247028..7dd05e90e 100644 --- a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php +++ b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php index 9ebe99e69..01616b1ed 100644 --- a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php +++ b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Germany/SecondChristmasDayTest.php b/tests/Germany/SecondChristmasDayTest.php index 2e76049fb..b12e07d30 100644 --- a/tests/Germany/SecondChristmasDayTest.php +++ b/tests/Germany/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Germany/Thuringia/ReformationDayTest.php b/tests/Germany/Thuringia/ReformationDayTest.php index 73312381e..0f722d1c7 100644 --- a/tests/Germany/Thuringia/ReformationDayTest.php +++ b/tests/Germany/Thuringia/ReformationDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Greece/AnnunciationTest.php b/tests/Greece/AnnunciationTest.php index e0c897a4c..ac149372b 100644 --- a/tests/Greece/AnnunciationTest.php +++ b/tests/Greece/AnnunciationTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(3, 25, self::TIMEZONE); } diff --git a/tests/Greece/AssumptionOfMaryTest.php b/tests/Greece/AssumptionOfMaryTest.php index cc5db442d..17110d52d 100644 --- a/tests/Greece/AssumptionOfMaryTest.php +++ b/tests/Greece/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Greece/ChristmasDayTest.php b/tests/Greece/ChristmasDayTest.php index 82c88e0d1..8322d4621 100644 --- a/tests/Greece/ChristmasDayTest.php +++ b/tests/Greece/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Greece/EpiphanyTest.php b/tests/Greece/EpiphanyTest.php index 1d83a1775..edf29fb52 100644 --- a/tests/Greece/EpiphanyTest.php +++ b/tests/Greece/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Greece/InternationalWorkersDayTest.php b/tests/Greece/InternationalWorkersDayTest.php index d388ce45b..bab502681 100644 --- a/tests/Greece/InternationalWorkersDayTest.php +++ b/tests/Greece/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Greece/NewYearsDayTest.php b/tests/Greece/NewYearsDayTest.php index 2d50c39ef..b16ec75e2 100644 --- a/tests/Greece/NewYearsDayTest.php +++ b/tests/Greece/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Greece/ThreeHolyHierarchsTest.php b/tests/Greece/ThreeHolyHierarchsTest.php index e779d1b86..9fb2d5a87 100644 --- a/tests/Greece/ThreeHolyHierarchsTest.php +++ b/tests/Greece/ThreeHolyHierarchsTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 30, self::TIMEZONE); } diff --git a/tests/Hungary/AllSaintsDayTest.php b/tests/Hungary/AllSaintsDayTest.php index 48b815cfc..f6a1c15f1 100644 --- a/tests/Hungary/AllSaintsDayTest.php +++ b/tests/Hungary/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Hungary/ChristmasTest.php b/tests/Hungary/ChristmasTest.php index f2511dc89..c054491a1 100644 --- a/tests/Hungary/ChristmasTest.php +++ b/tests/Hungary/ChristmasTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Hungary/InternationalWorkersDayTest.php b/tests/Hungary/InternationalWorkersDayTest.php index 88324d806..e41efad23 100644 --- a/tests/Hungary/InternationalWorkersDayTest.php +++ b/tests/Hungary/InternationalWorkersDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Hungary/NewYearsDayTest.php b/tests/Hungary/NewYearsDayTest.php index 846e126e0..b317e2300 100644 --- a/tests/Hungary/NewYearsDayTest.php +++ b/tests/Hungary/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Hungary/SecondChristmasDayTest.php b/tests/Hungary/SecondChristmasDayTest.php index 74aaf78fa..151a5de78 100644 --- a/tests/Hungary/SecondChristmasDayTest.php +++ b/tests/Hungary/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Ireland/AugustHolidayTest.php b/tests/Ireland/AugustHolidayTest.php index bf9469c1b..3299cc7cb 100644 --- a/tests/Ireland/AugustHolidayTest.php +++ b/tests/Ireland/AugustHolidayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index d0f7ae8f6..42efb80c3 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index 7ab031d89..c88262094 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index 11c73ab33..88ad0287a 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index 614c93785..03f03d170 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/JuneHolidayTest.php b/tests/Ireland/JuneHolidayTest.php index 1bcbf12fb..134558e5e 100644 --- a/tests/Ireland/JuneHolidayTest.php +++ b/tests/Ireland/JuneHolidayTest.php @@ -56,7 +56,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/MayDayTest.php b/tests/Ireland/MayDayTest.php index f21da5b5f..57d8d7f4c 100644 --- a/tests/Ireland/MayDayTest.php +++ b/tests/Ireland/MayDayTest.php @@ -57,7 +57,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index c20b52bfa..9f412e2c5 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -57,7 +57,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/OctoberHolidayTest.php b/tests/Ireland/OctoberHolidayTest.php index 8ff76a31c..af5d6430b 100644 --- a/tests/Ireland/OctoberHolidayTest.php +++ b/tests/Ireland/OctoberHolidayTest.php @@ -57,7 +57,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index 071fb10c5..60b77576e 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index 3dbc1a4fb..7740246b5 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -56,7 +56,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index bc797a519..6902e21d4 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index b7dd8f99f..14f8c237e 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -56,7 +56,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Italy/AllSaintsDayTest.php b/tests/Italy/AllSaintsDayTest.php index e2c5bdb7e..936e8ff34 100644 --- a/tests/Italy/AllSaintsDayTest.php +++ b/tests/Italy/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testAssumptionOfMary($year, $expected) * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Italy/AssumptionOfMaryTest.php b/tests/Italy/AssumptionOfMaryTest.php index 28e5e24a2..6cf085c80 100644 --- a/tests/Italy/AssumptionOfMaryTest.php +++ b/tests/Italy/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testAssumptionOfMary($year, $expected) * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Italy/ChristmasTest.php b/tests/Italy/ChristmasTest.php index beed4316c..d17a47bf1 100644 --- a/tests/Italy/ChristmasTest.php +++ b/tests/Italy/ChristmasTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Italy/EpiphanyTest.php b/tests/Italy/EpiphanyTest.php index a440eacac..0d6f0988c 100644 --- a/tests/Italy/EpiphanyTest.php +++ b/tests/Italy/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testEpiphany($year, $expected) * * @return array list of test dates for Epiphany */ - public function EpiphanyDataProvider() + public function EpiphanyDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Italy/ImmaculateConceptionTest.php b/tests/Italy/ImmaculateConceptionTest.php index 14bbdd0f6..f10a9a208 100644 --- a/tests/Italy/ImmaculateConceptionTest.php +++ b/tests/Italy/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testImmaculateConception($year, $expected) * * @return array list of test dates for the day of Immaculate Conception */ - public function ImmaculateConceptionDataProvider() + public function ImmaculateConceptionDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Italy/InternationalWorkersDayTest.php b/tests/Italy/InternationalWorkersDayTest.php index 6f0377311..3de33e5e4 100644 --- a/tests/Italy/InternationalWorkersDayTest.php +++ b/tests/Italy/InternationalWorkersDayTest.php @@ -44,7 +44,7 @@ public function testInternationalWorkersDay($year, $expected) * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Italy/NewYearsDayTest.php b/tests/Italy/NewYearsDayTest.php index a9bbc4c2a..afec6e3ab 100644 --- a/tests/Italy/NewYearsDayTest.php +++ b/tests/Italy/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testNewYearsDay($year, $expected) * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Italy/stStephensDayTest.php b/tests/Italy/stStephensDayTest.php index ef865d851..2e4aefc05 100644 --- a/tests/Italy/stStephensDayTest.php +++ b/tests/Italy/stStephensDayTest.php @@ -44,7 +44,7 @@ public function teststStephensDay($year, $expected) * * @return array list of test dates for St. Stephen's Day */ - public function stStephensDayDataProvider() + public function stStephensDayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Japan/AutumnalEquinoxDayTest.php b/tests/Japan/AutumnalEquinoxDayTest.php index 0e2f798ca..2aabd8bc3 100644 --- a/tests/Japan/AutumnalEquinoxDayTest.php +++ b/tests/Japan/AutumnalEquinoxDayTest.php @@ -72,7 +72,7 @@ public function testAutumnalEquinoxDayBetween1948And2150($year, $month, $day) * * @return array list of Japanese Autumnal Equinox holidays */ - public function autumnalEquinoxHolidaysProvider() + public function autumnalEquinoxHolidaysProvider(): array { return [ [1951, 9, 24], diff --git a/tests/Japan/VernalEquinoxDayTest.php b/tests/Japan/VernalEquinoxDayTest.php index 8422ca986..afa249c20 100644 --- a/tests/Japan/VernalEquinoxDayTest.php +++ b/tests/Japan/VernalEquinoxDayTest.php @@ -73,7 +73,7 @@ public function testVernalEquinoxDayBetween1948And2150($year, $month, $day) * * @return array list of Japanese Vernal Equinox holidays */ - public function vernalEquinoxHolidaysProvider() + public function vernalEquinoxHolidaysProvider(): array { return [ [1948, 3, 22], diff --git a/tests/Latvia/ChristmasDayTest.php b/tests/Latvia/ChristmasDayTest.php index a33facecf..7cd641a8a 100644 --- a/tests/Latvia/ChristmasDayTest.php +++ b/tests/Latvia/ChristmasDayTest.php @@ -31,7 +31,7 @@ class ChristmasDayTest extends LatviaBaseTestCase implements YasumiTestCaseInter /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Latvia/ChristmasEveDayTest.php b/tests/Latvia/ChristmasEveDayTest.php index 75c31ab3d..c46b61145 100644 --- a/tests/Latvia/ChristmasEveDayTest.php +++ b/tests/Latvia/ChristmasEveDayTest.php @@ -31,7 +31,7 @@ class ChristmasEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 24, self::TIMEZONE); } diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index aefcaa98f..377d0ae5a 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -31,7 +31,7 @@ class EasterDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterfac /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomEasterDates(self::TIMEZONE); } diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index 11b58e61d..cb913bfff 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -31,7 +31,7 @@ class EasterMondayDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomEasterMondayDates(self::TIMEZONE); } diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index 81b963283..b4347be6b 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -31,7 +31,7 @@ class GoodFridayDayTest extends LatviaBaseTestCase implements YasumiTestCaseInte /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomGoodFridayDates(self::TIMEZONE); } diff --git a/tests/Latvia/InternationalWorkersDayTest.php b/tests/Latvia/InternationalWorkersDayTest.php index 5fa1e3415..f79c80428 100644 --- a/tests/Latvia/InternationalWorkersDayTest.php +++ b/tests/Latvia/InternationalWorkersDayTest.php @@ -31,7 +31,7 @@ class InternationalWorkersDayTest extends LatviaBaseTestCase implements YasumiTe /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Latvia/MidsummerEveDayTest.php b/tests/Latvia/MidsummerEveDayTest.php index e8d0b3a3f..085f34fd6 100644 --- a/tests/Latvia/MidsummerEveDayTest.php +++ b/tests/Latvia/MidsummerEveDayTest.php @@ -31,7 +31,7 @@ class MidsummerEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(6, 23, self::TIMEZONE); } diff --git a/tests/Latvia/NewYearsDayTest.php b/tests/Latvia/NewYearsDayTest.php index 811f179d5..5be7cbbf8 100644 --- a/tests/Latvia/NewYearsDayTest.php +++ b/tests/Latvia/NewYearsDayTest.php @@ -31,7 +31,7 @@ class NewYearsDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterf /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Latvia/NewYearsEveDayTest.php b/tests/Latvia/NewYearsEveDayTest.php index 54fd59a29..75bcbdb9b 100644 --- a/tests/Latvia/NewYearsEveDayTest.php +++ b/tests/Latvia/NewYearsEveDayTest.php @@ -31,7 +31,7 @@ class NewYearsEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseInt /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 31, self::TIMEZONE); } diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index 60885088c..c66006a69 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -44,7 +44,7 @@ public function testNotHoliday() /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDatesWithHolidayMovedToMonday( 11, diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index ce3cf1c9a..5ab43b1dd 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -44,7 +44,7 @@ public function testNotHoliday() /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDatesWithHolidayMovedToMonday( 5, diff --git a/tests/Latvia/SecondChristmasDayTest.php b/tests/Latvia/SecondChristmasDayTest.php index 430230f94..bfe932300 100644 --- a/tests/Latvia/SecondChristmasDayTest.php +++ b/tests/Latvia/SecondChristmasDayTest.php @@ -31,7 +31,7 @@ class SecondChristmasDayTest extends LatviaBaseTestCase implements YasumiTestCas /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Latvia/StJohnsDayTest.php b/tests/Latvia/StJohnsDayTest.php index 6c2fda9c7..7e7717087 100644 --- a/tests/Latvia/StJohnsDayTest.php +++ b/tests/Latvia/StJohnsDayTest.php @@ -31,7 +31,7 @@ class StJohnsDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterfa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(6, 24, self::TIMEZONE); } diff --git a/tests/Lithuania/AllSaintsDayTest.php b/tests/Lithuania/AllSaintsDayTest.php index 9b093e916..5e2e2a359 100644 --- a/tests/Lithuania/AllSaintsDayTest.php +++ b/tests/Lithuania/AllSaintsDayTest.php @@ -31,7 +31,7 @@ class AllSaintsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Lithuania/AssumptionOfMaryDayTest.php b/tests/Lithuania/AssumptionOfMaryDayTest.php index dc9e9a4aa..0c5e7aebf 100644 --- a/tests/Lithuania/AssumptionOfMaryDayTest.php +++ b/tests/Lithuania/AssumptionOfMaryDayTest.php @@ -31,7 +31,7 @@ class AssumptionOfMaryDayTest extends LithuaniaBaseTestCase implements YasumiTes /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Lithuania/ChristmasDayTest.php b/tests/Lithuania/ChristmasDayTest.php index 00b65cd26..82820fdd2 100644 --- a/tests/Lithuania/ChristmasDayTest.php +++ b/tests/Lithuania/ChristmasDayTest.php @@ -31,7 +31,7 @@ class ChristmasDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Lithuania/ChristmasEveDayTest.php b/tests/Lithuania/ChristmasEveDayTest.php index 91138b114..7d73f4e64 100644 --- a/tests/Lithuania/ChristmasEveDayTest.php +++ b/tests/Lithuania/ChristmasEveDayTest.php @@ -31,7 +31,7 @@ class ChristmasEveDayTest extends LithuaniaBaseTestCase implements YasumiTestCas /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 24, self::TIMEZONE); } diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index 52bd3d25a..b245dc15f 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -31,7 +31,7 @@ class EasterDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInter /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomEasterDates(self::TIMEZONE); } diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index c1eae15c1..bbb13a041 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -31,7 +31,7 @@ class EasterMondayDayTest extends LithuaniaBaseTestCase implements YasumiTestCas /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomEasterMondayDates(self::TIMEZONE); } diff --git a/tests/Lithuania/InternationalWorkersDayTest.php b/tests/Lithuania/InternationalWorkersDayTest.php index 8534af6cd..fdd02fb91 100644 --- a/tests/Lithuania/InternationalWorkersDayTest.php +++ b/tests/Lithuania/InternationalWorkersDayTest.php @@ -31,7 +31,7 @@ class InternationalWorkersDayTest extends LithuaniaBaseTestCase implements Yasum /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Lithuania/NewYearsDayTest.php b/tests/Lithuania/NewYearsDayTest.php index b5f9b006c..6ed3b3798 100644 --- a/tests/Lithuania/NewYearsDayTest.php +++ b/tests/Lithuania/NewYearsDayTest.php @@ -31,7 +31,7 @@ class NewYearsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInt /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Lithuania/SecondChristmasDayTest.php b/tests/Lithuania/SecondChristmasDayTest.php index 0802d9703..bab8cd6ab 100644 --- a/tests/Lithuania/SecondChristmasDayTest.php +++ b/tests/Lithuania/SecondChristmasDayTest.php @@ -31,7 +31,7 @@ class SecondChristmasDayTest extends LithuaniaBaseTestCase implements YasumiTest /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Lithuania/StJohnsDayTest.php b/tests/Lithuania/StJohnsDayTest.php index 4e4a04d72..b1ddbe0b6 100644 --- a/tests/Lithuania/StJohnsDayTest.php +++ b/tests/Lithuania/StJohnsDayTest.php @@ -31,7 +31,7 @@ class StJohnsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInte /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(6, 24, self::TIMEZONE); } diff --git a/tests/Netherlands/ChristmasDayTest.php b/tests/Netherlands/ChristmasDayTest.php index 288b6a7da..e4c5a424e 100644 --- a/tests/Netherlands/ChristmasDayTest.php +++ b/tests/Netherlands/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Netherlands/EpiphanyTest.php b/tests/Netherlands/EpiphanyTest.php index 06cc8c6a4..25aaab8d2 100644 --- a/tests/Netherlands/EpiphanyTest.php +++ b/tests/Netherlands/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testEpiphany($year, $expected) * * @return array list of test dates for Epiphany */ - public function EpiphanyDataProvider() + public function EpiphanyDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Netherlands/HalloweenTest.php b/tests/Netherlands/HalloweenTest.php index 7b5149c34..3afff0abe 100644 --- a/tests/Netherlands/HalloweenTest.php +++ b/tests/Netherlands/HalloweenTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for Halloween */ - public function HalloweenDataProvider() + public function HalloweenDataProvider(): array { return $this->generateRandomDates(10, 31, self::TIMEZONE); } diff --git a/tests/Netherlands/InternationalWorkersDayTest.php b/tests/Netherlands/InternationalWorkersDayTest.php index edf1728fc..f36ccd46f 100644 --- a/tests/Netherlands/InternationalWorkersDayTest.php +++ b/tests/Netherlands/InternationalWorkersDayTest.php @@ -44,7 +44,7 @@ public function testInternationalWorkersDay($year, $expected) * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Netherlands/NewYearsDayTest.php b/tests/Netherlands/NewYearsDayTest.php index 5cedb503a..5dde49f98 100644 --- a/tests/Netherlands/NewYearsDayTest.php +++ b/tests/Netherlands/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testNewYearsDay($year, $expected) * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Netherlands/ValentinesDayTest.php b/tests/Netherlands/ValentinesDayTest.php index c0c15d59b..2a4cd4b2b 100644 --- a/tests/Netherlands/ValentinesDayTest.php +++ b/tests/Netherlands/ValentinesDayTest.php @@ -44,7 +44,7 @@ public function testValentinesDay($year, $expected) * * @return array list of test dates for Valentines Day */ - public function ValentinesDayDataProvider() + public function ValentinesDayDataProvider(): array { return $this->generateRandomDates(2, 14, self::TIMEZONE); } diff --git a/tests/Netherlands/secondChristmasdayTest.php b/tests/Netherlands/secondChristmasdayTest.php index 392ab9cc0..33bf51a7b 100644 --- a/tests/Netherlands/secondChristmasdayTest.php +++ b/tests/Netherlands/secondChristmasdayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Netherlands/stMartinsDayTest.php b/tests/Netherlands/stMartinsDayTest.php index b4fddc4c7..685b448ce 100644 --- a/tests/Netherlands/stMartinsDayTest.php +++ b/tests/Netherlands/stMartinsDayTest.php @@ -44,7 +44,7 @@ public function teststMartinsDay($year, $expected) * * @return array list of test dates for Sint Martins Day */ - public function stMartinsDayDataProvider() + public function stMartinsDayDataProvider(): array { return $this->generateRandomDates(11, 11, self::TIMEZONE); } diff --git a/tests/Netherlands/stNicholasDayTest.php b/tests/Netherlands/stNicholasDayTest.php index 2c7417d5d..3c8927106 100644 --- a/tests/Netherlands/stNicholasDayTest.php +++ b/tests/Netherlands/stNicholasDayTest.php @@ -45,7 +45,7 @@ public function teststNicholasDay($year, $expected) * * @return array list of test dates for Sint Nicholas Day */ - public function stNicholasDayDataProvider() + public function stNicholasDayDataProvider(): array { return $this->generateRandomDates(12, 5, self::TIMEZONE); } diff --git a/tests/NewZealand/AnzacDayTest.php b/tests/NewZealand/AnzacDayTest.php index e7b5dffa6..1ae9be2a3 100644 --- a/tests/NewZealand/AnzacDayTest.php +++ b/tests/NewZealand/AnzacDayTest.php @@ -63,7 +63,7 @@ public function testNotHoliday() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDatesWithModifier( 4, diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index d1d81c48c..9b170e2a9 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index ec178924c..f0675b39d 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/DayAfterNewYearsDayTest.php b/tests/NewZealand/DayAfterNewYearsDayTest.php index 4d5d0f50e..6459255fb 100644 --- a/tests/NewZealand/DayAfterNewYearsDayTest.php +++ b/tests/NewZealand/DayAfterNewYearsDayTest.php @@ -72,7 +72,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/EasterMondayTest.php b/tests/NewZealand/EasterMondayTest.php index f0945ed59..11fdb2a5e 100644 --- a/tests/NewZealand/EasterMondayTest.php +++ b/tests/NewZealand/EasterMondayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/GoodFridayTest.php b/tests/NewZealand/GoodFridayTest.php index 3cdd2c4c6..9e606d740 100644 --- a/tests/NewZealand/GoodFridayTest.php +++ b/tests/NewZealand/GoodFridayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/LabourDayTest.php b/tests/NewZealand/LabourDayTest.php index 66ae167d8..947c582fe 100644 --- a/tests/NewZealand/LabourDayTest.php +++ b/tests/NewZealand/LabourDayTest.php @@ -63,7 +63,7 @@ public function testNotHoliday() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/NewYearsDayTest.php b/tests/NewZealand/NewYearsDayTest.php index 3c2eb3582..912e2ec8f 100644 --- a/tests/NewZealand/NewYearsDayTest.php +++ b/tests/NewZealand/NewYearsDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/QueensBirthdayTest.php b/tests/NewZealand/QueensBirthdayTest.php index fde1c942a..f0ec57690 100644 --- a/tests/NewZealand/QueensBirthdayTest.php +++ b/tests/NewZealand/QueensBirthdayTest.php @@ -58,7 +58,7 @@ public function testNotHoliday() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/NewZealand/WaitangiDayTest.php b/tests/NewZealand/WaitangiDayTest.php index 2d6430dbb..132d1b04d 100644 --- a/tests/NewZealand/WaitangiDayTest.php +++ b/tests/NewZealand/WaitangiDayTest.php @@ -89,7 +89,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDatesWithModifier( 2, diff --git a/tests/Norway/ChristmasDayTest.php b/tests/Norway/ChristmasDayTest.php index 697efa324..ef172ab3c 100644 --- a/tests/Norway/ChristmasDayTest.php +++ b/tests/Norway/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Norway/InternationalWorkersDayTest.php b/tests/Norway/InternationalWorkersDayTest.php index 39a690186..c7d12e8f4 100644 --- a/tests/Norway/InternationalWorkersDayTest.php +++ b/tests/Norway/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Norway/NewYearsDayTest.php b/tests/Norway/NewYearsDayTest.php index 944144964..ad7236d03 100644 --- a/tests/Norway/NewYearsDayTest.php +++ b/tests/Norway/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Norway/SecondChristmasDayTest.php b/tests/Norway/SecondChristmasDayTest.php index 47e81e2a3..0930a58d5 100644 --- a/tests/Norway/SecondChristmasDayTest.php +++ b/tests/Norway/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Poland/AllSaintsDayTest.php b/tests/Poland/AllSaintsDayTest.php index cf2be1f7f..8300a2620 100644 --- a/tests/Poland/AllSaintsDayTest.php +++ b/tests/Poland/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Poland/AssumptionOfMaryTest.php b/tests/Poland/AssumptionOfMaryTest.php index dec590c7c..9d0970a31 100644 --- a/tests/Poland/AssumptionOfMaryTest.php +++ b/tests/Poland/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Poland/ChristmasTest.php b/tests/Poland/ChristmasTest.php index cfdb3011c..8103cf8ff 100644 --- a/tests/Poland/ChristmasTest.php +++ b/tests/Poland/ChristmasTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Poland/EpiphanyTest.php b/tests/Poland/EpiphanyTest.php index 648b2baa5..460bfa960 100644 --- a/tests/Poland/EpiphanyTest.php +++ b/tests/Poland/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testEpiphany($year, $expected) * * @return array list of test dates for Epiphany */ - public function EpiphanyDataProvider() + public function EpiphanyDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Poland/InternationalWorkersDayTest.php b/tests/Poland/InternationalWorkersDayTest.php index 7f2eced76..cc2bbf308 100644 --- a/tests/Poland/InternationalWorkersDayTest.php +++ b/tests/Poland/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Poland/NewYearsDayTest.php b/tests/Poland/NewYearsDayTest.php index 05e2964be..606dae74d 100644 --- a/tests/Poland/NewYearsDayTest.php +++ b/tests/Poland/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Poland/SecondChristmasDayTest.php b/tests/Poland/SecondChristmasDayTest.php index a97bd98ac..4a7d72a1a 100644 --- a/tests/Poland/SecondChristmasDayTest.php +++ b/tests/Poland/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Portugal/AssumptionOfMaryTest.php b/tests/Portugal/AssumptionOfMaryTest.php index 9800e7840..bf0e2bf55 100644 --- a/tests/Portugal/AssumptionOfMaryTest.php +++ b/tests/Portugal/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Portugal/ChristmasTest.php b/tests/Portugal/ChristmasTest.php index 4b2356daa..5d587c213 100644 --- a/tests/Portugal/ChristmasTest.php +++ b/tests/Portugal/ChristmasTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Portugal/ImmaculateConceptionTest.php b/tests/Portugal/ImmaculateConceptionTest.php index 247c4a046..c9b5f300e 100644 --- a/tests/Portugal/ImmaculateConceptionTest.php +++ b/tests/Portugal/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Portugal/InternationalWorkersDayTest.php b/tests/Portugal/InternationalWorkersDayTest.php index 6c4cd6060..cb36e3199 100644 --- a/tests/Portugal/InternationalWorkersDayTest.php +++ b/tests/Portugal/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Portugal/NewYearsDayTest.php b/tests/Portugal/NewYearsDayTest.php index aa0e6be08..eec243617 100644 --- a/tests/Portugal/NewYearsDayTest.php +++ b/tests/Portugal/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Romania/ChristmasDayTest.php b/tests/Romania/ChristmasDayTest.php index c68837982..c0e847388 100644 --- a/tests/Romania/ChristmasDayTest.php +++ b/tests/Romania/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Romania/DayAfterNewYearsDayTest.php b/tests/Romania/DayAfterNewYearsDayTest.php index ef3a831a6..467826d7d 100644 --- a/tests/Romania/DayAfterNewYearsDayTest.php +++ b/tests/Romania/DayAfterNewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 2, self::TIMEZONE); } diff --git a/tests/Romania/InternationalWorkersDayTest.php b/tests/Romania/InternationalWorkersDayTest.php index 2b45f20f5..95da2339c 100755 --- a/tests/Romania/InternationalWorkersDayTest.php +++ b/tests/Romania/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Romania/NewYearsDayTest.php b/tests/Romania/NewYearsDayTest.php index f27ef505b..527b515fd 100644 --- a/tests/Romania/NewYearsDayTest.php +++ b/tests/Romania/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Romania/SecondChristmasDayTest.php b/tests/Romania/SecondChristmasDayTest.php index 95fd00e07..f14f85e6f 100644 --- a/tests/Romania/SecondChristmasDayTest.php +++ b/tests/Romania/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Russia/InternationalWomensDayTest.php b/tests/Russia/InternationalWomensDayTest.php index 11b6040b3..c309fc5f7 100644 --- a/tests/Russia/InternationalWomensDayTest.php +++ b/tests/Russia/InternationalWomensDayTest.php @@ -31,7 +31,7 @@ class InternationalWomensDayTest extends RussiaBaseTestCase implements YasumiTes /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(3, 8, self::TIMEZONE); } diff --git a/tests/Russia/NewYearHolidaysDay2Test.php b/tests/Russia/NewYearHolidaysDay2Test.php index 6c055f017..ff0cbf149 100644 --- a/tests/Russia/NewYearHolidaysDay2Test.php +++ b/tests/Russia/NewYearHolidaysDay2Test.php @@ -31,7 +31,7 @@ class NewYearHolidaysDay2Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 2, self::TIMEZONE); } diff --git a/tests/Russia/NewYearHolidaysDay3Test.php b/tests/Russia/NewYearHolidaysDay3Test.php index 02d178919..30d05318c 100644 --- a/tests/Russia/NewYearHolidaysDay3Test.php +++ b/tests/Russia/NewYearHolidaysDay3Test.php @@ -31,7 +31,7 @@ class NewYearHolidaysDay3Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 3, self::TIMEZONE); } diff --git a/tests/Russia/NewYearHolidaysDay4Test.php b/tests/Russia/NewYearHolidaysDay4Test.php index a5c1f4024..d576f254f 100644 --- a/tests/Russia/NewYearHolidaysDay4Test.php +++ b/tests/Russia/NewYearHolidaysDay4Test.php @@ -30,7 +30,7 @@ class NewYearHolidaysDay4Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 4, self::TIMEZONE); } diff --git a/tests/Russia/NewYearHolidaysDay5Test.php b/tests/Russia/NewYearHolidaysDay5Test.php index f9b1e5658..28da70110 100644 --- a/tests/Russia/NewYearHolidaysDay5Test.php +++ b/tests/Russia/NewYearHolidaysDay5Test.php @@ -31,7 +31,7 @@ class NewYearHolidaysDay5Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 5, self::TIMEZONE); } diff --git a/tests/Russia/NewYearHolidaysDay6Test.php b/tests/Russia/NewYearHolidaysDay6Test.php index 170763436..1afa79d4d 100644 --- a/tests/Russia/NewYearHolidaysDay6Test.php +++ b/tests/Russia/NewYearHolidaysDay6Test.php @@ -31,7 +31,7 @@ class NewYearHolidaysDay6Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Russia/NewYearHolidaysDay8Test.php b/tests/Russia/NewYearHolidaysDay8Test.php index ccf53e898..c18a48db7 100644 --- a/tests/Russia/NewYearHolidaysDay8Test.php +++ b/tests/Russia/NewYearHolidaysDay8Test.php @@ -30,7 +30,7 @@ class NewYearHolidaysDay8Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 8, self::TIMEZONE); } diff --git a/tests/Russia/NewYearsDayTest.php b/tests/Russia/NewYearsDayTest.php index 18d8b8224..cc842eeb4 100644 --- a/tests/Russia/NewYearsDayTest.php +++ b/tests/Russia/NewYearsDayTest.php @@ -31,7 +31,7 @@ class NewYearsDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterf /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Russia/OrthodoxChristmasDayTest.php b/tests/Russia/OrthodoxChristmasDayTest.php index a16feaa56..c1a08b958 100644 --- a/tests/Russia/OrthodoxChristmasDayTest.php +++ b/tests/Russia/OrthodoxChristmasDayTest.php @@ -31,7 +31,7 @@ class OrthodoxChristmasDayTest extends RussiaBaseTestCase implements YasumiTestC /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 7, self::TIMEZONE); } diff --git a/tests/Russia/SpringAndLabourDayTest.php b/tests/Russia/SpringAndLabourDayTest.php index e4ef1b681..a29cbd9a5 100644 --- a/tests/Russia/SpringAndLabourDayTest.php +++ b/tests/Russia/SpringAndLabourDayTest.php @@ -31,7 +31,7 @@ class SpringAndLabourDayTest extends RussiaBaseTestCase implements YasumiTestCas /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Russia/VictoryDayTest.php b/tests/Russia/VictoryDayTest.php index f51fbcf2f..a2cdc0345 100644 --- a/tests/Russia/VictoryDayTest.php +++ b/tests/Russia/VictoryDayTest.php @@ -31,7 +31,7 @@ class VictoryDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterfa /** * @return array */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(5, 9, self::TIMEZONE); } diff --git a/tests/Slovakia/AllSaintsDayTest.php b/tests/Slovakia/AllSaintsDayTest.php index 5adf7e289..b43f41eb1 100644 --- a/tests/Slovakia/AllSaintsDayTest.php +++ b/tests/Slovakia/AllSaintsDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Slovakia/ChristmasDayTest.php b/tests/Slovakia/ChristmasDayTest.php index 898d48c01..bbf46df81 100644 --- a/tests/Slovakia/ChristmasDayTest.php +++ b/tests/Slovakia/ChristmasDayTest.php @@ -52,7 +52,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Slovakia/ChristmasEveTest.php b/tests/Slovakia/ChristmasEveTest.php index 04bc39b63..6121866e5 100644 --- a/tests/Slovakia/ChristmasEveTest.php +++ b/tests/Slovakia/ChristmasEveTest.php @@ -52,7 +52,7 @@ public function testChristmasEve($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 24, self::TIMEZONE); } diff --git a/tests/Slovakia/EasterMondayTest.php b/tests/Slovakia/EasterMondayTest.php index 2373354b7..87dabaa13 100644 --- a/tests/Slovakia/EasterMondayTest.php +++ b/tests/Slovakia/EasterMondayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $timezone = self::TIMEZONE; diff --git a/tests/Slovakia/EpiphanyTest.php b/tests/Slovakia/EpiphanyTest.php index 4170e4c1f..e645defe8 100644 --- a/tests/Slovakia/EpiphanyTest.php +++ b/tests/Slovakia/EpiphanyTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Slovakia/GoodFridayTest.php b/tests/Slovakia/GoodFridayTest.php index 2c665817c..7d851afab 100644 --- a/tests/Slovakia/GoodFridayTest.php +++ b/tests/Slovakia/GoodFridayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $timezone = self::TIMEZONE; diff --git a/tests/Slovakia/InternationalWorkersDayTest.php b/tests/Slovakia/InternationalWorkersDayTest.php index 309adfb2d..e4c8338d7 100644 --- a/tests/Slovakia/InternationalWorkersDayTest.php +++ b/tests/Slovakia/InternationalWorkersDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Slovakia/NewYearsDayTest.php b/tests/Slovakia/NewYearsDayTest.php index 60c35b434..92ab8ec27 100644 --- a/tests/Slovakia/NewYearsDayTest.php +++ b/tests/Slovakia/NewYearsDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Slovakia/OurLadyOfSorrowsDayTest.php b/tests/Slovakia/OurLadyOfSorrowsDayTest.php index 0143c9255..3a84cee35 100644 --- a/tests/Slovakia/OurLadyOfSorrowsDayTest.php +++ b/tests/Slovakia/OurLadyOfSorrowsDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(9, 15, self::TIMEZONE); } diff --git a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php index 5dc1c3835..6ce2c99d3 100644 --- a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(7, 5, self::TIMEZONE); } diff --git a/tests/Slovakia/SecondChristmasDayTest.php b/tests/Slovakia/SecondChristmasDayTest.php index 6334eaa5f..b59177bae 100644 --- a/tests/Slovakia/SecondChristmasDayTest.php +++ b/tests/Slovakia/SecondChristmasDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Slovakia/SlovakConstitutionDayTest.php b/tests/Slovakia/SlovakConstitutionDayTest.php index 3af38bd97..971ee56fd 100644 --- a/tests/Slovakia/SlovakConstitutionDayTest.php +++ b/tests/Slovakia/SlovakConstitutionDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(9, 1, self::TIMEZONE); } diff --git a/tests/Slovakia/SlovakNationalUprisingDayTest.php b/tests/Slovakia/SlovakNationalUprisingDayTest.php index f4bd0d106..7ae5b6692 100644 --- a/tests/Slovakia/SlovakNationalUprisingDayTest.php +++ b/tests/Slovakia/SlovakNationalUprisingDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 29, self::TIMEZONE); } diff --git a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php index 27413d85d..695a09026 100644 --- a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 17, self::TIMEZONE); } diff --git a/tests/Slovakia/VictoryInEuropeDayTest.php b/tests/Slovakia/VictoryInEuropeDayTest.php index db93e286e..11ebc536d 100644 --- a/tests/Slovakia/VictoryInEuropeDayTest.php +++ b/tests/Slovakia/VictoryInEuropeDayTest.php @@ -52,7 +52,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 8, self::TIMEZONE); } diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index 52f5fec1e..3be708b8e 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index d01491fbe..0bc994557 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -60,7 +60,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index aa52d3ae3..c3b0179ff 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index 330d25b7a..f7d6f4588 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -60,7 +60,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index 1be631c5c..343cdf22a 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index 808c13a05..ef1c089db 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index ae6a68653..845b6e922 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index e4126df24..c7cb70039 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index 57d79d056..af19da79d 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index 3734e522d..206368407 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index dfd0881cc..f69b5c087 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index 0a749c946..760542689 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Spain/AllSaintsDayTest.php b/tests/Spain/AllSaintsDayTest.php index fb32c04b0..db38d9ca6 100644 --- a/tests/Spain/AllSaintsDayTest.php +++ b/tests/Spain/AllSaintsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Spain/AssumptionOfMaryTest.php b/tests/Spain/AssumptionOfMaryTest.php index c0e05d678..8994a041c 100644 --- a/tests/Spain/AssumptionOfMaryTest.php +++ b/tests/Spain/AssumptionOfMaryTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Spain/Catalonia/stJohnsDayTest.php b/tests/Spain/Catalonia/stJohnsDayTest.php index a2cb3dd3e..525b8286c 100644 --- a/tests/Spain/Catalonia/stJohnsDayTest.php +++ b/tests/Spain/Catalonia/stJohnsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(6, 24, self::TIMEZONE); } diff --git a/tests/Spain/ChristmasTest.php b/tests/Spain/ChristmasTest.php index f5d8c8bb6..2a4430068 100644 --- a/tests/Spain/ChristmasTest.php +++ b/tests/Spain/ChristmasTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Spain/EpiphanyTest.php b/tests/Spain/EpiphanyTest.php index 4dadc3588..47638dc92 100644 --- a/tests/Spain/EpiphanyTest.php +++ b/tests/Spain/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Spain/ImmaculateConceptionTest.php b/tests/Spain/ImmaculateConceptionTest.php index 2a4776ebf..ea4a16b2d 100644 --- a/tests/Spain/ImmaculateConceptionTest.php +++ b/tests/Spain/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Spain/InternationalWorkersDayTest.php b/tests/Spain/InternationalWorkersDayTest.php index 2953195b0..adc4cd6fb 100644 --- a/tests/Spain/InternationalWorkersDayTest.php +++ b/tests/Spain/InternationalWorkersDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Spain/NewYearsDayTest.php b/tests/Spain/NewYearsDayTest.php index 70803cb2c..658052a31 100644 --- a/tests/Spain/NewYearsDayTest.php +++ b/tests/Spain/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Spain/ValentinesDayTest.php b/tests/Spain/ValentinesDayTest.php index 8d0dadce1..a09ac07a4 100644 --- a/tests/Spain/ValentinesDayTest.php +++ b/tests/Spain/ValentinesDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(2, 14, self::TIMEZONE); } diff --git a/tests/Spain/stJosephsDayTest.php b/tests/Spain/stJosephsDayTest.php index 78789f58e..34054b7e4 100644 --- a/tests/Spain/stJosephsDayTest.php +++ b/tests/Spain/stJosephsDayTest.php @@ -50,7 +50,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(3, 19, self::TIMEZONE); } diff --git a/tests/Sweden/AllSaintsDayTest.php b/tests/Sweden/AllSaintsDayTest.php index 6cd3732f8..213d69b87 100644 --- a/tests/Sweden/AllSaintsDayTest.php +++ b/tests/Sweden/AllSaintsDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Sweden/ChristmasDayTest.php b/tests/Sweden/ChristmasDayTest.php index 2079ef28e..4e6dd86d5 100644 --- a/tests/Sweden/ChristmasDayTest.php +++ b/tests/Sweden/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Sweden/ChristmasEveTest.php b/tests/Sweden/ChristmasEveTest.php index ad7fa29a8..08e83d503 100644 --- a/tests/Sweden/ChristmasEveTest.php +++ b/tests/Sweden/ChristmasEveTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 24, self::TIMEZONE); } diff --git a/tests/Sweden/EpiphanyTest.php b/tests/Sweden/EpiphanyTest.php index 6652dbc41..8e86005a5 100644 --- a/tests/Sweden/EpiphanyTest.php +++ b/tests/Sweden/EpiphanyTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Sweden/InternationalWorkersDayTest.php b/tests/Sweden/InternationalWorkersDayTest.php index c621677cf..41b112f32 100644 --- a/tests/Sweden/InternationalWorkersDayTest.php +++ b/tests/Sweden/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Sweden/NewYearsDayTest.php b/tests/Sweden/NewYearsDayTest.php index 15119444b..4b0224b8b 100644 --- a/tests/Sweden/NewYearsDayTest.php +++ b/tests/Sweden/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Sweden/SecondChristmasDayTest.php b/tests/Sweden/SecondChristmasDayTest.php index 61a340e82..d48cc666b 100644 --- a/tests/Sweden/SecondChristmasDayTest.php +++ b/tests/Sweden/SecondChristmasDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Aargau/ChristmasDayTest.php b/tests/Switzerland/Aargau/ChristmasDayTest.php index e2a517de1..faddb9a36 100644 --- a/tests/Switzerland/Aargau/ChristmasDayTest.php +++ b/tests/Switzerland/Aargau/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Aargau/NewYearsDayTest.php b/tests/Switzerland/Aargau/NewYearsDayTest.php index 250c2e8a9..e400ef8a4 100644 --- a/tests/Switzerland/Aargau/NewYearsDayTest.php +++ b/tests/Switzerland/Aargau/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php index aa1f042b7..d1aca03e8 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php index 3a68899c2..23790fb04 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php index a86d5c419..61617a625 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php index 35b04682a..e184d5bf4 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php index c6e69e4ae..10ff4c42e 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php index a995e55a7..14f180a63 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php index 4e0700c0d..69882acc8 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php index 0a6b5092d..051e3f235 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php index 7eadfcce4..f2640e959 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php index cae3f1f23..35fb82c1e 100644 --- a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php +++ b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php index 6f041d9d3..ad25e5dc1 100644 --- a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php +++ b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php index 12eeb7110..b15fd5149 100644 --- a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php +++ b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index 6d1270373..7e5031368 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/BaselStadt/ChristmasDayTest.php b/tests/Switzerland/BaselStadt/ChristmasDayTest.php index 51303178f..f8408f363 100644 --- a/tests/Switzerland/BaselStadt/ChristmasDayTest.php +++ b/tests/Switzerland/BaselStadt/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselStadt/NewYearsDayTest.php b/tests/Switzerland/BaselStadt/NewYearsDayTest.php index d80a0158c..3986ed9ee 100644 --- a/tests/Switzerland/BaselStadt/NewYearsDayTest.php +++ b/tests/Switzerland/BaselStadt/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselStadt/StStephensDayTest.php b/tests/Switzerland/BaselStadt/StStephensDayTest.php index 08b60942c..97a62db39 100644 --- a/tests/Switzerland/BaselStadt/StStephensDayTest.php +++ b/tests/Switzerland/BaselStadt/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index 50e6e7402..337354e3c 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/Bern/ChristmasDayTest.php b/tests/Switzerland/Bern/ChristmasDayTest.php index c51a1e7a2..7da48da42 100644 --- a/tests/Switzerland/Bern/ChristmasDayTest.php +++ b/tests/Switzerland/Bern/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Bern/NewYearsDayTest.php b/tests/Switzerland/Bern/NewYearsDayTest.php index 4faaa0a34..580a81ac8 100644 --- a/tests/Switzerland/Bern/NewYearsDayTest.php +++ b/tests/Switzerland/Bern/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Bern/StStephensDayTest.php b/tests/Switzerland/Bern/StStephensDayTest.php index 8f6d15cd2..26365d5f6 100644 --- a/tests/Switzerland/Bern/StStephensDayTest.php +++ b/tests/Switzerland/Bern/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Fribourg/ChristmasDayTest.php b/tests/Switzerland/Fribourg/ChristmasDayTest.php index 2452c29d5..52a2c8f50 100644 --- a/tests/Switzerland/Fribourg/ChristmasDayTest.php +++ b/tests/Switzerland/Fribourg/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Fribourg/NewYearsDayTest.php b/tests/Switzerland/Fribourg/NewYearsDayTest.php index 43fffa48c..d6c7d1639 100644 --- a/tests/Switzerland/Fribourg/NewYearsDayTest.php +++ b/tests/Switzerland/Fribourg/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Geneva/ChristmasDayTest.php b/tests/Switzerland/Geneva/ChristmasDayTest.php index 8e797b86e..cd63ec58e 100644 --- a/tests/Switzerland/Geneva/ChristmasDayTest.php +++ b/tests/Switzerland/Geneva/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Geneva/NewYearsDayTest.php b/tests/Switzerland/Geneva/NewYearsDayTest.php index 4dc48f2f4..a19a9de2e 100644 --- a/tests/Switzerland/Geneva/NewYearsDayTest.php +++ b/tests/Switzerland/Geneva/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Glarus/AllSaintsDayTest.php b/tests/Switzerland/Glarus/AllSaintsDayTest.php index 253f124b0..d3520af6a 100644 --- a/tests/Switzerland/Glarus/AllSaintsDayTest.php +++ b/tests/Switzerland/Glarus/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Glarus/ChristmasDayTest.php b/tests/Switzerland/Glarus/ChristmasDayTest.php index b250cbea6..c06418d61 100644 --- a/tests/Switzerland/Glarus/ChristmasDayTest.php +++ b/tests/Switzerland/Glarus/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Glarus/NewYearsDayTest.php b/tests/Switzerland/Glarus/NewYearsDayTest.php index 0e94f9e4f..b0c61afb3 100644 --- a/tests/Switzerland/Glarus/NewYearsDayTest.php +++ b/tests/Switzerland/Glarus/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Glarus/StStephensDayTest.php b/tests/Switzerland/Glarus/StStephensDayTest.php index da412092f..7990339fa 100644 --- a/tests/Switzerland/Glarus/StStephensDayTest.php +++ b/tests/Switzerland/Glarus/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Grisons/ChristmasDayTest.php b/tests/Switzerland/Grisons/ChristmasDayTest.php index ad545b331..8b5ad57ad 100644 --- a/tests/Switzerland/Grisons/ChristmasDayTest.php +++ b/tests/Switzerland/Grisons/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Grisons/NewYearsDayTest.php b/tests/Switzerland/Grisons/NewYearsDayTest.php index ec4fb5acc..302ea9a1e 100644 --- a/tests/Switzerland/Grisons/NewYearsDayTest.php +++ b/tests/Switzerland/Grisons/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Grisons/StStephensDayTest.php b/tests/Switzerland/Grisons/StStephensDayTest.php index f91a1f703..fb43a7739 100644 --- a/tests/Switzerland/Grisons/StStephensDayTest.php +++ b/tests/Switzerland/Grisons/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Jura/AllSaintsDayTest.php b/tests/Switzerland/Jura/AllSaintsDayTest.php index 56bd092dd..c8372a5af 100644 --- a/tests/Switzerland/Jura/AllSaintsDayTest.php +++ b/tests/Switzerland/Jura/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Jura/AssumptionOfMaryTest.php b/tests/Switzerland/Jura/AssumptionOfMaryTest.php index 3ab063c96..4423063a6 100644 --- a/tests/Switzerland/Jura/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Jura/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Jura/ChristmasDayTest.php b/tests/Switzerland/Jura/ChristmasDayTest.php index d3dc25632..7e2c7290d 100644 --- a/tests/Switzerland/Jura/ChristmasDayTest.php +++ b/tests/Switzerland/Jura/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Jura/NewYearsDayTest.php b/tests/Switzerland/Jura/NewYearsDayTest.php index 8a38ff268..0c284e488 100644 --- a/tests/Switzerland/Jura/NewYearsDayTest.php +++ b/tests/Switzerland/Jura/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index d04eb8ea2..6e7f50843 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/Lucerne/AllSaintsDayTest.php b/tests/Switzerland/Lucerne/AllSaintsDayTest.php index 006c49525..dfec8f5d8 100644 --- a/tests/Switzerland/Lucerne/AllSaintsDayTest.php +++ b/tests/Switzerland/Lucerne/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php index d5931679d..4c3f45505 100644 --- a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Lucerne/ChristmasDayTest.php b/tests/Switzerland/Lucerne/ChristmasDayTest.php index d28d9e3b3..fd2af32c0 100644 --- a/tests/Switzerland/Lucerne/ChristmasDayTest.php +++ b/tests/Switzerland/Lucerne/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php index 673fe9e62..d711d9bc3 100644 --- a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Lucerne/NewYearsDayTest.php b/tests/Switzerland/Lucerne/NewYearsDayTest.php index f46056816..1a47ebbe4 100644 --- a/tests/Switzerland/Lucerne/NewYearsDayTest.php +++ b/tests/Switzerland/Lucerne/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Lucerne/StStephensDayTest.php b/tests/Switzerland/Lucerne/StStephensDayTest.php index 250cec510..9c85da552 100644 --- a/tests/Switzerland/Lucerne/StStephensDayTest.php +++ b/tests/Switzerland/Lucerne/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Neuchatel/ChristmasDayTest.php b/tests/Switzerland/Neuchatel/ChristmasDayTest.php index 88334d42f..c0461338e 100644 --- a/tests/Switzerland/Neuchatel/ChristmasDayTest.php +++ b/tests/Switzerland/Neuchatel/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Neuchatel/NewYearsDayTest.php b/tests/Switzerland/Neuchatel/NewYearsDayTest.php index 03467ac7a..de9c83c48 100644 --- a/tests/Switzerland/Neuchatel/NewYearsDayTest.php +++ b/tests/Switzerland/Neuchatel/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index f5b9e7182..518226e9d 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php index 802e637da..dab089fe7 100644 --- a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php index c71ff69e8..ed64efe74 100644 --- a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Nidwalden/ChristmasDayTest.php b/tests/Switzerland/Nidwalden/ChristmasDayTest.php index 98ed832e7..3c7a4b5ed 100644 --- a/tests/Switzerland/Nidwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Nidwalden/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php index 467d4df8e..d04b4b42e 100644 --- a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Nidwalden/NewYearsDayTest.php b/tests/Switzerland/Nidwalden/NewYearsDayTest.php index 70f2a7c3f..27cfc3441 100644 --- a/tests/Switzerland/Nidwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Nidwalden/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index 50397eb71..8506a1efd 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -46,7 +46,7 @@ public function testStJosephDay($year, $expected) * * @return array list of test dates for St. Joseph's Day */ - public function StJosephDayDataProvider() + public function StJosephDayDataProvider(): array { return $this->generateRandomDates(3, 19, self::TIMEZONE); } diff --git a/tests/Switzerland/Nidwalden/StStephensDayTest.php b/tests/Switzerland/Nidwalden/StStephensDayTest.php index e1ec0e5b4..2e4880387 100644 --- a/tests/Switzerland/Nidwalden/StStephensDayTest.php +++ b/tests/Switzerland/Nidwalden/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Obwalden/AllSaintsDayTest.php b/tests/Switzerland/Obwalden/AllSaintsDayTest.php index f12e29724..18beef436 100644 --- a/tests/Switzerland/Obwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Obwalden/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php index b9e0cf112..86b1d9973 100644 --- a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Obwalden/ChristmasDayTest.php b/tests/Switzerland/Obwalden/ChristmasDayTest.php index dded78c49..9f415fd1b 100644 --- a/tests/Switzerland/Obwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Obwalden/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php index 40e574f11..83b471604 100644 --- a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Obwalden/NewYearsDayTest.php b/tests/Switzerland/Obwalden/NewYearsDayTest.php index c7906d16b..49ae66a0a 100644 --- a/tests/Switzerland/Obwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Obwalden/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Obwalden/StStephensDayTest.php b/tests/Switzerland/Obwalden/StStephensDayTest.php index b7e549d6e..93dbe8546 100644 --- a/tests/Switzerland/Obwalden/StStephensDayTest.php +++ b/tests/Switzerland/Obwalden/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php index 037deea28..42a63acd3 100644 --- a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php +++ b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php index 54b8802e3..5a92dbe0d 100644 --- a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php +++ b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Schaffhausen/StStephensDayTest.php b/tests/Switzerland/Schaffhausen/StStephensDayTest.php index 01e478850..2b7dd0daa 100644 --- a/tests/Switzerland/Schaffhausen/StStephensDayTest.php +++ b/tests/Switzerland/Schaffhausen/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index aacc11c32..a5d8d2c78 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/Schwyz/AllSaintsDayTest.php b/tests/Switzerland/Schwyz/AllSaintsDayTest.php index 600a80cc3..47ae20469 100644 --- a/tests/Switzerland/Schwyz/AllSaintsDayTest.php +++ b/tests/Switzerland/Schwyz/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php index e8c5df022..b80467101 100644 --- a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/ChristmasDayTest.php b/tests/Switzerland/Schwyz/ChristmasDayTest.php index a8f11e4e2..389efb920 100644 --- a/tests/Switzerland/Schwyz/ChristmasDayTest.php +++ b/tests/Switzerland/Schwyz/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/EpiphanyTest.php b/tests/Switzerland/Schwyz/EpiphanyTest.php index 068fc4c88..959afd452 100644 --- a/tests/Switzerland/Schwyz/EpiphanyTest.php +++ b/tests/Switzerland/Schwyz/EpiphanyTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php index 16d18ea64..69aef7b92 100644 --- a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/NewYearsDayTest.php b/tests/Switzerland/Schwyz/NewYearsDayTest.php index 776d04374..3ee9364f6 100644 --- a/tests/Switzerland/Schwyz/NewYearsDayTest.php +++ b/tests/Switzerland/Schwyz/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index 478cbebce..06d4c21c0 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -46,7 +46,7 @@ public function testStJosephDay($year, $expected) * * @return array list of test dates for St. Joseph's Day */ - public function StJosephDayDataProvider() + public function StJosephDayDataProvider(): array { return $this->generateRandomDates(3, 19, self::TIMEZONE); } diff --git a/tests/Switzerland/Schwyz/StStephensDayTest.php b/tests/Switzerland/Schwyz/StStephensDayTest.php index 3f21a3683..235edc49e 100644 --- a/tests/Switzerland/Schwyz/StStephensDayTest.php +++ b/tests/Switzerland/Schwyz/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Solothurn/ChristmasDayTest.php b/tests/Switzerland/Solothurn/ChristmasDayTest.php index b4b0b4b31..5a68d5d6a 100644 --- a/tests/Switzerland/Solothurn/ChristmasDayTest.php +++ b/tests/Switzerland/Solothurn/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Solothurn/NewYearsDayTest.php b/tests/Switzerland/Solothurn/NewYearsDayTest.php index 35d9cf2d3..e17f76b1e 100644 --- a/tests/Switzerland/Solothurn/NewYearsDayTest.php +++ b/tests/Switzerland/Solothurn/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/StGallen/AllSaintsDayTest.php b/tests/Switzerland/StGallen/AllSaintsDayTest.php index bdb0a4fda..b337a0e31 100644 --- a/tests/Switzerland/StGallen/AllSaintsDayTest.php +++ b/tests/Switzerland/StGallen/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/StGallen/ChristmasDayTest.php b/tests/Switzerland/StGallen/ChristmasDayTest.php index db34b531e..79291f259 100644 --- a/tests/Switzerland/StGallen/ChristmasDayTest.php +++ b/tests/Switzerland/StGallen/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/StGallen/NewYearsDayTest.php b/tests/Switzerland/StGallen/NewYearsDayTest.php index fbbe17a92..abb79f156 100644 --- a/tests/Switzerland/StGallen/NewYearsDayTest.php +++ b/tests/Switzerland/StGallen/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/StGallen/StStephensDayTest.php b/tests/Switzerland/StGallen/StStephensDayTest.php index 55714a0f6..09d58f8d9 100644 --- a/tests/Switzerland/StGallen/StStephensDayTest.php +++ b/tests/Switzerland/StGallen/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Thurgau/ChristmasDayTest.php b/tests/Switzerland/Thurgau/ChristmasDayTest.php index da21bc0d6..d06ce5f21 100644 --- a/tests/Switzerland/Thurgau/ChristmasDayTest.php +++ b/tests/Switzerland/Thurgau/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Thurgau/NewYearsDayTest.php b/tests/Switzerland/Thurgau/NewYearsDayTest.php index 4694db491..38fbd1ef7 100644 --- a/tests/Switzerland/Thurgau/NewYearsDayTest.php +++ b/tests/Switzerland/Thurgau/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Thurgau/StStephensDayTest.php b/tests/Switzerland/Thurgau/StStephensDayTest.php index d4dd82882..abe9080a2 100644 --- a/tests/Switzerland/Thurgau/StStephensDayTest.php +++ b/tests/Switzerland/Thurgau/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index 8ed37a03b..061a0e89c 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/Ticino/AllSaintsDayTest.php b/tests/Switzerland/Ticino/AllSaintsDayTest.php index e1f9ec35e..d4b958335 100644 --- a/tests/Switzerland/Ticino/AllSaintsDayTest.php +++ b/tests/Switzerland/Ticino/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php index 75fd0959c..3f998d9fc 100644 --- a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/ChristmasDayTest.php b/tests/Switzerland/Ticino/ChristmasDayTest.php index 61890627e..20cb6c4cd 100644 --- a/tests/Switzerland/Ticino/ChristmasDayTest.php +++ b/tests/Switzerland/Ticino/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/EpiphanyTest.php b/tests/Switzerland/Ticino/EpiphanyTest.php index b40b4525e..96dc10cf0 100644 --- a/tests/Switzerland/Ticino/EpiphanyTest.php +++ b/tests/Switzerland/Ticino/EpiphanyTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php index 2f1c98c5e..078b430c8 100644 --- a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/NewYearsDayTest.php b/tests/Switzerland/Ticino/NewYearsDayTest.php index 4878fcf4a..0db7c0cbd 100644 --- a/tests/Switzerland/Ticino/NewYearsDayTest.php +++ b/tests/Switzerland/Ticino/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index 658b4dc45..87f9a3613 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -46,7 +46,7 @@ public function testStJosephDay($year, $expected) * * @return array list of test dates for St. Joseph's Day */ - public function StJosephDayDataProvider() + public function StJosephDayDataProvider(): array { return $this->generateRandomDates(3, 19, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index b7fe35b6b..6032fa446 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -45,7 +45,7 @@ public function testStPeterPaul($year, $expected) * * @return array list of test dates for Feast of Saints Peter and Paul */ - public function StPeterPaulDataProvider() + public function StPeterPaulDataProvider(): array { return $this->generateRandomDates(6, 29, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/StStephensDayTest.php b/tests/Switzerland/Ticino/StStephensDayTest.php index b5b6ffb85..ad49f2b21 100644 --- a/tests/Switzerland/Ticino/StStephensDayTest.php +++ b/tests/Switzerland/Ticino/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index 2b7a830db..a44c37879 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Switzerland/Uri/AllSaintsDayTest.php b/tests/Switzerland/Uri/AllSaintsDayTest.php index 6e5b5ff49..53c092af3 100644 --- a/tests/Switzerland/Uri/AllSaintsDayTest.php +++ b/tests/Switzerland/Uri/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/AssumptionOfMaryTest.php b/tests/Switzerland/Uri/AssumptionOfMaryTest.php index 0a01e4105..e77c5a064 100644 --- a/tests/Switzerland/Uri/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Uri/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/ChristmasDayTest.php b/tests/Switzerland/Uri/ChristmasDayTest.php index 7b759f437..7b4e10eae 100644 --- a/tests/Switzerland/Uri/ChristmasDayTest.php +++ b/tests/Switzerland/Uri/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/EpiphanyTest.php b/tests/Switzerland/Uri/EpiphanyTest.php index c19a76a2b..de92248ec 100644 --- a/tests/Switzerland/Uri/EpiphanyTest.php +++ b/tests/Switzerland/Uri/EpiphanyTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 6, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/ImmaculateConceptionTest.php b/tests/Switzerland/Uri/ImmaculateConceptionTest.php index 9a6e819a6..2e64b8f57 100644 --- a/tests/Switzerland/Uri/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Uri/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/NewYearsDayTest.php b/tests/Switzerland/Uri/NewYearsDayTest.php index e0a08f79d..6a068e9d9 100644 --- a/tests/Switzerland/Uri/NewYearsDayTest.php +++ b/tests/Switzerland/Uri/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index 7eff88caa..3563e7915 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -46,7 +46,7 @@ public function testStJosephDay($year, $expected) * * @return array list of test dates for St. Joseph's Day */ - public function StJosephDayDataProvider() + public function StJosephDayDataProvider(): array { return $this->generateRandomDates(3, 19, self::TIMEZONE); } diff --git a/tests/Switzerland/Uri/StStephensDayTest.php b/tests/Switzerland/Uri/StStephensDayTest.php index fb1439e55..ee92c2397 100644 --- a/tests/Switzerland/Uri/StStephensDayTest.php +++ b/tests/Switzerland/Uri/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Valais/AllSaintsDayTest.php b/tests/Switzerland/Valais/AllSaintsDayTest.php index 4e9ea129f..d41d601bf 100644 --- a/tests/Switzerland/Valais/AllSaintsDayTest.php +++ b/tests/Switzerland/Valais/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Valais/AssumptionOfMaryTest.php b/tests/Switzerland/Valais/AssumptionOfMaryTest.php index da45e52d0..fa922efd8 100644 --- a/tests/Switzerland/Valais/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Valais/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Valais/ChristmasDayTest.php b/tests/Switzerland/Valais/ChristmasDayTest.php index 01aa634ae..c18b60c2a 100644 --- a/tests/Switzerland/Valais/ChristmasDayTest.php +++ b/tests/Switzerland/Valais/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Valais/ImmaculateConceptionTest.php b/tests/Switzerland/Valais/ImmaculateConceptionTest.php index 13f31f38a..2e5bd0b7a 100644 --- a/tests/Switzerland/Valais/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Valais/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Valais/NewYearsDayTest.php b/tests/Switzerland/Valais/NewYearsDayTest.php index 87ecb6832..e93cd7c34 100644 --- a/tests/Switzerland/Valais/NewYearsDayTest.php +++ b/tests/Switzerland/Valais/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index c7e584a56..6a459d7a7 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -46,7 +46,7 @@ public function testStJosephDay($year, $expected) * * @return array list of test dates for St. Joseph's Day */ - public function StJosephDayDataProvider() + public function StJosephDayDataProvider(): array { return $this->generateRandomDates(3, 19, self::TIMEZONE); } diff --git a/tests/Switzerland/Vaud/ChristmasDayTest.php b/tests/Switzerland/Vaud/ChristmasDayTest.php index 56cb83d6b..838f0535d 100644 --- a/tests/Switzerland/Vaud/ChristmasDayTest.php +++ b/tests/Switzerland/Vaud/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Vaud/NewYearsDayTest.php b/tests/Switzerland/Vaud/NewYearsDayTest.php index 236080223..695a6f8a8 100644 --- a/tests/Switzerland/Vaud/NewYearsDayTest.php +++ b/tests/Switzerland/Vaud/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Zug/AllSaintsDayTest.php b/tests/Switzerland/Zug/AllSaintsDayTest.php index 9ad5e6213..071a4bfd0 100644 --- a/tests/Switzerland/Zug/AllSaintsDayTest.php +++ b/tests/Switzerland/Zug/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for All Saints' Day */ - public function AllSaintsDayDataProvider() + public function AllSaintsDayDataProvider(): array { return $this->generateRandomDates(11, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Zug/AssumptionOfMaryTest.php b/tests/Switzerland/Zug/AssumptionOfMaryTest.php index 2d29fc8a5..7cfb7a410 100644 --- a/tests/Switzerland/Zug/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Zug/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for the day of the Assumption of Mary */ - public function AssumptionOfMaryDataProvider() + public function AssumptionOfMaryDataProvider(): array { return $this->generateRandomDates(8, 15, self::TIMEZONE); } diff --git a/tests/Switzerland/Zug/ChristmasDayTest.php b/tests/Switzerland/Zug/ChristmasDayTest.php index 2550d29cb..1069d7fbd 100644 --- a/tests/Switzerland/Zug/ChristmasDayTest.php +++ b/tests/Switzerland/Zug/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Zug/ImmaculateConceptionTest.php b/tests/Switzerland/Zug/ImmaculateConceptionTest.php index b637d97a6..a3bbc99f8 100644 --- a/tests/Switzerland/Zug/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Zug/ImmaculateConceptionTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the day of the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 8, self::TIMEZONE); } diff --git a/tests/Switzerland/Zug/NewYearsDayTest.php b/tests/Switzerland/Zug/NewYearsDayTest.php index 1d0cc23ee..eaa9d2697 100644 --- a/tests/Switzerland/Zug/NewYearsDayTest.php +++ b/tests/Switzerland/Zug/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Zug/StStephensDayTest.php b/tests/Switzerland/Zug/StStephensDayTest.php index dc4c58f16..37d637ff4 100644 --- a/tests/Switzerland/Zug/StStephensDayTest.php +++ b/tests/Switzerland/Zug/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Zurich/ChristmasDayTest.php b/tests/Switzerland/Zurich/ChristmasDayTest.php index 6ff764edf..c94c8ec20 100644 --- a/tests/Switzerland/Zurich/ChristmasDayTest.php +++ b/tests/Switzerland/Zurich/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for Christmas Day */ - public function ChristmasDayDataProvider() + public function ChristmasDayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } diff --git a/tests/Switzerland/Zurich/NewYearsDayTest.php b/tests/Switzerland/Zurich/NewYearsDayTest.php index 0f205d3f9..28382b001 100644 --- a/tests/Switzerland/Zurich/NewYearsDayTest.php +++ b/tests/Switzerland/Zurich/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for New Years Day */ - public function NewYearsDayDataProvider() + public function NewYearsDayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Switzerland/Zurich/StStephensDayTest.php b/tests/Switzerland/Zurich/StStephensDayTest.php index abd574205..9d3b7664f 100644 --- a/tests/Switzerland/Zurich/StStephensDayTest.php +++ b/tests/Switzerland/Zurich/StStephensDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 26, self::TIMEZONE); } diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index 4d995c7cc..58156a3a7 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/Ukraine/ChristmasDayTest.php b/tests/Ukraine/ChristmasDayTest.php index ec050151c..07ce3f12a 100644 --- a/tests/Ukraine/ChristmasDayTest.php +++ b/tests/Ukraine/ChristmasDayTest.php @@ -44,7 +44,7 @@ public function testChristmasDay($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 7, self::TIMEZONE); } diff --git a/tests/Ukraine/InternationalWomensDayTest.php b/tests/Ukraine/InternationalWomensDayTest.php index 2aedc6fd1..5a70dc1d0 100644 --- a/tests/Ukraine/InternationalWomensDayTest.php +++ b/tests/Ukraine/InternationalWomensDayTest.php @@ -42,7 +42,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(3, 8, self::TIMEZONE); } diff --git a/tests/Ukraine/InternationalWorkersDayTest.php b/tests/Ukraine/InternationalWorkersDayTest.php index 1e4d29a7c..e84e6d1a9 100644 --- a/tests/Ukraine/InternationalWorkersDayTest.php +++ b/tests/Ukraine/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function InternationalWorkersDayDataProvider() + public function InternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Ukraine/NewYearsDayTest.php b/tests/Ukraine/NewYearsDayTest.php index 5c0ace0ce..128f4936f 100644 --- a/tests/Ukraine/NewYearsDayTest.php +++ b/tests/Ukraine/NewYearsDayTest.php @@ -44,7 +44,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } diff --git a/tests/Ukraine/SecondInternationalWorkersDayTest.php b/tests/Ukraine/SecondInternationalWorkersDayTest.php index ae98ef952..da6e5afbb 100644 --- a/tests/Ukraine/SecondInternationalWorkersDayTest.php +++ b/tests/Ukraine/SecondInternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function testHolidayType() * * @return array list of test dates for International Workers' Day */ - public function SecondInternationalWorkersDayDataProvider() + public function SecondInternationalWorkersDayDataProvider(): array { return $this->generateRandomDates(5, 2, self::TIMEZONE); } diff --git a/tests/Ukraine/VictoryDayTest.php b/tests/Ukraine/VictoryDayTest.php index 5a9d596f4..c727940ff 100644 --- a/tests/Ukraine/VictoryDayTest.php +++ b/tests/Ukraine/VictoryDayTest.php @@ -42,7 +42,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 9, self::TIMEZONE); } diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index 8ca8e6632..749f032ad 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index 27518aeeb..998241108 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index 9ab9d3e8d..3619e7366 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = []; diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 7fa72ef13..8ee725e5f 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -85,7 +85,7 @@ public function testHolidayIsObservedTypeBeforeChange() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDatesWithHolidayMovedToMonday( 01, diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index a76404316..2c236aead 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -226,7 +226,7 @@ public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek * * @return array list of random test dates used for assertion of holidays. */ - public function generateRandomDates($month, $day, $timezone = 'UTC', $iterations = 10, $range = 1000) + public function generateRandomDates($month, $day, $timezone = 'UTC', $iterations = 10, $range = 1000): array { $data = []; for ($y = 1; $y <= $iterations; $y++) { @@ -246,7 +246,7 @@ public function generateRandomDates($month, $day, $timezone = 'UTC', $iterations * * @return array list of random easter test dates used for assertion of holidays. */ - public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $range = 1000) + public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $range = 1000): array { $data = []; @@ -271,7 +271,7 @@ public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $ * * @throws \Exception */ - public function generateRandomEasterMondayDates($timezone = 'UTC', $iterations = 10, $range = 1000) + public function generateRandomEasterMondayDates($timezone = 'UTC', $iterations = 10, $range = 1000): array { return $this->generateRandomModifiedEasterDates(function (DateTime $date) { $date->add(new DateInterval('P1D')); @@ -289,7 +289,7 @@ public function generateRandomEasterMondayDates($timezone = 'UTC', $iterations = * * @throws \Exception */ - public function generateRandomGoodFridayDates($timezone = 'UTC', $iterations = 10, $range = 1000) + public function generateRandomGoodFridayDates($timezone = 'UTC', $iterations = 10, $range = 1000): array { return $this->generateRandomModifiedEasterDates(function (DateTime $date) { $date->sub(new DateInterval('P2D')); @@ -307,7 +307,7 @@ public function generateRandomGoodFridayDates($timezone = 'UTC', $iterations = 1 * * @throws \Exception */ - public function generateRandomPentecostDates($timezone = 'UTC', $iterations = 10, $range = 1000) + public function generateRandomPentecostDates($timezone = 'UTC', $iterations = 10, $range = 1000): array { return $this->generateRandomModifiedEasterDates(function (DateTime $date) { $date->add(new DateInterval('P49D')); @@ -324,7 +324,7 @@ public function generateRandomPentecostDates($timezone = 'UTC', $iterations = 10 * * @return array list of random modified Easter day test dates for assertion of holidays. */ - public function generateRandomModifiedEasterDates(callable $cb, $timezone = 'UTC', $iterations = 10, $range = 1000) + public function generateRandomModifiedEasterDates(callable $cb, $timezone = 'UTC', $iterations = 10, $range = 1000): array { $data = []; @@ -358,7 +358,7 @@ public function generateRandomDatesWithHolidayMovedToMonday( $timezone = 'UTC', $iterations = 10, $range = 1000 - ) { + ): array { return $this->generateRandomDatesWithModifier( $month, $day, @@ -392,7 +392,7 @@ public function generateRandomDatesWithModifier( $timezone = 'UTC', $iterations, $range - ) { + ): array { $data = []; for ($i = 1; $i <= $iterations; ++$i) { @@ -415,7 +415,7 @@ public function generateRandomDatesWithModifier( * * @return bool true if $dateTime is a weekend, false otherwise */ - public function isWeekend(\DateTimeInterface $dateTime, array $weekendDays = [0, 6]) + public function isWeekend(\DateTimeInterface $dateTime, array $weekendDays = [0, 6]): bool { return in_array((int) $dateTime->format('w'), $weekendDays, true); } @@ -428,7 +428,7 @@ public function isWeekend(\DateTimeInterface $dateTime, array $weekendDays = [0, * * @return int a year number */ - public function generateRandomYear($lowerLimit = 1000, $upperLimit = 9999) + public function generateRandomYear($lowerLimit = 1000, $upperLimit = 9999): int { return (int)Faker::create()->numberBetween($lowerLimit, $upperLimit); } @@ -456,7 +456,7 @@ public function generateRandomYear($lowerLimit = 1000, $upperLimit = 9999) * * @return \DateTime date of Easter */ - protected function calculateEaster($year, $timezone) + protected function calculateEaster($year, $timezone): DateTime { if (extension_loaded('calendar')) { $easter_days = \easter_days($year); From 46a3cc3973d655181aaf4f4f1d31c1070c794cc7 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 16:09:47 +0900 Subject: [PATCH 006/132] Corrected incorrect case. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/ChristianHolidays.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index 359bcb453..30ce06507 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -649,12 +649,12 @@ public function annunciation($year, $timezone, $locale, $type = Holiday::TYPE_OF * @param int $year the year for which Easter needs to be calculated * @param string $timezone the timezone in which Easter is celebrated * - * @return \Datetime date of Orthodox Easter + * @return \DateTime date of Orthodox Easter * * @link http://php.net/manual/en/function.easter-date.php#83794 * @link https://en.wikipedia.org/wiki/Computus#Adaptation_for_Western_Easter_of_Meeus.27_Julian_algorithm */ - public function calculateOrthodoxEaster($year, $timezone): \Datetime + public function calculateOrthodoxEaster($year, $timezone): \DateTime { $a = $year % 4; $b = $year % 7; From 97c9f3cedc4036aabfbe6f9314b84b6740ff955d Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 16:10:39 +0900 Subject: [PATCH 007/132] Added return type hints. Signed-off-by: Sacha Telgenhof --- tests/Australia/LabourDayTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Australia/LabourDayTest.php b/tests/Australia/LabourDayTest.php index df355db0d..eb88afdb0 100644 --- a/tests/Australia/LabourDayTest.php +++ b/tests/Australia/LabourDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, $expected) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return []; } From 253a88633b6db068ee03682cd13a6924c2b63e9c Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 16:13:26 +0900 Subject: [PATCH 008/132] Variable $holidays was not initialized. Signed-off-by: Sacha Telgenhof --- tests/Portugal/PortugalTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index 99392669e..941d66b60 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -74,6 +74,8 @@ public function testBankHolidays() */ public function testOtherHolidays() { + $holidays = []; + if ($this->year <= 2013 || $this->year >= 2016) { $holidays[] = 'corpusChristi'; } From 0eb28696b55ec3c01657dda2675c4737348742aa Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 6 Jan 2018 16:17:01 +0900 Subject: [PATCH 009/132] Removed unnecessary type casting. Signed-off-by: Sacha Telgenhof --- tests/YasumiBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 2c236aead..a47bb7bf3 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -461,7 +461,7 @@ protected function calculateEaster($year, $timezone): DateTime if (extension_loaded('calendar')) { $easter_days = \easter_days($year); } else { - $golden = (int)(($year % 19) + 1); // The Golden Number + $golden = (($year % 19) + 1); // The Golden Number // The Julian calendar applies to the original method from 326AD. The Gregorian calendar was first // introduced in October 1582 in Italy. Easter algorithms using the Gregorian calendar apply to years @@ -502,7 +502,7 @@ protected function calculateEaster($year, $timezone): DateTime $tmp += 7; } - $easter_days = (int)($pfm + $tmp + 1); // Easter as the number of days after 21st March + $easter_days = ($pfm + $tmp + 1); // Easter as the number of days after 21st March } $easter = new DateTime("$year-3-21", new DateTimeZone($timezone)); From 0919aef12321fcd5c1828d890facc62b4ba0fbd6 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 11:01:47 +0900 Subject: [PATCH 010/132] Removed unused import statement. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Germany/Hesse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/Germany/Hesse.php b/src/Yasumi/Provider/Germany/Hesse.php index 81728fd8f..a0e7195f4 100755 --- a/src/Yasumi/Provider/Germany/Hesse.php +++ b/src/Yasumi/Provider/Germany/Hesse.php @@ -12,7 +12,7 @@ namespace Yasumi\Provider\Germany; -use Yasumi\Holiday; + use Yasumi\Provider\Germany; /** From 8424092e62e1d68d980a2fdd5683744856d35fff Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 11:02:44 +0900 Subject: [PATCH 011/132] Added strict parameter to make comparison/check more type strict. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 86d4792bb..30c99fb21 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -163,7 +163,7 @@ public function isHoliday($date): bool } // If given date is a DateTime object - if ($date instanceof DateTime && in_array($date->format('Y-m-d'), array_values($this->getHolidayDates()))) { + if ($date instanceof DateTime && in_array($date->format('Y-m-d'), array_values($this->getHolidayDates()), true)) { return true; } From d145f6a0031f0fd41b94679ae583fead4255cc57 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 11:15:47 +0900 Subject: [PATCH 012/132] Formatting fixes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Germany/Hesse.php | 1 - tests/CzechRepublic/CzechRepublicTest.php | 2 +- tests/Ireland/ChristmasDayTest.php | 2 +- tests/Ireland/NewYearsDayTest.php | 2 +- tests/Ireland/StPatricksDayTest.php | 2 +- tests/Ireland/StStephensDayTest.php | 2 +- tests/Japan/PublicBridgeDayTest.php | 9 +- ...oclamationOfTheRepublicOfLatviaDayTest.php | 2 +- .../RestorationOfIndependenceDayTest.php | 2 +- tests/NewZealand/AnzacDayTest.php | 19 +- tests/NewZealand/BoxingDayTest.php | 2 +- tests/NewZealand/ChristmasDayTest.php | 2 +- tests/NewZealand/WaitangiDayTest.php | 19 +- tests/Portugal/PortugalTest.php | 2 +- tests/Romania/RomaniaTest.php | 1 + tests/SouthAfrica/ChristmasDayTest.php | 2 +- tests/SouthAfrica/FreedomDayTest.php | 2 +- tests/SouthAfrica/HeritageDayTest.php | 2 +- tests/SouthAfrica/HumanRightsDayTest.php | 2 +- tests/SouthAfrica/NationalWomensDayTest.php | 2 +- tests/SouthAfrica/NewYearsDayTest.php | 2 +- tests/SouthAfrica/ReconciliationDayTest.php | 2 +- tests/SouthAfrica/SecondChristmasDayTest.php | 2 +- tests/SouthAfrica/WorkersDayTest.php | 2 +- tests/SouthAfrica/YouthDayTest.php | 2 +- .../BaselLandschaft/WorkersDayTest.php | 7 +- .../Switzerland/BaselStadt/WorkersDayTest.php | 7 +- tests/Switzerland/Bern/BerchtoldsTagTest.php | 2 +- .../Switzerland/Geneva/JeuneGenevoisTest.php | 6 +- .../Geneva/RestaurationGenevoiseTest.php | 2 +- .../Switzerland/Glarus/BerchtoldsTagTest.php | 2 +- .../Switzerland/Glarus/NafelserFahrtTest.php | 9 +- tests/Switzerland/Jura/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Jura/WorkersDayTest.php | 7 +- .../Switzerland/Lucerne/BerchtoldsTagTest.php | 2 +- .../Neuchatel/BerchtoldsTagTest.php | 2 +- .../Neuchatel/BettagsMontagTest.php | 2 +- .../Switzerland/Neuchatel/WorkersDayTest.php | 7 +- .../Switzerland/Nidwalden/StJosephDayTest.php | 2 +- .../Obwalden/BerchtoldsTagTest.php | 2 +- .../Obwalden/BruderKlausenFestTest.php | 4 +- .../Schaffhausen/BerchtoldsTagTest.php | 2 +- .../Schaffhausen/WorkersDayTest.php | 7 +- tests/Switzerland/Schwyz/StJosephDayTest.php | 2 +- .../Solothurn/BerchtoldsTagTest.php | 2 +- .../Switzerland/Thurgau/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Thurgau/WorkersDayTest.php | 7 +- tests/Switzerland/Ticino/StJosephDayTest.php | 2 +- tests/Switzerland/Ticino/StPeterPaulTest.php | 3 +- tests/Switzerland/Ticino/WorkersDayTest.php | 7 +- tests/Switzerland/Uri/StJosephDayTest.php | 2 +- tests/Switzerland/Valais/StJosephDayTest.php | 2 +- tests/Switzerland/Vaud/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Vaud/BettagsMontagTest.php | 2 +- tests/Switzerland/Zug/BerchtoldsTagTest.php | 2 +- .../Switzerland/Zurich/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Zurich/WorkersDayTest.php | 7 +- tests/UnitedKingdom/BoxingDayTest.php | 2 +- tests/UnitedKingdom/ChristmasDayTest.php | 2 +- tests/UnitedKingdom/NewYearsDayTest.php | 8 +- tests/YasumiBase.php | 243 +++++++++--------- 61 files changed, 201 insertions(+), 261 deletions(-) diff --git a/src/Yasumi/Provider/Germany/Hesse.php b/src/Yasumi/Provider/Germany/Hesse.php index a0e7195f4..ba6a405b3 100755 --- a/src/Yasumi/Provider/Germany/Hesse.php +++ b/src/Yasumi/Provider/Germany/Hesse.php @@ -12,7 +12,6 @@ namespace Yasumi\Provider\Germany; - use Yasumi\Provider\Germany; /** diff --git a/tests/CzechRepublic/CzechRepublicTest.php b/tests/CzechRepublic/CzechRepublicTest.php index 1b998f257..75aa4cb15 100644 --- a/tests/CzechRepublic/CzechRepublicTest.php +++ b/tests/CzechRepublic/CzechRepublicTest.php @@ -54,7 +54,7 @@ public function testOfficialHolidays() */ public function testObservedHolidays() { - $this->assertDefinedHolidays(['christmasEve', ], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); + $this->assertDefinedHolidays(['christmasEve',], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } /** diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index 42efb80c3..60bb796e9 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -40,7 +40,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->modify('next tuesday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index 9f412e2c5..688791f7d 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -46,7 +46,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->modify('next monday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index 7740246b5..1e5ab7d1c 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->modify('next monday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index 6902e21d4..6028a0121 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -40,7 +40,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->modify('next monday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Japan/PublicBridgeDayTest.php b/tests/Japan/PublicBridgeDayTest.php index 0264ac4d6..d042762b5 100644 --- a/tests/Japan/PublicBridgeDayTest.php +++ b/tests/Japan/PublicBridgeDayTest.php @@ -22,15 +22,14 @@ */ class PublicBridgeDayTest extends JapanBaseTestCase implements YasumiTestCaseInterface { - /** - * @var number representing the calendar year to be tested against - */ - private $year; - /** * The name of the holiday */ const HOLIDAY = 'bridgeDay'; + /** + * @var number representing the calendar year to be tested against + */ + private $year; /** * Tests public bridge days. diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index c66006a69..0ffd7c745 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -84,7 +84,7 @@ public function testTranslation() $this->generateRandomYear(Latvia::PROCLAMATION_OF_INDEPENDENCE_YEAR), [ self::LOCALE => 'Latvijas Republikas proklamēšanas diena', - 'en_US' => 'Proclamation Day of the Republic of Latvia' + 'en_US' => 'Proclamation Day of the Republic of Latvia' ] ); } diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index 5ab43b1dd..629173a40 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -84,7 +84,7 @@ public function testTranslation() $this->generateRandomYear(Latvia::RESTORATION_OF_INDEPENDENCE_YEAR), [ self::LOCALE => 'Latvijas Republikas Neatkarības atjaunošanas diena', - 'en_US' => 'Restoration of Independence day' + 'en_US' => 'Restoration of Independence day' ] ); } diff --git a/tests/NewZealand/AnzacDayTest.php b/tests/NewZealand/AnzacDayTest.php index 1ae9be2a3..d5726cd62 100644 --- a/tests/NewZealand/AnzacDayTest.php +++ b/tests/NewZealand/AnzacDayTest.php @@ -65,19 +65,12 @@ public function testNotHoliday() */ public function HolidayDataProvider(): array { - return $this->generateRandomDatesWithModifier( - 4, - 25, - function ($year, \DateTime $date) { - // in 2015 some policy was introduced to make sure this holiday was celebrated during the working week. - if ($year >= 2015 && $this->isWeekend($date)) { - $date->modify('next monday'); - } - }, - self::TIMEZONE, - 100, - self::ESTABLISHMENT_YEAR - ); + return $this->generateRandomDatesWithModifier(4, 25, function ($year, \DateTime $date) { + // in 2015 some policy was introduced to make sure this holiday was celebrated during the working week. + if ($year >= 2015 && $this->isWeekend($date)) { + $date->modify('next monday'); + } + }, self::TIMEZONE, 100, self::ESTABLISHMENT_YEAR); } /** diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index 9b170e2a9..24988801a 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -59,7 +59,7 @@ public function HolidayDataProvider(): array $year = $this->generateRandomYear(); $date = new DateTime("$year-12-26", new DateTimeZone(self::TIMEZONE)); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); } diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index f0675b39d..ba1ceb519 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -59,7 +59,7 @@ public function HolidayDataProvider(): array $year = $this->generateRandomYear(); $date = new DateTime("$year-12-25", new DateTimeZone(self::TIMEZONE)); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); } diff --git a/tests/NewZealand/WaitangiDayTest.php b/tests/NewZealand/WaitangiDayTest.php index 132d1b04d..35427678d 100644 --- a/tests/NewZealand/WaitangiDayTest.php +++ b/tests/NewZealand/WaitangiDayTest.php @@ -91,18 +91,11 @@ public function testHolidayType() */ public function HolidayDataProvider(): array { - return $this->generateRandomDatesWithModifier( - 2, - 06, - function ($year, \DateTime $date) { - // in 2015 some policy was introduced to make sure this holiday was celebrated during the working week. - if ($year >= 2015 && $this->isWeekend($date)) { - $date->modify('next monday'); - } - }, - self::TIMEZONE, - 100, - self::ESTABLISHMENT_YEAR - ); + return $this->generateRandomDatesWithModifier(2, 06, function ($year, \DateTime $date) { + // in 2015 some policy was introduced to make sure this holiday was celebrated during the working week. + if ($year >= 2015 && $this->isWeekend($date)) { + $date->modify('next monday'); + } + }, self::TIMEZONE, 100, self::ESTABLISHMENT_YEAR); } } diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index 941d66b60..845677d8e 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -79,7 +79,7 @@ public function testOtherHolidays() if ($this->year <= 2013 || $this->year >= 2016) { $holidays[] = 'corpusChristi'; } - + $this->assertDefinedHolidays($holidays, self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Romania/RomaniaTest.php b/tests/Romania/RomaniaTest.php index b4779ee4a..7ea8aa345 100755 --- a/tests/Romania/RomaniaTest.php +++ b/tests/Romania/RomaniaTest.php @@ -10,6 +10,7 @@ * * @author Sacha Telgenhof */ + namespace Yasumi\tests\Romania; use Yasumi\Holiday; diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index 3be708b8e..c5943b54f 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index c3b0179ff..b7aaace77 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index 343cdf22a..e2bf3fac2 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index ef1c089db..e9c6625a5 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index 845b6e922..8174cdb60 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index c7cb70039..d6125b9f4 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index af19da79d..f57b70d46 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index 206368407..4708fa3dc 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index f69b5c087..db9660c10 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index 760542689..0adb8d5d4 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -51,7 +51,7 @@ public function testHoliday($year, $expected) $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); // Whenever any public holiday falls on a Sunday, the Monday following on it shall be a public holiday. - if (0 === (int) $date->format('w')) { + if (0 === (int)$date->format('w')) { $date->add(new DateInterval('P1D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index 7e5031368..0501a486d 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index 337354e3c..31c4ceaba 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/Bern/BerchtoldsTagTest.php b/tests/Switzerland/Bern/BerchtoldsTagTest.php index b87f84829..ebbf126cd 100644 --- a/tests/Switzerland/Bern/BerchtoldsTagTest.php +++ b/tests/Switzerland/Bern/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends BernBaseTestCase implements YasumiTestCaseInterf public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Geneva/JeuneGenevoisTest.php b/tests/Switzerland/Geneva/JeuneGenevoisTest.php index 847f44807..d0a08ec45 100644 --- a/tests/Switzerland/Geneva/JeuneGenevoisTest.php +++ b/tests/Switzerland/Geneva/JeuneGenevoisTest.php @@ -35,7 +35,7 @@ public function testJeuneGenevoisOnAfter1966() { $year = $this->generateRandomYear(1966); // Find first Sunday of September - $date = new DateTime('First Sunday of '.$year.'-09', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime('First Sunday of ' . $year . '-09', new DateTimeZone(self::TIMEZONE)); // Go to next Thursday $date->add(new DateInterval('P4D')); @@ -50,7 +50,7 @@ public function testJeuneGenevoisBetween1870And1965() { $year = $this->generateRandomYear(1870, 1965); // Find first Sunday of September - $date = new DateTime('First Sunday of '.$year.'-09', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime('First Sunday of ' . $year . '-09', new DateTimeZone(self::TIMEZONE)); // Go to next Thursday $date->add(new DateInterval('P4D')); @@ -65,7 +65,7 @@ public function testJeuneGenevoisBetween1840And1869() { $year = $this->generateRandomYear(1840, 1869); // Find first Sunday of September - $date = new DateTime('First Sunday of '.$year.'-09', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime('First Sunday of ' . $year . '-09', new DateTimeZone(self::TIMEZONE)); // Go to next Thursday $date->add(new DateInterval('P4D')); diff --git a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php index 1a12d2f7d..0c683eb0b 100644 --- a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php +++ b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php @@ -38,7 +38,7 @@ public function testRestaurationGenevoiseAfter1813() self::REGION, self::HOLIDAY, $year, - new DateTime($year.'-12-31', new DateTimeZone(self::TIMEZONE)) + new DateTime($year . '-12-31', new DateTimeZone(self::TIMEZONE)) ); } diff --git a/tests/Switzerland/Glarus/BerchtoldsTagTest.php b/tests/Switzerland/Glarus/BerchtoldsTagTest.php index e2ee7922d..8f70dff7f 100644 --- a/tests/Switzerland/Glarus/BerchtoldsTagTest.php +++ b/tests/Switzerland/Glarus/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends GlarusBaseTestCase implements YasumiTestCaseInte public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Glarus/NafelserFahrtTest.php b/tests/Switzerland/Glarus/NafelserFahrtTest.php index 71148afda..ac2f6c84c 100644 --- a/tests/Switzerland/Glarus/NafelserFahrtTest.php +++ b/tests/Switzerland/Glarus/NafelserFahrtTest.php @@ -38,7 +38,7 @@ class NafelserFahrtTest extends GlarusBaseTestCase implements YasumiTestCaseInte public function testNafelserFahrtOnAfter1389() { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); - $date = new DateTime('First Thursday of '.$year.'-04', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime('First Thursday of ' . $year . '-04', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); } @@ -70,6 +70,11 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(self::ESTABLISHMENT_YEAR), Holiday::TYPE_OTHER); + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OTHER + ); } } diff --git a/tests/Switzerland/Jura/BerchtoldsTagTest.php b/tests/Switzerland/Jura/BerchtoldsTagTest.php index c65d7ac43..3628a5ac8 100644 --- a/tests/Switzerland/Jura/BerchtoldsTagTest.php +++ b/tests/Switzerland/Jura/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends JuraBaseTestCase implements YasumiTestCaseInterf public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index 6e7f50843..e85add710 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php index beef19afe..be49cc72b 100644 --- a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php +++ b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends LucerneBaseTestCase implements YasumiTestCaseInt public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php index da98c2799..1879a90e9 100644 --- a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php +++ b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends NeuchatelBaseTestCase implements YasumiTestCaseI public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Neuchatel/BettagsMontagTest.php b/tests/Switzerland/Neuchatel/BettagsMontagTest.php index 3c75aff37..1d4f565d0 100644 --- a/tests/Switzerland/Neuchatel/BettagsMontagTest.php +++ b/tests/Switzerland/Neuchatel/BettagsMontagTest.php @@ -36,7 +36,7 @@ public function testBettagsMontagOnAfter1832() $year = $this->generateRandomYear(1832); // Find third Sunday of September - $date = new DateTime('Third Sunday of '.$year.'-09', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime('Third Sunday of ' . $year . '-09', new DateTimeZone(self::TIMEZONE)); // Go to next Thursday $date->add(new DateInterval('P1D')); diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index 518226e9d..a8b63aa60 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index 8506a1efd..692896bdf 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -33,7 +33,7 @@ class StJosephDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInt * * @dataProvider StJosephDayDataProvider * - * @param int $year the year for which St. Joseph's Day needs to be tested + * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date */ public function testStJosephDay($year, $expected) diff --git a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php index 97a24e0f3..db3d08ade 100644 --- a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php +++ b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php index c54c51f9c..f2c66470f 100644 --- a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php +++ b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php @@ -33,7 +33,7 @@ class BruderKlausenFestTest extends ObwaldenBaseTestCase implements YasumiTestCa public function testBruderKlausenFestOnAfter1947() { $year = $this->generateRandomYear(1947); - $date = new DateTime($year.'-09-25', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-09-25', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); @@ -45,7 +45,7 @@ public function testBruderKlausenFestOnAfter1947() public function testBruderKlausenFestBetween1649And1946() { $year = $this->generateRandomYear(1649, 1946); - $date = new DateTime($year.'-09-21', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-09-21', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php index 93cf9840a..032961057 100644 --- a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php +++ b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends SchaffhausenBaseTestCase implements YasumiTestCa public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index a5d8d2c78..14c7b9074 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index 06d4c21c0..86c56ad59 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -33,7 +33,7 @@ class StJosephDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterf * * @dataProvider StJosephDayDataProvider * - * @param int $year the year for which St. Joseph's Day needs to be tested + * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date */ public function testStJosephDay($year, $expected) diff --git a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php index ad921e11d..a795653ac 100644 --- a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php +++ b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends SolothurnBaseTestCase implements YasumiTestCaseI public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php index c344e5d53..eabb11dfe 100644 --- a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php +++ b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends ThurgauBaseTestCase implements YasumiTestCaseInt public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index 061a0e89c..9674ab1b2 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index 87f9a3613..000261687 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -33,7 +33,7 @@ class StJosephDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterf * * @dataProvider StJosephDayDataProvider * - * @param int $year the year for which St. Joseph's Day needs to be tested + * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date */ public function testStJosephDay($year, $expected) diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index 6032fa446..865def0ef 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -13,7 +13,6 @@ namespace Yasumi\tests\Switzerland\Ticino; use Yasumi\Holiday; - use Yasumi\tests\YasumiTestCaseInterface; /** @@ -32,7 +31,7 @@ class StPeterPaulTest extends TicinoBaseTestCase implements YasumiTestCaseInterf * * @dataProvider StPeterPaulDataProvider * - * @param int $year the year for which Feast of Saints Peter and Paul needs to be tested + * @param int $year the year for which Feast of Saints Peter and Paul needs to be tested * @param \DateTime $expected the expected date */ public function testStPeterPaul($year, $expected) diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index a44c37879..0028b2098 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index 3563e7915..62ac33114 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -33,7 +33,7 @@ class StJosephDayTest extends UriBaseTestCase implements YasumiTestCaseInterface * * @dataProvider StJosephDayDataProvider * - * @param int $year the year for which St. Joseph's Day needs to be tested + * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date */ public function testStJosephDay($year, $expected) diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index 6a459d7a7..4195c2d41 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -33,7 +33,7 @@ class StJosephDayTest extends ValaisBaseTestCase implements YasumiTestCaseInterf * * @dataProvider StJosephDayDataProvider * - * @param int $year the year for which St. Joseph's Day needs to be tested + * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date */ public function testStJosephDay($year, $expected) diff --git a/tests/Switzerland/Vaud/BerchtoldsTagTest.php b/tests/Switzerland/Vaud/BerchtoldsTagTest.php index 144dff759..f35bf7ce6 100644 --- a/tests/Switzerland/Vaud/BerchtoldsTagTest.php +++ b/tests/Switzerland/Vaud/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends VaudBaseTestCase implements YasumiTestCaseInterf public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Vaud/BettagsMontagTest.php b/tests/Switzerland/Vaud/BettagsMontagTest.php index 6bf87145c..9bc59b2e5 100644 --- a/tests/Switzerland/Vaud/BettagsMontagTest.php +++ b/tests/Switzerland/Vaud/BettagsMontagTest.php @@ -36,7 +36,7 @@ public function testBettagsMontagOnAfter1832() $year = $this->generateRandomYear(1832); // Find third Sunday of September - $date = new DateTime('Third Sunday of '.$year.'-09', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime('Third Sunday of ' . $year . '-09', new DateTimeZone(self::TIMEZONE)); // Go to next Thursday $date->add(new DateInterval('P1D')); diff --git a/tests/Switzerland/Zug/BerchtoldsTagTest.php b/tests/Switzerland/Zug/BerchtoldsTagTest.php index fc07d30db..6cd033218 100644 --- a/tests/Switzerland/Zug/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zug/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends ZugBaseTestCase implements YasumiTestCaseInterfa public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Zurich/BerchtoldsTagTest.php b/tests/Switzerland/Zurich/BerchtoldsTagTest.php index f4c29e79b..71fa726ba 100644 --- a/tests/Switzerland/Zurich/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zurich/BerchtoldsTagTest.php @@ -33,7 +33,7 @@ class BerchtoldsTagTest extends ZurichBaseTestCase implements YasumiTestCaseInte public function testBerchtoldsTag() { $year = $this->generateRandomYear(); - $date = new DateTime($year.'-01-02', new DateTimeZone(self::TIMEZONE)); + $date = new DateTime($year . '-01-02', new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OTHER); diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index 58156a3a7..48abce755 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -77,11 +77,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType( - self::REGION, - self::HOLIDAY, - $this->generateRandomYear(), - Holiday::TYPE_OTHER - ); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } } diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index 749f032ad..babfb1c47 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -41,7 +41,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, Holiday::TYPE_BANK); diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index 998241108..578a3854b 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -41,7 +41,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int) $date->format('w'), [0, 6], true)) { + if (in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, Holiday::TYPE_BANK); diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 8ee725e5f..4295eef94 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -87,13 +87,7 @@ public function testHolidayIsObservedTypeBeforeChange() */ public function HolidayDataProvider(): array { - return $this->generateRandomDatesWithHolidayMovedToMonday( - 01, - 01, - self::TIMEZONE, - 10, - self::ESTABLISHMENT_YEAR - ); + return $this->generateRandomDatesWithHolidayMovedToMonday(01, 01, self::TIMEZONE, 10, self::ESTABLISHMENT_YEAR); } /** diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index a47bb7bf3..a56f05954 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -260,6 +260,84 @@ public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $ return $data; } + /** + * Calculates the date for Easter. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. + * + * This function uses the standard PHP 'easter_days' function if the calendar extension is enabled. In case the + * calendar function is not enabled, a fallback calculation has been implemented that is based on the same + * 'easter_days' c function. + * + * Note: In calendrical calculations, frequently operations called integer division are used. + * + * @see easter_days + * + * @link https://github.com/php/php-src/blob/c8aa6f3a9a3d2c114d0c5e0c9fdd0a465dbb54a5/ext/calendar/easter.c + * @link http://www.gmarts.org/index.php?go=415#EasterMallen + * @link http://www.tondering.dk/claus/cal/easter.php + * + * @param int $year the year for which Easter needs to be calculated + * @param string $timezone the timezone in which Easter is celebrated + * + * @return \DateTime date of Easter + */ + protected function calculateEaster($year, $timezone): DateTime + { + if (extension_loaded('calendar')) { + $easter_days = \easter_days($year); + } else { + $golden = (($year % 19) + 1); // The Golden Number + + // The Julian calendar applies to the original method from 326AD. The Gregorian calendar was first + // introduced in October 1582 in Italy. Easter algorithms using the Gregorian calendar apply to years + // 1583 AD to 4099 (A day adjustment is required in or shortly after 4100 AD). + // After 1752, most western churches have adopted the current algorithm. + if ($year <= 1752) { + $dom = ($year + (int)($year / 4) + 5) % 7; // The 'Dominical number' - finding a Sunday + if ($dom < 0) { + $dom += 7; + } + + $pfm = (3 - (11 * $golden) - 7) % 30; // Uncorrected date of the Paschal full moon + if ($pfm < 0) { + $pfm += 30; + } + } else { + $dom = ($year + (int)($year / 4) - (int)($year / 100) + (int)($year / 400)) % 7; // The 'Dominical number' - finding a Sunday + if ($dom < 0) { + $dom += 7; + } + + $solar = (int)(($year - 1600) / 100) - (int)(($year - 1600) / 400); // The solar correction + $lunar = (int)(((int)(($year - 1400) / 100) * 8) / 25); // The lunar correction + + $pfm = (3 - (11 * $golden) + $solar - $lunar) % 30; // Uncorrected date of the Paschal full moon + if ($pfm < 0) { + $pfm += 30; + } + } + + // Corrected date of the Paschal full moon, - days after 21st March + if (($pfm === 29) || ($pfm === 28 && $golden > 11)) { + --$pfm; + } + + $tmp = (4 - $pfm - $dom) % 7; + if ($tmp < 0) { + $tmp += 7; + } + + $easter_days = ($pfm + $tmp + 1); // Easter as the number of days after 21st March + } + + $easter = new DateTime("$year-3-21", new DateTimeZone($timezone)); + $easter->add(new DateInterval('P' . $easter_days . 'D')); + + return $easter; + } + /** * Returns a list of random Easter Monday test dates used for assertion of holidays. * @@ -278,6 +356,36 @@ public function generateRandomEasterMondayDates($timezone = 'UTC', $iterations = }, $timezone, $iterations, $range); } + /** + * Returns a list of random modified Easter day test dates for assertion of holidays. + * + * @param callable $cb callback(DateTime $date) to modify $date by custom rules + * @param string $timezone name of the timezone for which the dates need to be generated + * @param int $iterations number of iterations (i.e. samples) that need to be generated (default: 10) + * @param int $range year range from which dates will be generated (default: 1000) + * + * @return array list of random modified Easter day test dates for assertion of holidays. + */ + public function generateRandomModifiedEasterDates( + callable $cb, + $timezone = 'UTC', + $iterations = 10, + $range = 1000 + ): array { + $data = []; + + for ($i = 1; $i <= $iterations; ++$i) { + $year = Faker::create()->dateTimeBetween("-$range years", "+$range years")->format('Y'); + $date = $this->calculateEaster($year, $timezone); + + $cb($date); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + /** * Returns a list of random Good Friday test dates used for assertion of holidays. * @@ -314,32 +422,6 @@ public function generateRandomPentecostDates($timezone = 'UTC', $iterations = 10 }, $timezone, $iterations, $range); } - /** - * Returns a list of random modified Easter day test dates for assertion of holidays. - * - * @param callable $cb callback(DateTime $date) to modify $date by custom rules - * @param string $timezone name of the timezone for which the dates need to be generated - * @param int $iterations number of iterations (i.e. samples) that need to be generated (default: 10) - * @param int $range year range from which dates will be generated (default: 1000) - * - * @return array list of random modified Easter day test dates for assertion of holidays. - */ - public function generateRandomModifiedEasterDates(callable $cb, $timezone = 'UTC', $iterations = 10, $range = 1000): array - { - $data = []; - - for ($i = 1; $i <= $iterations; ++$i) { - $year = Faker::create()->dateTimeBetween("-$range years", "+$range years")->format('Y'); - $date = $this->calculateEaster($year, $timezone); - - $cb($date); - - $data[] = [$year, $date->format('Y-m-d')]; - } - - return $data; - } - /** * Returns a list of random test dates used for assertion of holidays. If the date falls in a weekend, random * holiday day is moved to to Monday. @@ -359,18 +441,11 @@ public function generateRandomDatesWithHolidayMovedToMonday( $iterations = 10, $range = 1000 ): array { - return $this->generateRandomDatesWithModifier( - $month, - $day, - function ($year, \DateTime $date) { - if ($this->isWeekend($date)) { - $date->modify('next monday'); - } - }, - $timezone, - $iterations, - $range - ); + return $this->generateRandomDatesWithModifier($month, $day, function ($year, \DateTime $date) { + if ($this->isWeekend($date)) { + $date->modify('next monday'); + } + }, $timezone, $iterations, $range); } /** @@ -393,7 +468,7 @@ public function generateRandomDatesWithModifier( $iterations, $range ): array { - $data = []; + $data = []; for ($i = 1; $i <= $iterations; ++$i) { $year = $this->generateRandomYear($range); @@ -407,19 +482,6 @@ public function generateRandomDatesWithModifier( return $data; } - /** - * Checks if given $dateTime is a weekend. - * - * @param \DateTimeInterface $dateTime date for which weekend will be checked. - * @param array $weekendDays weekend days. Saturday and Sunday are used by default. - * - * @return bool true if $dateTime is a weekend, false otherwise - */ - public function isWeekend(\DateTimeInterface $dateTime, array $weekendDays = [0, 6]): bool - { - return in_array((int) $dateTime->format('w'), $weekendDays, true); - } - /** * Generates a random year (number). * @@ -434,80 +496,15 @@ public function generateRandomYear($lowerLimit = 1000, $upperLimit = 9999): int } /** - * Calculates the date for Easter. - * - * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated - * on a date based on a certain number of days after March 21st. - * - * This function uses the standard PHP 'easter_days' function if the calendar extension is enabled. In case the - * calendar function is not enabled, a fallback calculation has been implemented that is based on the same - * 'easter_days' c function. - * - * Note: In calendrical calculations, frequently operations called integer division are used. - * - * @see easter_days - * - * @link https://github.com/php/php-src/blob/c8aa6f3a9a3d2c114d0c5e0c9fdd0a465dbb54a5/ext/calendar/easter.c - * @link http://www.gmarts.org/index.php?go=415#EasterMallen - * @link http://www.tondering.dk/claus/cal/easter.php + * Checks if given $dateTime is a weekend. * - * @param int $year the year for which Easter needs to be calculated - * @param string $timezone the timezone in which Easter is celebrated + * @param \DateTimeInterface $dateTime date for which weekend will be checked. + * @param array $weekendDays weekend days. Saturday and Sunday are used by default. * - * @return \DateTime date of Easter + * @return bool true if $dateTime is a weekend, false otherwise */ - protected function calculateEaster($year, $timezone): DateTime + public function isWeekend(\DateTimeInterface $dateTime, array $weekendDays = [0, 6]): bool { - if (extension_loaded('calendar')) { - $easter_days = \easter_days($year); - } else { - $golden = (($year % 19) + 1); // The Golden Number - - // The Julian calendar applies to the original method from 326AD. The Gregorian calendar was first - // introduced in October 1582 in Italy. Easter algorithms using the Gregorian calendar apply to years - // 1583 AD to 4099 (A day adjustment is required in or shortly after 4100 AD). - // After 1752, most western churches have adopted the current algorithm. - if ($year <= 1752) { - $dom = ($year + (int)($year / 4) + 5) % 7; // The 'Dominical number' - finding a Sunday - if ($dom < 0) { - $dom += 7; - } - - $pfm = (3 - (11 * $golden) - 7) % 30; // Uncorrected date of the Paschal full moon - if ($pfm < 0) { - $pfm += 30; - } - } else { - $dom = ($year + (int)($year / 4) - (int)($year / 100) + (int)($year / 400)) % 7; // The 'Dominical number' - finding a Sunday - if ($dom < 0) { - $dom += 7; - } - - $solar = (int)(($year - 1600) / 100) - (int)(($year - 1600) / 400); // The solar correction - $lunar = (int)(((int)(($year - 1400) / 100) * 8) / 25); // The lunar correction - - $pfm = (3 - (11 * $golden) + $solar - $lunar) % 30; // Uncorrected date of the Paschal full moon - if ($pfm < 0) { - $pfm += 30; - } - } - - // Corrected date of the Paschal full moon, - days after 21st March - if (($pfm === 29) || ($pfm === 28 && $golden > 11)) { - --$pfm; - } - - $tmp = (4 - $pfm - $dom) % 7; - if ($tmp < 0) { - $tmp += 7; - } - - $easter_days = ($pfm + $tmp + 1); // Easter as the number of days after 21st March - } - - $easter = new DateTime("$year-3-21", new DateTimeZone($timezone)); - $easter->add(new DateInterval('P' . $easter_days . 'D')); - - return $easter; + return in_array((int)$dateTime->format('w'), $weekendDays, true); } } From 561dc7e23a505e5ee6b0e3fd4878ce71ac721da8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 11:29:24 +0900 Subject: [PATCH 013/132] Changed test variable to constant as it isn't dynamic. Signed-off-by: Sacha Telgenhof --- tests/Base/TranslationsTest.php | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index bdaca8a36..0d2487ff6 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -24,7 +24,7 @@ */ class TranslationsTest extends PHPUnit_Framework_TestCase { - private $locales = [ + const LOCALES = [ 'en_US', 'nl_NL', 'pl_PL', @@ -35,7 +35,7 @@ class TranslationsTest extends PHPUnit_Framework_TestCase */ public function testAddTranslation() { - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $locale = 'en_US'; $shortName = 'newYearsDay'; @@ -60,7 +60,7 @@ public function testAddTranslation() */ public function testAddMultipleTranslations() { - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $firstLocale = 'en_US'; $firstShortName = 'newYearsDay'; @@ -98,10 +98,8 @@ public function testAddMultipleTranslations() $this->assertNotNull($translations->getTranslations($thirdShortName)); $this->assertNotEmpty($translations->getTranslations($thirdShortName)); - $this->assertEquals( - [$thirdLocale => $thirdTranslation, $secondLocale => $secondTranslation], - $translations->getTranslations($thirdShortName) - ); + $this->assertEquals([$thirdLocale => $thirdTranslation, $secondLocale => $secondTranslation], + $translations->getTranslations($thirdShortName)); $this->assertNotNull($translations->getTranslation($thirdShortName, $thirdLocale)); $this->assertInternalType('string', $translations->getTranslation($thirdShortName, $thirdLocale)); @@ -115,7 +113,7 @@ public function testAddMultipleTranslations() */ public function testAddTranslationUnknownLocaleException() { - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $unknownLocale = 'en_XY'; $shortName = 'newYearsDay'; @@ -129,7 +127,7 @@ public function testAddTranslationUnknownLocaleException() */ public function testNoTranslationForUnknownHoliday() { - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $locale = 'en_US'; $shortName = 'newYearsDay'; @@ -148,7 +146,7 @@ public function testNoTranslationForUnknownHoliday() */ public function testNoTranslationForNotTranslatedLocale() { - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $locale = 'en_US'; $shortName = 'newYearsDay'; @@ -178,7 +176,7 @@ public function testLoadingTranslationsFromDirectory() vfsStream::setup('root', null, ['lang' => [$shortName . '.php' => $fileContents]]); - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $translations->loadTranslations(vfsStream::url('root/lang')); $locale = 'en_US'; @@ -207,7 +205,7 @@ public function testNotLoadingTranslationsFromFileWithInvalidExtension() vfsStream::setup('root', null, ['lang' => [$shortName . '.translation' => $fileContents]]); - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $translations->loadTranslations(vfsStream::url('root/lang')); $this->assertNotNull($translations->getTranslations($shortName)); @@ -232,7 +230,7 @@ public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException() vfsStream::setup('root', null, ['lang' => [$shortName . '.php' => $fileContents]]); - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $translations->loadTranslations(vfsStream::url('root/lang')); } @@ -245,7 +243,7 @@ public function testLoadingTranslationsFromInexistentDirectory() { vfsStream::setup('root'); - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $translations->loadTranslations(vfsStream::url('root/lang')); } @@ -280,7 +278,7 @@ public function testLoadingMultipleTranslationsFromDirectory() ] ]); - $translations = new Translations($this->locales); + $translations = new Translations(self::LOCALES); $translations->loadTranslations(vfsStream::url('root/lang')); From d4106c01127b543220a8b0261579a5b0977d152f Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 11:30:24 +0900 Subject: [PATCH 014/132] Formatting fixes. Signed-off-by: Sacha Telgenhof --- tests/Base/TranslationsTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index 0d2487ff6..f3ae439c0 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -98,8 +98,10 @@ public function testAddMultipleTranslations() $this->assertNotNull($translations->getTranslations($thirdShortName)); $this->assertNotEmpty($translations->getTranslations($thirdShortName)); - $this->assertEquals([$thirdLocale => $thirdTranslation, $secondLocale => $secondTranslation], - $translations->getTranslations($thirdShortName)); + $this->assertEquals( + [$thirdLocale => $thirdTranslation, $secondLocale => $secondTranslation], + $translations->getTranslations($thirdShortName) + ); $this->assertNotNull($translations->getTranslation($thirdShortName, $thirdLocale)); $this->assertInternalType('string', $translations->getTranslation($thirdShortName, $thirdLocale)); From d720608a786fd8cd6276b28f320d95cd54715179 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 11:53:42 +0900 Subject: [PATCH 015/132] Updated inline documentation to include correction Exception throws. Signed-off-by: Sacha Telgenhof --- tests/Australia/EasterMondayTest.php | 1 + tests/Australia/GoodFridayTest.php | 1 + tests/Estonia/EasterDayTest.php | 1 + tests/Ireland/EasterMondayTest.php | 1 + tests/Ireland/EasterTest.php | 1 + tests/Ireland/GoodFridayTest.php | 1 + tests/Ireland/PentecostTest.php | 1 + tests/Ireland/pentecostMondayTest.php | 1 + tests/Latvia/EasterDayTest.php | 1 + tests/Latvia/EasterMondayDayTest.php | 1 + tests/Latvia/GoodFridayDayTest.php | 1 + tests/Lithuania/EasterDayTest.php | 1 + tests/Lithuania/EasterMondayDayTest.php | 1 + tests/NewZealand/EasterMondayTest.php | 1 + tests/NewZealand/GoodFridayTest.php | 1 + tests/SouthAfrica/FamilyDayTest.php | 1 + tests/SouthAfrica/GoodFridayTest.php | 1 + tests/UnitedKingdom/EasterMondayTest.php | 1 + tests/YasumiBase.php | 3 +++ 19 files changed, 21 insertions(+) diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index 157b6d23b..c89930d49 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index 9f57a557f..d864a1d0d 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index 344b58b26..2d7f08615 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -30,6 +30,7 @@ class EasterDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterfa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index c88262094..2816704e4 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index 88ad0287a..199fa7401 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -49,6 +49,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index 03f03d170..d82b06f06 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index 60b77576e..adf2e43c9 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index 14f8c237e..cc3719777 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -55,6 +55,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index 377d0ae5a..ccf86fcd3 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -30,6 +30,7 @@ class EasterDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterfac /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index cb913bfff..fb9193ade 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -30,6 +30,7 @@ class EasterMondayDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index b4347be6b..66ff59470 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -30,6 +30,7 @@ class GoodFridayDayTest extends LatviaBaseTestCase implements YasumiTestCaseInte /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index b245dc15f..b5573911c 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -30,6 +30,7 @@ class EasterDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInter /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index bbb13a041..4b6fd01c7 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -30,6 +30,7 @@ class EasterMondayDayTest extends LithuaniaBaseTestCase implements YasumiTestCas /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { diff --git a/tests/NewZealand/EasterMondayTest.php b/tests/NewZealand/EasterMondayTest.php index 11fdb2a5e..8712dc0e9 100644 --- a/tests/NewZealand/EasterMondayTest.php +++ b/tests/NewZealand/EasterMondayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/NewZealand/GoodFridayTest.php b/tests/NewZealand/GoodFridayTest.php index 9e606d740..1139675a6 100644 --- a/tests/NewZealand/GoodFridayTest.php +++ b/tests/NewZealand/GoodFridayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index 0bc994557..5b2aae5fe 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -59,6 +59,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index f7d6f4588..bd1bf589a 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -59,6 +59,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index 3619e7366..ce53d16cd 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -50,6 +50,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index a56f05954..86314996b 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -245,6 +245,7 @@ public function generateRandomDates($month, $day, $timezone = 'UTC', $iterations * @param int $range year range from which dates will be generated (default: 1000) * * @return array list of random easter test dates used for assertion of holidays. + * @throws \Exception */ public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $range = 1000): array { @@ -282,6 +283,7 @@ public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $ * @param string $timezone the timezone in which Easter is celebrated * * @return \DateTime date of Easter + * @throws \Exception */ protected function calculateEaster($year, $timezone): DateTime { @@ -365,6 +367,7 @@ public function generateRandomEasterMondayDates($timezone = 'UTC', $iterations = * @param int $range year range from which dates will be generated (default: 1000) * * @return array list of random modified Easter day test dates for assertion of holidays. + * @throws \Exception */ public function generateRandomModifiedEasterDates( callable $cb, From 23cfa232cbb42b20abaeb7f47b9b882764166bbb Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 12:12:45 +0900 Subject: [PATCH 016/132] Formatting fixes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 26 ++++---- src/Yasumi/Provider/Estonia.php | 24 ++----- src/Yasumi/Provider/Latvia.php | 36 +++-------- src/Yasumi/Provider/Lithuania.php | 25 ++------ src/Yasumi/Provider/Romania.php | 12 ++-- src/Yasumi/Provider/Russia.php | 64 +++++-------------- src/Yasumi/Provider/Slovakia.php | 28 ++++---- src/Yasumi/Provider/Switzerland.php | 12 ++-- src/Yasumi/Provider/Switzerland/Geneva.php | 6 +- src/Yasumi/Provider/Switzerland/Jura.php | 6 +- src/Yasumi/Provider/Switzerland/Neuchatel.php | 6 +- src/Yasumi/Provider/Switzerland/Obwalden.php | 12 ++-- src/Yasumi/Provider/Switzerland/Ticino.php | 16 ++--- src/Yasumi/Provider/USA.php | 8 +-- src/Yasumi/Provider/UnitedKingdom.php | 60 ++++++++--------- 15 files changed, 136 insertions(+), 205 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 30c99fb21..0f59071bd 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -163,7 +163,11 @@ public function isHoliday($date): bool } // If given date is a DateTime object - if ($date instanceof DateTime && in_array($date->format('Y-m-d'), array_values($this->getHolidayDates()), true)) { + if ($date instanceof DateTime && in_array( + $date->format('Y-m-d'), + array_values($this->getHolidayDates()), + true + )) { return true; } @@ -252,16 +256,6 @@ public function count(): int return count(array_unique($list)); } - /** - * Gets all of the holidays defined by this holiday provider (for the given year). - * - * @return Holiday[] list of all holidays defined for the given year - */ - public function getHolidays(): array - { - return $this->holidays; - } - /** * Gets all of the holiday names defined by this holiday provider (for the given year). * @@ -340,6 +334,16 @@ public function getHoliday($shortName) return $holidays[$shortName] ?? null; } + /** + * Gets all of the holidays defined by this holiday provider (for the given year). + * + * @return Holiday[] list of all holidays defined for the given year + */ + public function getHolidays(): array + { + return $this->holidays; + } + /** * Retrieves the previous date (year) the given holiday took place. * diff --git a/src/Yasumi/Provider/Estonia.php b/src/Yasumi/Provider/Estonia.php index 4058e08ec..b4239822d 100644 --- a/src/Yasumi/Provider/Estonia.php +++ b/src/Yasumi/Provider/Estonia.php @@ -66,14 +66,10 @@ public function initialize() private function addIndependenceDay() { if ($this->year >= self::DECLARATION_OF_INDEPENDENCE_YEAR) { - $this->addHoliday(new Holiday( - 'independenceDay', - [ + $this->addHoliday(new Holiday('independenceDay', [ 'en_US' => 'Independence Day', 'et_EE' => 'Iseseisvuspäev' - ], - new \DateTime("{$this->year}-02-24", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-02-24", new \DateTimeZone($this->timezone)))); } } @@ -83,14 +79,10 @@ private function addIndependenceDay() private function addVictoryDay() { if ($this->year >= self::VICTORY_DAY_START_YEAR) { - $this->addHoliday(new Holiday( - 'victoryDay', - [ + $this->addHoliday(new Holiday('victoryDay', [ 'en_US' => 'Victory Day', 'et_EE' => 'Võidupüha' - ], - new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)))); } } @@ -100,14 +92,10 @@ private function addVictoryDay() private function addRestorationOfIndependenceDay() { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { - $this->addHoliday(new Holiday( - 'restorationOfIndependenceDay', - [ + $this->addHoliday(new Holiday('restorationOfIndependenceDay', [ 'en_US' => 'Day of Restoration of Independence', 'et_EE' => 'Tasiseseisvumispäev' - ], - new \DateTime("{$this->year}-08-20", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-08-20", new \DateTimeZone($this->timezone)))); } } } diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 80e669305..a891194fb 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -70,18 +70,14 @@ private function addRestorationOfIndependenceDay() if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { $date = new \DateTime("{$this->year}-05-04", new \DateTimeZone($this->timezone)); - if (!$this->isWorkingDay($date)) { + if (! $this->isWorkingDay($date)) { $date->modify('next monday'); } - $this->addHoliday(new Holiday( - 'restorationOfIndependenceOfLatviaDay', - [ + $this->addHoliday(new Holiday('restorationOfIndependenceOfLatviaDay', [ 'en_US' => 'Restoration of Independence day', 'lv_LV' => 'Latvijas Republikas Neatkarības atjaunošanas diena' - ], - $date - )); + ], $date)); } } @@ -90,14 +86,10 @@ private function addRestorationOfIndependenceDay() */ private function addMidsummerEveDay() { - $this->addHoliday(new Holiday( - 'midsummerEveDay', - [ + $this->addHoliday(new Holiday('midsummerEveDay', [ 'en_US' => 'Midsummer Eve', 'lv_LV' => 'Līgo Diena' - ], - new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)))); } /** @@ -111,18 +103,14 @@ private function addProclamationDay() if ($this->year >= self::PROCLAMATION_OF_INDEPENDENCE_YEAR) { $date = new \DateTime("{$this->year}-11-18", new \DateTimeZone($this->timezone)); - if (!$this->isWorkingDay($date)) { + if (! $this->isWorkingDay($date)) { $date->modify('next monday'); } - $this->addHoliday(new Holiday( - 'proclamationOfTheRepublicOfLatviaDay', - [ + $this->addHoliday(new Holiday('proclamationOfTheRepublicOfLatviaDay', [ 'en_US' => 'Proclamation Day of the Republic of Latvia', 'lv_LV' => 'Latvijas Republikas proklamēšanas diena' - ], - $date - )); + ], $date)); } } @@ -131,13 +119,9 @@ private function addProclamationDay() */ private function addNewYearsEve() { - $this->addHoliday(new Holiday( - 'newYearsEve', - [ + $this->addHoliday(new Holiday('newYearsEve', [ 'en_US' => 'New Year\'s Eve', 'lv_LV' => 'Vecgada vakars' - ], - new \DateTime("{$this->year}-12-31", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-12-31", new \DateTimeZone($this->timezone)))); } } diff --git a/src/Yasumi/Provider/Lithuania.php b/src/Yasumi/Provider/Lithuania.php index 736a3ef57..2dc027123 100644 --- a/src/Yasumi/Provider/Lithuania.php +++ b/src/Yasumi/Provider/Lithuania.php @@ -78,14 +78,10 @@ public function initialize() private function addRestorationOfTheStateDay() { if ($this->year >= self::RESTORATION_OF_THE_STATE_YEAR) { - $this->addHoliday(new Holiday( - 'restorationOfTheStateOfLithuaniaDay', - [ + $this->addHoliday(new Holiday('restorationOfTheStateOfLithuaniaDay', [ 'en_US' => 'Day of Restoration of the State of Lithuania', 'lt_LT' => 'Lietuvos valstybės atkūrimo diena' - ], - new \DateTime("{$this->year}-02-16", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-02-16", new \DateTimeZone($this->timezone)))); } } @@ -97,14 +93,10 @@ private function addRestorationOfTheStateDay() private function addRestorationOfIndependenceDay() { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { - $this->addHoliday(new Holiday( - 'restorationOfIndependenceOfLithuaniaDay', - [ + $this->addHoliday(new Holiday('restorationOfIndependenceOfLithuaniaDay', [ 'en_US' => 'Day of Restoration of Independence of Lithuania', 'lt_LT' => 'Lietuvos nepriklausomybės atkūrimo diena' - ], - new \DateTime("{$this->year}-03-11", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-03-11", new \DateTimeZone($this->timezone)))); } } @@ -117,15 +109,10 @@ private function addRestorationOfIndependenceDay() private function addStatehoodDay() { if ($this->year >= self::STATEHOOD_YEAR) { - $this->addHoliday(new Holiday( - 'statehoodDay', - [ + $this->addHoliday(new Holiday('statehoodDay', [ 'en_US' => 'Statehood Day (Lithuania)', 'lt_LT' => 'Valstybės (Lietuvos karaliaus Mindaugo karūnavimo) diena' - ], - new \DateTime("{$this->year}-07-06", new \DateTimeZone($this->timezone)), - $this->locale - )); + ], new \DateTime("{$this->year}-07-06", new \DateTimeZone($this->timezone)), $this->locale)); } } } diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index 4abb643cf..a43083a62 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -186,9 +186,9 @@ public function calculateConstantinBrancusiDay() $this->addHoliday(new Holiday( 'constantinBrancusiDay', [ - 'en_US' => 'Constantin Brâncuși day', - 'ro_RO' => 'Ziua Constantin Brâncuși' - ], + 'en_US' => 'Constantin Brâncuși day', + 'ro_RO' => 'Ziua Constantin Brâncuși' + ], new DateTime("$this->year-02-19", new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OBSERVANCE @@ -212,9 +212,9 @@ public function calculateChildrensDay() $this->addHoliday(new Holiday( 'childrensDay', [ - 'en_US' => 'International Children\'s Day', - 'ro_RO' => 'Ziua Copilului' - ], + 'en_US' => 'International Children\'s Day', + 'ro_RO' => 'Ziua Copilului' + ], new DateTime("$this->year-06-01", new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OBSERVANCE diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index 894a5df12..d0192b26b 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -64,14 +64,10 @@ private function addNewYearsHolidays() $holidayDays = [2, 3, 4, 5, 6, 8]; foreach ($holidayDays as $day) { - $this->addHoliday(new Holiday( - 'newYearHolidaysDay' . $day, - [ + $this->addHoliday(new Holiday('newYearHolidaysDay' . $day, [ 'en_US' => 'New Year\'s holidays', 'ru_RU' => 'Новогодние каникулы' - ], - new \DateTime("{$this->year}-01-{$day}", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-01-{$day}", new \DateTimeZone($this->timezone)))); } } @@ -80,14 +76,10 @@ private function addNewYearsHolidays() */ private function addOrthodoxChristmasDay() { - $this->addHoliday(new Holiday( - 'orthodoxChristmasDay', - [ + $this->addHoliday(new Holiday('orthodoxChristmasDay', [ 'en_US' => 'Orthodox Christmas Day', 'ru_RU' => 'Рождество' - ], - new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)))); } /** @@ -99,14 +91,10 @@ private function addDefenceOfTheFatherlandDay() return; } - $this->addHoliday(new Holiday( - 'defenceOfTheFatherlandDay', - [ + $this->addHoliday(new Holiday('defenceOfTheFatherlandDay', [ 'en_US' => 'Defence of the Fatherland Day', 'ru_RU' => 'День защитника Отечества' - ], - new \DateTime("{$this->year}-02-23", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-02-23", new \DateTimeZone($this->timezone)))); } /** @@ -114,14 +102,10 @@ private function addDefenceOfTheFatherlandDay() */ private function addInternationalWomensDay() { - $this->addHoliday(new Holiday( - 'internationalWomensDay', - [ + $this->addHoliday(new Holiday('internationalWomensDay', [ 'en_US' => 'International Women\'s Day', 'ru_RU' => 'Международный женский день' - ], - new \DateTime("{$this->year}-03-08", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-03-08", new \DateTimeZone($this->timezone)))); } /** @@ -129,14 +113,10 @@ private function addInternationalWomensDay() */ private function addSpringAndLabourDay() { - $this->addHoliday(new Holiday( - 'springAndLabourDay', - [ + $this->addHoliday(new Holiday('springAndLabourDay', [ 'en_US' => 'Spring and Labour Day', 'ru_RU' => 'Праздник Весны и Труда' - ], - new \DateTime("{$this->year}-05-01", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-05-01", new \DateTimeZone($this->timezone)))); } /** @@ -144,14 +124,10 @@ private function addSpringAndLabourDay() */ private function addVictoryDay() { - $this->addHoliday(new Holiday( - 'victoryDay', - [ + $this->addHoliday(new Holiday('victoryDay', [ 'en_US' => 'Victory Day', 'ru_RU' => 'День Победы' - ], - new \DateTime("{$this->year}-05-09", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-05-09", new \DateTimeZone($this->timezone)))); } /** @@ -163,14 +139,10 @@ private function addRussiaDay() return; } - $this->addHoliday(new Holiday( - 'russiaDay', - [ + $this->addHoliday(new Holiday('russiaDay', [ 'en_US' => 'Russia Day', 'ru_RU' => 'День России' - ], - new \DateTime("{$this->year}-06-12", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-06-12", new \DateTimeZone($this->timezone)))); } /** @@ -182,13 +154,9 @@ private function addUnityDay() return; } - $this->addHoliday(new Holiday( - 'unityDay', - [ + $this->addHoliday(new Holiday('unityDay', [ 'en_US' => 'Unity Day', 'ru_RU' => 'День народного единства' - ], - new \DateTime("{$this->year}-11-04", new \DateTimeZone($this->timezone)) - )); + ], new \DateTime("{$this->year}-11-04", new \DateTimeZone($this->timezone)))); } } diff --git a/src/Yasumi/Provider/Slovakia.php b/src/Yasumi/Provider/Slovakia.php index fe6a69676..83fd95368 100644 --- a/src/Yasumi/Provider/Slovakia.php +++ b/src/Yasumi/Provider/Slovakia.php @@ -117,10 +117,10 @@ public function calculateSaintsCyrilAndMethodiusDay() $this->addHoliday(new Holiday( 'saintsCyrilAndMethodiusDay', [ - 'sk_SK' => 'Sviatok svätého Cyrila a Metoda', - 'cs_CZ' => 'Den slovanských věrozvěstů Cyrila a Metoděje', - 'en_US' => 'Saints Cyril and Methodius Day', - ], + 'sk_SK' => 'Sviatok svätého Cyrila a Metoda', + 'cs_CZ' => 'Den slovanských věrozvěstů Cyrila a Metoděje', + 'en_US' => 'Saints Cyril and Methodius Day', + ], new DateTime($this->year . '-07-05', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OFFICIAL @@ -140,9 +140,9 @@ public function calculateSlovakNationalUprisingDay() $this->addHoliday(new Holiday( 'slovakNationalUprisingDay', [ - 'sk_SK' => 'Výročie Slovenského národného povstania', - 'en_US' => 'Slovak National Uprising Day', - ], + 'sk_SK' => 'Výročie Slovenského národného povstania', + 'en_US' => 'Slovak National Uprising Day', + ], new DateTime($this->year . '-08-29', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OFFICIAL @@ -162,9 +162,9 @@ public function calculateSlovakConstitutionDay() $this->addHoliday(new Holiday( 'slovakConstitutionDay', [ - 'sk_SK' => 'Deň Ústavy Slovenskej republiky', - 'en_US' => 'Day of the Constitution of the Slovak Republic', - ], + 'sk_SK' => 'Deň Ústavy Slovenskej republiky', + 'en_US' => 'Day of the Constitution of the Slovak Republic', + ], new DateTime($this->year . '-09-01', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OFFICIAL @@ -204,10 +204,10 @@ public function calculateStruggleForFreedomAndDemocracyDay() $this->addHoliday(new Holiday( 'struggleForFreedomAndDemocracyDay', [ - 'sk_SK' => 'Deň boja za slobodu a demokraciu', - 'cs_CZ' => 'Den boje za svobodu a demokracii', - 'en_US' => 'Struggle for Freedom and Democracy Day', - ], + 'sk_SK' => 'Deň boja za slobodu a demokraciu', + 'cs_CZ' => 'Den boje za svobodu a demokracii', + 'en_US' => 'Struggle for Freedom and Democracy Day', + ], new DateTime($this->year . '-11-17', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OFFICIAL diff --git a/src/Yasumi/Provider/Switzerland.php b/src/Yasumi/Provider/Switzerland.php index d18df8a57..a77332aea 100644 --- a/src/Yasumi/Provider/Switzerland.php +++ b/src/Yasumi/Provider/Switzerland.php @@ -103,12 +103,12 @@ public function calculateBerchtoldsTag() $this->addHoliday(new Holiday( 'berchtoldsTag', [ - 'de_DE' => 'Berchtoldstag', - 'de_CH' => 'Berchtoldstag', - 'fr_FR' => 'Jour de la Saint-Berthold', - 'fr_CH' => 'Jour de la Saint-Berthold', - 'en_US' => 'Berchtoldstag', - ], + 'de_DE' => 'Berchtoldstag', + 'de_CH' => 'Berchtoldstag', + 'fr_FR' => 'Jour de la Saint-Berthold', + 'fr_CH' => 'Jour de la Saint-Berthold', + 'en_US' => 'Berchtoldstag', + ], new DateTime($this->year . '-01-02', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index 26e028774..f8368dc68 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -105,9 +105,9 @@ public function calculateRestaurationGenevoise() $this->addHoliday(new Holiday( 'restaurationGenevoise', [ - 'fr_FR' => 'Restauration de la République', - 'fr_CH' => 'Restauration de la République', - ], + 'fr_FR' => 'Restauration de la République', + 'fr_CH' => 'Restauration de la République', + ], new DateTime($this->year . '-12-31', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index 82bbdb471..30e2f39a0 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -77,9 +77,9 @@ public function calculatePlebisciteJurassien() $this->addHoliday(new Holiday( 'plebisciteJurassien', [ - 'fr_FR' => 'Commémoration du plébiscite jurassien', - 'fr_CH' => 'Commémoration du plébiscite jurassien', - ], + 'fr_FR' => 'Commémoration du plébiscite jurassien', + 'fr_CH' => 'Commémoration du plébiscite jurassien', + ], new DateTime($this->year . '-06-23', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER diff --git a/src/Yasumi/Provider/Switzerland/Neuchatel.php b/src/Yasumi/Provider/Switzerland/Neuchatel.php index 731b49821..6174b11a5 100644 --- a/src/Yasumi/Provider/Switzerland/Neuchatel.php +++ b/src/Yasumi/Provider/Switzerland/Neuchatel.php @@ -75,9 +75,9 @@ public function calculateInstaurationRepublique() $this->addHoliday(new Holiday( 'instaurationRepublique', [ - 'fr_FR' => 'Instauration de la République', - 'fr_CH' => 'Instauration de la République', - ], + 'fr_FR' => 'Instauration de la République', + 'fr_CH' => 'Instauration de la République', + ], new DateTime($this->year . '-03-01', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER diff --git a/src/Yasumi/Provider/Switzerland/Obwalden.php b/src/Yasumi/Provider/Switzerland/Obwalden.php index c75ccc218..b100ccaf4 100644 --- a/src/Yasumi/Provider/Switzerland/Obwalden.php +++ b/src/Yasumi/Provider/Switzerland/Obwalden.php @@ -78,9 +78,9 @@ public function calculateBruderKlausenFest() $this->addHoliday(new Holiday( 'bruderKlausenFest', [ - 'de_DE' => 'Bruder-Klausen-Fest', - 'de_CH' => 'Bruder-Klausen-Fest', - ], + 'de_DE' => 'Bruder-Klausen-Fest', + 'de_CH' => 'Bruder-Klausen-Fest', + ], new DateTime($this->year . '-09-25', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER @@ -89,9 +89,9 @@ public function calculateBruderKlausenFest() $this->addHoliday(new Holiday( 'bruderKlausenFest', [ - 'de_DE' => 'Bruder-Klausen-Fest', - 'de_CH' => 'Bruder-Klausen-Fest', - ], + 'de_DE' => 'Bruder-Klausen-Fest', + 'de_CH' => 'Bruder-Klausen-Fest', + ], new DateTime($this->year . '-09-21', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index e8df41a0f..ca1b97409 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -83,14 +83,14 @@ public function calculateStPeterPaul() $this->addHoliday(new Holiday( 'stPeterPaul', [ - 'it_IT' => 'Santi Pietro e Paolo', - 'it_CH' => 'Santi Pietro e Paolo', - 'en_US' => 'Feast of Saints Peter and Paul', - 'fr_FR' => 'Solennité des saints Pierre et Paul', - 'fr_CH' => 'Solennité des saints Pierre et Paul', - 'de_DE' => 'St. Peter und Paul', - 'de_CH' => 'St. Peter und Paul', - ], + 'it_IT' => 'Santi Pietro e Paolo', + 'it_CH' => 'Santi Pietro e Paolo', + 'en_US' => 'Feast of Saints Peter and Paul', + 'fr_FR' => 'Solennité des saints Pierre et Paul', + 'fr_CH' => 'Solennité des saints Pierre et Paul', + 'de_DE' => 'St. Peter und Paul', + 'de_CH' => 'St. Peter und Paul', + ], new DateTime($this->year . '-06-29', new DateTimeZone($this->timezone)), $this->locale, Holiday::TYPE_OTHER diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index 7c081e979..4222f0a29 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -131,8 +131,8 @@ public function initialize() $this->addHoliday(new Holiday( 'labourDay', [ - 'en_US' => 'Labour Day', - ], + 'en_US' => 'Labour Day', + ], new DateTime("first monday of september $this->year", new DateTimeZone($this->timezone)), $this->locale )); @@ -190,8 +190,8 @@ public function initialize() $this->addHoliday(new Holiday( 'thanksgivingDay', [ - 'en_US' => 'Thanksgiving Day', - ], + 'en_US' => 'Thanksgiving Day', + ], new DateTime("fourth thursday of november $this->year", new DateTimeZone($this->timezone)), $this->locale )); diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index 6bab60ab0..aee82239a 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -151,6 +151,36 @@ private function calculateSpringBankHoliday() )); } + /** + * The Summer Bank holiday, also known as the Late Summer bank holiday, is a time for people in the United Kingdom + * to have a day off work or school. It falls on the last Monday of August replacing the first Monday in August + * (formerly commonly known as "August Bank Holiday". + * + * Many organizations, businesses and schools are closed. Stores may be open or closed, according to local custom. + * Public transport systems often run to a holiday timetable. + * + * @link https://www.timeanddate.com/holidays/uk/summer-bank-holiday + * @link https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + private function calculateSummerBankHoliday() + { + // Statutory bank holiday from 1971, following a trial period from 1965 to 1970. + if ($this->year < 1965) { + return; + } + + $this->addHoliday(new Holiday( + 'summerBankHoliday', + ['en_GB' => 'Summer Bank Holiday'], + new DateTime("last monday of august $this->year", new DateTimeZone($this->timezone)), + $this->locale, + Holiday::TYPE_BANK + )); + } + /** * Christmas Day is celebrated in the United Kingdom on December 25. It traditionally celebrates Jesus Christ's * birth but many aspects of this holiday have pagan origins. Christmas is a time for many people to give and @@ -204,34 +234,4 @@ public function calculateChristmasHolidays() )); } } - - /** - * The Summer Bank holiday, also known as the Late Summer bank holiday, is a time for people in the United Kingdom - * to have a day off work or school. It falls on the last Monday of August replacing the first Monday in August - * (formerly commonly known as "August Bank Holiday". - * - * Many organizations, businesses and schools are closed. Stores may be open or closed, according to local custom. - * Public transport systems often run to a holiday timetable. - * - * @link https://www.timeanddate.com/holidays/uk/summer-bank-holiday - * @link https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom - * - * @throws \InvalidArgumentException - * @throws \Yasumi\Exception\UnknownLocaleException - */ - private function calculateSummerBankHoliday() - { - // Statutory bank holiday from 1971, following a trial period from 1965 to 1970. - if ($this->year < 1965) { - return; - } - - $this->addHoliday(new Holiday( - 'summerBankHoliday', - ['en_GB' => 'Summer Bank Holiday'], - new DateTime("last monday of august $this->year", new DateTimeZone($this->timezone)), - $this->locale, - Holiday::TYPE_BANK - )); - } } From 2dbdebcdaf55b56c5aae6929187b009d06d29396 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 19 Jan 2018 12:13:39 +0900 Subject: [PATCH 017/132] Adding type declarations. Formatting fixes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 129 +++++++++++++++++++++--------------------- 1 file changed, 65 insertions(+), 64 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index f01b1a349..80da1c819 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -56,51 +56,6 @@ class Yasumi 'ChristianHolidays.php', ]; - /** - * Returns a list of available holiday providers. - * - * @return array list of available holiday providers - */ - public static function getProviders(): array - { - // Basic static cache - static $providers; - if ($providers !== null) { - return $providers; - } - - $ds = DIRECTORY_SEPARATOR; - - $providers = []; - $filesIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator( - __DIR__ . $ds . 'Provider', - FilesystemIterator::SKIP_DOTS - ), RecursiveIteratorIterator::SELF_FIRST); - - foreach ($filesIterator as $file) { - if ($file->isDir() || $file->getExtension() !== 'php' || in_array( - $file->getBasename('.php'), - self::$ignoredProvider, - true - ) - ) { - continue; - } - - $quotedDs = preg_quote($ds); - $provider = preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); - - $class = new ReflectionClass(sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $provider))); - - $key = 'ID'; - if ($class->hasConstant($key)) { - $providers[strtoupper($class->getConstant($key))] = $provider; - } - } - - return $providers; - } - /** * @param string $class holiday provider name * @param DateTime $startDate DateTime Start date, defaults to today @@ -114,7 +69,7 @@ public static function getProviders(): array * @throws \RuntimeException * @throws \InvalidArgumentException */ - public static function nextWorkingDay($class, DateTime $startDate, $workingDays = 1): DateTime + public static function nextWorkingDay(string $class, DateTime $startDate, int $workingDays = 1): DateTime { // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof DateTime ? clone $startDate : new DateTime($startDate); @@ -153,7 +108,7 @@ public static function nextWorkingDay($class, DateTime $startDate, $workingDays * * @return AbstractProvider An instance of class $class is created and returned */ - public static function create($class, $year = null, $locale = self::DEFAULT_LOCALE) + public static function create(string $class, int $year = null, string $locale = self::DEFAULT_LOCALE) { // Find and return holiday provider instance $providerClass = sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $class)); @@ -190,6 +145,16 @@ public static function create($class, $year = null, $locale = self::DEFAULT_LOCA return new $providerClass($year, $locale, self::$globalTranslations); } + /** + * Returns a list of available locales. + * + * @return array list of available locales + */ + public static function getAvailableLocales(): array + { + return require __DIR__ . '/data/locales.php'; + } + /** * Create a new holiday provider instance. * @@ -197,10 +162,10 @@ public static function create($class, $year = null, $locale = self::DEFAULT_LOCA * already with Yasumi, or your own provider by giving the 'const ID', corresponding to the ISO3166-2 Code, set in * your class in the first parameter. Your provider class needs to implement the 'ProviderInterface' class. * - * @param string $iso3166_2 ISO3166-2 Coded region, holiday provider will be searched for - * @param int $year year for which the country provider needs to be created. Year needs to be a valid integer - * between 1000 and 9999. - * @param string $locale The locale to use. If empty we'll use the default locale (en_US) + * @param string $iso3166_2 ISO3166-2 Coded region, holiday provider will be searched for + * @param int $year year for which the country provider needs to be created. Year needs to be a valid + * integer between 1000 and 9999. + * @param string $locale The locale to use. If empty we'll use the default locale (en_US) * * @throws RuntimeException If no such holiday provider is found * @throws InvalidArgumentException if the year parameter is not between 1000 and 9999 @@ -209,29 +174,65 @@ public static function create($class, $year = null, $locale = self::DEFAULT_LOCA * * @return AbstractProvider An instance of class $class is created and returned */ - public static function createByISO3166_2($iso3166_2, $year = null, $locale = self::DEFAULT_LOCALE): AbstractProvider - { + public static function createByISO3166_2( + string $iso3166_2, + int $year = null, + string $locale = self::DEFAULT_LOCALE + ): AbstractProvider { $availableProviders = self::getProviders(); if (false === isset($availableProviders[$iso3166_2])) { - throw new InvalidArgumentException(sprintf('Unable to find holiday provider by ISO3166-2 "%s".', $iso3166_2)); + throw new InvalidArgumentException(sprintf( + 'Unable to find holiday provider by ISO3166-2 "%s".', + $iso3166_2 + )); } - return self::create( - $availableProviders[$iso3166_2], - $year, - $locale - ); + return self::create($availableProviders[$iso3166_2], $year, $locale); } /** - * Returns a list of available locales. + * Returns a list of available holiday providers. * - * @return array list of available locales + * @return array list of available holiday providers */ - public static function getAvailableLocales(): array + public static function getProviders(): array { - return require __DIR__ . '/data/locales.php'; + // Basic static cache + static $providers; + if ($providers !== null) { + return $providers; + } + + $ds = DIRECTORY_SEPARATOR; + + $providers = []; + $filesIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator( + __DIR__ . $ds . 'Provider', + FilesystemIterator::SKIP_DOTS + ), RecursiveIteratorIterator::SELF_FIRST); + + foreach ($filesIterator as $file) { + if ($file->isDir() || $file->getExtension() !== 'php' || in_array( + $file->getBasename('.php'), + self::$ignoredProvider, + true + )) { + continue; + } + + $quotedDs = preg_quote($ds); + $provider = preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); + + $class = new ReflectionClass(sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $provider))); + + $key = 'ID'; + if ($class->hasConstant($key)) { + $providers[strtoupper($class->getConstant($key))] = $provider; + } + } + + return $providers; } /** @@ -247,7 +248,7 @@ public static function getAvailableLocales(): array * @throws \RuntimeException * @throws \InvalidArgumentException */ - public static function prevWorkingDay($class, DateTime $startDate, $workingDays = 1): DateTime + public static function prevWorkingDay(string $class, DateTime $startDate, int $workingDays = 1): DateTime { // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof DateTime ? clone $startDate : new DateTime($startDate); From 15b64f287bd073d5dd4f8ccd2f7fb154f6a3b441 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Mon, 22 Jan 2018 13:48:16 +0900 Subject: [PATCH 018/132] Formatting fixes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 29 ++++++-------- src/Yasumi/Provider/Estonia.php | 18 ++++----- src/Yasumi/Provider/Latvia.php | 24 ++++++------ src/Yasumi/Provider/Lithuania.php | 18 ++++----- src/Yasumi/Provider/Russia.php | 48 ++++++++++++------------ 5 files changed, 66 insertions(+), 71 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 56f0b482f..269346cc5 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -28,27 +28,11 @@ */ abstract class AbstractProvider implements ProviderInterface, Countable, IteratorAggregate { - /** - * @var int the object's current year - */ - protected $year; - - /** - * @var string the object's current timezone - */ - protected $timezone; - - /** - * @var string the object's current locale - */ - protected $locale; - /** * Code to identify the Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ const ID = 'US'; - /** * @var array list of the days of the week (the index of the weekdays) that are considered weekend days. * This list only concerns those countries that deviate from the global common definition, @@ -84,7 +68,18 @@ abstract class AbstractProvider implements ProviderInterface, Countable, Iterato // Friday 'IN' => [0], // India ]; - + /** + * @var int the object's current year + */ + protected $year; + /** + * @var string the object's current timezone + */ + protected $timezone; + /** + * @var string the object's current locale + */ + protected $locale; /** * @var Holiday[] list of dates of the available holidays */ diff --git a/src/Yasumi/Provider/Estonia.php b/src/Yasumi/Provider/Estonia.php index a4edf0f5f..bad66c457 100644 --- a/src/Yasumi/Provider/Estonia.php +++ b/src/Yasumi/Provider/Estonia.php @@ -68,9 +68,9 @@ private function addIndependenceDay() { if ($this->year >= self::DECLARATION_OF_INDEPENDENCE_YEAR) { $this->addHoliday(new Holiday('independenceDay', [ - 'en_US' => 'Independence Day', - 'et_EE' => 'Iseseisvuspäev' - ], new \DateTime("{$this->year}-02-24", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Independence Day', + 'et_EE' => 'Iseseisvuspäev' + ], new \DateTime("{$this->year}-02-24", new \DateTimeZone($this->timezone)))); } } @@ -81,9 +81,9 @@ private function addVictoryDay() { if ($this->year >= self::VICTORY_DAY_START_YEAR) { $this->addHoliday(new Holiday('victoryDay', [ - 'en_US' => 'Victory Day', - 'et_EE' => 'Võidupüha' - ], new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Victory Day', + 'et_EE' => 'Võidupüha' + ], new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)))); } } @@ -94,9 +94,9 @@ private function addRestorationOfIndependenceDay() { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { $this->addHoliday(new Holiday('restorationOfIndependenceDay', [ - 'en_US' => 'Day of Restoration of Independence', - 'et_EE' => 'Tasiseseisvumispäev' - ], new \DateTime("{$this->year}-08-20", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Day of Restoration of Independence', + 'et_EE' => 'Tasiseseisvumispäev' + ], new \DateTime("{$this->year}-08-20", new \DateTimeZone($this->timezone)))); } } } diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 5662b4da2..038c481aa 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -76,9 +76,9 @@ private function addRestorationOfIndependenceDay() } $this->addHoliday(new Holiday('restorationOfIndependenceOfLatviaDay', [ - 'en_US' => 'Restoration of Independence day', - 'lv_LV' => 'Latvijas Republikas Neatkarības atjaunošanas diena' - ], $date)); + 'en_US' => 'Restoration of Independence day', + 'lv_LV' => 'Latvijas Republikas Neatkarības atjaunošanas diena' + ], $date)); } } @@ -88,9 +88,9 @@ private function addRestorationOfIndependenceDay() private function addMidsummerEveDay() { $this->addHoliday(new Holiday('midsummerEveDay', [ - 'en_US' => 'Midsummer Eve', - 'lv_LV' => 'Līgo Diena' - ], new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Midsummer Eve', + 'lv_LV' => 'Līgo Diena' + ], new \DateTime("{$this->year}-06-23", new \DateTimeZone($this->timezone)))); } /** @@ -109,9 +109,9 @@ private function addProclamationDay() } $this->addHoliday(new Holiday('proclamationOfTheRepublicOfLatviaDay', [ - 'en_US' => 'Proclamation Day of the Republic of Latvia', - 'lv_LV' => 'Latvijas Republikas proklamēšanas diena' - ], $date)); + 'en_US' => 'Proclamation Day of the Republic of Latvia', + 'lv_LV' => 'Latvijas Republikas proklamēšanas diena' + ], $date)); } } @@ -121,8 +121,8 @@ private function addProclamationDay() private function addNewYearsEve() { $this->addHoliday(new Holiday('newYearsEve', [ - 'en_US' => 'New Year\'s Eve', - 'lv_LV' => 'Vecgada vakars' - ], new \DateTime("{$this->year}-12-31", new \DateTimeZone($this->timezone)))); + 'en_US' => 'New Year\'s Eve', + 'lv_LV' => 'Vecgada vakars' + ], new \DateTime("{$this->year}-12-31", new \DateTimeZone($this->timezone)))); } } diff --git a/src/Yasumi/Provider/Lithuania.php b/src/Yasumi/Provider/Lithuania.php index 2d489218e..7016c8ba3 100644 --- a/src/Yasumi/Provider/Lithuania.php +++ b/src/Yasumi/Provider/Lithuania.php @@ -80,9 +80,9 @@ private function addRestorationOfTheStateDay() { if ($this->year >= self::RESTORATION_OF_THE_STATE_YEAR) { $this->addHoliday(new Holiday('restorationOfTheStateOfLithuaniaDay', [ - 'en_US' => 'Day of Restoration of the State of Lithuania', - 'lt_LT' => 'Lietuvos valstybės atkūrimo diena' - ], new \DateTime("{$this->year}-02-16", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Day of Restoration of the State of Lithuania', + 'lt_LT' => 'Lietuvos valstybės atkūrimo diena' + ], new \DateTime("{$this->year}-02-16", new \DateTimeZone($this->timezone)))); } } @@ -95,9 +95,9 @@ private function addRestorationOfIndependenceDay() { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { $this->addHoliday(new Holiday('restorationOfIndependenceOfLithuaniaDay', [ - 'en_US' => 'Day of Restoration of Independence of Lithuania', - 'lt_LT' => 'Lietuvos nepriklausomybės atkūrimo diena' - ], new \DateTime("{$this->year}-03-11", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Day of Restoration of Independence of Lithuania', + 'lt_LT' => 'Lietuvos nepriklausomybės atkūrimo diena' + ], new \DateTime("{$this->year}-03-11", new \DateTimeZone($this->timezone)))); } } @@ -111,9 +111,9 @@ private function addStatehoodDay() { if ($this->year >= self::STATEHOOD_YEAR) { $this->addHoliday(new Holiday('statehoodDay', [ - 'en_US' => 'Statehood Day (Lithuania)', - 'lt_LT' => 'Valstybės (Lietuvos karaliaus Mindaugo karūnavimo) diena' - ], new \DateTime("{$this->year}-07-06", new \DateTimeZone($this->timezone)), $this->locale)); + 'en_US' => 'Statehood Day (Lithuania)', + 'lt_LT' => 'Valstybės (Lietuvos karaliaus Mindaugo karūnavimo) diena' + ], new \DateTime("{$this->year}-07-06", new \DateTimeZone($this->timezone)), $this->locale)); } } } diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index d0192b26b..eeadcd82b 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -65,9 +65,9 @@ private function addNewYearsHolidays() foreach ($holidayDays as $day) { $this->addHoliday(new Holiday('newYearHolidaysDay' . $day, [ - 'en_US' => 'New Year\'s holidays', - 'ru_RU' => 'Новогодние каникулы' - ], new \DateTime("{$this->year}-01-{$day}", new \DateTimeZone($this->timezone)))); + 'en_US' => 'New Year\'s holidays', + 'ru_RU' => 'Новогодние каникулы' + ], new \DateTime("{$this->year}-01-{$day}", new \DateTimeZone($this->timezone)))); } } @@ -77,9 +77,9 @@ private function addNewYearsHolidays() private function addOrthodoxChristmasDay() { $this->addHoliday(new Holiday('orthodoxChristmasDay', [ - 'en_US' => 'Orthodox Christmas Day', - 'ru_RU' => 'Рождество' - ], new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Orthodox Christmas Day', + 'ru_RU' => 'Рождество' + ], new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)))); } /** @@ -92,9 +92,9 @@ private function addDefenceOfTheFatherlandDay() } $this->addHoliday(new Holiday('defenceOfTheFatherlandDay', [ - 'en_US' => 'Defence of the Fatherland Day', - 'ru_RU' => 'День защитника Отечества' - ], new \DateTime("{$this->year}-02-23", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Defence of the Fatherland Day', + 'ru_RU' => 'День защитника Отечества' + ], new \DateTime("{$this->year}-02-23", new \DateTimeZone($this->timezone)))); } /** @@ -103,9 +103,9 @@ private function addDefenceOfTheFatherlandDay() private function addInternationalWomensDay() { $this->addHoliday(new Holiday('internationalWomensDay', [ - 'en_US' => 'International Women\'s Day', - 'ru_RU' => 'Международный женский день' - ], new \DateTime("{$this->year}-03-08", new \DateTimeZone($this->timezone)))); + 'en_US' => 'International Women\'s Day', + 'ru_RU' => 'Международный женский день' + ], new \DateTime("{$this->year}-03-08", new \DateTimeZone($this->timezone)))); } /** @@ -114,9 +114,9 @@ private function addInternationalWomensDay() private function addSpringAndLabourDay() { $this->addHoliday(new Holiday('springAndLabourDay', [ - 'en_US' => 'Spring and Labour Day', - 'ru_RU' => 'Праздник Весны и Труда' - ], new \DateTime("{$this->year}-05-01", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Spring and Labour Day', + 'ru_RU' => 'Праздник Весны и Труда' + ], new \DateTime("{$this->year}-05-01", new \DateTimeZone($this->timezone)))); } /** @@ -125,9 +125,9 @@ private function addSpringAndLabourDay() private function addVictoryDay() { $this->addHoliday(new Holiday('victoryDay', [ - 'en_US' => 'Victory Day', - 'ru_RU' => 'День Победы' - ], new \DateTime("{$this->year}-05-09", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Victory Day', + 'ru_RU' => 'День Победы' + ], new \DateTime("{$this->year}-05-09", new \DateTimeZone($this->timezone)))); } /** @@ -140,9 +140,9 @@ private function addRussiaDay() } $this->addHoliday(new Holiday('russiaDay', [ - 'en_US' => 'Russia Day', - 'ru_RU' => 'День России' - ], new \DateTime("{$this->year}-06-12", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Russia Day', + 'ru_RU' => 'День России' + ], new \DateTime("{$this->year}-06-12", new \DateTimeZone($this->timezone)))); } /** @@ -155,8 +155,8 @@ private function addUnityDay() } $this->addHoliday(new Holiday('unityDay', [ - 'en_US' => 'Unity Day', - 'ru_RU' => 'День народного единства' - ], new \DateTime("{$this->year}-11-04", new \DateTimeZone($this->timezone)))); + 'en_US' => 'Unity Day', + 'ru_RU' => 'День народного единства' + ], new \DateTime("{$this->year}-11-04", new \DateTimeZone($this->timezone)))); } } From 1e6e4305f9d6ceb39e6f0d7cffff5148a4741d7c Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Mon, 22 Jan 2018 13:48:36 +0900 Subject: [PATCH 019/132] Removed duplicate method getProviders. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 52 ++++--------------------------------------- 1 file changed, 4 insertions(+), 48 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 52ecc8e20..cabcd73e7 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -56,52 +56,6 @@ class Yasumi 'ChristianHolidays.php', ]; - /** - * Returns a list of available holiday providers. - * - * @return array list of available holiday providers - * - * @throws \ReflectionException - */ - public static function getProviders() - { - // Basic static cache - static $providers; - if ($providers !== null) { - return $providers; - } - - $ds = DIRECTORY_SEPARATOR; - - $providers = []; - $filesIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator( - __DIR__ . $ds . 'Provider', - FilesystemIterator::SKIP_DOTS - ), RecursiveIteratorIterator::SELF_FIRST); - - foreach ($filesIterator as $file) { - if ($file->isDir() || $file->getExtension() !== 'php' || in_array( - $file->getBasename('.php'), - self::$ignoredProvider, - true - )) { - continue; - } - - $quotedDs = preg_quote($ds, null); - $provider = preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); - - $class = new ReflectionClass(sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $provider))); - - $key = 'ID'; - if ($class->hasConstant($key)) { - $providers[strtoupper($class->getConstant($key))] = $provider; - } - } - - return $providers; - } - /** * @param string $class holiday provider name * @param DateTime $startDate DateTime Start date, defaults to today @@ -245,8 +199,10 @@ public static function createByISO3166_2( * Returns a list of available holiday providers. * * @return array list of available holiday providers + * + * @throws \ReflectionException */ - public static function getProviders(): array + public static function getProviders() { // Basic static cache static $providers; @@ -271,7 +227,7 @@ public static function getProviders(): array continue; } - $quotedDs = preg_quote($ds); + $quotedDs = preg_quote($ds, null); $provider = preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); $class = new ReflectionClass(sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $provider))); From 6a332c8cbe8ae73a3dd3414279750078f4044d13 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Wed, 24 Jan 2018 20:19:19 +0900 Subject: [PATCH 020/132] Fixed incorrect return types for next/prev WorkingDay methods. Removed duplicate getHolidays method. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 12 +----------- src/Yasumi/Yasumi.php | 14 ++++++++++---- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index ace8c1797..ba2728839 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -204,7 +204,7 @@ public function isWorkingDay($date): bool public function isHoliday($date): bool { // Return false if given date is invalid - if (!$date instanceof \DateTimeInterface) { + if (! $date instanceof \DateTimeInterface) { throw new InvalidDateException($date); } @@ -388,16 +388,6 @@ public function getHolidays(): array return $this->holidays; } - /** - * Gets all of the holidays defined by this holiday provider (for the given year). - * - * @return Holiday[] list of all holidays defined for the given year - */ - public function getHolidays() - { - return $this->holidays; - } - /** * Retrieves the previous date (year) the given holiday took place. * diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index e2f5dd810..d735212d2 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -74,8 +74,11 @@ class Yasumi * @TODO we should accept a timezone so we can accept int/string for $startDate * */ - public static function nextWorkingDay(string $class, \DateTimeInterface $startDate, int $workingDays = 1): DateTime - { + public static function nextWorkingDay( + string $class, + \DateTimeInterface $startDate, + int $workingDays = 1 + ): \DateTimeInterface { // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof \DateTime ? clone $startDate : $startDate; @@ -264,8 +267,11 @@ public static function getProviders() * @TODO we should accept a timezone so we can accept int/string for $startDate * */ - public static function prevWorkingDay(string $class, \DateTimeInterface $startDate, int $workingDays = 1): DateTime - { + public static function prevWorkingDay( + string $class, + \DateTimeInterface $startDate, + int $workingDays = 1 + ): \DateTimeInterface { // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof \DateTime ? clone $startDate : $startDate; From f3b903a8adaf5d6086ded53a519b70e585453507 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 26 Jan 2018 12:44:51 +0900 Subject: [PATCH 021/132] Added proper return types. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 6 +++--- src/Yasumi/Yasumi.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index ba2728839..fcb88f8c0 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -126,7 +126,7 @@ protected function clearHolidays() * @return int result where 0 means dates are equal, -1 the first date is before the second date, and 1 if the * second date is after the first. */ - private static function compareDates(\DateTimeInterface $dateA, \DateTimeInterface $dateB) + private static function compareDates(\DateTimeInterface $dateA, \DateTimeInterface $dateB): int { if ($dateA === $dateB) { return 0; @@ -181,7 +181,7 @@ public function isWorkingDay($date): bool // @TODO Ideally avoid late static binding here (static::ID) if ($date instanceof \DateTimeInterface) { $weekend_data = self::WEEKEND_DATA; - $weekend_days = isset($weekend_data[$this::ID]) ? $weekend_data[$this::ID] : [0, 6]; + $weekend_days = $weekend_data[$this::ID] ?? [0, 6]; if (in_array((int)$date->format('w'), $weekend_days, true)) { return false; @@ -429,7 +429,7 @@ public function previous($shortName) * * @return \Yasumi\Filters\BetweenFilter */ - public function between(\DateTimeInterface $start_date, \DateTimeInterface $end_date, $equals = true) + public function between(\DateTimeInterface $start_date, \DateTimeInterface $end_date, $equals = true): BetweenFilter { if ($start_date > $end_date) { throw new InvalidArgumentException('Start date must be a date before the end date.'); diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index d735212d2..cd97064bc 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -208,7 +208,7 @@ public static function createByISO3166_2( * * @throws \ReflectionException */ - public static function getProviders() + public static function getProviders(): array { // Basic static cache static $providers; @@ -233,7 +233,7 @@ public static function getProviders() continue; } - $quotedDs = preg_quote($ds, null); + $quotedDs = preg_quote($ds); $provider = preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); $class = new ReflectionClass(sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $provider))); From 971b122fe7e80da10f56860059232092156446b7 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 26 Jan 2018 12:50:51 +0900 Subject: [PATCH 022/132] Updated inline documentation to include correction Exception throws. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia.php | 6 +++++ src/Yasumi/Provider/Australia/Victoria.php | 1 + src/Yasumi/Provider/Austria.php | 2 ++ src/Yasumi/Provider/Belgium.php | 1 + src/Yasumi/Provider/Brazil.php | 1 + src/Yasumi/Provider/ChristianHolidays.php | 22 +++++++++++++++++++ src/Yasumi/Provider/CommonHolidays.php | 9 ++++++++ src/Yasumi/Provider/Croatia.php | 1 + src/Yasumi/Provider/CzechRepublic.php | 6 +++++ src/Yasumi/Provider/Denmark.php | 2 ++ src/Yasumi/Provider/Finland.php | 4 ++++ src/Yasumi/Provider/France.php | 2 ++ src/Yasumi/Provider/France/BasRhin.php | 1 + src/Yasumi/Provider/France/HautRhin.php | 1 + src/Yasumi/Provider/France/Moselle.php | 1 + src/Yasumi/Provider/Germany.php | 2 ++ .../Provider/Germany/BadenWurttemberg.php | 1 + src/Yasumi/Provider/Germany/Bavaria.php | 1 + src/Yasumi/Provider/Germany/Brandenburg.php | 2 ++ src/Yasumi/Provider/Germany/Hesse.php | 1 + .../Germany/MecklenburgWesternPomerania.php | 2 ++ .../Provider/Germany/NorthRhineWestphalia.php | 1 + .../Provider/Germany/RhinelandPalatinate.php | 1 + src/Yasumi/Provider/Germany/Saarland.php | 1 + src/Yasumi/Provider/Germany/Saxony.php | 3 +++ src/Yasumi/Provider/Germany/SaxonyAnhalt.php | 2 ++ src/Yasumi/Provider/Germany/Thuringia.php | 2 ++ src/Yasumi/Provider/Greece.php | 6 +++++ src/Yasumi/Provider/Hungary.php | 1 + src/Yasumi/Provider/Ireland.php | 9 ++++++++ src/Yasumi/Provider/Italy.php | 3 +++ src/Yasumi/Provider/Japan.php | 10 +++++++++ src/Yasumi/Provider/Netherlands.php | 1 + src/Yasumi/Provider/NewZealand.php | 7 ++++++ src/Yasumi/Provider/Norway.php | 2 ++ src/Yasumi/Provider/Poland.php | 3 +++ src/Yasumi/Provider/Portugal.php | 7 ++++++ src/Yasumi/Provider/Romania.php | 7 ++++++ src/Yasumi/Provider/Slovakia.php | 6 +++++ src/Yasumi/Provider/SouthAfrica.php | 11 ++++++++++ src/Yasumi/Provider/Spain.php | 3 +++ src/Yasumi/Provider/Spain/Andalusia.php | 2 ++ src/Yasumi/Provider/Spain/Aragon.php | 1 + src/Yasumi/Provider/Spain/Asturias.php | 2 ++ src/Yasumi/Provider/Spain/BalearicIslands.php | 2 ++ src/Yasumi/Provider/Spain/BasqueCountry.php | 2 ++ src/Yasumi/Provider/Spain/CanaryIslands.php | 2 ++ src/Yasumi/Provider/Spain/Cantabria.php | 2 ++ src/Yasumi/Provider/Spain/CastileAndLeon.php | 2 ++ .../Provider/Spain/CastillaLaMancha.php | 2 ++ src/Yasumi/Provider/Spain/Catalonia.php | 2 ++ src/Yasumi/Provider/Spain/Ceuta.php | 2 ++ .../Provider/Spain/CommunityOfMadrid.php | 2 ++ src/Yasumi/Provider/Spain/Extremadura.php | 2 ++ src/Yasumi/Provider/Spain/Galicia.php | 3 +++ src/Yasumi/Provider/Spain/LaRioja.php | 2 ++ src/Yasumi/Provider/Spain/Melilla.php | 1 + src/Yasumi/Provider/Spain/Navarre.php | 1 + src/Yasumi/Provider/Spain/RegionOfMurcia.php | 2 ++ .../Provider/Spain/ValencianCommunity.php | 2 ++ src/Yasumi/Provider/Sweden.php | 4 ++++ src/Yasumi/Provider/Switzerland.php | 4 ++++ src/Yasumi/Provider/Switzerland/Aargau.php | 1 + .../Switzerland/AppenzellAusserrhoden.php | 1 + .../Switzerland/AppenzellInnerrhoden.php | 1 + .../Provider/Switzerland/BaselLandschaft.php | 1 + .../Provider/Switzerland/BaselStadt.php | 1 + src/Yasumi/Provider/Switzerland/Bern.php | 1 + src/Yasumi/Provider/Switzerland/Fribourg.php | 1 + src/Yasumi/Provider/Switzerland/Geneva.php | 3 +++ src/Yasumi/Provider/Switzerland/Glarus.php | 2 ++ src/Yasumi/Provider/Switzerland/Grisons.php | 1 + src/Yasumi/Provider/Switzerland/Jura.php | 2 ++ src/Yasumi/Provider/Switzerland/Lucerne.php | 1 + src/Yasumi/Provider/Switzerland/Neuchatel.php | 2 ++ src/Yasumi/Provider/Switzerland/Nidwalden.php | 1 + src/Yasumi/Provider/Switzerland/Obwalden.php | 2 ++ .../Provider/Switzerland/Schaffhausen.php | 1 + src/Yasumi/Provider/Switzerland/Schwyz.php | 1 + src/Yasumi/Provider/Switzerland/Solothurn.php | 1 + src/Yasumi/Provider/Switzerland/StGallen.php | 1 + src/Yasumi/Provider/Switzerland/Thurgau.php | 1 + src/Yasumi/Provider/Switzerland/Ticino.php | 2 ++ src/Yasumi/Provider/Switzerland/Uri.php | 1 + src/Yasumi/Provider/Switzerland/Valais.php | 1 + src/Yasumi/Provider/Switzerland/Vaud.php | 1 + src/Yasumi/Provider/Switzerland/Zug.php | 1 + src/Yasumi/Provider/Switzerland/Zurich.php | 1 + src/Yasumi/Provider/USA.php | 2 ++ src/Yasumi/Provider/Ukraine.php | 8 +++++++ src/Yasumi/Provider/UnitedKingdom.php | 6 +++++ src/Yasumi/Yasumi.php | 6 +++++ 92 files changed, 254 insertions(+) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index f6318de6a..05a6387c3 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -35,6 +35,7 @@ class Australia extends AbstractProvider /** * Initialize holidays for Australia. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -68,6 +69,7 @@ public function initialize() * @link https://en.wikipedia.org/wiki/Waitangi_Day * @link https://www.timeanddate.com/holidays/australia/australia-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -123,6 +125,7 @@ public function calculateHoliday( * * @link https://www.timeanddate.com/holidays/australia/new-year-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -146,6 +149,7 @@ public function calculateNewYearHolidays() * @link https://en.wikipedia.org/wiki/Anzac_Day * @link https://www.timeanddate.com/holidays/australia/anzac-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -169,6 +173,7 @@ public function calculateAnzacDay() * * @link https://www.timeanddate.com/holidays/australia/christmas-day-holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -223,6 +228,7 @@ public function calculateQueensBirthday() /** * @link https://www.timeanddate.com/holidays/australia/labour-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index f47c68afa..b32985c5d 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -32,6 +32,7 @@ class Victoria extends Australia /** * Initialize holidays for Victoria (Australia). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Austria.php b/src/Yasumi/Provider/Austria.php index a246c68f8..210a497a8 100644 --- a/src/Yasumi/Provider/Austria.php +++ b/src/Yasumi/Provider/Austria.php @@ -32,6 +32,7 @@ class Austria extends AbstractProvider /** * Initialize holidays for Austria. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -72,6 +73,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Declaration_of_Neutrality * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Belgium.php b/src/Yasumi/Provider/Belgium.php index d22cf502e..154590af0 100755 --- a/src/Yasumi/Provider/Belgium.php +++ b/src/Yasumi/Provider/Belgium.php @@ -32,6 +32,7 @@ class Belgium extends AbstractProvider /** * Initialize holidays for Belgium. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Brazil.php b/src/Yasumi/Provider/Brazil.php index a3626b3b2..0c9af33de 100644 --- a/src/Yasumi/Provider/Brazil.php +++ b/src/Yasumi/Provider/Brazil.php @@ -33,6 +33,7 @@ class Brazil extends AbstractProvider /** * Initialize holidays for Brazil. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index 2c0ce3895..f0c32f9c5 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -42,6 +42,7 @@ trait ChristianHolidays * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -67,6 +68,7 @@ public function easter($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -99,6 +101,7 @@ public function easterMonday($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -128,6 +131,7 @@ public function ascensionDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -157,6 +161,7 @@ public function pentecost($year, $timezone, $locale, $type = Holiday::TYPE_OFFIC * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -189,6 +194,7 @@ public function pentecostMonday($year, $timezone, $locale, $type = Holiday::TYPE * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -222,6 +228,7 @@ public function corpusChristi($year, $timezone, $locale, $type = Holiday::TYPE_O * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -251,6 +258,7 @@ public function christmasEve($year, $timezone, $locale, $type = Holiday::TYPE_OB * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -280,6 +288,7 @@ public function christmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -312,6 +321,7 @@ public function secondChristmasDay($year, $timezone, $locale, $type = Holiday::T * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -337,6 +347,7 @@ public function allSaintsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -366,6 +377,7 @@ public function assumptionOfMary($year, $timezone, $locale, $type = Holiday::TYP * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -400,6 +412,7 @@ public function goodFriday($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -425,6 +438,7 @@ public function epiphany($year, $timezone, $locale, $type = Holiday::TYPE_OFFICI * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -458,6 +472,7 @@ public function ashWednesday($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -491,6 +506,7 @@ public function immaculateConception($year, $timezone, $locale, $type = Holiday: * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -524,6 +540,7 @@ public function stStephensDay($year, $timezone, $locale, $type = Holiday::TYPE_O * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -550,6 +567,7 @@ public function stJosephsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception @@ -583,6 +601,7 @@ public function maundyThursday($year, $timezone, $locale, $type = Holiday::TYPE_ * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -610,6 +629,7 @@ public function stGeorgesDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -637,6 +657,7 @@ public function stJohnsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -699,6 +720,7 @@ public function calculateOrthodoxEaster($year, $timezone): \DateTime * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index d0550248b..fe53f63f9 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -43,6 +43,7 @@ trait CommonHolidays * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -70,6 +71,7 @@ public function newYearsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -103,6 +105,7 @@ public function internationalWorkersDay($year, $timezone, $locale, $type = Holid * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -134,6 +137,7 @@ public function valentinesDay($year, $timezone, $locale, $type = Holiday::TYPE_O * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -167,6 +171,7 @@ public function worldAnimalDay($year, $timezone, $locale, $type = Holiday::TYPE_ * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -199,6 +204,7 @@ public function stMartinsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -231,6 +237,7 @@ public function fathersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -263,6 +270,7 @@ public function mothersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ @@ -297,6 +305,7 @@ public function victoryInEuropeDay($year, $timezone, $locale, $type = Holiday::T * * @return \Yasumi\Holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ diff --git a/src/Yasumi/Provider/Croatia.php b/src/Yasumi/Provider/Croatia.php index 8a5e3cce5..dc26fc172 100644 --- a/src/Yasumi/Provider/Croatia.php +++ b/src/Yasumi/Provider/Croatia.php @@ -34,6 +34,7 @@ class Croatia extends AbstractProvider /** * Initialize holidays for Croatia. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/CzechRepublic.php b/src/Yasumi/Provider/CzechRepublic.php index 566e2d730..9f5f7fa74 100644 --- a/src/Yasumi/Provider/CzechRepublic.php +++ b/src/Yasumi/Provider/CzechRepublic.php @@ -35,6 +35,7 @@ class CzechRepublic extends AbstractProvider /** * Initialize holidays for the Czech Republic. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -74,6 +75,7 @@ public function initialize() * @see https://en.wikipedia.org/wiki/Saints_Cyril_and_Methodius * @see https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -97,6 +99,7 @@ public function calculateSaintsCyrilAndMethodiusDay() * @see https://en.wikipedia.org/wiki/Jan_Hus * @see https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -123,6 +126,7 @@ public function calculateJanHusDay() * @see https://en.wikipedia.org/wiki/Wenceslaus_I,_Duke_of_Bohemia * @see https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -141,6 +145,7 @@ public function calculateCzechStatehoodDay() * * @see https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -157,6 +162,7 @@ public function calculateIndependentCzechoslovakStateDay() * * @see https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index 5bcc6c49b..84b1f7292 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -33,6 +33,7 @@ class Denmark extends AbstractProvider /** * Initialize holidays for Denmark. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Store_Bededag * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Finland.php b/src/Yasumi/Provider/Finland.php index 5506b5cf5..0f2a4cfad 100644 --- a/src/Yasumi/Provider/Finland.php +++ b/src/Yasumi/Provider/Finland.php @@ -33,6 +33,7 @@ class Finland extends AbstractProvider /** * Initialize holidays for Finland. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -76,6 +77,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Midsummer#Finland * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -118,6 +120,7 @@ public function calculateStJohnsDay() * @link https://en.wikipedia.org/wiki/All_Saints%27_Day * @link https://fi.wikipedia.org/wiki/Pyh%C3%A4inp%C3%A4iv%C3%A4 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -150,6 +153,7 @@ private function calculateAllSaintsDay() * * @link https://en.wikipedia.org/wiki/Independence_Day_(Finland) * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/France.php b/src/Yasumi/Provider/France.php index 2833a4f50..126c87eef 100755 --- a/src/Yasumi/Provider/France.php +++ b/src/Yasumi/Provider/France.php @@ -32,6 +32,7 @@ class France extends AbstractProvider /** * Initialize holidays for France. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -76,6 +77,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/Bastille_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/France/BasRhin.php b/src/Yasumi/Provider/France/BasRhin.php index 8fb0e341b..9b8a821ea 100755 --- a/src/Yasumi/Provider/France/BasRhin.php +++ b/src/Yasumi/Provider/France/BasRhin.php @@ -37,6 +37,7 @@ class BasRhin extends France /** * Initialize holidays for Bas-Rhin (France). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/France/HautRhin.php b/src/Yasumi/Provider/France/HautRhin.php index d51c2bac9..3eef4d35d 100755 --- a/src/Yasumi/Provider/France/HautRhin.php +++ b/src/Yasumi/Provider/France/HautRhin.php @@ -37,6 +37,7 @@ class HautRhin extends France /** * Initialize holidays for Haut-Rhin (France). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/France/Moselle.php b/src/Yasumi/Provider/France/Moselle.php index c9ca9f259..c0b7a4229 100755 --- a/src/Yasumi/Provider/France/Moselle.php +++ b/src/Yasumi/Provider/France/Moselle.php @@ -38,6 +38,7 @@ class Moselle extends France /** * Initialize holidays for Moselle (France). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany.php b/src/Yasumi/Provider/Germany.php index 94952ec93..9df6270e4 100644 --- a/src/Yasumi/Provider/Germany.php +++ b/src/Yasumi/Provider/Germany.php @@ -32,6 +32,7 @@ class Germany extends AbstractProvider /** * Initialize holidays for Germany. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -76,6 +77,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/German_Unity_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Germany/BadenWurttemberg.php b/src/Yasumi/Provider/Germany/BadenWurttemberg.php index e379afcb5..8b443a584 100755 --- a/src/Yasumi/Provider/Germany/BadenWurttemberg.php +++ b/src/Yasumi/Provider/Germany/BadenWurttemberg.php @@ -35,6 +35,7 @@ class BadenWurttemberg extends Germany /** * Initialize holidays for Baden-Württemberg (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany/Bavaria.php b/src/Yasumi/Provider/Germany/Bavaria.php index 9da8454e2..7a745d62b 100755 --- a/src/Yasumi/Provider/Germany/Bavaria.php +++ b/src/Yasumi/Provider/Germany/Bavaria.php @@ -36,6 +36,7 @@ class Bavaria extends Germany /** * Initialize holidays for Bavaria (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany/Brandenburg.php b/src/Yasumi/Provider/Germany/Brandenburg.php index 2d612bc06..77885eb2e 100755 --- a/src/Yasumi/Provider/Germany/Brandenburg.php +++ b/src/Yasumi/Provider/Germany/Brandenburg.php @@ -34,6 +34,7 @@ class Brandenburg extends Germany /** * Initialize holidays for Brandenburg (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -50,6 +51,7 @@ public function initialize() * For the German state of Brandenburg, Reformation Day was celebrated since 1517. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Germany/Hesse.php b/src/Yasumi/Provider/Germany/Hesse.php index 08da7609d..ca33033ba 100755 --- a/src/Yasumi/Provider/Germany/Hesse.php +++ b/src/Yasumi/Provider/Germany/Hesse.php @@ -36,6 +36,7 @@ class Hesse extends Germany /** * Initialize holidays for Hesse (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php index 2ab6918f8..8b12c95bd 100755 --- a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php +++ b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php @@ -35,6 +35,7 @@ class MecklenburgWesternPomerania extends Germany /** * Initialize holidays for Mecklenburg-Western Pomerania (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -51,6 +52,7 @@ public function initialize() * For the German state of Mecklenburg-Western Pomerania, Reformation Day was celebrated since 1517. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php index 247c6608e..d121d1a5f 100755 --- a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php +++ b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php @@ -36,6 +36,7 @@ class NorthRhineWestphalia extends Germany /** * Initialize holidays for North Rhine-Westphalia (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php index 0177b6d86..533ea4fe1 100755 --- a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php +++ b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php @@ -35,6 +35,7 @@ class RhinelandPalatinate extends Germany /** * Initialize holidays for Rhineland Palatinate (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany/Saarland.php b/src/Yasumi/Provider/Germany/Saarland.php index 975328193..56fb4e03c 100755 --- a/src/Yasumi/Provider/Germany/Saarland.php +++ b/src/Yasumi/Provider/Germany/Saarland.php @@ -36,6 +36,7 @@ class Saarland extends Germany /** * Initialize holidays for Saarland (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Germany/Saxony.php b/src/Yasumi/Provider/Germany/Saxony.php index 39adef155..551c46dd0 100755 --- a/src/Yasumi/Provider/Germany/Saxony.php +++ b/src/Yasumi/Provider/Germany/Saxony.php @@ -36,6 +36,7 @@ class Saxony extends Germany /** * Initialize holidays for Saxony (Germany). + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -53,6 +54,7 @@ public function initialize() * For the German state of Saxony, Reformation Day was celebrated since 1517. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -77,6 +79,7 @@ private function calculateReformationDay() * * @link https://en.wikipedia.org/wiki/Bu%C3%9F-_und_Bettag * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php index 75815cee4..588645de4 100755 --- a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php +++ b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php @@ -35,6 +35,7 @@ class SaxonyAnhalt extends Germany /** * Initialize holidays for Saxony-Anhalt (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -52,6 +53,7 @@ public function initialize() * For the German state of Saxony-Anhalt, Reformation Day was celebrated since 1517. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Germany/Thuringia.php b/src/Yasumi/Provider/Germany/Thuringia.php index 0ebeceea6..fa24890c9 100755 --- a/src/Yasumi/Provider/Germany/Thuringia.php +++ b/src/Yasumi/Provider/Germany/Thuringia.php @@ -35,6 +35,7 @@ class Thuringia extends Germany /** * Initialize holidays for Thuringia (Germany). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -51,6 +52,7 @@ public function initialize() * For the German state of Thuringia, Reformation Day was celebrated since 1517. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Greece.php b/src/Yasumi/Provider/Greece.php index 1ac5b4bb6..d2d7fd563 100644 --- a/src/Yasumi/Provider/Greece.php +++ b/src/Yasumi/Provider/Greece.php @@ -33,6 +33,7 @@ class Greece extends AbstractProvider /** * Initialize holidays for Greece. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -73,6 +74,7 @@ public function initialize() * * @see https://en.wikipedia.org/wiki/Three_Holy_Hierarchs * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -96,6 +98,7 @@ public function calculateThreeHolyHierarchs() * * @see https://en.wikipedia.org/wiki/Clean_Monday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -132,6 +135,7 @@ public function calculateEaster($year, $timezone): DateTime * * @link https://en.wikipedia.org/wiki/Greek_War_of_Independence * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -155,6 +159,7 @@ public function calculateIndependenceDay() * * @link https://en.wikipedia.org/wiki/Ohi_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -177,6 +182,7 @@ public function calculateOhiDay() * * @link https://en.wikipedia.org/wiki/Athens_Polytechnic_uprising * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Hungary.php b/src/Yasumi/Provider/Hungary.php index 1abea03b9..a80bf1ede 100644 --- a/src/Yasumi/Provider/Hungary.php +++ b/src/Yasumi/Provider/Hungary.php @@ -34,6 +34,7 @@ class Hungary extends AbstractProvider /** * Initialize holidays for Hungary. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Ireland.php b/src/Yasumi/Provider/Ireland.php index 7c59c6d98..8fe190673 100644 --- a/src/Yasumi/Provider/Ireland.php +++ b/src/Yasumi/Provider/Ireland.php @@ -38,6 +38,7 @@ class Ireland extends AbstractProvider /** * Initialize holidays for Ireland. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -85,6 +86,7 @@ public function initialize() * states that New Years Day is substituted the *next* day if it does not fall on a weekday. So what if it * falls on a Saturday? * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -116,6 +118,7 @@ public function calculateNewYearsDay() * @link http://www.irishstatutebook.ie/eli/1939/act/1/section/8/enacted/en/html * @link http://www.irishstatutebook.ie/eli/1973/act/25/schedule/1/enacted/en/html#sched1 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -137,6 +140,7 @@ public function calculatePentecostMonday() * * @link http://www.irishstatutebook.ie/eli/1973/act/25/schedule/1/enacted/en/html#sched1 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -171,6 +175,7 @@ public function calculateChristmasDay() * @link https://en.wikipedia.org/wiki/St._Stephen%27s_Day * @see ChristianHolidays * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -207,6 +212,7 @@ public function calculateStStephensDay() * * @link https://en.wikipedia.org/wiki/Saint_Patrick%27s_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -246,6 +252,7 @@ public function calculateStPatricksDay() * * @link https://en.wikipedia.org/wiki/May_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -271,6 +278,7 @@ public function calculateMayDay() * * @link http://www.irishstatutebook.ie/eli/1961/act/33/section/8/enacted/en/html * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -295,6 +303,7 @@ public function calculateJuneHoliday() * * @link http://www.irishstatutebook.ie/eli/1973/act/25/schedule/1/enacted/en/html#sched1 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Italy.php b/src/Yasumi/Provider/Italy.php index 298f5921a..e667364d8 100755 --- a/src/Yasumi/Provider/Italy.php +++ b/src/Yasumi/Provider/Italy.php @@ -32,6 +32,7 @@ class Italy extends AbstractProvider /** * Initialize holidays for Italy. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/Liberation_Day_%28Italy%29 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -95,6 +97,7 @@ public function calculateLiberationDay() * * @link http://en.wikipedia.org/wiki/Festa_della_Repubblica * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index caca56e38..253f59735 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -74,6 +74,7 @@ class Japan extends AbstractProvider /** * Initialize holidays for Japan. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -206,6 +207,7 @@ public function initialize() * * @link http://www.h3.dion.ne.jp/~sakatsu/holiday_topic.htm (in Japanese) * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -238,6 +240,7 @@ private function calculateVernalEquinoxDay() * Coming of Age Day was established after 1948 on January 15th. After 2000 it was changed to be the second monday * of January. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -265,6 +268,7 @@ private function calculateComingOfAgeDay() * * Greenery Day was established from 1989 on April 29th. After 2007 it was changed to be May 4th. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -292,6 +296,7 @@ private function calculateGreeneryDay() * * Marine Day was established since 1996 on July 20th. After 2003 it was changed to be the third monday of July. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -320,6 +325,7 @@ private function calculateMarineDay() * Respect for the Age Day was established since 1996 on September 15th. After 2003 it was changed to be the third * monday of September. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -348,6 +354,7 @@ private function calculateRespectForTheAgeDay() * Health And Sports Day was established since 1966 on October 10th. After 2000 it was changed to be the second * monday of October. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -379,6 +386,7 @@ private function calculateHealthAndSportsDay() * * @link http://www.h3.dion.ne.jp/~sakatsu/holiday_topic.htm (in Japanese) * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -411,6 +419,7 @@ private function calculateAutumnalEquinoxDay() * Generally if a national holiday falls on a Sunday, the holiday is observed the next working day (not being * another holiday). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -457,6 +466,7 @@ private function calculateSubstituteHolidays() * * Any day that falls between two other national holidays also becomes a holiday, known as a bridge holiday. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Netherlands.php b/src/Yasumi/Provider/Netherlands.php index cee7edbee..c140be5b3 100755 --- a/src/Yasumi/Provider/Netherlands.php +++ b/src/Yasumi/Provider/Netherlands.php @@ -33,6 +33,7 @@ class Netherlands extends AbstractProvider /** * Initialize holidays for the Netherlands. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index 9973a51ad..927080628 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -33,6 +33,7 @@ class NewZealand extends AbstractProvider /** * Initialize holidays for New Zealand. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -65,6 +66,7 @@ public function initialize() * @link http://www.timeanddate.com/holidays/new-zealand/day-after-new-years-day * @link http://employment.govt.nz/er/holidaysandleave/publicholidays/mondayisation.asp * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -104,6 +106,7 @@ public function calculateNewYearHolidays() * @link https://en.wikipedia.org/wiki/Waitangi_Day * @link http://employment.govt.nz/er/holidaysandleave/publicholidays/mondayisation.asp * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -132,6 +135,7 @@ public function calculateWaitangiDay() * @link https://en.wikipedia.org/wiki/Anzac_Day * @link http://employment.govt.nz/er/holidaysandleave/publicholidays/mondayisation.asp * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -163,6 +167,7 @@ public function calculateAnzacDay() * * @link http://www.timeanddate.com/holidays/new-zealand/queen-birthday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -194,6 +199,7 @@ public function calculateQueensBirthday() * * @link http://www.timeanddate.com/holidays/new-zealand/labour-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -221,6 +227,7 @@ public function calculateLabourDay() * @link http://www.timeanddate.com/holidays/new-zealand/christmas-day * @link http://employment.govt.nz/er/holidaysandleave/publicholidays/mondayisation.asp * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index 046f6fa48..5efa7c115 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -32,6 +32,7 @@ class Norway extends AbstractProvider /** * Initialize holidays for Norway. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -71,6 +72,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Store_Bededag * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Poland.php b/src/Yasumi/Provider/Poland.php index 12e89aec5..cc1a58c2c 100755 --- a/src/Yasumi/Provider/Poland.php +++ b/src/Yasumi/Provider/Poland.php @@ -32,6 +32,7 @@ class Poland extends AbstractProvider /** * Initialize holidays for Poland. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/May_3rd_Constitution_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -96,6 +98,7 @@ public function calculateIndependenceDay() * * @link https://en.wikipedia.org/wiki/National_Independence_Day_(Poland) * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Portugal.php b/src/Yasumi/Provider/Portugal.php index 779da2f91..313e60f30 100644 --- a/src/Yasumi/Provider/Portugal.php +++ b/src/Yasumi/Provider/Portugal.php @@ -36,6 +36,7 @@ class Portugal extends AbstractProvider /** * Initialize holidays for Portugal. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -75,6 +76,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Carnation_Revolution * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -95,6 +97,7 @@ public function calculateCarnationRevolutionDay() * In Portugal, between 2013 andd 2015 (inclusive) this holiday did not happen due to government deliberation. * It was restored in 2016. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -119,6 +122,7 @@ public function calculateCorpusChristi() * * @link https://en.wikipedia.org/wiki/Portugal_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -149,6 +153,7 @@ public function calculatePortugalDay() * * @link https://en.wikipedia.org/wiki/5_October_1910_revolution * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -168,6 +173,7 @@ public function calculatePortugueseRepublicDay() * In Portugal, between 2013 andd 2015 (inclusive) this holiday did not happen due to government deliberation. * It was restored in 2016. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -198,6 +204,7 @@ public function calculateAllSaintsDay() * @link https://pt.wikipedia.org/wiki/Restauração_da_Independência (portuguese link) * @link https://pt.wikipedia.org/wiki/Guerra_da_Restauração (english link) * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index 01c146843..6a28df971 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -37,6 +37,7 @@ class Romania extends AbstractProvider /** * Initialize holidays for Romania. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -78,6 +79,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Public_holidays_in_Romania * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -99,6 +101,7 @@ public function calculateDayAfterNewYearsDay() * * @link https://en.wikipedia.org/wiki/United_Principalities * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -120,6 +123,7 @@ public function calculateUnitedPrincipalitiesDay() * * @link https://en.wikipedia.org/wiki/St._Andrew%27s_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -144,6 +148,7 @@ public function calculateStAndrewDay() * @link https://en.wikipedia.org/wiki/Great_Union_Day * @link https://ro.wikipedia.org/wiki/Ziua_na%C8%9Bional%C4%83_a_Rom%C3%A2niei * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -178,6 +183,7 @@ public function calculateNationalDay() * Constantin Brâncuși (February 19, 1876 – March 16, 1957) was a Romanian sculptor, painter and photographer. * * @link https://en.wikipedia.org/wiki/Constantin_Br%C3%A2ncu%C8%99i + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -204,6 +210,7 @@ public function calculateConstantinBrancusiDay() * according to the Law 220/2016 (18.11.2016) * * @link https://en.wikipedia.org/wiki/Children%27s_Day + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Slovakia.php b/src/Yasumi/Provider/Slovakia.php index 71163c298..bbcdcff65 100644 --- a/src/Yasumi/Provider/Slovakia.php +++ b/src/Yasumi/Provider/Slovakia.php @@ -58,6 +58,7 @@ class Slovakia extends AbstractProvider /** * Initialize holidays for Slovakia. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -110,6 +111,7 @@ public function initialize() * * Note: this holiday is common for Czech republic and Slovakia. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -133,6 +135,7 @@ public function calculateSaintsCyrilAndMethodiusDay() * * @see https://en.wikipedia.org/wiki/Slovak_National_Uprising * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -155,6 +158,7 @@ public function calculateSlovakNationalUprisingDay() * * @see https://en.wikipedia.org/wiki/Constitution_of_Slovakia * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -181,6 +185,7 @@ public function calculateSlovakConstitutionDay() * @see https://en.wikipedia.org/wiki/Our_Lady_of_Sorrows * @see https://sk.wikipedia.org/wiki/Sedembolestn%C3%A1_Panna_M%C3%A1ria * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -197,6 +202,7 @@ public function calculateOurLadyOfSorrowsDay() * * Note: this national day is common for Czech republic and Slovakia. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/SouthAfrica.php b/src/Yasumi/Provider/SouthAfrica.php index b999d659d..ee192cfb5 100644 --- a/src/Yasumi/Provider/SouthAfrica.php +++ b/src/Yasumi/Provider/SouthAfrica.php @@ -38,6 +38,7 @@ class SouthAfrica extends AbstractProvider /** * Initialize holidays for South Africa. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -86,6 +87,7 @@ public function initialize() * * @link http://www.gov.za/about-sa/public-holidays#21march * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -106,6 +108,7 @@ public function calculateHumanRightsDay() * * @link http://www.gov.za/sites/www.gov.za/files/Act36of1994.pdf * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -128,6 +131,7 @@ public function calculateFamilyDay() * @link http://www.gov.za/sites/www.gov.za/files/Act36of1994.pdf * @link http://www.gov.za/freedom-day-2014 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -153,6 +157,7 @@ public function calculateFreedomDay() * @link http://www.gov.za/sites/www.gov.za/files/Act36of1994.pdf * @link http://www.gov.za/youth-day-2014 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -174,6 +179,7 @@ public function calculateYouthDay() * * @link http://www.gov.za/speeches/president-jacob-zuma-declares-3-august-2016-public-holiday-24-jun-2016-0000 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -201,6 +207,7 @@ public function calculate2016MunicipalElectionsDay() * @link http://www.gov.za/about-sa/public-holidays#women * @link http://www.gov.za/womens-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -224,6 +231,7 @@ public function calculateNationalWomensDay() * @link http://www.gov.za/sites/www.gov.za/files/Act36of1994.pdf * @link http://www.gov.za/heritage-day-2014 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -249,6 +257,7 @@ public function calculateHeritageDay() * @link http://www.gov.za/sites/www.gov.za/files/Act36of1994.pdf * @link http://www.gov.za/day-reconciliation-2014 * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -273,6 +282,7 @@ public function calculateDayOfReconciliation() * * @link http://www.gov.za/sites/www.gov.za/files/Act36of1994.pdf * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -296,6 +306,7 @@ public function calculateSubstituteDayOfGoodwill() * The Public Holidays Act (Act No 36 of 1994) determines whenever any public holiday falls on a Sunday, the Monday * following on it shall be a public holiday. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Spain.php b/src/Yasumi/Provider/Spain.php index 953ef2b35..5260a8396 100755 --- a/src/Yasumi/Provider/Spain.php +++ b/src/Yasumi/Provider/Spain.php @@ -32,6 +32,7 @@ class Spain extends AbstractProvider /** * Initialize holidays for Spain. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/Fiesta_Nacional_de_España * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -94,6 +96,7 @@ public function calculateNationalDay() * * @link http://www.timeanddate.com/holidays/spain/constitution-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Andalusia.php b/src/Yasumi/Provider/Spain/Andalusia.php index 2479b9873..dfb58e02d 100755 --- a/src/Yasumi/Provider/Spain/Andalusia.php +++ b/src/Yasumi/Provider/Spain/Andalusia.php @@ -40,6 +40,7 @@ class Andalusia extends Spain /** * Initialize holidays for Andalusia (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -65,6 +66,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/D%C3%ADa_de_Andaluc%C3%ADa * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Aragon.php b/src/Yasumi/Provider/Spain/Aragon.php index cab86fc6c..20af192fc 100755 --- a/src/Yasumi/Provider/Spain/Aragon.php +++ b/src/Yasumi/Provider/Spain/Aragon.php @@ -39,6 +39,7 @@ class Aragon extends Spain /** * Initialize holidays for Aragon (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Spain/Asturias.php b/src/Yasumi/Provider/Spain/Asturias.php index e1db2fbe2..3c26048e5 100755 --- a/src/Yasumi/Provider/Spain/Asturias.php +++ b/src/Yasumi/Provider/Spain/Asturias.php @@ -41,6 +41,7 @@ class Asturias extends Spain /** * Initialize holidays for Asturias (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -67,6 +68,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/asturias-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/BalearicIslands.php b/src/Yasumi/Provider/Spain/BalearicIslands.php index 001855c8d..f40ed5c86 100755 --- a/src/Yasumi/Provider/Spain/BalearicIslands.php +++ b/src/Yasumi/Provider/Spain/BalearicIslands.php @@ -40,6 +40,7 @@ class BalearicIslands extends Spain /** * Initialize holidays for Balearic Islands (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -67,6 +68,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/the-balearic-islands-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/BasqueCountry.php b/src/Yasumi/Provider/Spain/BasqueCountry.php index 59c088ac5..a34d3eedb 100755 --- a/src/Yasumi/Provider/Spain/BasqueCountry.php +++ b/src/Yasumi/Provider/Spain/BasqueCountry.php @@ -39,6 +39,7 @@ class BasqueCountry extends Spain /** * Initialize holidays for Basque Country (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -67,6 +68,7 @@ public function initialize() * * @link http://www.officeholidays.com/countries/spain/basque_community_day.php * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/CanaryIslands.php b/src/Yasumi/Provider/Spain/CanaryIslands.php index 91ce460d5..91f040fe8 100755 --- a/src/Yasumi/Provider/Spain/CanaryIslands.php +++ b/src/Yasumi/Provider/Spain/CanaryIslands.php @@ -41,6 +41,7 @@ class CanaryIslands extends Spain /** * Initialize holidays for Canary Islands (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -66,6 +67,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/canaries-day-observed * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Cantabria.php b/src/Yasumi/Provider/Spain/Cantabria.php index 5ceb5af52..9cb318ebd 100755 --- a/src/Yasumi/Provider/Spain/Cantabria.php +++ b/src/Yasumi/Provider/Spain/Cantabria.php @@ -41,6 +41,7 @@ class Cantabria extends Spain /** * Initialize holidays for Cantabria (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/cantabria-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/CastileAndLeon.php b/src/Yasumi/Provider/Spain/CastileAndLeon.php index b64fef1cd..8bfa195aa 100755 --- a/src/Yasumi/Provider/Spain/CastileAndLeon.php +++ b/src/Yasumi/Provider/Spain/CastileAndLeon.php @@ -42,6 +42,7 @@ class CastileAndLeon extends Spain /** * Initialize holidays for Castile and León (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -67,6 +68,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/Castile_and_León_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/CastillaLaMancha.php b/src/Yasumi/Provider/Spain/CastillaLaMancha.php index 2a3099224..054354a45 100755 --- a/src/Yasumi/Provider/Spain/CastillaLaMancha.php +++ b/src/Yasumi/Provider/Spain/CastillaLaMancha.php @@ -42,6 +42,7 @@ class CastillaLaMancha extends Spain /** * Initialize holidays for Castilla-La Mancha (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/castile-la-mancha-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Catalonia.php b/src/Yasumi/Provider/Spain/Catalonia.php index 8e1fb1822..47ea60253 100755 --- a/src/Yasumi/Provider/Spain/Catalonia.php +++ b/src/Yasumi/Provider/Spain/Catalonia.php @@ -43,6 +43,7 @@ class Catalonia extends Spain /** * Initialize holidays for Catalonia (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/National_Day_of_Catalonia * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Ceuta.php b/src/Yasumi/Provider/Spain/Ceuta.php index 0156ae1c8..15ea67ee7 100755 --- a/src/Yasumi/Provider/Spain/Ceuta.php +++ b/src/Yasumi/Provider/Spain/Ceuta.php @@ -40,6 +40,7 @@ class Ceuta extends Spain /** * Initialize holidays for Ceuta (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -64,6 +65,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/the-independent-city-ceuta-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php index 1b47b0592..7f8567679 100755 --- a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php +++ b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php @@ -42,6 +42,7 @@ class CommunityOfMadrid extends Spain /** * Initialize holidays for the Community Of Madrid (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -71,6 +72,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/Dos_de_Mayo_Uprising * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Extremadura.php b/src/Yasumi/Provider/Spain/Extremadura.php index 44c955475..aa8e9c571 100755 --- a/src/Yasumi/Provider/Spain/Extremadura.php +++ b/src/Yasumi/Provider/Spain/Extremadura.php @@ -41,6 +41,7 @@ class Extremadura extends Spain /** * Initialize holidays for Extremadura (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -67,6 +68,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/extremadura-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Galicia.php b/src/Yasumi/Provider/Spain/Galicia.php index 7ad63a582..f2c6e15b7 100755 --- a/src/Yasumi/Provider/Spain/Galicia.php +++ b/src/Yasumi/Provider/Spain/Galicia.php @@ -41,6 +41,7 @@ class Galicia extends Spain /** * Initialize holidays for Galicia (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -68,6 +69,7 @@ public function initialize() * * @link http://en.wikipedia.org/wiki/Galician_Literature_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -94,6 +96,7 @@ public function calculateGalicianLiteratureDay() * * @link http://www.timeanddate.com/holidays/spain/santiago-apostle * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/LaRioja.php b/src/Yasumi/Provider/Spain/LaRioja.php index 200ac91e6..4bd3788dd 100755 --- a/src/Yasumi/Provider/Spain/LaRioja.php +++ b/src/Yasumi/Provider/Spain/LaRioja.php @@ -40,6 +40,7 @@ class LaRioja extends Spain /** * Initialize holidays for La Rioja (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -64,6 +65,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/rioja-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/Melilla.php b/src/Yasumi/Provider/Spain/Melilla.php index 31983d17f..7c747c197 100755 --- a/src/Yasumi/Provider/Spain/Melilla.php +++ b/src/Yasumi/Provider/Spain/Melilla.php @@ -38,6 +38,7 @@ class Melilla extends Spain /** * Initialize holidays for Melilla (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Spain/Navarre.php b/src/Yasumi/Provider/Spain/Navarre.php index fb4860abb..6598f9c84 100755 --- a/src/Yasumi/Provider/Spain/Navarre.php +++ b/src/Yasumi/Provider/Spain/Navarre.php @@ -38,6 +38,7 @@ class Navarre extends Spain /** * Initialize holidays for Navarre (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Spain/RegionOfMurcia.php b/src/Yasumi/Provider/Spain/RegionOfMurcia.php index 2bd991e8e..1bc5f3083 100755 --- a/src/Yasumi/Provider/Spain/RegionOfMurcia.php +++ b/src/Yasumi/Provider/Spain/RegionOfMurcia.php @@ -40,6 +40,7 @@ class RegionOfMurcia extends Spain /** * Initialize holidays for the Region of Murcia (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -65,6 +66,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/murcia-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Spain/ValencianCommunity.php b/src/Yasumi/Provider/Spain/ValencianCommunity.php index a8fd4545a..30be094aa 100755 --- a/src/Yasumi/Provider/Spain/ValencianCommunity.php +++ b/src/Yasumi/Provider/Spain/ValencianCommunity.php @@ -43,6 +43,7 @@ class ValencianCommunity extends Spain /** * Initialize holidays for the Valencian Community (Spain). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -72,6 +73,7 @@ public function initialize() * * @link http://www.timeanddate.com/holidays/spain/the-valencian-community-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Sweden.php b/src/Yasumi/Provider/Sweden.php index c532b0262..631a0a4db 100644 --- a/src/Yasumi/Provider/Sweden.php +++ b/src/Yasumi/Provider/Sweden.php @@ -33,6 +33,7 @@ class Sweden extends AbstractProvider /** * Initialize holidays for Sweden. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -76,6 +77,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Midsummer#Sweden * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -111,6 +113,7 @@ public function calculateStJohnsDay() * @link https://en.wikipedia.org/wiki/All_Saints%27_Day * @link http://www.timeanddate.com/holidays/sweden/all-saints-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -139,6 +142,7 @@ public function calculateAllSaintsDay() * Olympic Stadium, in honour of the election of King Gustav Vasa in 1523, as this was considered the foundation of * modern Sweden. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland.php b/src/Yasumi/Provider/Switzerland.php index 56a4aa830..3a6503a04 100644 --- a/src/Yasumi/Provider/Switzerland.php +++ b/src/Yasumi/Provider/Switzerland.php @@ -33,6 +33,7 @@ class Switzerland extends AbstractProvider /** * Initialize holidays for Switzerland. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -52,6 +53,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Swiss_National_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -95,6 +97,7 @@ public function calculateNationalDay() * * @link https://en.wikipedia.org/wiki/Berchtoldstag * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -125,6 +128,7 @@ public function calculateBerchtoldsTag() * * @link https://en.wikipedia.org/wiki/Federal_Day_of_Thanksgiving,_Repentance_and_Prayer * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Aargau.php b/src/Yasumi/Provider/Switzerland/Aargau.php index c3dc811f9..41761b72a 100644 --- a/src/Yasumi/Provider/Switzerland/Aargau.php +++ b/src/Yasumi/Provider/Switzerland/Aargau.php @@ -34,6 +34,7 @@ class Aargau extends Switzerland /** * Initialize holidays for Aargau (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php index a3d3ce8d6..15ecd6811 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php @@ -34,6 +34,7 @@ class AppenzellAusserrhoden extends Switzerland /** * Initialize holidays for Appenzell Ausserrhoden (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php index 3f5ddd7b6..b254b7cd5 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php @@ -34,6 +34,7 @@ class AppenzellInnerrhoden extends Switzerland /** * Initialize holidays for Appenzell Innerrhoden (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php index 98e64e0dc..19a7452d5 100644 --- a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php +++ b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php @@ -34,6 +34,7 @@ class BaselLandschaft extends Switzerland /** * Initialize holidays for Basel-Landschaft (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/BaselStadt.php b/src/Yasumi/Provider/Switzerland/BaselStadt.php index 7283d33e8..63c8cfc16 100644 --- a/src/Yasumi/Provider/Switzerland/BaselStadt.php +++ b/src/Yasumi/Provider/Switzerland/BaselStadt.php @@ -34,6 +34,7 @@ class BaselStadt extends Switzerland /** * Initialize holidays for Basel-Stadt (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Bern.php b/src/Yasumi/Provider/Switzerland/Bern.php index 072ef9469..ff4229df6 100644 --- a/src/Yasumi/Provider/Switzerland/Bern.php +++ b/src/Yasumi/Provider/Switzerland/Bern.php @@ -34,6 +34,7 @@ class Bern extends Switzerland /** * Initialize holidays for Bern (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Fribourg.php b/src/Yasumi/Provider/Switzerland/Fribourg.php index 20387f1e2..6cd958c9e 100644 --- a/src/Yasumi/Provider/Switzerland/Fribourg.php +++ b/src/Yasumi/Provider/Switzerland/Fribourg.php @@ -34,6 +34,7 @@ class Fribourg extends Switzerland /** * Initialize holidays for Fribourg (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index 3bc1ad6ac..09a7c586c 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -37,6 +37,7 @@ class Geneva extends Switzerland /** * Initialize holidays for Geneva (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -64,6 +65,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Je%C3%BBne_genevois * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -98,6 +100,7 @@ public function calculateJeuneGenevois() * * @link https://fr.wikipedia.org/wiki/Restauration_genevoise * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland/Glarus.php b/src/Yasumi/Provider/Switzerland/Glarus.php index 7995b6b8b..87d0407e7 100644 --- a/src/Yasumi/Provider/Switzerland/Glarus.php +++ b/src/Yasumi/Provider/Switzerland/Glarus.php @@ -36,6 +36,7 @@ class Glarus extends Switzerland /** * Initialize holidays for Glarus (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -66,6 +67,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Battle_of_N%C3%A4fels * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland/Grisons.php b/src/Yasumi/Provider/Switzerland/Grisons.php index 68c6e1631..c7227e65d 100644 --- a/src/Yasumi/Provider/Switzerland/Grisons.php +++ b/src/Yasumi/Provider/Switzerland/Grisons.php @@ -34,6 +34,7 @@ class Grisons extends Switzerland /** * Initialize holidays for Grisons (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index 6b909805a..cf66ebdbf 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -36,6 +36,7 @@ class Jura extends Switzerland /** * Initialize holidays for Jura (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -69,6 +70,7 @@ public function initialize() * * @link https://fr.wikipedia.org/wiki/Pl%C3%A9biscite_jurassien * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland/Lucerne.php b/src/Yasumi/Provider/Switzerland/Lucerne.php index bccfbe570..7aa15939c 100644 --- a/src/Yasumi/Provider/Switzerland/Lucerne.php +++ b/src/Yasumi/Provider/Switzerland/Lucerne.php @@ -34,6 +34,7 @@ class Lucerne extends Switzerland /** * Initialize holidays for Lucerne (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Neuchatel.php b/src/Yasumi/Provider/Switzerland/Neuchatel.php index b3c68a982..d930e3261 100644 --- a/src/Yasumi/Provider/Switzerland/Neuchatel.php +++ b/src/Yasumi/Provider/Switzerland/Neuchatel.php @@ -36,6 +36,7 @@ class Neuchatel extends Switzerland /** * Initialize holidays for Neuchâtel (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -67,6 +68,7 @@ public function initialize() * * @link https://www.feiertagskalender.ch/feiertag.php?ft_id=11&geo=3056&hl=fr * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland/Nidwalden.php b/src/Yasumi/Provider/Switzerland/Nidwalden.php index 6cb429cc3..db1189260 100644 --- a/src/Yasumi/Provider/Switzerland/Nidwalden.php +++ b/src/Yasumi/Provider/Switzerland/Nidwalden.php @@ -34,6 +34,7 @@ class Nidwalden extends Switzerland /** * Initialize holidays for Nidwalden (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Obwalden.php b/src/Yasumi/Provider/Switzerland/Obwalden.php index 2f89c5883..083f35d1d 100644 --- a/src/Yasumi/Provider/Switzerland/Obwalden.php +++ b/src/Yasumi/Provider/Switzerland/Obwalden.php @@ -36,6 +36,7 @@ class Obwalden extends Switzerland /** * Initialize holidays for Obwalden (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -70,6 +71,7 @@ public function initialize() * * @link http://www.lebendigetraditionen.ch/traditionen/00210/index.html?lang=en * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland/Schaffhausen.php b/src/Yasumi/Provider/Switzerland/Schaffhausen.php index 1a92e528a..fd52f08f2 100644 --- a/src/Yasumi/Provider/Switzerland/Schaffhausen.php +++ b/src/Yasumi/Provider/Switzerland/Schaffhausen.php @@ -34,6 +34,7 @@ class Schaffhausen extends Switzerland /** * Initialize holidays for Schaffhausen (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Schwyz.php b/src/Yasumi/Provider/Switzerland/Schwyz.php index c5e54476e..9897918c4 100644 --- a/src/Yasumi/Provider/Switzerland/Schwyz.php +++ b/src/Yasumi/Provider/Switzerland/Schwyz.php @@ -34,6 +34,7 @@ class Schwyz extends Switzerland /** * Initialize holidays for Schwyz (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Solothurn.php b/src/Yasumi/Provider/Switzerland/Solothurn.php index d204362c2..ff174ee4c 100644 --- a/src/Yasumi/Provider/Switzerland/Solothurn.php +++ b/src/Yasumi/Provider/Switzerland/Solothurn.php @@ -34,6 +34,7 @@ class Solothurn extends Switzerland /** * Initialize holidays for Solothurn (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/StGallen.php b/src/Yasumi/Provider/Switzerland/StGallen.php index dbca20144..1ec128dc3 100644 --- a/src/Yasumi/Provider/Switzerland/StGallen.php +++ b/src/Yasumi/Provider/Switzerland/StGallen.php @@ -34,6 +34,7 @@ class StGallen extends Switzerland /** * Initialize holidays for St. Gallen (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Thurgau.php b/src/Yasumi/Provider/Switzerland/Thurgau.php index c71d76118..bcc35f009 100644 --- a/src/Yasumi/Provider/Switzerland/Thurgau.php +++ b/src/Yasumi/Provider/Switzerland/Thurgau.php @@ -34,6 +34,7 @@ class Thurgau extends Switzerland /** * Initialize holidays for Thurgau (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index cf043c1df..866244be8 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -36,6 +36,7 @@ class Ticino extends Switzerland /** * Initialize holidays for Ticino (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -76,6 +77,7 @@ public function initialize() * * @link https://en.wikipedia.org/wiki/Feast_of_Saints_Peter_and_Paul * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/Switzerland/Uri.php b/src/Yasumi/Provider/Switzerland/Uri.php index 012c7a85b..eb95673c3 100644 --- a/src/Yasumi/Provider/Switzerland/Uri.php +++ b/src/Yasumi/Provider/Switzerland/Uri.php @@ -34,6 +34,7 @@ class Uri extends Switzerland /** * Initialize holidays for Uri (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Valais.php b/src/Yasumi/Provider/Switzerland/Valais.php index 7353a31c4..9476286b2 100644 --- a/src/Yasumi/Provider/Switzerland/Valais.php +++ b/src/Yasumi/Provider/Switzerland/Valais.php @@ -34,6 +34,7 @@ class Valais extends Switzerland /** * Initialize holidays for Valais (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Vaud.php b/src/Yasumi/Provider/Switzerland/Vaud.php index 04d387ddc..762aa67ff 100644 --- a/src/Yasumi/Provider/Switzerland/Vaud.php +++ b/src/Yasumi/Provider/Switzerland/Vaud.php @@ -34,6 +34,7 @@ class Vaud extends Switzerland /** * Initialize holidays for Vaud (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Zug.php b/src/Yasumi/Provider/Switzerland/Zug.php index 7b14ac71f..86d5e971b 100644 --- a/src/Yasumi/Provider/Switzerland/Zug.php +++ b/src/Yasumi/Provider/Switzerland/Zug.php @@ -34,6 +34,7 @@ class Zug extends Switzerland /** * Initialize holidays for Zug (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Switzerland/Zurich.php b/src/Yasumi/Provider/Switzerland/Zurich.php index d149e5387..22de833df 100644 --- a/src/Yasumi/Provider/Switzerland/Zurich.php +++ b/src/Yasumi/Provider/Switzerland/Zurich.php @@ -34,6 +34,7 @@ class Zurich extends Switzerland /** * Initialize holidays for Zürich (Switzerland). * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index c1bf876d8..b533e5bc1 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -33,6 +33,7 @@ class USA extends AbstractProvider /** * Initialize holidays for the USA. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -207,6 +208,7 @@ public function initialize() * When New Year's Day, Independence Day, or Christmas Day falls on a Saturday, the previous day is also a holiday. * When one of these holidays fall on a Sunday, the next day is also a holiday. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Ukraine.php b/src/Yasumi/Provider/Ukraine.php index 89d4bc1d0..4080c369d 100644 --- a/src/Yasumi/Provider/Ukraine.php +++ b/src/Yasumi/Provider/Ukraine.php @@ -35,6 +35,7 @@ class Ukraine extends AbstractProvider /** * Initialize holidays for Ukraine. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -64,6 +65,7 @@ public function initialize() /** * Christmas Day. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -85,6 +87,7 @@ public function calculateChristmasDay() * * @link https://en.wikipedia.org/wiki/International_Women%27s_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -103,6 +106,7 @@ public function calculateInternationalWomensDay() * * @link https://en.wikipedia.org/wiki/International_Workers%27_Day#Ukraine * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -125,6 +129,7 @@ public function calculateSecondInternationalWorkersDay() * * @link https://en.wikipedia.org/wiki/Victory_Day_over_Nazism_in_World_War_II * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -145,6 +150,7 @@ public function calculateVictoryDay() * * @link https://en.wikipedia.org/wiki/Constitution_Day_(Ukraine) * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -171,6 +177,7 @@ public function calculateConstitutionDay() * * @link https://en.wikipedia.org/wiki/Declaration_of_Independence_of_Ukraine * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -198,6 +205,7 @@ public function calculateIndependenceDay() * * @link https://en.wikipedia.org/wiki/Defender_of_Ukraine_Day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index 2f5b6b2ef..d1b0953a3 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -34,6 +34,7 @@ class UnitedKingdom extends AbstractProvider /** * Initialize holidays for the United Kingdom. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -66,6 +67,7 @@ public function initialize() * @link https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom * @link http://www.timeanddate.com/holidays/uk/new-year-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -103,6 +105,7 @@ public function calculateNewYearsDay() * * @link http://www.timeanddate.com/holidays/uk/early-may-bank-holiday * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -133,6 +136,7 @@ private function calculateMayDayBankHoliday() * @link http://www.timeanddate.com/holidays/uk/spring-bank-holiday * @link https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -163,6 +167,7 @@ private function calculateSpringBankHoliday() * @link https://www.timeanddate.com/holidays/uk/summer-bank-holiday * @link https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException */ @@ -199,6 +204,7 @@ private function calculateSummerBankHoliday() * @link http://www.timeanddate.com/holidays/uk/christmas-day * @link http://www.timeanddate.com/holidays/uk/boxing-day * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index cd97064bc..021f0ffe4 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -67,6 +67,9 @@ class Yasumi * * @return \DateTimeInterface * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \RuntimeException + * @throws \InvalidArgumentException * @throws \ReflectionException * @throws \Exception * @throws \Yasumi\Exception\InvalidDateException @@ -260,6 +263,9 @@ public static function getProviders(): array * * @return \DateTimeInterface * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \RuntimeException + * @throws \InvalidArgumentException * @throws \ReflectionException * @throws \Exception * @throws \Yasumi\Exception\InvalidDateException From 651359ee18f5ed992ef2c5c7325d94c19af85a94 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 27 Jan 2018 16:13:30 +0900 Subject: [PATCH 023/132] Add all PHP internal functions and constants to its namespace by Function resolution without the backslash forces the PHP internals to verify for each function call if function or constant belongs to current namespace or the global namespace. With the backslash PHP does not check the current namespace and therefore execution is faster when using OP Cache. Signed-off-by: Sacha Telgenhof --- .php_cs | 5 +- src/Yasumi/Exception/InvalidDateException.php | 6 +-- src/Yasumi/Filters/BankHolidaysFilter.php | 8 +-- src/Yasumi/Filters/BetweenFilter.php | 8 +-- src/Yasumi/Filters/ObservedHolidaysFilter.php | 8 +-- src/Yasumi/Filters/OfficialHolidaysFilter.php | 8 +-- src/Yasumi/Filters/OtherHolidaysFilter.php | 8 +-- src/Yasumi/Filters/SeasonalHolidaysFilter.php | 8 +-- src/Yasumi/Holiday.php | 6 +-- src/Yasumi/Provider/AbstractProvider.php | 20 ++++---- src/Yasumi/Provider/ChristianHolidays.php | 4 +- src/Yasumi/Provider/Ireland.php | 6 +-- src/Yasumi/Provider/Japan.php | 16 +++--- src/Yasumi/Provider/SouthAfrica.php | 2 +- src/Yasumi/Provider/USA.php | 2 +- src/Yasumi/Provider/UnitedKingdom.php | 6 +-- src/Yasumi/Translations.php | 20 ++++---- src/Yasumi/Yasumi.php | 26 +++++----- tests/Base/HolidayBetweenFilterTest.php | 50 +++++++++---------- tests/Base/HolidayFiltersTest.php | 30 +++++------ tests/Base/HolidayTest.php | 4 +- tests/Finland/stJohnsDayTest.php | 2 +- tests/Ireland/ChristmasDayTest.php | 2 +- tests/Ireland/StPatricksDayTest.php | 2 +- tests/Ireland/StStephensDayTest.php | 2 +- tests/NewZealand/BoxingDayTest.php | 2 +- tests/NewZealand/ChristmasDayTest.php | 2 +- tests/Sweden/stJohnsDayTest.php | 2 +- tests/UnitedKingdom/BoxingDayTest.php | 2 +- tests/UnitedKingdom/ChristmasDayTest.php | 2 +- tests/YasumiBase.php | 18 +++---- 31 files changed, 145 insertions(+), 142 deletions(-) diff --git a/.php_cs b/.php_cs index a11f6aa6d..3a504dc63 100644 --- a/.php_cs +++ b/.php_cs @@ -12,4 +12,7 @@ $finder = PhpCsFixer\Finder::create()->in(__DIR__); -return PhpCsFixer\Config::create()->setRules(['@PSR2' => true])->setFinder($finder); \ No newline at end of file +return PhpCsFixer\Config::create()->setRiskyAllowed(true)->setRules([ + '@PSR2' => true, + 'native_function_invocation' => true + ])->setFinder($finder); \ No newline at end of file diff --git a/src/Yasumi/Exception/InvalidDateException.php b/src/Yasumi/Exception/InvalidDateException.php index dac74b781..1258c1182 100644 --- a/src/Yasumi/Exception/InvalidDateException.php +++ b/src/Yasumi/Exception/InvalidDateException.php @@ -27,7 +27,7 @@ class InvalidDateException extends InvalidArgumentException implements Exception */ public function __construct($argumentValue) { - $type = gettype($argumentValue); + $type = \gettype($argumentValue); switch ($type) { case 'boolean': $displayName = $argumentValue ? 'true' : 'false'; @@ -40,13 +40,13 @@ public function __construct($argumentValue) $displayName = $argumentValue; break; case 'object': - $displayName = get_class($argumentValue); + $displayName = \get_class($argumentValue); break; default: $displayName = $type; break; } - parent::__construct(sprintf(sprintf('\'%s\' is not a valid DateTime(Immutable) instance', $displayName))); + parent::__construct(\sprintf(\sprintf('\'%s\' is not a valid DateTime(Immutable) instance', $displayName))); } } diff --git a/src/Yasumi/Filters/BankHolidaysFilter.php b/src/Yasumi/Filters/BankHolidaysFilter.php index 79d8321ee..680382296 100644 --- a/src/Yasumi/Filters/BankHolidaysFilter.php +++ b/src/Yasumi/Filters/BankHolidaysFilter.php @@ -43,12 +43,12 @@ public function accept(): bool */ public function count(): int { - $days = array_keys(iterator_to_array($this)); + $days = \array_keys(\iterator_to_array($this)); - array_walk($days, function (&$day) { - $day = str_replace('substituteHoliday:', '', $day); + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); }); - return count(array_unique($days)); + return \count(\array_unique($days)); } } diff --git a/src/Yasumi/Filters/BetweenFilter.php b/src/Yasumi/Filters/BetweenFilter.php index cb8848f37..15221bf3a 100644 --- a/src/Yasumi/Filters/BetweenFilter.php +++ b/src/Yasumi/Filters/BetweenFilter.php @@ -84,12 +84,12 @@ public function accept(): bool */ public function count(): int { - $days = array_keys(iterator_to_array($this)); + $days = \array_keys(\iterator_to_array($this)); - array_walk($days, function (&$day) { - $day = str_replace('substituteHoliday:', '', $day); + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); }); - return count(array_unique($days)); + return \count(\array_unique($days)); } } diff --git a/src/Yasumi/Filters/ObservedHolidaysFilter.php b/src/Yasumi/Filters/ObservedHolidaysFilter.php index 6a88417a9..b17e8c3b6 100644 --- a/src/Yasumi/Filters/ObservedHolidaysFilter.php +++ b/src/Yasumi/Filters/ObservedHolidaysFilter.php @@ -43,12 +43,12 @@ public function accept(): bool */ public function count(): int { - $days = array_keys(iterator_to_array($this)); + $days = \array_keys(\iterator_to_array($this)); - array_walk($days, function (&$day) { - $day = str_replace('substituteHoliday:', '', $day); + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); }); - return count(array_unique($days)); + return \count(\array_unique($days)); } } diff --git a/src/Yasumi/Filters/OfficialHolidaysFilter.php b/src/Yasumi/Filters/OfficialHolidaysFilter.php index 7d5dce420..241d5f946 100644 --- a/src/Yasumi/Filters/OfficialHolidaysFilter.php +++ b/src/Yasumi/Filters/OfficialHolidaysFilter.php @@ -43,12 +43,12 @@ public function accept(): bool */ public function count(): int { - $days = array_keys(iterator_to_array($this)); + $days = \array_keys(\iterator_to_array($this)); - array_walk($days, function (&$day) { - $day = str_replace('substituteHoliday:', '', $day); + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); }); - return count(array_unique($days)); + return \count(\array_unique($days)); } } diff --git a/src/Yasumi/Filters/OtherHolidaysFilter.php b/src/Yasumi/Filters/OtherHolidaysFilter.php index 902b72abc..d57aafdb5 100644 --- a/src/Yasumi/Filters/OtherHolidaysFilter.php +++ b/src/Yasumi/Filters/OtherHolidaysFilter.php @@ -43,12 +43,12 @@ public function accept(): bool */ public function count(): int { - $days = array_keys(iterator_to_array($this)); + $days = \array_keys(\iterator_to_array($this)); - array_walk($days, function (&$day) { - $day = str_replace('substituteHoliday:', '', $day); + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); }); - return count(array_unique($days)); + return \count(\array_unique($days)); } } diff --git a/src/Yasumi/Filters/SeasonalHolidaysFilter.php b/src/Yasumi/Filters/SeasonalHolidaysFilter.php index 88de13287..afda0c0f7 100644 --- a/src/Yasumi/Filters/SeasonalHolidaysFilter.php +++ b/src/Yasumi/Filters/SeasonalHolidaysFilter.php @@ -43,12 +43,12 @@ public function accept(): bool */ public function count(): int { - $days = array_keys(iterator_to_array($this)); + $days = \array_keys(\iterator_to_array($this)); - array_walk($days, function (&$day) { - $day = str_replace('substituteHoliday:', '', $day); + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); }); - return count(array_unique($days)); + return \count(\array_unique($days)); } } diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 56df9b36e..0856951ca 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -121,8 +121,8 @@ public function __construct( } // Assert display locale input - if (! in_array($displayLocale, static::$locales, true)) { - throw new UnknownLocaleException(sprintf('Locale "%s" is not a valid locale.', $displayLocale)); + if (! \in_array($displayLocale, static::$locales, true)) { + throw new UnknownLocaleException(\sprintf('Locale "%s" is not a valid locale.', $displayLocale)); } // Set additional attributes @@ -183,7 +183,7 @@ public function getName() public function mergeGlobalTranslations(TranslationsInterface $globalTranslations) { $holidayGlobalTranslations = $globalTranslations->getTranslations($this->shortName); - $this->translations = array_merge($holidayGlobalTranslations, $this->translations); + $this->translations = \array_merge($holidayGlobalTranslations, $this->translations); } /** diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index fcb88f8c0..1f49ca106 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -102,7 +102,7 @@ public function __construct($year, $locale = 'en_US', TranslationsInterface $glo { $this->clearHolidays(); - $this->year = $year ?: date('Y'); + $this->year = $year ?: \date('Y'); $this->locale = $locale; $this->globalTranslations = $globalTranslations; @@ -148,7 +148,7 @@ public function addHoliday(Holiday $holiday) } $this->holidays[$holiday->shortName] = $holiday; - uasort($this->holidays, [__CLASS__, 'compareDates']); + \uasort($this->holidays, [__CLASS__, 'compareDates']); } /** @@ -183,7 +183,7 @@ public function isWorkingDay($date): bool $weekend_data = self::WEEKEND_DATA; $weekend_days = $weekend_data[$this::ID] ?? [0, 6]; - if (in_array((int)$date->format('w'), $weekend_days, true)) { + if (\in_array((int)$date->format('w'), $weekend_days, true)) { return false; } } @@ -209,7 +209,7 @@ public function isHoliday($date): bool } // Check if given date is a holiday or not - if (in_array($date->format('Y-m-d'), array_values($this->getHolidayDates()), true)) { + if (\in_array($date->format('Y-m-d'), \array_values($this->getHolidayDates()), true)) { return true; } @@ -223,7 +223,7 @@ public function isHoliday($date): bool */ public function getHolidayDates(): array { - return array_map(function ($holiday) { + return \array_map(function ($holiday) { return (string)$holiday; }, $this->holidays); } @@ -291,11 +291,11 @@ public function count(): int { $list = $this->getHolidayNames(); - array_walk($list, function (&$holiday) { - $holiday = str_replace('substituteHoliday:', '', $holiday); + \array_walk($list, function (&$holiday) { + $holiday = \str_replace('substituteHoliday:', '', $holiday); }); - return count(array_unique($list)); + return \count(\array_unique($list)); } /** @@ -305,7 +305,7 @@ public function count(): int */ public function getHolidayNames(): array { - return array_keys($this->holidays); + return \array_keys($this->holidays); } /** @@ -355,7 +355,7 @@ private function anotherTime($year, $shortName) $this->isHolidayNameNotEmpty($shortName); // Validate if short name is not empty // Get calling class name - $hReflectionClass = new \ReflectionClass(get_class($this)); + $hReflectionClass = new \ReflectionClass(\get_class($this)); return Yasumi::create($hReflectionClass->getShortName(), $year, $this->locale)->getHoliday($shortName); } diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index f0c32f9c5..d4b911d90 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -691,7 +691,7 @@ public function calculateOrthodoxEaster($year, $timezone): \DateTime $c = $year % 19; $d = (19 * $c + 15) % 30; $e = (2 * $a + 4 * $b - $d + 34) % 7; - $month = floor(($d + $e + 114) / 31); + $month = \floor(($d + $e + 114) / 31); $day = (($d + $e + 114) % 31) + 1; return (new DateTime("$year-$month-$day", new DateTimeZone($timezone)))->add(new DateInterval('P13D')); @@ -761,7 +761,7 @@ public function reformationDay($year, $timezone, $locale, $type = Holiday::TYPE_ */ protected function calculateEaster($year, $timezone): DateTime { - if (extension_loaded('calendar')) { + if (\extension_loaded('calendar')) { $easter_days = \easter_days($year); } else { $golden = ($year % 19) + 1; // The Golden Number diff --git a/src/Yasumi/Provider/Ireland.php b/src/Yasumi/Provider/Ireland.php index 8fe190673..bdc096467 100644 --- a/src/Yasumi/Provider/Ireland.php +++ b/src/Yasumi/Provider/Ireland.php @@ -156,7 +156,7 @@ public function calculateChristmasDay() $this->addHoliday($holiday); // Whenever Christmas Day does not fall on a weekday, the Tuesday following on it shall be a public holiday. - if (in_array((int)$holiday->format('w'), [0, 6], true)) { + if (\in_array((int)$holiday->format('w'), [0, 6], true)) { $substituteHoliday = clone $holiday; $substituteHoliday->modify('next tuesday'); @@ -191,7 +191,7 @@ public function calculateStStephensDay() $this->addHoliday($holiday); // Whenever St. Stephens Day does not fall on a weekday, the Monday following on it shall be a public holiday. - if (in_array((int)$holiday->format('w'), [0, 6], true)) { + if (\in_array((int)$holiday->format('w'), [0, 6], true)) { $substituteHoliday = clone $holiday; $substituteHoliday->modify('next monday'); @@ -231,7 +231,7 @@ public function calculateStPatricksDay() $this->addHoliday($holiday); // Substitute holiday is on the next available weekday if a holiday falls on a Saturday or Sunday - if (in_array((int)$holiday->format('w'), [0, 6], true)) { + if (\in_array((int)$holiday->format('w'), [0, 6], true)) { $substituteHoliday = clone $holiday; $substituteHoliday->modify('next monday'); diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 253f59735..0a52c9460 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -217,11 +217,11 @@ private function calculateVernalEquinoxDay() if ($this->year < 1948 || $this->year > 2150) { $day = null; } elseif ($this->year >= 1948 && $this->year <= 1979) { - $day = floor(self::VERNAL_EQUINOX_PARAM_1979 + self::EQUINOX_GRADIENT * ($this->year - 1980) - floor(($this->year - 1983) / 4)); + $day = \floor(self::VERNAL_EQUINOX_PARAM_1979 + self::EQUINOX_GRADIENT * ($this->year - 1980) - \floor(($this->year - 1983) / 4)); } elseif ($this->year <= 2099) { - $day = floor(self::VERNAL_EQUINOX_PARAM_2099 + self::EQUINOX_GRADIENT * ($this->year - 1980) - floor(($this->year - 1980) / 4)); + $day = \floor(self::VERNAL_EQUINOX_PARAM_2099 + self::EQUINOX_GRADIENT * ($this->year - 1980) - \floor(($this->year - 1980) / 4)); } elseif ($this->year <= 2150) { - $day = floor(self::VERNAL_EQUINOX_PARAM_2150 + self::EQUINOX_GRADIENT * ($this->year - 1980) - floor(($this->year - 1980) / 4)); + $day = \floor(self::VERNAL_EQUINOX_PARAM_2150 + self::EQUINOX_GRADIENT * ($this->year - 1980) - \floor(($this->year - 1980) / 4)); } if (null !== $day) { @@ -396,11 +396,11 @@ private function calculateAutumnalEquinoxDay() if ($this->year < 1948 || $this->year > 2150) { $day = null; } elseif ($this->year >= 1948 && $this->year <= 1979) { - $day = floor(self::AUTUMNAL_EQUINOX_PARAM_1979 + self::EQUINOX_GRADIENT * ($this->year - 1980) - floor(($this->year - 1983) / 4)); + $day = \floor(self::AUTUMNAL_EQUINOX_PARAM_1979 + self::EQUINOX_GRADIENT * ($this->year - 1980) - \floor(($this->year - 1983) / 4)); } elseif ($this->year <= 2099) { - $day = floor(self::AUTUMNAL_EQUINOX_PARAM_2099 + self::EQUINOX_GRADIENT * ($this->year - 1980) - floor(($this->year - 1980) / 4)); + $day = \floor(self::AUTUMNAL_EQUINOX_PARAM_2099 + self::EQUINOX_GRADIENT * ($this->year - 1980) - \floor(($this->year - 1980) / 4)); } elseif ($this->year <= 2150) { - $day = floor(self::AUTUMNAL_EQUINOX_PARAM_2150 + self::EQUINOX_GRADIENT * ($this->year - 1980) - floor(($this->year - 1980) / 4)); + $day = \floor(self::AUTUMNAL_EQUINOX_PARAM_2150 + self::EQUINOX_GRADIENT * ($this->year - 1980) - \floor(($this->year - 1980) / 4)); } if (null !== $day) { @@ -437,13 +437,13 @@ private function calculateSubstituteHolidays() if (0 === (int)$date->format('w')) { if ($this->year >= 2007) { // Find next week day (not being another holiday) - while (in_array($substituteDay, $dates)) { + while (\in_array($substituteDay, $dates)) { $substituteDay->add(new DateInterval('P1D')); continue; } } elseif ($date >= '1973-04-12') { $substituteDay->add(new DateInterval('P1D')); - if (in_array($substituteDay, $dates)) { + if (\in_array($substituteDay, $dates)) { continue; // @codeCoverageIgnore } } else { diff --git a/src/Yasumi/Provider/SouthAfrica.php b/src/Yasumi/Provider/SouthAfrica.php index ee192cfb5..84cf31990 100644 --- a/src/Yasumi/Provider/SouthAfrica.php +++ b/src/Yasumi/Provider/SouthAfrica.php @@ -319,7 +319,7 @@ private function calculateSubstituteHolidays() while ($datesIterator->valid()) { // Exclude Good Friday, Family Day, 2016 Municipal Elections Day as these don't fall in the weekend - if (in_array( + if (\in_array( $datesIterator->current()->shortName, ['goodFriday', 'familyDay', '2016MunicipalElectionsDay'], true diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index b533e5bc1..ff5c78f27 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -222,7 +222,7 @@ private function calculateSubstituteHolidays() while ($datesIterator->valid()) { // Only process New Year's Day, Independence Day, or Christmas Day - if (in_array( + if (\in_array( $datesIterator->current()->shortName, ['newYearsDay', 'independenceDay', 'christmasDay'], true diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index d1b0953a3..5195a8187 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -86,7 +86,7 @@ public function calculateNewYearsDay() $newYearsDay = new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)); // If New Years Day falls on a Saturday or Sunday, it is observed the next Monday (January 2nd or 3rd) - if (in_array((int)$newYearsDay->format('w'), [0, 6], true)) { + if (\in_array((int)$newYearsDay->format('w'), [0, 6], true)) { $newYearsDay->modify('next monday'); } @@ -220,7 +220,7 @@ public function calculateChristmasHolidays() $substituteChristmasDay = clone $christmasDay; $substituteBoxingDay = clone $boxingDay; - if (in_array((int)$christmasDay->format('w'), [0, 6], true)) { + if (\in_array((int)$christmasDay->format('w'), [0, 6], true)) { $substituteChristmasDay->add(new DateInterval('P2D')); $this->addHoliday(new Holiday( 'substituteHoliday:christmasDay', @@ -231,7 +231,7 @@ public function calculateChristmasHolidays() )); } - if (in_array((int)$boxingDay->format('w'), [0, 6], true)) { + if (\in_array((int)$boxingDay->format('w'), [0, 6], true)) { $substituteBoxingDay->add(new DateInterval('P2D')); $this->addHoliday(new Holiday( 'substituteHoliday:secondChristmasDay', diff --git a/src/Yasumi/Translations.php b/src/Yasumi/Translations.php index 750b17b21..3acb163f7 100644 --- a/src/Yasumi/Translations.php +++ b/src/Yasumi/Translations.php @@ -52,11 +52,11 @@ public function __construct(array $availableLocales) */ public function loadTranslations($directoryPath) { - if (! file_exists($directoryPath)) { + if (! \file_exists($directoryPath)) { throw new InvalidArgumentException('Directory with translations not found'); } - $directoryPath = rtrim($directoryPath, '/\\') . DIRECTORY_SEPARATOR; + $directoryPath = \rtrim($directoryPath, '/\\') . DIRECTORY_SEPARATOR; $extension = 'php'; foreach (new DirectoryIterator($directoryPath) as $file) { @@ -73,8 +73,8 @@ public function loadTranslations($directoryPath) $translations = require $directoryPath . $filename; - if (is_array($translations)) { - foreach (array_keys($translations) as $locale) { + if (\is_array($translations)) { + foreach (\array_keys($translations) as $locale) { $this->isValidLocale($locale); // Validate the given locale } @@ -95,8 +95,8 @@ public function loadTranslations($directoryPath) */ protected function isValidLocale($locale): bool { - if (! in_array($locale, $this->availableLocales, true)) { - throw new UnknownLocaleException(sprintf('Locale "%s" is not a valid locale.', $locale)); + if (! \in_array($locale, $this->availableLocales, true)) { + throw new UnknownLocaleException(\sprintf('Locale "%s" is not a valid locale.', $locale)); } return true; @@ -115,7 +115,7 @@ public function addTranslation($shortName, $locale, $translation) { $this->isValidLocale($locale); // Validate the given locale - if (! array_key_exists($shortName, $this->translations)) { + if (! \array_key_exists($shortName, $this->translations)) { $this->translations[$shortName] = []; } @@ -132,11 +132,11 @@ public function addTranslation($shortName, $locale, $translation) */ public function getTranslation($shortName, $locale) { - if (! array_key_exists($shortName, $this->translations)) { + if (! \array_key_exists($shortName, $this->translations)) { return null; } - if (! array_key_exists($locale, $this->translations[$shortName])) { + if (! \array_key_exists($locale, $this->translations[$shortName])) { return null; } @@ -152,7 +152,7 @@ public function getTranslation($shortName, $locale) */ public function getTranslations($shortName): array { - if (! array_key_exists($shortName, $this->translations)) { + if (! \array_key_exists($shortName, $this->translations)) { return []; } diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 021f0ffe4..d44b16aa3 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -123,19 +123,19 @@ public static function nextWorkingDay( public static function create(string $class, int $year = null, string $locale = self::DEFAULT_LOCALE) { // Find and return holiday provider instance - $providerClass = sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $class)); + $providerClass = \sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $class)); - if (class_exists($class) && (new ReflectionClass($class))->implementsInterface(ProviderInterface::class)) { + if (\class_exists($class) && (new ReflectionClass($class))->implementsInterface(ProviderInterface::class)) { $providerClass = $class; } - if ($class === 'AbstractProvider' || ! class_exists($providerClass)) { - throw new InvalidArgumentException(sprintf('Unable to find holiday provider "%s".', $class)); + if ($class === 'AbstractProvider' || ! \class_exists($providerClass)) { + throw new InvalidArgumentException(\sprintf('Unable to find holiday provider "%s".', $class)); } // Assert year input if ($year < 1000 || $year > 9999) { - throw new InvalidArgumentException(sprintf('Year needs to be between 1000 and 9999 (%s given).', $year)); + throw new InvalidArgumentException(\sprintf('Year needs to be between 1000 and 9999 (%s given).', $year)); } // Load internal locales variable @@ -150,8 +150,8 @@ public static function create(string $class, int $year = null, string $locale = } // Assert locale input - if (! in_array($locale, static::$locales, true)) { - throw new UnknownLocaleException(sprintf('Locale "%s" is not a valid locale.', $locale)); + if (! \in_array($locale, static::$locales, true)) { + throw new UnknownLocaleException(\sprintf('Locale "%s" is not a valid locale.', $locale)); } return new $providerClass($year, $locale, self::$globalTranslations); @@ -195,7 +195,7 @@ public static function createByISO3166_2( $availableProviders = self::getProviders(); if (false === isset($availableProviders[$iso3166_2])) { - throw new InvalidArgumentException(sprintf( + throw new InvalidArgumentException(\sprintf( 'Unable to find holiday provider by ISO3166-2 "%s".', $iso3166_2 )); @@ -228,7 +228,7 @@ public static function getProviders(): array ), RecursiveIteratorIterator::SELF_FIRST); foreach ($filesIterator as $file) { - if ($file->isDir() || $file->getExtension() !== 'php' || in_array( + if ($file->isDir() || $file->getExtension() !== 'php' || \in_array( $file->getBasename('.php'), self::$ignoredProvider, true @@ -236,14 +236,14 @@ public static function getProviders(): array continue; } - $quotedDs = preg_quote($ds); - $provider = preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); + $quotedDs = \preg_quote($ds); + $provider = \preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); - $class = new ReflectionClass(sprintf('Yasumi\Provider\%s', str_replace('/', '\\', $provider))); + $class = new ReflectionClass(\sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $provider))); $key = 'ID'; if ($class->hasConstant($key)) { - $providers[strtoupper($class->getConstant($key))] = $provider; + $providers[\strtoupper($class->getConstant($key))] = $provider; } } diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index 6ab4febf5..2afb0d80d 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -41,7 +41,7 @@ public function testHolidaysBetweenDateRange() new DateTime('07/25/2016', new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); $this->assertArrayHasKey('goodFriday', $betweenHolidays); $this->assertArrayHasKey('easter', $betweenHolidays); @@ -74,10 +74,10 @@ public function testHolidaysBetweenDateRange() $this->assertArrayNotHasKey('secondChristmasDay', $betweenHolidays); $this->assertCount(13, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(13, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } /** @@ -93,7 +93,7 @@ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() new \DateTimeImmutable('07/25/2016', new \DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); $this->assertArrayHasKey('goodFriday', $betweenHolidays); $this->assertArrayHasKey('easter', $betweenHolidays); @@ -126,10 +126,10 @@ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() $this->assertArrayNotHasKey('secondChristmasDay', $betweenHolidays); $this->assertCount(13, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(13, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } @@ -147,7 +147,7 @@ public function testHolidaysBetweenDateRangeExclusiveStartEndDate() false ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); $this->assertArrayHasKey('epiphany', $betweenHolidays); $this->assertArrayHasKey('carnivalDay', $betweenHolidays); @@ -180,10 +180,10 @@ public function testHolidaysBetweenDateRangeExclusiveStartEndDate() $this->assertArrayNotHasKey('secondChristmasDay', $betweenHolidays); $this->assertCount(19, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(19, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } /** @@ -200,7 +200,7 @@ public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() new DateTime('05/17/' . $year, new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); $this->assertArrayHasKey('newYearsDay', $betweenHolidays); $this->assertArrayHasKey('maundyThursday', $betweenHolidays); @@ -217,10 +217,10 @@ public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() $this->assertArrayNotHasKey('secondChristmasDay', $betweenHolidays); $this->assertCount(8, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(8, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } /** @@ -237,7 +237,7 @@ public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() new DateTime('09/21/2021', new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); $this->assertArrayNotHasKey('newYearsDay', $betweenHolidays); $this->assertArrayNotHasKey('epiphany', $betweenHolidays); @@ -254,10 +254,10 @@ public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() $this->assertArrayHasKey('stStephensDay', $betweenHolidays); $this->assertCount(10, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(10, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } /** @@ -294,7 +294,7 @@ public function testCountBetweenWithSubstitutes() new DateTime('12/31/' . $year, new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); // Assert array definitions $this->assertArrayHasKey('newYearsDay', $betweenHolidays); @@ -332,7 +332,7 @@ public function testCountBetweenExcludingSubstituteHoliday() new DateTime('03/20/' . $year, new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); // Assert array definitions $this->assertArrayHasKey('newYearsDay', $betweenHolidays); @@ -350,10 +350,10 @@ public function testCountBetweenExcludingSubstituteHoliday() $this->assertArrayNotHasKey('pentecostMonday', $betweenHolidays); $this->assertCount(2, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(2, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } /** @@ -374,7 +374,7 @@ public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHolid new DateTime('03/18/' . $year, new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); // Assert array definitions $this->assertArrayHasKey('newYearsDay', $betweenHolidays); @@ -393,10 +393,10 @@ public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHolid $this->assertArrayNotHasKey('pentecostMonday', $betweenHolidays); $this->assertCount(2, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(2, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } /** @@ -417,7 +417,7 @@ public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday() new DateTime('03/16/' . $year, new DateTimeZone($timezone)) ); - $betweenHolidays = iterator_to_array($between); + $betweenHolidays = \iterator_to_array($between); // Assert array definitions $this->assertArrayHasKey('newYearsDay', $betweenHolidays); @@ -435,9 +435,9 @@ public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday() $this->assertArrayNotHasKey('pentecostMonday', $betweenHolidays); $this->assertCount(1, $between); - $this->assertNotCount(count($holidays), $between); + $this->assertNotCount(\count($holidays), $between); $this->assertEquals(1, $between->count()); - $this->assertNotEquals(count($holidays), $between->count()); + $this->assertNotEquals(\count($holidays), $between->count()); } } diff --git a/tests/Base/HolidayFiltersTest.php b/tests/Base/HolidayFiltersTest.php index 41dcd62cc..36504a1c3 100644 --- a/tests/Base/HolidayFiltersTest.php +++ b/tests/Base/HolidayFiltersTest.php @@ -39,7 +39,7 @@ public function testOfficialHolidaysFilter() $holidays = Yasumi::create('Ireland', 2018); $filteredHolidays = new OfficialHolidaysFilter($holidays->getIterator()); - $filteredHolidaysArray = iterator_to_array($filteredHolidays); + $filteredHolidaysArray = \iterator_to_array($filteredHolidays); // Assert array definitions $this->assertArrayHasKey('newYearsDay', $filteredHolidaysArray); @@ -58,9 +58,9 @@ public function testOfficialHolidaysFilter() // Assert number of results returned $this->assertCount(10, $filteredHolidays); - $this->assertNotCount(count($holidays), $filteredHolidays); + $this->assertNotCount(\count($holidays), $filteredHolidays); $this->assertEquals(10, $filteredHolidays->count()); - $this->assertNotEquals(count($holidays), $filteredHolidays->count()); + $this->assertNotEquals(\count($holidays), $filteredHolidays->count()); } /** @@ -72,7 +72,7 @@ public function testObservedHolidaysFilter() $holidays = Yasumi::create('Ireland', 2018); $filteredHolidays = new ObservedHolidaysFilter($holidays->getIterator()); - $filteredHolidaysArray = iterator_to_array($filteredHolidays); + $filteredHolidaysArray = \iterator_to_array($filteredHolidays); // Assert array definitions $this->assertArrayNotHasKey('newYearsDay', $filteredHolidaysArray); @@ -91,9 +91,9 @@ public function testObservedHolidaysFilter() // Assert number of results returned $this->assertCount(2, $filteredHolidays); - $this->assertNotCount(count($holidays), $filteredHolidays); + $this->assertNotCount(\count($holidays), $filteredHolidays); $this->assertEquals(2, $filteredHolidays->count()); - $this->assertNotEquals(count($holidays), $filteredHolidays->count()); + $this->assertNotEquals(\count($holidays), $filteredHolidays->count()); } /** @@ -105,7 +105,7 @@ public function testBankHolidaysFilter() $holidays = Yasumi::create('Ireland', 2018); $filteredHolidays = new BankHolidaysFilter($holidays->getIterator()); - $filteredHolidaysArray = iterator_to_array($filteredHolidays); + $filteredHolidaysArray = \iterator_to_array($filteredHolidays); // Assert array definitions $this->assertArrayNotHasKey('newYearsDay', $filteredHolidaysArray); @@ -124,9 +124,9 @@ public function testBankHolidaysFilter() // Assert number of results returned $this->assertCount(0, $filteredHolidays); - $this->assertNotCount(count($holidays), $filteredHolidays); + $this->assertNotCount(\count($holidays), $filteredHolidays); $this->assertEquals(0, $filteredHolidays->count()); - $this->assertNotEquals(count($holidays), $filteredHolidays->count()); + $this->assertNotEquals(\count($holidays), $filteredHolidays->count()); } /** @@ -137,7 +137,7 @@ public function testSeasonalHolidaysFilter() $holidays = Yasumi::create('Netherlands', 2017); $filteredHolidays = new SeasonalHolidaysFilter($holidays->getIterator()); - $filteredHolidaysArray = iterator_to_array($filteredHolidays); + $filteredHolidaysArray = \iterator_to_array($filteredHolidays); // Assert array definitions $this->assertArrayHasKey('summerTime', $filteredHolidaysArray); @@ -171,9 +171,9 @@ public function testSeasonalHolidaysFilter() // Assert number of results returned $this->assertCount(2, $filteredHolidays); - $this->assertNotCount(count($holidays), $filteredHolidays); + $this->assertNotCount(\count($holidays), $filteredHolidays); $this->assertEquals(2, $filteredHolidays->count()); - $this->assertNotEquals(count($holidays), $filteredHolidays->count()); + $this->assertNotEquals(\count($holidays), $filteredHolidays->count()); } /** @@ -184,7 +184,7 @@ public function testOtherHolidaysFilter() $holidays = Yasumi::create('Netherlands', 2017); $filteredHolidays = new OtherHolidaysFilter($holidays->getIterator()); - $filteredHolidaysArray = iterator_to_array($filteredHolidays); + $filteredHolidaysArray = \iterator_to_array($filteredHolidays); // Assert array definitions $this->assertArrayHasKey('internationalWorkersDay', $filteredHolidaysArray); @@ -218,8 +218,8 @@ public function testOtherHolidaysFilter() // Assert number of results returned $this->assertCount(7, $filteredHolidays); - $this->assertNotCount(count($holidays), $filteredHolidays); + $this->assertNotCount(\count($holidays), $filteredHolidays); $this->assertEquals(7, $filteredHolidays->count()); - $this->assertNotEquals(count($holidays), $filteredHolidays->count()); + $this->assertNotEquals(\count($holidays), $filteredHolidays->count()); } } diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index 9372628b6..d1e5f7e08 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -54,8 +54,8 @@ public function testCreateHolidayUnknownLocaleException() public function testHolidayIsJsonSerializable() { $holiday = new Holiday('testHoliday', [], new DateTime(), 'en_US'); - $json = json_encode($holiday); - $instance = json_decode($json, true); + $json = \json_encode($holiday); + $instance = \json_decode($json, true); $this->assertInternalType('array', $instance); $this->assertNotNull($instance); diff --git a/tests/Finland/stJohnsDayTest.php b/tests/Finland/stJohnsDayTest.php index 3fa10e3ae..da2e2a8b5 100644 --- a/tests/Finland/stJohnsDayTest.php +++ b/tests/Finland/stJohnsDayTest.php @@ -62,7 +62,7 @@ public function testHolidayAfterAdjustment() $holiday = $holidays->getHoliday(self::HOLIDAY); // Some basic assertions - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', self::REGION), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', self::REGION), $holidays); $this->assertInstanceOf(Holiday::class, $holiday); $this->assertNotNull($holiday); diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index 60bb796e9..08f6258a6 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -40,7 +40,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->modify('next tuesday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index 1e5ab7d1c..15da6de0e 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->modify('next monday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index 6028a0121..5e1d86244 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -40,7 +40,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->modify('next monday'); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); } diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index 24988801a..93681cba9 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -59,7 +59,7 @@ public function HolidayDataProvider(): array $year = $this->generateRandomYear(); $date = new DateTime("$year-12-26", new DateTimeZone(self::TIMEZONE)); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); } diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index ba1ceb519..83e223d22 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -59,7 +59,7 @@ public function HolidayDataProvider(): array $year = $this->generateRandomYear(); $date = new DateTime("$year-12-25", new DateTimeZone(self::TIMEZONE)); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); } diff --git a/tests/Sweden/stJohnsDayTest.php b/tests/Sweden/stJohnsDayTest.php index df2cf6c4f..c52de4309 100644 --- a/tests/Sweden/stJohnsDayTest.php +++ b/tests/Sweden/stJohnsDayTest.php @@ -37,7 +37,7 @@ public function testHoliday() $holiday = $holidays->getHoliday(self::HOLIDAY); // Some basic assertions - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', self::REGION), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', self::REGION), $holidays); $this->assertInstanceOf(Holiday::class, $holiday); $this->assertNotNull($holiday); diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index babfb1c47..880517073 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -41,7 +41,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, Holiday::TYPE_BANK); diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index 578a3854b..a03505052 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -41,7 +41,7 @@ public function testHoliday($year, $expected) $date = new DateTime($expected, new DateTimeZone(self::TIMEZONE)); $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $date); - if (in_array((int)$date->format('w'), [0, 6], true)) { + if (\in_array((int)$date->format('w'), [0, 6], true)) { $date->add(new DateInterval('P2D')); $this->assertHoliday(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, $date); $this->assertHolidayType(self::REGION, 'substituteHoliday:' . self::HOLIDAY, $year, Holiday::TYPE_BANK); diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 6a9232490..2259c2e35 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -70,7 +70,7 @@ public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type // Loop through all known holidays and assert they are defined by the provider class foreach ($expectedHolidays as $holiday) { - $this->assertArrayHasKey($holiday, iterator_to_array($holidays)); + $this->assertArrayHasKey($holiday, \iterator_to_array($holidays)); } unset($holidays); @@ -96,7 +96,7 @@ public function assertHoliday($provider, $shortName, $year, $expected) $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', $provider), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', $provider), $holidays); $this->assertInstanceOf(Holiday::class, $holiday); $this->assertNotNull($holiday); $this->assertEquals($expected, $holiday); @@ -126,7 +126,7 @@ public function assertNotHoliday($provider, $shortName, $year) $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', $provider), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', $provider), $holidays); $this->assertNull($holiday); $this->assertFalse($holidays->isHoliday($holiday)); @@ -151,12 +151,12 @@ public function assertTranslatedHolidayName($provider, $shortName, $year, $trans $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', $provider), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', $provider), $holidays); $this->assertInstanceOf(Holiday::class, $holiday); $this->assertNotNull($holiday); $this->assertTrue($holidays->isHoliday($holiday)); - if (is_array($translations) && ! empty($translations)) { + if (\is_array($translations) && ! empty($translations)) { foreach ($translations as $locale => $name) { $translationExists = isset($holiday->translations[$locale]) ? true : false; @@ -186,7 +186,7 @@ public function assertHolidayType($provider, $shortName, $year, $type) $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', $provider), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', $provider), $holidays); $this->assertInstanceOf(Holiday::class, $holiday); $this->assertNotNull($holiday); $this->assertEquals($type, $holiday->getType()); @@ -213,7 +213,7 @@ public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); - $this->assertInstanceOf('Yasumi\Provider\\' . str_replace('/', '\\', $provider), $holidays); + $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', $provider), $holidays); $this->assertInstanceOf(Holiday::class, $holiday); $this->assertNotNull($holiday); $this->assertTrue($holidays->isHoliday($holiday)); @@ -294,7 +294,7 @@ public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $ */ protected function calculateEaster($year, $timezone): DateTime { - if (extension_loaded('calendar')) { + if (\extension_loaded('calendar')) { $easter_days = \easter_days($year); } else { $golden = (($year % 19) + 1); // The Golden Number @@ -515,6 +515,6 @@ public function generateRandomYear($lowerLimit = 1000, $upperLimit = 9999): int */ public function isWeekend(\DateTimeInterface $dateTime, array $weekendDays = [0, 6]): bool { - return in_array((int)$dateTime->format('w'), $weekendDays, true); + return \in_array((int)$dateTime->format('w'), $weekendDays, true); } } From 5dc1cc20af0fc9f6dfef28421fabb296a350ddd8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 27 Jan 2018 16:18:36 +0900 Subject: [PATCH 024/132] Updated inline documentation to include correction Exception throws. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 6 +++--- src/Yasumi/Yasumi.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 1f49ca106..5e1f88fe7 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -325,10 +325,10 @@ public function getYear(): int * * @return Holiday|null a Holiday instance for the given holiday * + * @throws \ReflectionException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \RuntimeException * @throws \InvalidArgumentException - * @throws \ReflectionException * * @covers AbstractProvider::anotherTime */ @@ -345,10 +345,10 @@ public function next($shortName) * * @return Holiday|null a Holiday instance for the given holiday and year * + * @throws \ReflectionException * @throws InvalidArgumentException when the given name is blank or empty. * @throws \Yasumi\Exception\UnknownLocaleException * @throws \RuntimeException - * @throws \ReflectionException */ private function anotherTime($year, $shortName) { @@ -395,10 +395,10 @@ public function getHolidays(): array * * @return Holiday|null a Holiday instance for the given holiday * + * @throws \ReflectionException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \RuntimeException * @throws \InvalidArgumentException - * @throws \ReflectionException * * @covers AbstractProvider::anotherTime */ diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index d44b16aa3..61b733b73 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -67,10 +67,10 @@ class Yasumi * * @return \DateTimeInterface * + * @throws \ReflectionException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \RuntimeException * @throws \InvalidArgumentException - * @throws \ReflectionException * @throws \Exception * @throws \Yasumi\Exception\InvalidDateException * @@ -112,11 +112,11 @@ public static function nextWorkingDay( * between 1000 and 9999. * @param string $locale The locale to use. If empty we'll use the default locale (en_US) * + * @throws \ReflectionException * @throws RuntimeException If no such holiday provider is found * @throws InvalidArgumentException if the year parameter is not between 1000 and 9999 * @throws UnknownLocaleException if the locale parameter is invalid * @throws InvalidArgumentException if the holiday provider for the given country does not exist - * @throws \ReflectionException * * @return AbstractProvider An instance of class $class is created and returned */ @@ -179,11 +179,11 @@ public static function getAvailableLocales(): array * integer between 1000 and 9999. * @param string $locale The locale to use. If empty we'll use the default locale (en_US) * + * @throws \ReflectionException * @throws RuntimeException If no such holiday provider is found * @throws InvalidArgumentException if the year parameter is not between 1000 and 9999 * @throws UnknownLocaleException if the locale parameter is invalid * @throws InvalidArgumentException if the holiday provider for the given ISO3166-2 code does not exist - * @throws \ReflectionException * * @return AbstractProvider An instance of class $class is created and returned */ @@ -236,7 +236,7 @@ public static function getProviders(): array continue; } - $quotedDs = \preg_quote($ds); + $quotedDs = \preg_quote($ds, null); $provider = \preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); $class = new ReflectionClass(\sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $provider))); @@ -263,10 +263,10 @@ public static function getProviders(): array * * @return \DateTimeInterface * + * @throws \ReflectionException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \RuntimeException * @throws \InvalidArgumentException - * @throws \ReflectionException * @throws \Exception * @throws \Yasumi\Exception\InvalidDateException * From f734f444ea69e59c1302fdb36d417fe300acb5d3 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 20 Feb 2018 09:23:39 +0900 Subject: [PATCH 025/132] Add Scrutinizer configuration file. Signed-off-by: Sacha Telgenhof --- .scrutinizer.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .scrutinizer.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 000000000..f39448913 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,12 @@ +checks: + php: + code_rating: true + duplication: true +tools: + external_code_coverage: true + php_code_sniffer: true + php_mess_detector: true + php_cs_fixer: + config: { level: psr2 } +filter: + paths: [src/*] \ No newline at end of file From 4ac16efb7e973ba0b393610fdbf7250ebdd5679e Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Wed, 21 Feb 2018 21:14:02 +0900 Subject: [PATCH 026/132] Corrected test using different start year to avoid incorrect assertion. Signed-off-by: Sacha Telgenhof --- tests/Switzerland/SwissNationalDayTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Switzerland/SwissNationalDayTest.php b/tests/Switzerland/SwissNationalDayTest.php index fc498fdbd..654a084e7 100644 --- a/tests/Switzerland/SwissNationalDayTest.php +++ b/tests/Switzerland/SwissNationalDayTest.php @@ -115,7 +115,7 @@ public function testTranslation() $this->assertTranslatedHolidayName( self::REGION, self::HOLIDAY, - $this->generateRandomYear(self::FIRST_OBSERVANCE_YEAR), + $this->generateRandomYear(self::NATIONAL_ESTABLISHMENT_YEAR), [self::LOCALE => 'Bundesfeiertag'] ); } From 72fa76249ea40baf023ed1368cb97c964748b0c2 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Wed, 21 Feb 2018 21:24:43 +0900 Subject: [PATCH 027/132] Removed unused code. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index 05a6387c3..8a666290e 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -46,8 +46,6 @@ public function initialize() $this->calculateAustraliaDay(); $this->calculateNewYearHolidays(); $this->calculateAnzacDay(); - //$this->calculateQueensBirthday(); - //$this->calculateLabourDay(); // Add Christian holidays $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale)); From 28081224dad1d1ab2c000c28acecc909a83f97a5 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Wed, 21 Feb 2018 21:42:46 +0900 Subject: [PATCH 028/132] Changed way to get current year so value is an integer (as required by the class). PHP's date function is intended for formatting and returns a string type as such. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 147c42ce0..d4925dd72 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -102,7 +102,7 @@ public function __construct($year, $locale = 'en_US', TranslationsInterface $glo { $this->clearHolidays(); - $this->year = $year ?: \date('Y'); + $this->year = $year ?: \getdate()['year']; $this->locale = $locale; $this->globalTranslations = $globalTranslations; From e5db9f166d22e3f8b5a9d7a8126246e124fef0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adnan=20Ki=C4=8Din?= Date: Sat, 24 Feb 2018 03:56:33 +0100 Subject: [PATCH 029/132] Holiday Provider for Bosnia (#94) * Holiday provider for Bosnia * test added for Bosnia Holiday provider * Added Orthodox Christmas day * Added tests for Orthodox Christmas day * Added second New years day and second Labour day * Added tests for second New years day and second Labour day * Generic unit test for Bosnia --- src/Yasumi/Provider/Bosnia.php | 98 +++++++++++++++++++ src/Yasumi/data/translations/christmasDay.php | 1 + src/Yasumi/data/translations/easter.php | 1 + .../translations/internationalWorkersDay.php | 1 + src/Yasumi/data/translations/newYearsDay.php | 1 + tests/Bosnia/BosniaBaseTestCase.php | 41 ++++++++ tests/Bosnia/BosniaTest.php | 86 ++++++++++++++++ tests/Bosnia/ChristmasDayTest.php | 72 ++++++++++++++ tests/Bosnia/DayAfterNewYearsDay.php | 72 ++++++++++++++ tests/Bosnia/EasterTest.php | 64 ++++++++++++ tests/Bosnia/IndependenceDayTest.php | 86 ++++++++++++++++ tests/Bosnia/InternationalWorkersDayTest.php | 72 ++++++++++++++ tests/Bosnia/NewYearsDayTest.php | 72 ++++++++++++++ tests/Bosnia/OrthodoxChristmasDay.php | 70 +++++++++++++ tests/Bosnia/SecondLabourDay.php | 72 ++++++++++++++ tests/Bosnia/StatehoodDayTest.php | 86 ++++++++++++++++ 16 files changed, 895 insertions(+) create mode 100644 src/Yasumi/Provider/Bosnia.php create mode 100644 tests/Bosnia/BosniaBaseTestCase.php create mode 100644 tests/Bosnia/BosniaTest.php create mode 100644 tests/Bosnia/ChristmasDayTest.php create mode 100644 tests/Bosnia/DayAfterNewYearsDay.php create mode 100644 tests/Bosnia/EasterTest.php create mode 100644 tests/Bosnia/IndependenceDayTest.php create mode 100644 tests/Bosnia/InternationalWorkersDayTest.php create mode 100644 tests/Bosnia/NewYearsDayTest.php create mode 100644 tests/Bosnia/OrthodoxChristmasDay.php create mode 100644 tests/Bosnia/SecondLabourDay.php create mode 100644 tests/Bosnia/StatehoodDayTest.php diff --git a/src/Yasumi/Provider/Bosnia.php b/src/Yasumi/Provider/Bosnia.php new file mode 100644 index 000000000..59452da66 --- /dev/null +++ b/src/Yasumi/Provider/Bosnia.php @@ -0,0 +1,98 @@ + + */ + +namespace Yasumi\Provider; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; + +/** + * Provider for all holidays in Bosnia. + * + * @author Adnan Kičin + */ +class Bosnia extends AbstractProvider +{ + use CommonHolidays, ChristianHolidays; + + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'BA'; + + /** + * Initialize holidays for Bosnia. + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + $this->timezone = 'Europe/Sarajevo'; + + // Add common holidays + $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale)); + $this->addHoliday($this->internationalWorkersDay($this->year, $this->timezone, $this->locale)); + + // Add Catholic holidays + $this->addHoliday($this->easter($this->year, $this->timezone, $this->locale)); + $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale)); + $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale)); + + // Add Orthodox holidays + + $this->addHoliday(new Holiday('orthodoxChristmasDay', [ + 'en_US' => 'Orthodox Christmas Day', + 'bs_Latn_BA' => 'Pravoslavni Božić' + ], new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)))); + + + /** + * Independence Day + */ + if ($this->year >= 1992) { + $this->addHoliday(new Holiday('independenceDay', [ + 'en_US' => 'Independence Day', + 'bs_Latn_BA' => 'Dan Nezavisnosti' + ], new DateTime("$this->year-3-1", new DateTimeZone($this->timezone)), $this->locale)); + } + + /** + * Bosnian Statehood Day + */ + if ($this->year >= 1943) { + $this->addHoliday(new Holiday('statehoodDay', [ + 'en_US' => 'Statehood Day', + 'bs_Latn_BA' => 'Dan državnosti' + ], new DateTime("$this->year-11-25", new DateTimeZone($this->timezone)), $this->locale)); + } + + /** + * Day after New Years Day + */ + $this->addHoliday(new Holiday('dayAfterNewYearsDay', [ + 'en_US' => 'Day after New Year\'s Day', + 'ro_RO' => 'Nova godina - drugi dan' + ], new DateTime("$this->year-01-02", new DateTimeZone($this->timezone)), $this->locale)); + + /** + * Second Labour day + */ + $this->addHoliday(new Holiday('secondLabourDay', [ + 'en_US' => 'Second Labour Day', + 'ro_RO' => 'Praznik rada - drugi dan' + ], new DateTime("$this->year-05-02", new DateTimeZone($this->timezone)), $this->locale)); + } +} diff --git a/src/Yasumi/data/translations/christmasDay.php b/src/Yasumi/data/translations/christmasDay.php index 313def516..be32f35a7 100755 --- a/src/Yasumi/data/translations/christmasDay.php +++ b/src/Yasumi/data/translations/christmasDay.php @@ -12,6 +12,7 @@ // Translations for Christmas return [ + 'bs_Latn_BA' => 'Božić', 'cs_CZ' => '1. svátek vánoční', 'cy_GB' => 'Nadolig', 'da_DK' => '1. Juledag', diff --git a/src/Yasumi/data/translations/easter.php b/src/Yasumi/data/translations/easter.php index b9b9384a1..840e26858 100644 --- a/src/Yasumi/data/translations/easter.php +++ b/src/Yasumi/data/translations/easter.php @@ -12,6 +12,7 @@ // Translations for Easter Sunday return [ + 'bs_Latn_BA' => 'Uskrs', 'cy_GB' => 'Sul y Pasg', 'da_DK' => 'Påskedag', 'de_AT' => 'Ostersonntag', diff --git a/src/Yasumi/data/translations/internationalWorkersDay.php b/src/Yasumi/data/translations/internationalWorkersDay.php index 4c786e410..584845034 100755 --- a/src/Yasumi/data/translations/internationalWorkersDay.php +++ b/src/Yasumi/data/translations/internationalWorkersDay.php @@ -12,6 +12,7 @@ // Translations for International Workers' Day return [ + 'bs_Latn_BA' => 'Praznik rada', 'cs_CZ' => 'Svátek práce', 'de_AT' => 'Staatsfeiertag', 'de_CH' => 'Tag der Arbeit', diff --git a/src/Yasumi/data/translations/newYearsDay.php b/src/Yasumi/data/translations/newYearsDay.php index 771a33d56..37368789a 100755 --- a/src/Yasumi/data/translations/newYearsDay.php +++ b/src/Yasumi/data/translations/newYearsDay.php @@ -12,6 +12,7 @@ // Translations for New Year's Day return [ + 'bs_Latn_BA' => 'Nova godina', 'cs_CZ' => 'Den obnovy samostatného českého státu a Nový rok', 'cy_GB' => 'Dydd Calan', 'da_DK' => 'Nytårsdag', diff --git a/tests/Bosnia/BosniaBaseTestCase.php b/tests/Bosnia/BosniaBaseTestCase.php new file mode 100644 index 000000000..f9b32f248 --- /dev/null +++ b/tests/Bosnia/BosniaBaseTestCase.php @@ -0,0 +1,41 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use PHPUnit_Framework_TestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Bosnia holiday provider. + * + * @author Adnan Kičin + */ +abstract class BosniaBaseTestCase extends PHPUnit_Framework_TestCase +{ + use YasumiBase; + + /** + * Country (name) to be tested + */ + const REGION = 'Bosnia'; + + /** + * Timezone in which this provider has holidays defined + */ + const TIMEZONE = 'Europe/Sarajevo'; + + /** + * Locale that is considered common for this provider + */ + const LOCALE = 'bs_Latn_BA'; +} diff --git a/tests/Bosnia/BosniaTest.php b/tests/Bosnia/BosniaTest.php new file mode 100644 index 000000000..77a088c7c --- /dev/null +++ b/tests/Bosnia/BosniaTest.php @@ -0,0 +1,86 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use Yasumi\Holiday; +use Yasumi\tests\Bosnia\BosniaBaseTestCase; + +/** + * Class for testing holidays in Bosnia. + */ +class BosniaTest extends BosniaBaseTestCase +{ + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Bosnia are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'dayAfterNewYearsDay', + 'internationalWorkersDay', + 'secondLabourDay', + 'christmasDay', + 'easter', + 'allSaintsDay', + 'statehoodDay', + 'independenceDay', + 'orthodoxChristmasDay' + ], self::REGION, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Tests if all observed holidays in Bosnia are defined by the provider class + */ + public function testObservedHolidays() + { + $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); + } + + /** + * Tests if all seasonal holidays in Bosnia are defined by the provider class + */ + public function testSeasonalHolidays() + { + $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); + } + + /** + * Tests if all bank holidays in Bosnia are defined by the provider class + */ + public function testBankHolidays() + { + $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); + } + + /** + * Tests if all other holidays in Bosnia are defined by the provider class + */ + public function testOtherHolidays() + { + $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1992); + } +} diff --git a/tests/Bosnia/ChristmasDayTest.php b/tests/Bosnia/ChristmasDayTest.php new file mode 100644 index 000000000..42931b82f --- /dev/null +++ b/tests/Bosnia/ChristmasDayTest.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Christmas Day in Bosnia. + */ +class ChristmasDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'christmasDay'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider() + { + return $this->generateRandomDates(12, 25, self::TIMEZONE); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Božić'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Bosnia/DayAfterNewYearsDay.php b/tests/Bosnia/DayAfterNewYearsDay.php new file mode 100644 index 000000000..a4820f879 --- /dev/null +++ b/tests/Bosnia/DayAfterNewYearsDay.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Day after New Years Day in Bosnia. + */ +class DayAfterNewYearsDay extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'dayAfterNewYearsDay'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider() + { + return $this->generateRandomDates(1, 2, self::TIMEZONE); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Nova godina - drugi dan'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Bosnia/EasterTest.php b/tests/Bosnia/EasterTest.php new file mode 100644 index 000000000..f4a746d26 --- /dev/null +++ b/tests/Bosnia/EasterTest.php @@ -0,0 +1,64 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for Easter in Bosnia. + */ +class EasterTest extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'easter'; + + /** + * Tests the holiday defined in this test. + */ + public function testHoliday() + { + $year = 1677; + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-4-15", new DateTimeZone(self::TIMEZONE)) + ); + } + + /** + * Tests translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Uskrs'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Bosnia/IndependenceDayTest.php b/tests/Bosnia/IndependenceDayTest.php new file mode 100644 index 000000000..6c842eb51 --- /dev/null +++ b/tests/Bosnia/IndependenceDayTest.php @@ -0,0 +1,86 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for Independence Day in Bosnia. + */ +class IndependenceDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'independenceDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1992; + + /** + * Tests Independence Day on or after 1992. + */ + public function testIndependenceDayOnAfter1992() + { + $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-3-1", new DateTimeZone(self::TIMEZONE)) + ); + } + + /** + * Tests Independence Day before 1992. + */ + public function testIndependenceDayBefore1992() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests translated name of Independence Day. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Dan Nezavisnosti'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Bosnia/InternationalWorkersDayTest.php b/tests/Bosnia/InternationalWorkersDayTest.php new file mode 100644 index 000000000..0b13c32d2 --- /dev/null +++ b/tests/Bosnia/InternationalWorkersDayTest.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for International Workers' Day (i.e. Labour Day) in Bosnia. + */ +class InternationalWorkersDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'internationalWorkersDay'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Praznik rada'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider() + { + return $this->generateRandomDates(5, 1, self::TIMEZONE); + } +} diff --git a/tests/Bosnia/NewYearsDayTest.php b/tests/Bosnia/NewYearsDayTest.php new file mode 100644 index 000000000..6edcc08ab --- /dev/null +++ b/tests/Bosnia/NewYearsDayTest.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing New Years Day in Bosnia. + */ +class NewYearsDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'newYearsDay'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider() + { + return $this->generateRandomDates(1, 1, self::TIMEZONE); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Nova godina'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php new file mode 100644 index 000000000..15792fbdd --- /dev/null +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -0,0 +1,70 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for Orthodox Christmas Day in Bosnia. + */ +class OrthodoxChristmasDay extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'orthodoxChristmasDay'; + + + /** + * @return array + */ + public function holidayDataProvider() + { + return $this->generateRandomDates(1, 7, self::TIMEZONE); + } + + /** + * @dataProvider holidayDataProvider + * + * @param int $year + * @param \DateTime $expected + */ + public function testHoliday($year, \DateTime $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * {@inheritdoc} + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Pravoslavni Božić'] + ); + } + + /** + * {@inheritdoc} + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Bosnia/SecondLabourDay.php b/tests/Bosnia/SecondLabourDay.php new file mode 100644 index 000000000..b1f8088a7 --- /dev/null +++ b/tests/Bosnia/SecondLabourDay.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for the Second International Workers' Day (i.e. Labour Day) in Bosnia. + */ +class SecondLabourDay extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'secondLabourDay'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Praznik rada - drugi dan'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider() + { + return $this->generateRandomDates(5, 2, self::TIMEZONE); + } +} diff --git a/tests/Bosnia/StatehoodDayTest.php b/tests/Bosnia/StatehoodDayTest.php new file mode 100644 index 000000000..31b4651e1 --- /dev/null +++ b/tests/Bosnia/StatehoodDayTest.php @@ -0,0 +1,86 @@ + + */ + +namespace Yasumi\tests\Bosnia; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for Statehood Day in Bosnia. + */ +class StatehoodDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'statehoodDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1943; + + /** + * Tests Statehood Day on or after 1943. + */ + public function testStatehoodDayOnAfter1943() + { + $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-11-25", new DateTimeZone(self::TIMEZONE)) + ); + } + + /** + * Tests Statehood Day before 1943. + */ + public function testStatehoodDayBefore1943() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests translated name of Statehood Day. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Dan državnosti'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OFFICIAL + ); + } +} From c6e127c8704b35bce6d30ec57865865bdbf3e141 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 13:04:14 +0900 Subject: [PATCH 030/132] Added testsuite for Bosnia & Herzegovina. Signed-off-by: Sacha Telgenhof --- phpunit.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpunit.xml b/phpunit.xml index e6d1f6a19..a56514a5a 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -48,6 +48,11 @@ ./tests/Belgium + + + ./tests/Bosnia + + ./tests/Brazil From 82ce1122e35e94bf8b5f68a1cbd5c1b26b91b1bf Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 18:25:43 +0900 Subject: [PATCH 031/132] Added missing type hints and removed redundant type checks. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 5 -- src/Yasumi/Provider/AbstractProvider.php | 27 +++------- tests/Base/YasumiTest.php | 69 ++++++++---------------- 3 files changed, 30 insertions(+), 71 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 0856951ca..cb6a761d3 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -110,11 +110,6 @@ public function __construct( throw new InvalidArgumentException('Holiday name can not be blank.'); } - // Validate if date parameter is instance of DateTimeInterface - if (! ($date instanceof \DateTimeInterface)) { - throw new InvalidDateException($date); - } - // Load internal locales variable if (null === static::$locales) { static::$locales = Yasumi::getAvailableLocales(); diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index d4925dd72..b35b0747a 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -16,7 +16,6 @@ use Countable; use InvalidArgumentException; use IteratorAggregate; -use Yasumi\Exception\InvalidDateException; use Yasumi\Filters\BetweenFilter; use Yasumi\Holiday; use Yasumi\ProviderInterface; @@ -177,16 +176,12 @@ public function removeHoliday($shortName) * \DateTime) * * @throws \Yasumi\Exception\InvalidDateException + * @throws \TypeError * * @return bool true if date represents a working day, otherwise false */ - public function isWorkingDay($date): bool + public function isWorkingDay(\DateTimeInterface $date): bool { - // Return false if given date is invalid - if (! $date instanceof \DateTimeInterface) { - throw new InvalidDateException($date); - } - // First check if the given date is a holiday if ($this->isHoliday($date)) { return false; @@ -195,13 +190,11 @@ public function isWorkingDay($date): bool // Check if given date is a falls in the weekend or not // If no data is defined for this Holiday Provider, the function falls back to the global weekend definition. // @TODO Ideally avoid late static binding here (static::ID) - if ($date instanceof \DateTimeInterface) { - $weekend_data = self::WEEKEND_DATA; - $weekend_days = $weekend_data[$this::ID] ?? [0, 6]; + $weekend_data = self::WEEKEND_DATA; + $weekend_days = $weekend_data[$this::ID] ?? [0, 6]; - if (\in_array((int)$date->format('w'), $weekend_days, true)) { - return false; - } + if (\in_array((int)$date->format('w'), $weekend_days, true)) { + return false; } return true; @@ -214,16 +207,12 @@ public function isWorkingDay($date): bool * \DateTime) * * @throws \Yasumi\Exception\InvalidDateException + * @throws \TypeError * * @return bool true if date represents a holiday, otherwise false */ - public function isHoliday($date): bool + public function isHoliday(\DateTimeInterface $date): bool { - // Return false if given date is invalid - if (! $date instanceof \DateTimeInterface) { - throw new InvalidDateException($date); - } - // Check if given date is a holiday or not if (\in_array($date->format('Y-m-d'), \array_values($this->getHolidayDates()), true)) { return true; diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 031d34296..66919ceb5 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -15,7 +15,6 @@ use Faker\Factory; use InvalidArgumentException; use PHPUnit_Framework_TestCase; -use Yasumi\Exception\InvalidDateException; use Yasumi\tests\YasumiBase; use Yasumi\Yasumi; @@ -84,10 +83,8 @@ public function testCreateWithAbstractClassProvider() public function testCreateWithAbstractExtension() { $class = YasumiExternalProvider::class; - $instance = Yasumi::create( - $class, - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) - ); + $instance = Yasumi::create($class, + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); $this->assertInstanceOf($class, $instance); } @@ -98,11 +95,8 @@ public function testCreateWithAbstractExtension() */ public function testCreateWithInvalidLocale() { - Yasumi::create( - 'Japan', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND), - 'wx_YZ' - ); + Yasumi::create('Japan', Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND), + 'wx_YZ'); } /** @@ -110,10 +104,8 @@ public function testCreateWithInvalidLocale() */ public function testGetIterator() { - $holidays = Yasumi::create( - 'Japan', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) - ); + $holidays = Yasumi::create('Japan', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); $this->assertInstanceOf(\ArrayIterator::class, $holidays->getIterator()); } @@ -165,12 +157,8 @@ public function testNext() $holidays = Yasumi::create($country, $year); - $this->assertHoliday( - $country, - $name, - (($year < self::YEAR_UPPER_BOUND) ? $year + 1 : self::YEAR_UPPER_BOUND), - $holidays->next($name) - ); + $this->assertHoliday($country, $name, (($year < self::YEAR_UPPER_BOUND) ? $year + 1 : self::YEAR_UPPER_BOUND), + $holidays->next($name)); } /** @@ -180,10 +168,8 @@ public function testNext() */ public function testNextWithBlankName() { - $holidays = Yasumi::create( - 'Netherlands', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) - ); + $holidays = Yasumi::create('Netherlands', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); $holidays->next(null); } @@ -199,12 +185,8 @@ public function testPrevious() $holidays = Yasumi::create($country, $year); - $this->assertHoliday( - $country, - $name, - (($year > $year_lower_limit) ? $year - 1 : $year_lower_limit), - $holidays->previous($name) - ); + $this->assertHoliday($country, $name, (($year > $year_lower_limit) ? $year - 1 : $year_lower_limit), + $holidays->previous($name)); } /** @@ -214,10 +196,8 @@ public function testPrevious() */ public function testPreviousWithBlankName() { - $holidays = Yasumi::create( - 'Netherlands', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) - ); + $holidays = Yasumi::create('Netherlands', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); $holidays->previous(null); } @@ -370,18 +350,15 @@ public function testIsNotHoliday() } /** - * Tests that the isHoliday function throws an InvalidDateException when the given argument is not an instance that + * Tests that the isHoliday function throws a TypeError when the given argument is not an instance that * implements the DateTimeInterface (e.g. DateTime or DateTimeImmutable) - * */ public function testIsHolidayException() { - $this->expectException(InvalidDateException::class); + $this->expectException(\TypeError::class); - Yasumi::create('Spain', Factory::create()->numberBetween( - self::YEAR_LOWER_BOUND, - self::YEAR_UPPER_BOUND - ))->isHoliday(new \stdClass()); + Yasumi::create('Spain', Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, + self::YEAR_UPPER_BOUND))->isHoliday(new \stdClass()); } /** @@ -435,19 +412,17 @@ public function testIsNotWorkingDay() } /** - * Tests that the isWorkingDay function throws an InvalidDateException when the given argument is not an instance + * Tests that the isWorkingDay function throws a TypeError when the given argument is not an instance * that implements the DateTimeInterface (e.g. DateTime or DateTimeImmutable) * * @TODO Add additional unit tests for those holiday providers that differ from the global definition */ public function testIsWorkingDayException() { - $this->expectException(InvalidDateException::class); + $this->expectException(\TypeError::class); - Yasumi::create('SouthAfrica', Factory::create()->numberBetween( - self::YEAR_LOWER_BOUND, - self::YEAR_UPPER_BOUND - ))->isWorkingDay(new \stdClass()); + Yasumi::create('SouthAfrica', Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, + self::YEAR_UPPER_BOUND))->isWorkingDay(new \stdClass()); } /** From bc23f0c9e1bcc3991899b85523c3df32ed0edab0 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 18:38:12 +0900 Subject: [PATCH 032/132] Changed way to get current year so value is an integer (as required by the class). PHP's date function is intended for formatting and returns a string type as such. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 61b733b73..3643cb503 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -89,7 +89,7 @@ public static function nextWorkingDay( while ($workingDays > 0) { $date = $date->add(new \DateInterval('P1D')); - if (! $provider || $provider->getYear() != $date->format('Y')) { + if (! $provider || $provider->getYear() !== \getdate()['year']) { $provider = self::create($class, $date->format('Y')); } if ($provider->isWorkingDay($date)) { @@ -285,7 +285,7 @@ public static function prevWorkingDay( while ($workingDays > 0) { $date = $date->sub(new \DateInterval('P1D')); - if (! $provider || $provider->getYear() != $date->format('Y')) { + if (! $provider || $provider->getYear() !== \getdate()['year']) { $provider = self::create($class, $date->format('Y')); } if ($provider->isWorkingDay($date)) { From 3e9771c9279f2e7d7f393e2c965fdb4a60d0efa3 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 18:38:28 +0900 Subject: [PATCH 033/132] Reformatting. Signed-off-by: Sacha Telgenhof --- tests/Base/YasumiTest.php | 59 +++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 66919ceb5..54c7f45dd 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -83,8 +83,10 @@ public function testCreateWithAbstractClassProvider() public function testCreateWithAbstractExtension() { $class = YasumiExternalProvider::class; - $instance = Yasumi::create($class, - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); + $instance = Yasumi::create( + $class, + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) + ); $this->assertInstanceOf($class, $instance); } @@ -95,8 +97,11 @@ public function testCreateWithAbstractExtension() */ public function testCreateWithInvalidLocale() { - Yasumi::create('Japan', Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND), - 'wx_YZ'); + Yasumi::create( + 'Japan', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND), + 'wx_YZ' + ); } /** @@ -104,8 +109,10 @@ public function testCreateWithInvalidLocale() */ public function testGetIterator() { - $holidays = Yasumi::create('Japan', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); + $holidays = Yasumi::create( + 'Japan', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) + ); $this->assertInstanceOf(\ArrayIterator::class, $holidays->getIterator()); } @@ -157,8 +164,12 @@ public function testNext() $holidays = Yasumi::create($country, $year); - $this->assertHoliday($country, $name, (($year < self::YEAR_UPPER_BOUND) ? $year + 1 : self::YEAR_UPPER_BOUND), - $holidays->next($name)); + $this->assertHoliday( + $country, + $name, + (($year < self::YEAR_UPPER_BOUND) ? $year + 1 : self::YEAR_UPPER_BOUND), + $holidays->next($name) + ); } /** @@ -168,8 +179,10 @@ public function testNext() */ public function testNextWithBlankName() { - $holidays = Yasumi::create('Netherlands', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); + $holidays = Yasumi::create( + 'Netherlands', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) + ); $holidays->next(null); } @@ -185,8 +198,12 @@ public function testPrevious() $holidays = Yasumi::create($country, $year); - $this->assertHoliday($country, $name, (($year > $year_lower_limit) ? $year - 1 : $year_lower_limit), - $holidays->previous($name)); + $this->assertHoliday( + $country, + $name, + (($year > $year_lower_limit) ? $year - 1 : $year_lower_limit), + $holidays->previous($name) + ); } /** @@ -196,8 +213,10 @@ public function testPrevious() */ public function testPreviousWithBlankName() { - $holidays = Yasumi::create('Netherlands', - Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND)); + $holidays = Yasumi::create( + 'Netherlands', + Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND) + ); $holidays->previous(null); } @@ -357,8 +376,10 @@ public function testIsHolidayException() { $this->expectException(\TypeError::class); - Yasumi::create('Spain', Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, - self::YEAR_UPPER_BOUND))->isHoliday(new \stdClass()); + Yasumi::create('Spain', Factory::create()->numberBetween( + self::YEAR_LOWER_BOUND, + self::YEAR_UPPER_BOUND + ))->isHoliday(new \stdClass()); } /** @@ -421,8 +442,10 @@ public function testIsWorkingDayException() { $this->expectException(\TypeError::class); - Yasumi::create('SouthAfrica', Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, - self::YEAR_UPPER_BOUND))->isWorkingDay(new \stdClass()); + Yasumi::create('SouthAfrica', Factory::create()->numberBetween( + self::YEAR_LOWER_BOUND, + self::YEAR_UPPER_BOUND + ))->isWorkingDay(new \stdClass()); } /** From f244adcf2684826126526cceac23a4ea344cc9a9 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 18:43:15 +0900 Subject: [PATCH 034/132] Added type hints. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Translations.php | 10 +++++----- src/Yasumi/TranslationsInterface.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Yasumi/Translations.php b/src/Yasumi/Translations.php index 3acb163f7..0df1d527e 100644 --- a/src/Yasumi/Translations.php +++ b/src/Yasumi/Translations.php @@ -50,7 +50,7 @@ public function __construct(array $availableLocales) * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function loadTranslations($directoryPath) + public function loadTranslations(string $directoryPath) { if (! \file_exists($directoryPath)) { throw new InvalidArgumentException('Directory with translations not found'); @@ -93,7 +93,7 @@ public function loadTranslations($directoryPath) * * @return true upon success, otherwise an UnknownLocaleException is thrown */ - protected function isValidLocale($locale): bool + protected function isValidLocale(string $locale): bool { if (! \in_array($locale, $this->availableLocales, true)) { throw new UnknownLocaleException(\sprintf('Locale "%s" is not a valid locale.', $locale)); @@ -111,7 +111,7 @@ protected function isValidLocale($locale): bool * * @throws \Yasumi\Exception\UnknownLocaleException */ - public function addTranslation($shortName, $locale, $translation) + public function addTranslation(string $shortName, string $locale, string $translation) { $this->isValidLocale($locale); // Validate the given locale @@ -130,7 +130,7 @@ public function addTranslation($shortName, $locale, $translation) * * @return string|null translated holiday name */ - public function getTranslation($shortName, $locale) + public function getTranslation(string $shortName, string $locale) { if (! \array_key_exists($shortName, $this->translations)) { return null; @@ -150,7 +150,7 @@ public function getTranslation($shortName, $locale) * * @return array holiday name translations ['' => '', ...] */ - public function getTranslations($shortName): array + public function getTranslations(string $shortName): array { if (! \array_key_exists($shortName, $this->translations)) { return []; diff --git a/src/Yasumi/TranslationsInterface.php b/src/Yasumi/TranslationsInterface.php index 36c6707ee..f8b138b4b 100644 --- a/src/Yasumi/TranslationsInterface.php +++ b/src/Yasumi/TranslationsInterface.php @@ -25,7 +25,7 @@ interface TranslationsInterface * * @return string|null translated holiday name */ - public function getTranslation($shortName, $locale); + public function getTranslation(string $shortName, string $locale); /** * Returns all available translations for holiday. @@ -34,5 +34,5 @@ public function getTranslation($shortName, $locale); * * @return array holiday name translations ['' => '', ...] */ - public function getTranslations($shortName): array; + public function getTranslations(string $shortName): array; } From c564bd9de9fc556f5bf46deeb68b63c97e6d2030 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 18:51:20 +0900 Subject: [PATCH 035/132] Corrected inline documentation for thrown errors and replaced InvalidDateException by TypeError now that relevant functions use type hints. Signed-off-by: Sacha Telgenhof --- tests/YasumiBase.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 2259c2e35..da6260ff8 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -16,7 +16,6 @@ use DateTime; use DateTimeZone; use Faker\Factory as Faker; -use Yasumi\Exception\InvalidDateException; use Yasumi\Filters\BankHolidaysFilter; use Yasumi\Filters\ObservedHolidaysFilter; use Yasumi\Filters\OfficialHolidaysFilter; @@ -45,6 +44,7 @@ trait YasumiBase * @throws \InvalidArgumentException * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type) { @@ -90,6 +90,7 @@ public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type * @throws \RuntimeException * @throws \PHPUnit_Framework_AssertionFailedError * @throws \ReflectionException + * @throws \TypeError */ public function assertHoliday($provider, $shortName, $year, $expected) { @@ -118,10 +119,11 @@ public function assertHoliday($provider, $shortName, $year, $expected) * @throws \Yasumi\Exception\InvalidDateException * @throws \PHPUnit_Framework_AssertionFailedError * @throws \ReflectionException + * @throws \TypeError */ public function assertNotHoliday($provider, $shortName, $year) { - $this->expectException(InvalidDateException::class); + $this->expectException(\TypeError::class); $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -145,6 +147,8 @@ public function assertNotHoliday($provider, $shortName, $year) * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \PHPUnit_Framework_AssertionFailedError + * @throws \ReflectionException + * @throws \TypeError */ public function assertTranslatedHolidayName($provider, $shortName, $year, $translations) { @@ -180,6 +184,7 @@ public function assertTranslatedHolidayName($provider, $shortName, $year, $trans * @throws \RuntimeException * @throws \PHPUnit_Framework_AssertionFailedError * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function assertHolidayType($provider, $shortName, $year, $type) { @@ -207,6 +212,8 @@ public function assertHolidayType($provider, $shortName, $year, $type) * @throws \InvalidArgumentException * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException + * @throws \TypeError */ public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek) { From 1e54f1e4b4a4976eaa431f17849bb20cb7a0ddc8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 20:18:48 +0900 Subject: [PATCH 036/132] Added type hints. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index cb6a761d3..ec4de0fdd 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -15,7 +15,6 @@ use DateTime; use InvalidArgumentException; use JsonSerializable; -use Yasumi\Exception\InvalidDateException; use Yasumi\Exception\UnknownLocaleException; /** @@ -99,11 +98,11 @@ class Holiday extends DateTime implements JsonSerializable * @throws \InvalidArgumentException */ public function __construct( - $shortName, + string $shortName, array $names, \DateTimeInterface $date, - $displayLocale = self::DEFAULT_LOCALE, - $type = self::TYPE_OFFICIAL + string $displayLocale = self::DEFAULT_LOCALE, + string $type = self::TYPE_OFFICIAL ) { // Validate if short name is not empty if (empty($shortName)) { @@ -157,7 +156,7 @@ public function jsonSerialize() * defined, the name in the default locale ('en_US') is returned. In case there is no translation at all, the short * internal name is returned. */ - public function getName() + public function getName(): string { if (isset($this->translations[$this->displayLocale])) { return $this->translations[$this->displayLocale]; @@ -184,9 +183,9 @@ public function mergeGlobalTranslations(TranslationsInterface $globalTranslation /** * Format the instance as a string using the set format. * - * @return string + * @return string this instance as a string using the set format. */ - public function __toString() + public function __toString(): string { return (string)$this->format('Y-m-d'); } From 4d7ad83e0707792daf7013eba9554dec8e494a5d Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 20:19:21 +0900 Subject: [PATCH 037/132] Reformatting. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 3643cb503..fd442a781 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -82,6 +82,7 @@ public static function nextWorkingDay( \DateTimeInterface $startDate, int $workingDays = 1 ): \DateTimeInterface { + // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof \DateTime ? clone $startDate : $startDate; @@ -278,6 +279,7 @@ public static function prevWorkingDay( \DateTimeInterface $startDate, int $workingDays = 1 ): \DateTimeInterface { + // Setup start date, if its an instance of \DateTime, clone to prevent modification to original $date = $startDate instanceof \DateTime ? clone $startDate : $startDate; From 46a8ec2e20901949e2c8c7cb0eb1edac46d8e376 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 20:30:12 +0900 Subject: [PATCH 038/132] Added type hints. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/ChristianHolidays.php | 174 ++++++++++++++++------ src/Yasumi/Provider/CommonHolidays.php | 72 ++++++--- tests/YasumiBase.php | 2 +- 3 files changed, 184 insertions(+), 64 deletions(-) diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index d4b911d90..59f2dbe7e 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -46,7 +46,7 @@ trait ChristianHolidays * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function easter($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday + public function easter(int $year, string $timezone, string $locale, string $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday('easter', [], $easter = $this->calculateEaster($year, $timezone), $locale, $type); } @@ -73,8 +73,12 @@ public function easter($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL * @throws \InvalidArgumentException * @throws \Exception */ - public function easterMonday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function easterMonday( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'easterMonday', [], @@ -106,8 +110,12 @@ public function easterMonday($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \InvalidArgumentException * @throws \Exception */ - public function ascensionDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function ascensionDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'ascensionDay', [], @@ -136,8 +144,12 @@ public function ascensionDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \InvalidArgumentException * @throws \Exception */ - public function pentecost($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function pentecost( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'pentecost', [], @@ -166,8 +178,12 @@ public function pentecost($year, $timezone, $locale, $type = Holiday::TYPE_OFFIC * @throws \InvalidArgumentException * @throws \Exception */ - public function pentecostMonday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function pentecostMonday( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'pentecostMonday', [], @@ -199,8 +215,12 @@ public function pentecostMonday($year, $timezone, $locale, $type = Holiday::TYPE * @throws \InvalidArgumentException * @throws \Exception */ - public function corpusChristi($year, $timezone, $locale, $type = Holiday::TYPE_OTHER): Holiday - { + public function corpusChristi( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OTHER + ): Holiday { return new Holiday( 'corpusChristi', [], @@ -232,8 +252,12 @@ public function corpusChristi($year, $timezone, $locale, $type = Holiday::TYPE_O * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function christmasEve($year, $timezone, $locale, $type = Holiday::TYPE_OBSERVANCE): Holiday - { + public function christmasEve( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OBSERVANCE + ): Holiday { return new Holiday( 'christmasEve', [], @@ -262,8 +286,12 @@ public function christmasEve($year, $timezone, $locale, $type = Holiday::TYPE_OB * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function christmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function christmasDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'christmasDay', [], @@ -292,8 +320,12 @@ public function christmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function secondChristmasDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function secondChristmasDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'secondChristmasDay', [], @@ -325,8 +357,12 @@ public function secondChristmasDay($year, $timezone, $locale, $type = Holiday::T * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function allSaintsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function allSaintsDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday('allSaintsDay', [], new DateTime("$year-11-1", new DateTimeZone($timezone)), $locale, $type); } @@ -351,8 +387,12 @@ public function allSaintsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function assumptionOfMary($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function assumptionOfMary( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'assumptionOfMary', [], @@ -382,8 +422,12 @@ public function assumptionOfMary($year, $timezone, $locale, $type = Holiday::TYP * @throws \InvalidArgumentException * @throws \Exception */ - public function goodFriday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function goodFriday( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'goodFriday', [], @@ -416,8 +460,12 @@ public function goodFriday($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function epiphany($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function epiphany( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday('epiphany', [], new DateTime("$year-1-6", new DateTimeZone($timezone)), $locale, $type); } @@ -443,8 +491,12 @@ public function epiphany($year, $timezone, $locale, $type = Holiday::TYPE_OFFICI * @throws \InvalidArgumentException * @throws \Exception */ - public function ashWednesday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function ashWednesday( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'ashWednesday', [], @@ -476,8 +528,12 @@ public function ashWednesday($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function immaculateConception($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function immaculateConception( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'immaculateConception', [], @@ -510,8 +566,12 @@ public function immaculateConception($year, $timezone, $locale, $type = Holiday: * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stStephensDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function stStephensDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'stStephensDay', [], @@ -544,8 +604,12 @@ public function stStephensDay($year, $timezone, $locale, $type = Holiday::TYPE_O * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stJosephsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function stJosephsDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday('stJosephsDay', [], new DateTime("$year-3-19", new DateTimeZone($timezone)), $locale, $type); } @@ -572,8 +636,12 @@ public function stJosephsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \InvalidArgumentException * @throws \Exception */ - public function maundyThursday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function maundyThursday( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'maundyThursday', [], @@ -605,8 +673,12 @@ public function maundyThursday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stGeorgesDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function stGeorgesDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday('stGeorgesDay', [], new DateTime("$year-4-23", new DateTimeZone($timezone)), $locale, $type); } @@ -633,8 +705,12 @@ public function stGeorgesDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stJohnsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function stJohnsDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday('stJohnsDay', [], new DateTime("$year-06-24", new DateTimeZone($timezone)), $locale, $type); } @@ -661,8 +737,12 @@ public function stJohnsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function annunciation($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function annunciation( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'annunciation', [], @@ -684,7 +764,7 @@ public function annunciation($year, $timezone, $locale, $type = Holiday::TYPE_OF * @link https://en.wikipedia.org/wiki/Computus#Adaptation_for_Western_Easter_of_Meeus.27_Julian_algorithm * @throws \Exception */ - public function calculateOrthodoxEaster($year, $timezone): \DateTime + public function calculateOrthodoxEaster(int $year, string $timezone): \DateTime { $a = $year % 4; $b = $year % 7; @@ -724,8 +804,12 @@ public function calculateOrthodoxEaster($year, $timezone): \DateTime * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function reformationDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function reformationDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'reformationDay', [], @@ -759,7 +843,7 @@ public function reformationDay($year, $timezone, $locale, $type = Holiday::TYPE_ * @return \DateTime date of Easter * @throws \Exception */ - protected function calculateEaster($year, $timezone): DateTime + protected function calculateEaster(int $year, string $timezone): DateTime { if (\extension_loaded('calendar')) { $easter_days = \easter_days($year); diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index fe53f63f9..b04554f98 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -47,8 +47,12 @@ trait CommonHolidays * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function newYearsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function newYearsDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday('newYearsDay', [], new DateTime("$year-1-1", new DateTimeZone($timezone)), $locale, $type); } @@ -75,8 +79,12 @@ public function newYearsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function internationalWorkersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function internationalWorkersDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'internationalWorkersDay', [], @@ -109,8 +117,12 @@ public function internationalWorkersDay($year, $timezone, $locale, $type = Holid * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function valentinesDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function valentinesDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'valentinesDay', [], @@ -141,8 +153,12 @@ public function valentinesDay($year, $timezone, $locale, $type = Holiday::TYPE_O * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function worldAnimalDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function worldAnimalDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'worldAnimalDay', [], @@ -175,8 +191,12 @@ public function worldAnimalDay($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function stMartinsDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function stMartinsDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'stMartinsDay', [], @@ -208,8 +228,12 @@ public function stMartinsDay($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function fathersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function fathersDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'fathersDay', [], @@ -241,8 +265,12 @@ public function fathersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function mothersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function mothersDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'mothersDay', [], @@ -274,8 +302,12 @@ public function mothersDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFI * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function victoryInEuropeDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function victoryInEuropeDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'victoryInEuropeDay', [], @@ -309,8 +341,12 @@ public function victoryInEuropeDay($year, $timezone, $locale, $type = Holiday::T * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function armisticeDay($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday - { + public function armisticeDay( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { return new Holiday( 'armisticeDay', [], diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index da6260ff8..913a5f34d 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -299,7 +299,7 @@ public function generateRandomEasterDates($timezone = 'UTC', $iterations = 10, $ * @return \DateTime date of Easter * @throws \Exception */ - protected function calculateEaster($year, $timezone): DateTime + protected function calculateEaster(int $year, string $timezone): DateTime { if (\extension_loaded('calendar')) { $easter_days = \easter_days($year); From 93a407a6e214cdc9739b465e3eafbd8dba1ca2ff Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 20:41:31 +0900 Subject: [PATCH 039/132] Added type hints. Refactored the internal calculateHoliday function to have the $date parameter to be of \DateTimeInterface only (removing the option of a string type). Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia.php | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index 8a666290e..63295d346 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -82,11 +82,11 @@ public function calculateAustraliaDay() /** * Function to simplify moving holidays to mondays if required * - * @param string $shortName - * @param array $names - * @param string|DateTime $date - * @param bool $moveFromSaturday - * @param bool $moveFromSunday + * @param string $shortName + * @param array $names + * @param \DateTimeInterface $date + * @param bool $moveFromSaturday + * @param bool $moveFromSunday * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException @@ -94,23 +94,18 @@ public function calculateAustraliaDay() * @throws \Exception */ public function calculateHoliday( - $shortName, + string $shortName, array $names = [], - $date, - $moveFromSaturday = true, - $moveFromSunday = true + \DateTimeInterface $date, + bool $moveFromSaturday = true, + bool $moveFromSunday = true ) { - $holidayDate = $date instanceof \DateTimeInterface ? $date : new \DateTime( - $date, - new \DateTimeZone($this->timezone) - ); - - $day = (int)$holidayDate->format('w'); + $day = (int)$date->format('w'); if (($day === 0 && $moveFromSunday) || ($day === 6 && $moveFromSaturday)) { - $holidayDate = $holidayDate->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P2D')); + $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P2D')); } - $this->addHoliday(new Holiday($shortName, $names, $holidayDate, $this->locale)); + $this->addHoliday(new Holiday($shortName, $names, $date, $this->locale)); } /** @@ -217,7 +212,7 @@ public function calculateQueensBirthday() $this->calculateHoliday( 'queensBirthday', ['en_AU' => 'Queens Birthday'], - 'second monday of june ' . $this->year, + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), false, false ); From 13c2b5289566b3a259f79dd428deefabef48412c Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 20:44:27 +0900 Subject: [PATCH 040/132] Updated inline documentation to include correction Exception throws. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Bosnia.php | 1 + src/Yasumi/Provider/Latvia.php | 2 ++ src/Yasumi/Provider/NewZealand.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/Yasumi/Provider/Bosnia.php b/src/Yasumi/Provider/Bosnia.php index 59452da66..d7a554b26 100644 --- a/src/Yasumi/Provider/Bosnia.php +++ b/src/Yasumi/Provider/Bosnia.php @@ -34,6 +34,7 @@ class Bosnia extends AbstractProvider /** * Initialize holidays for Bosnia. * + * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 038c481aa..bcbac40a4 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -65,6 +65,7 @@ public function initialize() * If the day is on the weekend the next Monday is a holiday. * * @throws \InvalidArgumentException + * @throws \TypeError */ private function addRestorationOfIndependenceDay() { @@ -98,6 +99,7 @@ private function addMidsummerEveDay() * If the day is on the weekend the next Monday is a holiday. * * @throws \InvalidArgumentException + * @throws \TypeError */ private function addProclamationDay() { diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index 927080628..f35f67baf 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -109,6 +109,7 @@ public function calculateNewYearHolidays() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \TypeError */ public function calculateWaitangiDay() { @@ -138,6 +139,7 @@ public function calculateWaitangiDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \TypeError */ public function calculateAnzacDay() { From 58125062706d705e87b9c957993a3d687f688d3a Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 20:58:18 +0900 Subject: [PATCH 041/132] Refactored various holiday calculations to their own functions. (Making class less complex). Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Japan.php | 257 +++++++++++++++++++++------------- 1 file changed, 160 insertions(+), 97 deletions(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 0a52c9460..4c5f4d87f 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -90,103 +90,14 @@ public function initialize() $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale)); } - /** - * National Foundation Day. National Foundation Day is held on February 11th and established since 1966. - */ - if ($this->year >= 1966) { - $this->addHoliday(new Holiday( - 'nationalFoundationDay', - ['en_US' => 'National Foundation Day', 'ja_JP' => '建国記念の日'], - new DateTime("$this->year-2-11", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Showa Day. Showa Day is held on April 29th and established since 2007. - */ - if ($this->year >= 2007) { - $this->addHoliday(new Holiday( - 'showaDay', - ['en_US' => 'Showa Day', 'ja_JP' => '昭和の日'], - new DateTime("$this->year-4-29", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Constitution Memorial Day. Constitution Memorial Day is held on May 3rd and established since 1948. - */ - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'constitutionMemorialDay', - ['en_US' => 'Constitution Memorial Day', 'ja_JP' => '憲法記念日'], - new DateTime("$this->year-5-3", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Children's Day. Children's Day is held on May 5th and established since 1948. - */ - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'childrensDay', - ['en_US' => 'Children\'s Day', 'ja_JP' => 'こどもの日'], - new DateTime("$this->year-5-5", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Mountain Day. Mountain Day is held on August 11th and established since 2016. - */ - if ($this->year >= 2016) { - $this->addHoliday(new Holiday( - 'mountainDay', - ['en_US' => 'Mountain Day', 'ja_JP' => '山の日'], - new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Culture Day. Culture Day is held on November 11th and established since 1948. - */ - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'cultureDay', - ['en_US' => 'Culture Day', 'ja_JP' => '文化の日'], - new DateTime("$this->year-11-3", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Labor Thanksgiving Day. Labor Thanksgiving Day is held on November 23rd and established since 1948. - */ - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'laborThanksgivingDay', - ['en_US' => 'Labor Thanksgiving Day', 'ja_JP' => '勤労感謝の日'], - new DateTime("$this->year-11-23", new DateTimeZone($this->timezone)), - $this->locale - )); - } - - /** - * Emperors Birthday. The Emperors Birthday is on December 23rd and celebrated as such since 1989. - * Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. See also "Shōwa Day". - */ - if ($this->year >= 1989) { - $this->addHoliday(new Holiday( - 'emperorsBirthday', - ['en_US' => 'Emperors Birthday', 'ja_JP' => '天皇誕生日'], - new DateTime("$this->year-12-23", new DateTimeZone($this->timezone)), - $this->locale - )); - } - + $this->calculateNationalFoundationDay(); + $this->calculateShowaDay(); + $this->calculateConstitutionMemorialDay(); + $this->calculateChildrensDay(); + $this->calculateMountainDay(); + $this->calculateCultureDay(); + $this->calculateLaborThanksgivingDay(); + $this->calculateEmperorsBirthday(); $this->calculateVernalEquinoxDay(); $this->calculateComingOfAgeDay(); $this->calculateGreeneryDay(); @@ -498,4 +409,156 @@ private function calculateBridgeHolidays() } } } + + /** + * Emperors Birthday. + * + * The Emperors Birthday is on December 23rd and celebrated as such since 1989. + * Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. + * See also "Shōwa Day". + * + * @throws \InvalidArgumentException + */ + private function calculateEmperorsBirthday() + { + if ($this->year >= 1989) { + $this->addHoliday(new Holiday( + 'emperorsBirthday', + ['en_US' => 'Emperors Birthday', 'ja_JP' => '天皇誕生日'], + new DateTime("$this->year-12-23", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * National Foundation Day. + * + * National Foundation Day is held on February 11th and established since 1966. + * + * @throws \InvalidArgumentException + */ + private function calculateNationalFoundationDay() + { + if ($this->year >= 1966) { + $this->addHoliday(new Holiday( + 'nationalFoundationDay', + ['en_US' => 'National Foundation Day', 'ja_JP' => '建国記念の日'], + new DateTime("$this->year-2-11", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * Showa Day. Showa Day is held on April 29th and established since 2007. + * + * @throws \InvalidArgumentException + */ + private function calculateShowaDay() + { + if ($this->year >= 2007) { + $this->addHoliday(new Holiday( + 'showaDay', + ['en_US' => 'Showa Day', 'ja_JP' => '昭和の日'], + new DateTime("$this->year-4-29", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * Constitution Memorial Day. + * + * Constitution Memorial Day is held on May 3rd and established since 1948. + * + * @throws \InvalidArgumentException + */ + private function calculateConstitutionMemorialDay() + { + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'constitutionMemorialDay', + ['en_US' => 'Constitution Memorial Day', 'ja_JP' => '憲法記念日'], + new DateTime("$this->year-5-3", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * Children's Day. + * + * Children's Day is held on May 5th and established since 1948. + * + * @throws \InvalidArgumentException + */ + private function calculateChildrensDay() + { + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'childrensDay', + ['en_US' => 'Children\'s Day', 'ja_JP' => 'こどもの日'], + new DateTime("$this->year-5-5", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * Mountain Day. + * + * Mountain Day is held on August 11th and established since 2016. + * + * @throws \InvalidArgumentException + */ + private function calculateMountainDay() + { + if ($this->year >= 2016) { + $this->addHoliday(new Holiday( + 'mountainDay', + ['en_US' => 'Mountain Day', 'ja_JP' => '山の日'], + new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * Culture Day. + * + * Culture Day is held on November 11th and established since 1948. + * + * @throws \InvalidArgumentException + */ + private function calculateCultureDay() + { + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'cultureDay', + ['en_US' => 'Culture Day', 'ja_JP' => '文化の日'], + new DateTime("$this->year-11-3", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } + + /** + * Labor Thanksgiving Day. + * + * Labor Thanksgiving Day is held on November 23rd and established since 1948. + * + * @throws \InvalidArgumentException + */ + private function calculateLaborThanksgivingDay() + { + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'laborThanksgivingDay', + ['en_US' => 'Labor Thanksgiving Day', 'ja_JP' => '勤労感謝の日'], + new DateTime("$this->year-11-23", new DateTimeZone($this->timezone)), + $this->locale + )); + } + } } From d2fd8df5b1efbc09fbddecde90e7fcadd21d7ff2 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 21:01:11 +0900 Subject: [PATCH 042/132] Corrected date parameter to be of DateTime (instead of DateTimeInterface) as the parameter object needs to be a direct instance. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia.php | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index 63295d346..3357b3a95 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -82,11 +82,11 @@ public function calculateAustraliaDay() /** * Function to simplify moving holidays to mondays if required * - * @param string $shortName - * @param array $names - * @param \DateTimeInterface $date - * @param bool $moveFromSaturday - * @param bool $moveFromSunday + * @param string $shortName + * @param array $names + * @param \DateTime $date + * @param bool $moveFromSaturday + * @param bool $moveFromSunday * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException @@ -96,7 +96,7 @@ public function calculateAustraliaDay() public function calculateHoliday( string $shortName, array $names = [], - \DateTimeInterface $date, + \DateTime $date, bool $moveFromSaturday = true, bool $moveFromSunday = true ) { @@ -125,11 +125,8 @@ public function calculateHoliday( */ public function calculateNewYearHolidays() { - $this->calculateHoliday( - 'newYearsDay', - [], - new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)) - ); + $this->calculateHoliday('newYearsDay', [], + new DateTime("$this->year-01-01", new DateTimeZone($this->timezone))); } /** @@ -209,13 +206,8 @@ public function calculateChristmasDay() */ public function calculateQueensBirthday() { - $this->calculateHoliday( - 'queensBirthday', - ['en_AU' => 'Queens Birthday'], - new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), - false, - false - ); + $this->calculateHoliday('queensBirthday', ['en_AU' => 'Queens Birthday'], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), false, false); } /** From 1c297a5c7d0042cb7f999f43b4560d4526646750 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 21:01:40 +0900 Subject: [PATCH 043/132] Reformatting. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index 3357b3a95..0669b4485 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -125,8 +125,11 @@ public function calculateHoliday( */ public function calculateNewYearHolidays() { - $this->calculateHoliday('newYearsDay', [], - new DateTime("$this->year-01-01", new DateTimeZone($this->timezone))); + $this->calculateHoliday( + 'newYearsDay', + [], + new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)) + ); } /** @@ -206,8 +209,13 @@ public function calculateChristmasDay() */ public function calculateQueensBirthday() { - $this->calculateHoliday('queensBirthday', ['en_AU' => 'Queens Birthday'], - new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), false, false); + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => 'Queens Birthday'], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); } /** From 31090f5e54f9f210257bc9931394486b0a6e357e Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 21:33:28 +0900 Subject: [PATCH 044/132] Revert 5812506 --- src/Yasumi/Provider/Japan.php | 257 +++++++++++++--------------------- 1 file changed, 97 insertions(+), 160 deletions(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 4c5f4d87f..0a52c9460 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -90,14 +90,103 @@ public function initialize() $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale)); } - $this->calculateNationalFoundationDay(); - $this->calculateShowaDay(); - $this->calculateConstitutionMemorialDay(); - $this->calculateChildrensDay(); - $this->calculateMountainDay(); - $this->calculateCultureDay(); - $this->calculateLaborThanksgivingDay(); - $this->calculateEmperorsBirthday(); + /** + * National Foundation Day. National Foundation Day is held on February 11th and established since 1966. + */ + if ($this->year >= 1966) { + $this->addHoliday(new Holiday( + 'nationalFoundationDay', + ['en_US' => 'National Foundation Day', 'ja_JP' => '建国記念の日'], + new DateTime("$this->year-2-11", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Showa Day. Showa Day is held on April 29th and established since 2007. + */ + if ($this->year >= 2007) { + $this->addHoliday(new Holiday( + 'showaDay', + ['en_US' => 'Showa Day', 'ja_JP' => '昭和の日'], + new DateTime("$this->year-4-29", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Constitution Memorial Day. Constitution Memorial Day is held on May 3rd and established since 1948. + */ + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'constitutionMemorialDay', + ['en_US' => 'Constitution Memorial Day', 'ja_JP' => '憲法記念日'], + new DateTime("$this->year-5-3", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Children's Day. Children's Day is held on May 5th and established since 1948. + */ + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'childrensDay', + ['en_US' => 'Children\'s Day', 'ja_JP' => 'こどもの日'], + new DateTime("$this->year-5-5", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Mountain Day. Mountain Day is held on August 11th and established since 2016. + */ + if ($this->year >= 2016) { + $this->addHoliday(new Holiday( + 'mountainDay', + ['en_US' => 'Mountain Day', 'ja_JP' => '山の日'], + new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Culture Day. Culture Day is held on November 11th and established since 1948. + */ + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'cultureDay', + ['en_US' => 'Culture Day', 'ja_JP' => '文化の日'], + new DateTime("$this->year-11-3", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Labor Thanksgiving Day. Labor Thanksgiving Day is held on November 23rd and established since 1948. + */ + if ($this->year >= 1948) { + $this->addHoliday(new Holiday( + 'laborThanksgivingDay', + ['en_US' => 'Labor Thanksgiving Day', 'ja_JP' => '勤労感謝の日'], + new DateTime("$this->year-11-23", new DateTimeZone($this->timezone)), + $this->locale + )); + } + + /** + * Emperors Birthday. The Emperors Birthday is on December 23rd and celebrated as such since 1989. + * Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. See also "Shōwa Day". + */ + if ($this->year >= 1989) { + $this->addHoliday(new Holiday( + 'emperorsBirthday', + ['en_US' => 'Emperors Birthday', 'ja_JP' => '天皇誕生日'], + new DateTime("$this->year-12-23", new DateTimeZone($this->timezone)), + $this->locale + )); + } + $this->calculateVernalEquinoxDay(); $this->calculateComingOfAgeDay(); $this->calculateGreeneryDay(); @@ -409,156 +498,4 @@ private function calculateBridgeHolidays() } } } - - /** - * Emperors Birthday. - * - * The Emperors Birthday is on December 23rd and celebrated as such since 1989. - * Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. - * See also "Shōwa Day". - * - * @throws \InvalidArgumentException - */ - private function calculateEmperorsBirthday() - { - if ($this->year >= 1989) { - $this->addHoliday(new Holiday( - 'emperorsBirthday', - ['en_US' => 'Emperors Birthday', 'ja_JP' => '天皇誕生日'], - new DateTime("$this->year-12-23", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * National Foundation Day. - * - * National Foundation Day is held on February 11th and established since 1966. - * - * @throws \InvalidArgumentException - */ - private function calculateNationalFoundationDay() - { - if ($this->year >= 1966) { - $this->addHoliday(new Holiday( - 'nationalFoundationDay', - ['en_US' => 'National Foundation Day', 'ja_JP' => '建国記念の日'], - new DateTime("$this->year-2-11", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * Showa Day. Showa Day is held on April 29th and established since 2007. - * - * @throws \InvalidArgumentException - */ - private function calculateShowaDay() - { - if ($this->year >= 2007) { - $this->addHoliday(new Holiday( - 'showaDay', - ['en_US' => 'Showa Day', 'ja_JP' => '昭和の日'], - new DateTime("$this->year-4-29", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * Constitution Memorial Day. - * - * Constitution Memorial Day is held on May 3rd and established since 1948. - * - * @throws \InvalidArgumentException - */ - private function calculateConstitutionMemorialDay() - { - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'constitutionMemorialDay', - ['en_US' => 'Constitution Memorial Day', 'ja_JP' => '憲法記念日'], - new DateTime("$this->year-5-3", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * Children's Day. - * - * Children's Day is held on May 5th and established since 1948. - * - * @throws \InvalidArgumentException - */ - private function calculateChildrensDay() - { - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'childrensDay', - ['en_US' => 'Children\'s Day', 'ja_JP' => 'こどもの日'], - new DateTime("$this->year-5-5", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * Mountain Day. - * - * Mountain Day is held on August 11th and established since 2016. - * - * @throws \InvalidArgumentException - */ - private function calculateMountainDay() - { - if ($this->year >= 2016) { - $this->addHoliday(new Holiday( - 'mountainDay', - ['en_US' => 'Mountain Day', 'ja_JP' => '山の日'], - new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * Culture Day. - * - * Culture Day is held on November 11th and established since 1948. - * - * @throws \InvalidArgumentException - */ - private function calculateCultureDay() - { - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'cultureDay', - ['en_US' => 'Culture Day', 'ja_JP' => '文化の日'], - new DateTime("$this->year-11-3", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } - - /** - * Labor Thanksgiving Day. - * - * Labor Thanksgiving Day is held on November 23rd and established since 1948. - * - * @throws \InvalidArgumentException - */ - private function calculateLaborThanksgivingDay() - { - if ($this->year >= 1948) { - $this->addHoliday(new Holiday( - 'laborThanksgivingDay', - ['en_US' => 'Labor Thanksgiving Day', 'ja_JP' => '勤労感謝の日'], - new DateTime("$this->year-11-23", new DateTimeZone($this->timezone)), - $this->locale - )); - } - } } From e627552c4d44d0e4cec085819fa1a214af84d1ba Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 24 Feb 2018 21:42:01 +0900 Subject: [PATCH 045/132] Changed access to static variables with 'self'. Accessing with 'static' can lead to possible sub-classes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index fd442a781..1ed0f47bb 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -140,18 +140,18 @@ public static function create(string $class, int $year = null, string $locale = } // Load internal locales variable - if (null === static::$locales) { - static::$locales = self::getAvailableLocales(); + if (null === self::$locales) { + self::$locales = self::getAvailableLocales(); } // Load internal translations variable - if (null === static::$globalTranslations) { - static::$globalTranslations = new Translations(static::$locales); - static::$globalTranslations->loadTranslations(__DIR__ . '/data/translations'); + if (null === self::$globalTranslations) { + self::$globalTranslations = new Translations(self::$locales); + self::$globalTranslations->loadTranslations(__DIR__ . '/data/translations'); } // Assert locale input - if (! \in_array($locale, static::$locales, true)) { + if (! \in_array($locale, self::$locales, true)) { throw new UnknownLocaleException(\sprintf('Locale "%s" is not a valid locale.', $locale)); } From 32849c220af2fe5b3645ef390da23ecd4e75b2a7 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sun, 25 Feb 2018 12:20:02 +0900 Subject: [PATCH 046/132] Changed access to static variables with 'self'. Accessing with 'static' can lead to possible sub-classes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index ec4de0fdd..fa848bdb5 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -110,12 +110,12 @@ public function __construct( } // Load internal locales variable - if (null === static::$locales) { - static::$locales = Yasumi::getAvailableLocales(); + if (null === self::$locales) { + self::$locales = Yasumi::getAvailableLocales(); } // Assert display locale input - if (! \in_array($displayLocale, static::$locales, true)) { + if (! \in_array($displayLocale, self::$locales, true)) { throw new UnknownLocaleException(\sprintf('Locale "%s" is not a valid locale.', $displayLocale)); } From 2130ab97e58befce4176feb82ef9727a16fbd4bc Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sun, 25 Feb 2018 12:20:54 +0900 Subject: [PATCH 047/132] Type cast to integer as Yasumi::create() requires an integer. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 1ed0f47bb..7ee6bf035 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -91,7 +91,7 @@ public static function nextWorkingDay( while ($workingDays > 0) { $date = $date->add(new \DateInterval('P1D')); if (! $provider || $provider->getYear() !== \getdate()['year']) { - $provider = self::create($class, $date->format('Y')); + $provider = self::create($class, (int)$date->format('Y')); } if ($provider->isWorkingDay($date)) { $workingDays--; @@ -288,7 +288,7 @@ public static function prevWorkingDay( while ($workingDays > 0) { $date = $date->sub(new \DateInterval('P1D')); if (! $provider || $provider->getYear() !== \getdate()['year']) { - $provider = self::create($class, $date->format('Y')); + $provider = self::create($class, (int)$date->format('Y')); } if ($provider->isWorkingDay($date)) { $workingDays--; From eb116ee01cd22e6d449650e15884414f28070e05 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sun, 25 Feb 2018 12:24:28 +0900 Subject: [PATCH 048/132] Added third parameter to clarify type safety. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Japan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 0a52c9460..6000bb01b 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -437,13 +437,13 @@ private function calculateSubstituteHolidays() if (0 === (int)$date->format('w')) { if ($this->year >= 2007) { // Find next week day (not being another holiday) - while (\in_array($substituteDay, $dates)) { + while (\in_array($substituteDay, $dates, false)) { $substituteDay->add(new DateInterval('P1D')); continue; } } elseif ($date >= '1973-04-12') { $substituteDay->add(new DateInterval('P1D')); - if (\in_array($substituteDay, $dates)) { + if (\in_array($substituteDay, $dates, false)) { continue; // @codeCoverageIgnore } } else { From d67c2f75d6eb5dddc8c367391ce8b497b6db473f Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sun, 25 Feb 2018 12:28:23 +0900 Subject: [PATCH 049/132] Added return type. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 7ee6bf035..bb171d368 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -121,7 +121,7 @@ public static function nextWorkingDay( * * @return AbstractProvider An instance of class $class is created and returned */ - public static function create(string $class, int $year = null, string $locale = self::DEFAULT_LOCALE) + public static function create(string $class, int $year = null, string $locale = self::DEFAULT_LOCALE): ProviderInterface { // Find and return holiday provider instance $providerClass = \sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $class)); From 9005bf1e8b65d86676b53641a3ae2d0748a6b99a Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 5 Mar 2018 15:52:07 +0100 Subject: [PATCH 050/132] Spelling fix for sv_SE (#97) --- CHANGELOG.md | 1 + src/Yasumi/data/translations/ascensionDay.php | 2 +- tests/Sweden/AscensionDayTest.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ed5460dc..8d370afe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Changed ### Fixed +- Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) ### Removed diff --git a/src/Yasumi/data/translations/ascensionDay.php b/src/Yasumi/data/translations/ascensionDay.php index 6f2418825..3baf5b872 100644 --- a/src/Yasumi/data/translations/ascensionDay.php +++ b/src/Yasumi/data/translations/ascensionDay.php @@ -26,5 +26,5 @@ 'nb_NO' => 'Kristi himmelfartsdag', 'nl_BE' => 'Hemelvaart', 'nl_NL' => 'Hemelvaart', - 'sv_SE' => 'Kristi himmelsfärds dag', + 'sv_SE' => 'Kristi himmelsfärdsdag', ]; diff --git a/tests/Sweden/AscensionDayTest.php b/tests/Sweden/AscensionDayTest.php index 72f07076f..087467f7d 100644 --- a/tests/Sweden/AscensionDayTest.php +++ b/tests/Sweden/AscensionDayTest.php @@ -50,7 +50,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(), - [self::LOCALE => 'Kristi himmelsfärds dag'] + [self::LOCALE => 'Kristi himmelsfärdsdag'] ); } From 616a11abea8da7c1766c50be23437c240b10c3c5 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Thu, 8 Mar 2018 10:58:12 +0100 Subject: [PATCH 051/132] Ignore time part and timezone (#101) Fixes issue #78 --- CHANGELOG.md | 1 + src/Yasumi/Filters/BetweenFilter.php | 10 +++++----- tests/Base/HolidayBetweenFilterTest.php | 23 +++++++++++++++++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d370afe9..a943a678e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed - Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) +- Fixed BetweenFilter to ignore time part and timezone. [\#101](https://github.com/azuyalabs/yasumi/pull/101) ### Removed diff --git a/src/Yasumi/Filters/BetweenFilter.php b/src/Yasumi/Filters/BetweenFilter.php index 15221bf3a..8f0cf117f 100644 --- a/src/Yasumi/Filters/BetweenFilter.php +++ b/src/Yasumi/Filters/BetweenFilter.php @@ -30,12 +30,12 @@ class BetweenFilter extends FilterIterator implements Countable { /** - * @var \DateTimeInterface start date of the time frame to check against + * @var string start date of the time frame to check against */ private $start_date; /** - * @var \DateTimeInterface end date of the time frame to check against + * @var string end date of the time frame to check against */ private $end_date; @@ -61,8 +61,8 @@ public function __construct( ) { parent::__construct($iterator); $this->equal = $equal; - $this->start_date = $start_date; - $this->end_date = $end_date; + $this->start_date = $start_date->format('Y-m-d'); + $this->end_date = $end_date->format('Y-m-d'); } /** @@ -70,7 +70,7 @@ public function __construct( */ public function accept(): bool { - $holiday = $this->getInnerIterator()->current(); + $holiday = $this->getInnerIterator()->current()->format('Y-m-d'); if ($this->equal && $holiday >= $this->start_date && $holiday <= $this->end_date) { return true; diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index 2afb0d80d..2e23b4011 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -132,6 +132,29 @@ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() $this->assertNotEquals(\count($holidays), $between->count()); } + /** + * Tests that BetweenFilter considers the date and ignores timezones and time of day. + */ + public function testHolidaysBetweenDateRangeDifferentTimezone() + { + $holidays = Yasumi::create('Netherlands', 2016); + + $timezones = ['Pacific/Honolulu', 'Europe/Amsterdam', 'Asia/Tokyo']; + + foreach ($timezones as $timezone) { + $between = $holidays->between( + new DateTime('01/01/2016', new DateTimeZone($timezone)), + new DateTime('01/01/2016', new DateTimeZone($timezone)) + ); + $this->assertCount(1, $between); + + $between = $holidays->between( + new DateTime('01/01/2016 23:59:59', new DateTimeZone($timezone)), + new DateTime('01/01/2016 23:59:59', new DateTimeZone($timezone)) + ); + $this->assertCount(1, $between); + } + } /** * Tests the BetweenFilter with date range where start and end date are exclusive of the comparison. From 9ebc30e46138e48a55b822fbf5de744979733e74 Mon Sep 17 00:00:00 2001 From: Christian Mohr Date: Sat, 10 Mar 2018 13:17:20 +0100 Subject: [PATCH 052/132] Easter sunday and pentecost sunday are not nationwide german holidays (#100) Easter sunday and pentecost sunday are not nationwide holidays - only in Brandenburg --- CHANGELOG.md | 1 + src/Yasumi/Provider/Germany.php | 2 -- src/Yasumi/Provider/Germany/Brandenburg.php | 4 ++++ tests/Germany/BadenWurttemberg/BadenWurttembergTest.php | 2 -- tests/Germany/Bavaria/BavariaTest.php | 2 -- tests/Germany/Berlin/BerlinTest.php | 2 -- tests/Germany/Bremen/BremenTest.php | 2 -- tests/Germany/Hamburg/HamburgTest.php | 2 -- tests/Germany/Hesse/HesseTest.php | 2 -- tests/Germany/LowerSaxony/LowerSaxonyTest.php | 2 -- .../MecklenburgWesternPomeraniaTest.php | 2 -- .../Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php | 2 -- tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php | 2 -- tests/Germany/Saarland/SaarlandTest.php | 2 -- tests/Germany/Saxony/SaxonyTest.php | 2 -- tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php | 2 -- tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php | 2 -- tests/Germany/Thuringia/ThuringiaTest.php | 2 -- 18 files changed, 5 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a943a678e..3c055d790 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed - Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) +- Fixed German Easter Sunday and Pentecost Sunday holidays (not nationwide, only in Brandenburg). [\#100](https://github.com/azuyalabs/yasumi/pull/100) - Fixed BetweenFilter to ignore time part and timezone. [\#101](https://github.com/azuyalabs/yasumi/pull/101) ### Removed diff --git a/src/Yasumi/Provider/Germany.php b/src/Yasumi/Provider/Germany.php index 9df6270e4..1b0a85f0c 100644 --- a/src/Yasumi/Provider/Germany.php +++ b/src/Yasumi/Provider/Germany.php @@ -47,12 +47,10 @@ public function initialize() // Add common Christian holidays (common in Germany) $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale)); - $this->addHoliday($this->easter($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->internationalWorkersDay($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale)); - $this->addHoliday($this->pentecost($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->secondChristmasDay($this->year, $this->timezone, $this->locale)); diff --git a/src/Yasumi/Provider/Germany/Brandenburg.php b/src/Yasumi/Provider/Germany/Brandenburg.php index 77885eb2e..596e4d560 100755 --- a/src/Yasumi/Provider/Germany/Brandenburg.php +++ b/src/Yasumi/Provider/Germany/Brandenburg.php @@ -43,6 +43,10 @@ public function initialize() { parent::initialize(); + // Add specific Christian holidays + $this->addHoliday($this->easter($this->year, $this->timezone, $this->locale)); + $this->addHoliday($this->pentecost($this->year, $this->timezone, $this->locale)); + // Add custom Christian holidays $this->calculateReformationDay(); } diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php index b4a50fbf9..3563fec91 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Bavaria/BavariaTest.php b/tests/Germany/Bavaria/BavariaTest.php index 1c942fdf4..7faefb4a6 100644 --- a/tests/Germany/Bavaria/BavariaTest.php +++ b/tests/Germany/Bavaria/BavariaTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Berlin/BerlinTest.php b/tests/Germany/Berlin/BerlinTest.php index 5e8b886dc..bdd05822c 100644 --- a/tests/Germany/Berlin/BerlinTest.php +++ b/tests/Germany/Berlin/BerlinTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Bremen/BremenTest.php b/tests/Germany/Bremen/BremenTest.php index eee6fce72..44b2714e0 100644 --- a/tests/Germany/Bremen/BremenTest.php +++ b/tests/Germany/Bremen/BremenTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Hamburg/HamburgTest.php b/tests/Germany/Hamburg/HamburgTest.php index 3accdaf9e..4a3cd20b0 100644 --- a/tests/Germany/Hamburg/HamburgTest.php +++ b/tests/Germany/Hamburg/HamburgTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Hesse/HesseTest.php b/tests/Germany/Hesse/HesseTest.php index c344a98b5..42e2756da 100644 --- a/tests/Germany/Hesse/HesseTest.php +++ b/tests/Germany/Hesse/HesseTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/LowerSaxony/LowerSaxonyTest.php b/tests/Germany/LowerSaxony/LowerSaxonyTest.php index 1010e377c..b0579cc49 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyTest.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php index 49c4bd424..2992daf42 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $holidays = [ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'christmasDay', 'secondChristmasDay' diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php index 0b8a59a6c..75416a1aa 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php index ccd760ac5..71b3e7313 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Saarland/SaarlandTest.php b/tests/Germany/Saarland/SaarlandTest.php index fd5de7d58..7453cf0a7 100644 --- a/tests/Germany/Saarland/SaarlandTest.php +++ b/tests/Germany/Saarland/SaarlandTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Saxony/SaxonyTest.php b/tests/Germany/Saxony/SaxonyTest.php index 6e3095fe9..e0043dbb9 100644 --- a/tests/Germany/Saxony/SaxonyTest.php +++ b/tests/Germany/Saxony/SaxonyTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $holidays = [ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'christmasDay', 'secondChristmasDay' diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php index 31b13194a..d26f93123 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $holidays = [ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'christmasDay', 'secondChristmasDay' diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php index 8c3d59f0c..151eccb9f 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $this->assertDefinedHolidays([ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'germanUnityDay', 'christmasDay', diff --git a/tests/Germany/Thuringia/ThuringiaTest.php b/tests/Germany/Thuringia/ThuringiaTest.php index a1e812ccd..b0cf7097e 100644 --- a/tests/Germany/Thuringia/ThuringiaTest.php +++ b/tests/Germany/Thuringia/ThuringiaTest.php @@ -32,11 +32,9 @@ public function testOfficialHolidays() $holidays = [ 'newYearsDay', 'goodFriday', - 'easter', 'easterMonday', 'internationalWorkersDay', 'ascensionDay', - 'pentecost', 'pentecostMonday', 'christmasDay', 'secondChristmasDay' From c56cad50ff2319b894f8ad368b99bd501fcce354 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Sat, 17 Mar 2018 10:58:17 +0100 Subject: [PATCH 053/132] Get summer/winter time from PHP timezone library (#103) * Get summer/winter time from PHP timezone library --- CHANGELOG.md | 1 + src/Yasumi/Provider/CommonHolidays.php | 94 +++++++++++++++++++++ src/Yasumi/Provider/Netherlands.php | 35 ++------ src/Yasumi/data/translations/summerTime.php | 17 ++++ src/Yasumi/data/translations/winterTime.php | 17 ++++ tests/Netherlands/NetherlandsTest.php | 3 +- tests/Netherlands/SummertimeTest.php | 16 +++- tests/Netherlands/WintertimeTest.php | 16 +++- 8 files changed, 165 insertions(+), 34 deletions(-) create mode 100644 src/Yasumi/data/translations/summerTime.php create mode 100644 src/Yasumi/data/translations/winterTime.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c055d790..b262cc3fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added ### Changed +- Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) ### Fixed - Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index b04554f98..75bcebaf2 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -355,4 +355,98 @@ public function armisticeDay( $type ); } + + /** + * Calculates daylight saving time transitions. + * + * Daylight saving time is the practice of advancing clocks by one hour during summer months so evening daylight lasts even longer, while sacrificing normal sunrise times. + * + * The date of transition between standard time and daylight saving time differs from country to country and sometimes from year to year. Most countries outside Europe and North America do not observe daylight saving time. + * + * On the northern hemisphere, summer time starts around March/April. On the southern hemisphere it happens 6 months later. + * + * @param int $year the year for which Easter needs to be calculated + * @param string $timezone the timezone in which Easter is celebrated + * @param bool $summer whether to calculate the start of summer or winter time + */ + protected function calculateSummerWinterTime($year, $timezone, $summer) + { + $zone = new DateTimeZone($timezone); + + $transitions = $zone->getTransitions(\mktime(0, 0, 0, 1, 1, $year), \mktime(23, 59, 59, 12, 31, $year)); + + $transition = \array_shift($transitions); + $dst = $transition['isdst']; + + foreach ($transitions as $transition) { + if ($transition['isdst'] !== $dst && $transition['isdst'] === $summer) { + return new DateTime(\substr($transition['time'], 0, 10), $zone); + } + $dst = $transition['isdst']; + } + + return null; + } + + /** + * The beginning of summer time. + * + * Summer time is also known as daylight save time. + * + * @param int $year the year for which summer time need to be created + * @param string $timezone the timezone in which summer time transition occurs + * @param string $locale the locale for which summer time need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + */ + public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON) + { + $date = $this->calculateSummerWinterTime($year, $timezone, true); + + if ($date) { + return new Holiday( + 'summerTime', + [], + $date, + $locale, + $type + ); + } + } + + /** + * The beginning of winter time. + * + * Winter time is also known as standard time. + * + * @param int $year the year for which summer time need to be created + * @param string $timezone the timezone in which summer time transition occurs + * @param string $locale the locale for which summer time need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + */ + public function winterTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON) + { + $date = $this->calculateSummerWinterTime($year, $timezone, false); + + if ($date) { + return new Holiday( + 'winterTime', + [], + $date, + $locale, + $type + ); + } + } } diff --git a/src/Yasumi/Provider/Netherlands.php b/src/Yasumi/Provider/Netherlands.php index c140be5b3..7d0d547c9 100755 --- a/src/Yasumi/Provider/Netherlands.php +++ b/src/Yasumi/Provider/Netherlands.php @@ -176,33 +176,14 @@ public function initialize() Holiday::TYPE_OBSERVANCE )); - /** - * Summertime. - * - * Start of Summertime takes place on the last sunday of march. (Summertime is the common name for Daylight Saving - * Time). - */ - $this->addHoliday(new Holiday( - 'summerTime', - ['en_US' => 'Summertime', 'nl_NL' => 'Zomertijd'], - new DateTime("last sunday of march $this->year", new DateTimeZone($this->timezone)), - $this->locale, - Holiday::TYPE_SEASON - )); - - /** - * Wintertime. - * - * Start of Wintertime takes place on the last sunday of october. (Wintertime is actually the end of Summertime. - * Summertime is the common name for Daylight Saving Time). - */ - $this->addHoliday(new Holiday( - 'winterTime', - ['en_US' => 'Wintertime', 'nl_NL' => 'Wintertijd'], - new DateTime("last sunday of october $this->year", new DateTimeZone($this->timezone)), - $this->locale, - Holiday::TYPE_SEASON - )); + $summerTime = $this->summerTime($this->year, $this->timezone, $this->locale); + if ($summerTime) { + $this->addHoliday($summerTime); + } + $winterTime = $this->winterTime($this->year, $this->timezone, $this->locale); + if ($winterTime) { + $this->addHoliday($winterTime); + } /** * Carnival. diff --git a/src/Yasumi/data/translations/summerTime.php b/src/Yasumi/data/translations/summerTime.php new file mode 100644 index 000000000..a7d935300 --- /dev/null +++ b/src/Yasumi/data/translations/summerTime.php @@ -0,0 +1,17 @@ + + */ + +// Translations for daylight saving time start. +return [ + 'en_US' => 'Summertime', + 'nl_NL' => 'Zomertijd', +]; diff --git a/src/Yasumi/data/translations/winterTime.php b/src/Yasumi/data/translations/winterTime.php new file mode 100644 index 000000000..656da9297 --- /dev/null +++ b/src/Yasumi/data/translations/winterTime.php @@ -0,0 +1,17 @@ + + */ + +// Translations for daylight saving time end. +return [ + 'en_US' => 'Wintertime', + 'nl_NL' => 'Wintertijd', +]; diff --git a/tests/Netherlands/NetherlandsTest.php b/tests/Netherlands/NetherlandsTest.php index 8915af74d..def523dd3 100644 --- a/tests/Netherlands/NetherlandsTest.php +++ b/tests/Netherlands/NetherlandsTest.php @@ -66,7 +66,8 @@ public function testObservedHolidays() */ public function testSeasonalHolidays() { - $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $this->year, Holiday::TYPE_SEASON); + $year = $this->generateRandomYear(1978, 2037); + $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $year, Holiday::TYPE_SEASON); } /** diff --git a/tests/Netherlands/SummertimeTest.php b/tests/Netherlands/SummertimeTest.php index 36d4abd48..c353d2d70 100644 --- a/tests/Netherlands/SummertimeTest.php +++ b/tests/Netherlands/SummertimeTest.php @@ -32,7 +32,17 @@ class SummertimeTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn */ public function testSummertime() { - $year = $this->generateRandomYear(); + $this->assertNotHoliday(self::REGION, self::HOLIDAY, $this->generateRandomYear(1946, 1976)); + + $year = $this->generateRandomYear(1977, 1980); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("first sunday of april $year", new DateTimeZone(self::TIMEZONE)) + ); + + $year = $this->generateRandomYear(1981, 2036); $this->assertHoliday( self::REGION, self::HOLIDAY, @@ -49,7 +59,7 @@ public function testTranslation() $this->assertTranslatedHolidayName( self::REGION, self::HOLIDAY, - $this->generateRandomYear(), + $this->generateRandomYear(1978, 2037), [self::LOCALE => 'Zomertijd'] ); } @@ -59,6 +69,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_SEASON); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1978, 2037), Holiday::TYPE_SEASON); } } diff --git a/tests/Netherlands/WintertimeTest.php b/tests/Netherlands/WintertimeTest.php index 375f797d0..b9aa04797 100644 --- a/tests/Netherlands/WintertimeTest.php +++ b/tests/Netherlands/WintertimeTest.php @@ -32,7 +32,17 @@ class WintertimeTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn */ public function testWintertime() { - $year = $this->generateRandomYear(); + $this->assertNotHoliday(self::REGION, self::HOLIDAY, $this->generateRandomYear(1946, 1976)); + + $year = $this->generateRandomYear(1979, 1995); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("last sunday of september $year", new DateTimeZone(self::TIMEZONE)) + ); + + $year = $this->generateRandomYear(1996, 2037); $this->assertHoliday( self::REGION, self::HOLIDAY, @@ -49,7 +59,7 @@ public function testTranslation() $this->assertTranslatedHolidayName( self::REGION, self::HOLIDAY, - $this->generateRandomYear(), + $this->generateRandomYear(1978, 2037), [self::LOCALE => 'Wintertijd'] ); } @@ -59,6 +69,6 @@ public function testTranslation() */ public function testHolidayType() { - $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_SEASON); + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1978, 2037), Holiday::TYPE_SEASON); } } From b6c04dd487fc52def872eb6a0137fa335e94840b Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 23 Apr 2018 07:08:18 +0200 Subject: [PATCH 054/132] assertNotHoliday() skips rest of test --- tests/YasumiBase.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 913a5f34d..834dbcd72 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -123,14 +123,11 @@ public function assertHoliday($provider, $shortName, $year, $expected) */ public function assertNotHoliday($provider, $shortName, $year) { - $this->expectException(\TypeError::class); - $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); $this->assertInstanceOf('Yasumi\Provider\\' . \str_replace('/', '\\', $provider), $holidays); $this->assertNull($holiday); - $this->assertFalse($holidays->isHoliday($holiday)); unset($holiday, $holidays); } From b4073ce19f5df7c515a09c45fbe5d7a0c0459d7c Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 23 Apr 2018 07:11:57 +0200 Subject: [PATCH 055/132] Spelling fixes for da_DK (#96) --- CHANGELOG.md | 1 + src/Yasumi/Provider/Denmark.php | 2 +- src/Yasumi/data/translations/ascensionDay.php | 2 +- src/Yasumi/data/translations/christmasDay.php | 2 +- src/Yasumi/data/translations/easterMonday.php | 2 +- src/Yasumi/data/translations/pentecostMonday.php | 2 +- tests/Denmark/AscensionDayTest.php | 2 +- tests/Denmark/ChristmasDayTest.php | 2 +- tests/Denmark/EasterMondayTest.php | 2 +- tests/Denmark/GreatPrayerDayTest.php | 2 +- tests/Denmark/PentecostMondayTest.php | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b262cc3fe..69f265d82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed - Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) +- Fixed spelling issues in the Danish translation. [\#96](https://github.com/azuyalabs/yasumi/pull/96) - Fixed German Easter Sunday and Pentecost Sunday holidays (not nationwide, only in Brandenburg). [\#100](https://github.com/azuyalabs/yasumi/pull/100) - Fixed BetweenFilter to ignore time part and timezone. [\#101](https://github.com/azuyalabs/yasumi/pull/101) diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index 84b1f7292..ea7997628 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -83,7 +83,7 @@ public function calculateGreatPrayerDay() if ($this->year >= 1686) { $this->addHoliday(new Holiday( 'greatPrayerDay', - ['da_DK' => 'Store Bededag'], + ['da_DK' => 'Store bededag'], new DateTime("fourth friday $easter", new DateTimeZone($this->timezone)), $this->locale )); diff --git a/src/Yasumi/data/translations/ascensionDay.php b/src/Yasumi/data/translations/ascensionDay.php index 3baf5b872..71b06b8e8 100644 --- a/src/Yasumi/data/translations/ascensionDay.php +++ b/src/Yasumi/data/translations/ascensionDay.php @@ -12,7 +12,7 @@ // Translations for Ascension Day return [ - 'da_DK' => 'Kristi Himmelfartsdag', + 'da_DK' => 'Kristi himmelfartsdag', 'de_AT' => 'Christi Himmelfahrt', 'de_CH' => 'Auffahrt', 'de_DE' => 'Christi Himmelfahrt', diff --git a/src/Yasumi/data/translations/christmasDay.php b/src/Yasumi/data/translations/christmasDay.php index be32f35a7..cc20fef29 100755 --- a/src/Yasumi/data/translations/christmasDay.php +++ b/src/Yasumi/data/translations/christmasDay.php @@ -15,7 +15,7 @@ 'bs_Latn_BA' => 'Božić', 'cs_CZ' => '1. svátek vánoční', 'cy_GB' => 'Nadolig', - 'da_DK' => '1. Juledag', + 'da_DK' => 'Juledag', 'de_AT' => 'Christtag', 'de_CH' => 'Weihnachtstag', 'de_DE' => '1. Weihnachtsfeiertag', diff --git a/src/Yasumi/data/translations/easterMonday.php b/src/Yasumi/data/translations/easterMonday.php index 25484c3d3..904e773a2 100644 --- a/src/Yasumi/data/translations/easterMonday.php +++ b/src/Yasumi/data/translations/easterMonday.php @@ -14,7 +14,7 @@ return [ 'cs_CZ' => 'Velikonoční pondělí', 'cy_GB' => 'Llun y Pasg', - 'da_DK' => '2. Påskedag', + 'da_DK' => '2. påskedag', 'de_AT' => 'Ostermontag', 'de_CH' => 'Ostermontag', 'de_DE' => 'Ostermontag', diff --git a/src/Yasumi/data/translations/pentecostMonday.php b/src/Yasumi/data/translations/pentecostMonday.php index f64d81def..0cbd9d469 100755 --- a/src/Yasumi/data/translations/pentecostMonday.php +++ b/src/Yasumi/data/translations/pentecostMonday.php @@ -12,7 +12,7 @@ // Translations for Whitmonday return [ - 'da_DK' => '2. Pinsedag', + 'da_DK' => '2. pinsedag', 'de_AT' => 'Pfingstmontag', 'de_CH' => 'Pfingstmontag', 'de_DE' => 'Pfingstmontag', diff --git a/tests/Denmark/AscensionDayTest.php b/tests/Denmark/AscensionDayTest.php index a54fa972b..6e5d4e530 100644 --- a/tests/Denmark/AscensionDayTest.php +++ b/tests/Denmark/AscensionDayTest.php @@ -50,7 +50,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(), - [self::LOCALE => 'Kristi Himmelfartsdag'] + [self::LOCALE => 'Kristi himmelfartsdag'] ); } diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 08a2aaa83..c3c67809c 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -58,7 +58,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(), - [self::LOCALE => '1. Juledag'] + [self::LOCALE => 'Juledag'] ); } diff --git a/tests/Denmark/EasterMondayTest.php b/tests/Denmark/EasterMondayTest.php index d91565509..66279e375 100644 --- a/tests/Denmark/EasterMondayTest.php +++ b/tests/Denmark/EasterMondayTest.php @@ -50,7 +50,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(), - [self::LOCALE => '2. Påskedag'] + [self::LOCALE => '2. påskedag'] ); } diff --git a/tests/Denmark/GreatPrayerDayTest.php b/tests/Denmark/GreatPrayerDayTest.php index c700bb56d..659b1f329 100644 --- a/tests/Denmark/GreatPrayerDayTest.php +++ b/tests/Denmark/GreatPrayerDayTest.php @@ -67,7 +67,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(self::ESTABLISHMENT_YEAR), - [self::LOCALE => 'Store Bededag'] + [self::LOCALE => 'Store bededag'] ); } diff --git a/tests/Denmark/PentecostMondayTest.php b/tests/Denmark/PentecostMondayTest.php index 55376e049..04b4ea691 100644 --- a/tests/Denmark/PentecostMondayTest.php +++ b/tests/Denmark/PentecostMondayTest.php @@ -50,7 +50,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(), - [self::LOCALE => '2. Pinsedag'] + [self::LOCALE => '2. pinsedag'] ); } From 3cd739f2f94495828eececf6240ca3db28cf5a36 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Sun, 13 May 2018 06:49:38 +0200 Subject: [PATCH 056/132] Add observed holidays for Denmark (#104) --- src/Yasumi/Provider/CommonHolidays.php | 31 +++++++ src/Yasumi/Provider/Denmark.php | 44 +++++++++- src/Yasumi/Provider/Latvia.php | 13 +-- src/Yasumi/Provider/Norway.php | 2 +- src/Yasumi/data/translations/christmasEve.php | 1 + .../translations/internationalWorkersDay.php | 1 + src/Yasumi/data/translations/newYearsEve.php | 18 ++++ src/Yasumi/data/translations/summerTime.php | 1 + src/Yasumi/data/translations/winterTime.php | 1 + tests/Denmark/ChristmasEveTest.php | 72 ++++++++++++++++ tests/Denmark/ConstitutionDayTest.php | 86 +++++++++++++++++++ tests/Denmark/DenmarkTest.php | 12 ++- tests/Denmark/InternationalWorkersDayTest.php | 72 ++++++++++++++++ tests/Denmark/NewYearsEveTest.php | 72 ++++++++++++++++ tests/Denmark/SummerTimeTest.php | 66 ++++++++++++++ tests/Denmark/WinterTimeTest.php | 74 ++++++++++++++++ 16 files changed, 548 insertions(+), 18 deletions(-) create mode 100755 src/Yasumi/data/translations/newYearsEve.php create mode 100644 tests/Denmark/ChristmasEveTest.php create mode 100644 tests/Denmark/ConstitutionDayTest.php create mode 100644 tests/Denmark/InternationalWorkersDayTest.php create mode 100644 tests/Denmark/NewYearsEveTest.php create mode 100644 tests/Denmark/SummerTimeTest.php create mode 100644 tests/Denmark/WinterTimeTest.php diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index 75bcebaf2..005191665 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -23,6 +23,37 @@ */ trait CommonHolidays { + /** + * New Year's Eve. + * + * New Year's Eve is observed on December 31, the last day of the year on the modern Gregorian calendar as well as + * the Julian calendar. In present day, with most countries now using the Gregorian calendar as their de facto calendar, + * New Year's Eve is probably the most celebrated holiday, often observed with fireworks at the stroke of midnight as + * the new year starts in each time zone. + * + * @link http://en.wikipedia.org/wiki/New_Year%27s_Eve + * + * @param int $year the year for which New Year's Eve need to be created + * @param string $timezone the timezone in which New Year's Eve is celebrated + * @param string $locale the locale for which New Year's Eve need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + */ + public function newYearsEve( + int $year, + string $timezone, + string $locale, + string $type = Holiday::TYPE_OFFICIAL + ): Holiday { + return new Holiday('newYearsEve', [], new DateTime("$year-12-31", new DateTimeZone($timezone)), $locale, $type); + } + /** * New Year's Day. * diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index ea7997628..b360c819f 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -55,9 +55,21 @@ public function initialize() $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->secondChristmasDay($this->year, $this->timezone, $this->locale)); - - // Calculate other holidays $this->calculateGreatPrayerDay(); + + $this->addHoliday($this->internationalWorkersDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); + $this->addHoliday($this->christmasEve($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); + $this->addHoliday($this->newYearsEve($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); + $this->calculateConstitutionDay(); + + $summerTime = $this->summerTime($this->year, $this->timezone, $this->locale); + if ($summerTime) { + $this->addHoliday($summerTime); + } + $winterTime = $this->winterTime($this->year, $this->timezone, $this->locale); + if ($winterTime) { + $this->addHoliday($winterTime); + } } /** @@ -89,4 +101,32 @@ public function calculateGreatPrayerDay() )); } } + + /** + * Constitution Day + * + * Denmark’s Constitution Day is June 5 and commemorates the signing of Denmark's constitution + * on June 5 1849, when Denmark peacefully became as a constitutional monarchy. + * + * While not a public holiday, some companies and public offices are closed. Traditionally, + * members of parliament gives political speeches around the country. + * + * @link https://en.wikipedia.org/wiki/Constitution_Day_(Denmark) + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + public function calculateConstitutionDay() + { + if ($this->year >= 1849) { + $this->addHoliday(new Holiday( + 'constitutionDay', + ['da_DK' => 'Grundlovsdag'], + new DateTime("$this->year-6-5", new DateTimeZone($this->timezone)), + $this->locale, + Holiday::TYPE_OBSERVANCE + )); + } + } } diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index bcbac40a4..5662cdf19 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -57,7 +57,7 @@ public function initialize() $this->addHoliday($this->christmasEve($this->year, $this->timezone, $this->locale, Holiday::TYPE_OFFICIAL)); $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->secondChristmasDay($this->year, $this->timezone, $this->locale)); - $this->addNewYearsEve(); + $this->addHoliday($this->newYearsEve($this->year, $this->timezone, $this->locale)); } /** @@ -116,15 +116,4 @@ private function addProclamationDay() ], $date)); } } - - /** - * @throws \InvalidArgumentException - */ - private function addNewYearsEve() - { - $this->addHoliday(new Holiday('newYearsEve', [ - 'en_US' => 'New Year\'s Eve', - 'lv_LV' => 'Vecgada vakars' - ], new \DateTime("{$this->year}-12-31", new \DateTimeZone($this->timezone)))); - } } diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index 5efa7c115..072d057e6 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -70,7 +70,7 @@ public function initialize() * coalition with Sweden, proceeded by nearly 400 years of Danish rule. The Norwegian Parliament, known as * Stortinget, held the first May 17 celebrations in 1836, and since it has been regarded as Norway’s National Day. * - * @link https://en.wikipedia.org/wiki/Store_Bededag + * @link https://en.wikipedia.org/wiki/Norwegian_Constitution_Day * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException diff --git a/src/Yasumi/data/translations/christmasEve.php b/src/Yasumi/data/translations/christmasEve.php index 697598908..884820b48 100755 --- a/src/Yasumi/data/translations/christmasEve.php +++ b/src/Yasumi/data/translations/christmasEve.php @@ -14,6 +14,7 @@ return [ 'cs_CZ' => 'Štědrý den', 'cy_GB' => 'Noswyl Nadolig', + 'da_DK' => 'Juleaften', 'de_CH' => 'Heiliger Abend', 'en_US' => 'Christmas Eve', 'et_EE' => 'Jõululaupäev', diff --git a/src/Yasumi/data/translations/internationalWorkersDay.php b/src/Yasumi/data/translations/internationalWorkersDay.php index 584845034..c27ca11ec 100755 --- a/src/Yasumi/data/translations/internationalWorkersDay.php +++ b/src/Yasumi/data/translations/internationalWorkersDay.php @@ -14,6 +14,7 @@ return [ 'bs_Latn_BA' => 'Praznik rada', 'cs_CZ' => 'Svátek práce', + 'da_DK' => 'Første maj', 'de_AT' => 'Staatsfeiertag', 'de_CH' => 'Tag der Arbeit', 'de_DE' => 'Tag der Arbeit', diff --git a/src/Yasumi/data/translations/newYearsEve.php b/src/Yasumi/data/translations/newYearsEve.php new file mode 100755 index 000000000..5d1154da0 --- /dev/null +++ b/src/Yasumi/data/translations/newYearsEve.php @@ -0,0 +1,18 @@ + + */ + +// Translations for New Year's Eve +return [ + 'en_US' => 'New Year\'s Eve', + 'da_DK' => 'Nytårsaften', + 'lv_LV' => 'Vecgada vakars' +]; diff --git a/src/Yasumi/data/translations/summerTime.php b/src/Yasumi/data/translations/summerTime.php index a7d935300..89bfc2efb 100644 --- a/src/Yasumi/data/translations/summerTime.php +++ b/src/Yasumi/data/translations/summerTime.php @@ -12,6 +12,7 @@ // Translations for daylight saving time start. return [ + 'da_DK' => 'Sommertid starter', 'en_US' => 'Summertime', 'nl_NL' => 'Zomertijd', ]; diff --git a/src/Yasumi/data/translations/winterTime.php b/src/Yasumi/data/translations/winterTime.php index 656da9297..b86595bdc 100644 --- a/src/Yasumi/data/translations/winterTime.php +++ b/src/Yasumi/data/translations/winterTime.php @@ -12,6 +12,7 @@ // Translations for daylight saving time end. return [ + 'da_DK' => 'Sommertid slutter', 'en_US' => 'Wintertime', 'nl_NL' => 'Wintertijd', ]; diff --git a/tests/Denmark/ChristmasEveTest.php b/tests/Denmark/ChristmasEveTest.php new file mode 100644 index 000000000..a59610157 --- /dev/null +++ b/tests/Denmark/ChristmasEveTest.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Denmark; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Christmas Eve in Denmark. + */ +class ChristmasEveTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'christmasEve'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + return $this->generateRandomDates(12, 24, self::TIMEZONE); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Juleaften'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); + } +} diff --git a/tests/Denmark/ConstitutionDayTest.php b/tests/Denmark/ConstitutionDayTest.php new file mode 100644 index 000000000..8fd254038 --- /dev/null +++ b/tests/Denmark/ConstitutionDayTest.php @@ -0,0 +1,86 @@ + + */ + +namespace Yasumi\tests\Denmark; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing the Constitution Day of Denmark. + */ +class ConstitutionDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'constitutionDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1849; + + /** + * Tests the holiday defined in this test on or after establishment. + */ + public function testHolidayOnAfterEstablishment() + { + $year = 2077; + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-6-5", new DateTimeZone(self::TIMEZONE)) + ); + } + + /** + * Tests the holiday defined in this test before establishment. + */ + public function testHolidayBeforeEstablishment() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Grundlovsdag'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OBSERVANCE + ); + } +} diff --git a/tests/Denmark/DenmarkTest.php b/tests/Denmark/DenmarkTest.php index ce0f08c50..d8c0b242d 100644 --- a/tests/Denmark/DenmarkTest.php +++ b/tests/Denmark/DenmarkTest.php @@ -49,7 +49,12 @@ public function testOfficialHolidays() */ public function testObservedHolidays() { - $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); + $this->assertDefinedHolidays([ + 'internationalWorkersDay', + 'constitutionDay', + 'christmasEve', + 'newYearsEve', + ], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } /** @@ -57,7 +62,8 @@ public function testObservedHolidays() */ public function testSeasonalHolidays() { - $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); + $year = $this->generateRandomYear(1980, 2037); + $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $year, Holiday::TYPE_SEASON); } /** @@ -81,6 +87,6 @@ public function testOtherHolidays() */ protected function setUp() { - $this->year = $this->generateRandomYear(1686); + $this->year = $this->generateRandomYear(1849); } } diff --git a/tests/Denmark/InternationalWorkersDayTest.php b/tests/Denmark/InternationalWorkersDayTest.php new file mode 100644 index 000000000..63c289b99 --- /dev/null +++ b/tests/Denmark/InternationalWorkersDayTest.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Denmark; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class containing tests for International Workers' Day (i.e. Labour Day) in Denmark. + */ +class InternationalWorkersDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'internationalWorkersDay'; + + /** + * Tests International Workers' Day. + * + * @dataProvider InternationalWorkersDayDataProvider + * + * @param int $year the year for which International Workers' Day needs to be tested + * @param DateTime $expected the expected date + */ + public function testInternationalWorkersDay($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of International Workers' Day. + * + * @return array list of test dates for International Workers' Day + */ + public function InternationalWorkersDayDataProvider(): array + { + return $this->generateRandomDates(5, 1, self::TIMEZONE); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Første maj'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); + } +} diff --git a/tests/Denmark/NewYearsEveTest.php b/tests/Denmark/NewYearsEveTest.php new file mode 100644 index 000000000..4bda6d650 --- /dev/null +++ b/tests/Denmark/NewYearsEveTest.php @@ -0,0 +1,72 @@ + + */ + +namespace Yasumi\tests\Denmark; + +use DateTime; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing New Years Eve in Denmark. + */ +class NewYearsEveTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'newYearsEve'; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + return $this->generateRandomDates(12, 31, self::TIMEZONE); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Nytårsaften'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); + } +} diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php new file mode 100644 index 000000000..297d7ea29 --- /dev/null +++ b/tests/Denmark/SummerTimeTest.php @@ -0,0 +1,66 @@ + + */ + +namespace Yasumi\tests\Denmark; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing summer time in Denmark. + */ +class SummerTimeTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'summerTime'; + + /** + * Tests the holiday defined in this test. + */ + public function testSummerTime() + { + $this->assertNotHoliday(self::REGION, self::HOLIDAY, $this->generateRandomYear(1949, 1979)); + + $year = $this->generateRandomYear(1980, 2036); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("last sunday of march $year", new DateTimeZone(self::TIMEZONE)) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1980, 2037), + [self::LOCALE => 'Sommertid starter'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1980, 2037), Holiday::TYPE_SEASON); + } +} diff --git a/tests/Denmark/WinterTimeTest.php b/tests/Denmark/WinterTimeTest.php new file mode 100644 index 000000000..f68558c53 --- /dev/null +++ b/tests/Denmark/WinterTimeTest.php @@ -0,0 +1,74 @@ + + */ + +namespace Yasumi\tests\Denmark; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing winter time in Denmark. + */ +class WinterTimeTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'winterTime'; + + /** + * Tests the holiday defined in this test. + */ + public function testWinterTime() + { + $this->assertNotHoliday(self::REGION, self::HOLIDAY, $this->generateRandomYear(1949, 1979)); + + $year = $this->generateRandomYear(1980, 1995); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("last sunday of september $year", new DateTimeZone(self::TIMEZONE)) + ); + + $year = $this->generateRandomYear(1996, 2036); + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("last sunday of october $year", new DateTimeZone(self::TIMEZONE)) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1980, 2037), + [self::LOCALE => 'Sommertid slutter'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1980, 2037), Holiday::TYPE_SEASON); + } +} From ff230941b306d9fb2567af1f24ae2d61f353613c Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Thu, 17 May 2018 11:38:11 +0200 Subject: [PATCH 057/132] =?UTF-8?q?New=20translation=20for=20Norway?= =?UTF-8?q?=E2=80=99s=20national=20day=20(#98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/Yasumi/Provider/Norway.php | 4 ++-- tests/Norway/ConstitutionDayTest.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69f265d82..4fb5bf168 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Changed - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) +- Changed translation for Norway's national day. [\#98](https://github.com/azuyalabs/yasumi/pull/98) ### Fixed - Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index 072d057e6..44c9d06d4 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -64,7 +64,7 @@ public function initialize() * Constitution Day * * Norway’s Constitution Day is May 17 and commemorates the signing of Norways's constitution at Eidsvoll on - * May 17, 1814. It’s usually referred to as syttende mai (May 17) or Nasjonaldagen (The National Day) in Norwegian. + * May 17, 1814. It’s usually referred to as Grunnlovsdag(en) ((The) Constitution Day), syttende mai (May 17) or Nasjonaldagen (The National Day) in Norwegian. * * Norway adopted its constitution on May 16 1814 and it was signed on May 17, 1814, ending almost 100 years of a * coalition with Sweden, proceeded by nearly 400 years of Danish rule. The Norwegian Parliament, known as @@ -81,7 +81,7 @@ public function calculateConstitutionDay() if ($this->year >= 1836) { $this->addHoliday(new Holiday( 'constitutionDay', - ['nb_NO' => 'Nasjonaldagen'], + ['nb_NO' => 'Grunnlovsdagen'], new DateTime("$this->year-5-17", new DateTimeZone($this->timezone)), $this->locale )); diff --git a/tests/Norway/ConstitutionDayTest.php b/tests/Norway/ConstitutionDayTest.php index 732457c92..8ef9ab39f 100644 --- a/tests/Norway/ConstitutionDayTest.php +++ b/tests/Norway/ConstitutionDayTest.php @@ -67,7 +67,7 @@ public function testTranslation() self::REGION, self::HOLIDAY, $this->generateRandomYear(self::ESTABLISHMENT_YEAR), - [self::LOCALE => 'Nasjonaldagen'] + [self::LOCALE => 'Grunnlovsdagen'] ); } From 300017f80e10fea7f69dc45357444ed9a591f08f Mon Sep 17 00:00:00 2001 From: Henning Date: Tue, 5 Jun 2018 16:50:39 +0200 Subject: [PATCH 058/132] Add Reformation Day as new holiday for Schleswig-Holstein (DE) (#106) Beginning in 2018 the Reformation Day is an offical holiday in Schleswig-Holstein. --- CHANGELOG.md | 1 + .../Provider/Germany/SchleswigHolstein.php | 31 ++++++ .../SchleswigHolstein/ReformationDayTest.php | 102 ++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 tests/Germany/SchleswigHolstein/ReformationDayTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fb5bf168..7d0a7c849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] ### Added +- Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) ### Changed - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) diff --git a/src/Yasumi/Provider/Germany/SchleswigHolstein.php b/src/Yasumi/Provider/Germany/SchleswigHolstein.php index 9f3e2a3ca..5aec6c11f 100755 --- a/src/Yasumi/Provider/Germany/SchleswigHolstein.php +++ b/src/Yasumi/Provider/Germany/SchleswigHolstein.php @@ -30,4 +30,35 @@ class SchleswigHolstein extends Germany * country or sub-region. */ const ID = 'DE-SH'; + + /** + * Initialize holidays for Schleswig-Holstein (Germany). + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + // Add custom Christian holidays + $this->calculateReformationDay(); + } + /** + * For the German state of Schleswig-Holstein, Reformation Day is celebrated since 2018. + * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + private function calculateReformationDay() + { + if ($this->year < 2018) { + return; + } + $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); + } } diff --git a/tests/Germany/SchleswigHolstein/ReformationDayTest.php b/tests/Germany/SchleswigHolstein/ReformationDayTest.php new file mode 100644 index 000000000..0069de161 --- /dev/null +++ b/tests/Germany/SchleswigHolstein/ReformationDayTest.php @@ -0,0 +1,102 @@ + + */ + +namespace Yasumi\tests\Germany\SchleswigHolstein; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Reformation Day in Schleswig-Holstein (Germany). + */ +class ReformationDayTest extends SchleswigHolsteinBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'reformationDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 2018; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < self::TEST_ITERATIONS; $y++) { + $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); + $data[] = [$year, new DateTime("$year-10-31", new DateTimeZone(self::TIMEZONE))]; + } + + return $data; + } + + /** + * Tests the holiday defined in this test before establishment. + */ + public function testHolidayBeforeEstablishment() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Reformationstag'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OFFICIAL + ); + } +} From 45ff7b2ad91a2976540c7c6893ee1a15f3269a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leszek=20Krupi=C5=84ski?= Date: Fri, 8 Jun 2018 04:20:49 -0400 Subject: [PATCH 059/132] Skip AbstractProvider when generating provider list (#107) --- CHANGELOG.md | 1 + src/Yasumi/Yasumi.php | 2 +- tests/Base/YasumiTest.php | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d0a7c849..b58b54e62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Fixed spelling issues in the Danish translation. [\#96](https://github.com/azuyalabs/yasumi/pull/96) - Fixed German Easter Sunday and Pentecost Sunday holidays (not nationwide, only in Brandenburg). [\#100](https://github.com/azuyalabs/yasumi/pull/100) - Fixed BetweenFilter to ignore time part and timezone. [\#101](https://github.com/azuyalabs/yasumi/pull/101) +- Fixed bug in provider list generation related to variable order of files returned by the filesystem [\#107](https://github.com/azuyalabs/yasumi/pull/107) ### Removed diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index bb171d368..1a08ed095 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -243,7 +243,7 @@ public static function getProviders(): array $class = new ReflectionClass(\sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $provider))); $key = 'ID'; - if ($class->hasConstant($key)) { + if ($class->isSubclassOf('Yasumi\Provider\AbstractProvider') && $class->hasConstant($key)) { $providers[\strtoupper($class->getConstant($key))] = $provider; } } diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 54c7f45dd..503f5d351 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -302,6 +302,8 @@ public function testGetProviders() $this->assertNotEmpty($providers); $this->assertInternalType('array', $providers); $this->assertContains('Netherlands', $providers); + $this->assertEquals('USA', $providers['US']); + $this->assertNotContains('AbstractProvider', $providers); } /** From b5873d8e4ca570bfe4dc6c82ac1587b2c37180c9 Mon Sep 17 00:00:00 2001 From: Henning Date: Wed, 13 Jun 2018 17:15:42 +0200 Subject: [PATCH 060/132] Add Day of Reformation as new holiday for Hamburg (DE) (#108) Beginning in 2018 the Day of Reformation is an official holiday in Hamburg. --- CHANGELOG.md | 1 + src/Yasumi/Provider/Germany/Hamburg.php | 41 +++++++ .../data/translations/dayOfReformation.php | 17 +++ .../Germany/Hamburg/DayOfReformationTest.php | 103 ++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100755 src/Yasumi/data/translations/dayOfReformation.php create mode 100644 tests/Germany/Hamburg/DayOfReformationTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index b58b54e62..52e0d21d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) +- Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) ### Changed - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) diff --git a/src/Yasumi/Provider/Germany/Hamburg.php b/src/Yasumi/Provider/Germany/Hamburg.php index ab4e2ef45..d777c7b1e 100755 --- a/src/Yasumi/Provider/Germany/Hamburg.php +++ b/src/Yasumi/Provider/Germany/Hamburg.php @@ -12,6 +12,7 @@ namespace Yasumi\Provider\Germany; +use Yasumi\Holiday; use Yasumi\Provider\Germany; /** @@ -31,4 +32,44 @@ class Hamburg extends Germany * country or sub-region. */ const ID = 'DE-HH'; + + /** + * Initialize holidays for Schleswig-Holstein (Germany). + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateDayOfReformation(); + } + + /** + * Since 2018 Hamburg celebrates the "Day of Reformation". + * It is not called "Reformation Day" like other states to prevent church-based associations + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + private function calculateDayOfReformation() + { + if ($this->year < 2018) { + return; + } + + $this->addHoliday( + new Holiday( + 'dayOfReformation', + [], + new \DateTime("{$this->year}-10-31", new \DateTimeZone($this->timezone)), + $this->locale, + Holiday::TYPE_OFFICIAL + ) + ); + } } diff --git a/src/Yasumi/data/translations/dayOfReformation.php b/src/Yasumi/data/translations/dayOfReformation.php new file mode 100755 index 000000000..05ce42631 --- /dev/null +++ b/src/Yasumi/data/translations/dayOfReformation.php @@ -0,0 +1,17 @@ + + */ + +// Translations for Day of Reformation +return [ + 'de_DE' => 'Tag der Reformation', + 'en_US' => 'Day of Reformation', +]; diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php new file mode 100644 index 000000000..0d6439108 --- /dev/null +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -0,0 +1,103 @@ + + */ + +namespace Yasumi\tests\Germany\SchleswigHolstein; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\Germany\Hamburg\HamburgBaseTestCase; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Reformation Day in Schleswig-Holstein (Germany). + */ +class DayOfReformationTest extends HamburgBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'dayOfReformation'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 2018; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < self::TEST_ITERATIONS; $y++) { + $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); + $data[] = [$year, new DateTime("$year-10-31", new DateTimeZone(self::TIMEZONE))]; + } + + return $data; + } + + /** + * Tests the holiday defined in this test before establishment. + */ + public function testHolidayBeforeEstablishment() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Tag der Reformation'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OFFICIAL + ); + } +} From bc1b69014b5f9616434f3cfa4224b573568308fd Mon Sep 17 00:00:00 2001 From: Milamber33 <40374650+Milamber33@users.noreply.github.com> Date: Wed, 27 Jun 2018 09:49:22 +1000 Subject: [PATCH 061/132] Australian Public Holidays (#112) Proper handling for (just about) all public holidays in every Australian state and territory. --- CHANGELOG.md | 1 + src/Yasumi/Provider/Australia.php | 115 +++++------ src/Yasumi/Provider/Australia/ACT.php | 174 +++++++++++++++++ src/Yasumi/Provider/Australia/NSW.php | 135 +++++++++++++ src/Yasumi/Provider/Australia/NT.php | 135 +++++++++++++ src/Yasumi/Provider/Australia/Queensland.php | 96 +++++++++ .../Australia/Queensland/Brisbane.php | 76 ++++++++ src/Yasumi/Provider/Australia/SA.php | 183 ++++++++++++++++++ src/Yasumi/Provider/Australia/Tasmania.php | 102 ++++++++++ .../Australia/Tasmania/CentralNorth.php | 56 ++++++ .../Australia/Tasmania/FlindersIsland.php | 56 ++++++ .../Australia/Tasmania/KingIsland.php | 60 ++++++ .../Provider/Australia/Tasmania/Northeast.php | 56 ++++++ .../Provider/Australia/Tasmania/Northwest.php | 56 ++++++ .../Tasmania/Northwest/CircularHead.php | 56 ++++++ .../Provider/Australia/Tasmania/South.php | 56 ++++++ .../Australia/Tasmania/South/Southeast.php | 61 ++++++ src/Yasumi/Provider/Australia/Victoria.php | 117 +++++++++-- src/Yasumi/Provider/Australia/WA.php | 120 ++++++++++++ tests/Australia/ACT/ACTBaseTestCase.php | 34 ++++ tests/Australia/ACT/ACTTest.php | 58 ++++++ tests/Australia/ACT/AnzacDayTest.php | 20 ++ tests/Australia/ACT/AustraliaDayTest.php | 20 ++ tests/Australia/ACT/BoxingDayTest.php | 20 ++ tests/Australia/ACT/CanberraDayTest.php | 102 ++++++++++ tests/Australia/ACT/ChristmasDayTest.php | 20 ++ tests/Australia/ACT/EasterMondayTest.php | 20 ++ tests/Australia/ACT/EasterSaturdayTest.php | 89 +++++++++ tests/Australia/ACT/EasterSundayTest.php | 88 +++++++++ tests/Australia/ACT/GoodFridayTest.php | 20 ++ tests/Australia/ACT/LabourDayTest.php | 93 +++++++++ tests/Australia/ACT/NewYearsDayTest.php | 20 ++ .../{ => ACT}/QueensBirthdayTest.php | 14 +- tests/Australia/ACT/ReconciliationDayTest.php | 104 ++++++++++ tests/Australia/AnzacDayTest.php | 9 +- tests/Australia/AustraliaDayTest.php | 2 +- tests/Australia/BoxingDayTest.php | 52 +++-- tests/Australia/ChristmasDayTest.php | 54 ++++-- tests/Australia/EasterMondayTest.php | 47 ++++- tests/Australia/GoodFridayTest.php | 1 - tests/Australia/NSW/AnzacDayTest.php | 20 ++ tests/Australia/NSW/AustraliaDayTest.php | 20 ++ tests/Australia/NSW/BankHolidayTest.php | 92 +++++++++ tests/Australia/NSW/BoxingDayTest.php | 20 ++ tests/Australia/NSW/ChristmasDayTest.php | 20 ++ tests/Australia/NSW/EasterMondayTest.php | 20 ++ tests/Australia/NSW/EasterSaturdayTest.php | 89 +++++++++ tests/Australia/NSW/EasterSundayTest.php | 88 +++++++++ tests/Australia/NSW/GoodFridayTest.php | 20 ++ tests/Australia/NSW/LabourDayTest.php | 93 +++++++++ tests/Australia/NSW/NSWBaseTestCase.php | 34 ++++ tests/Australia/NSW/NSWTest.php | 66 +++++++ tests/Australia/NSW/NewYearsDayTest.php | 20 ++ tests/Australia/NSW/QueensBirthdayTest.php | 103 ++++++++++ tests/Australia/NT/AnzacDayTest.php | 20 ++ tests/Australia/NT/AustraliaDayTest.php | 20 ++ tests/Australia/NT/BoxingDayTest.php | 20 ++ tests/Australia/NT/ChristmasDayTest.php | 20 ++ tests/Australia/NT/EasterMondayTest.php | 20 ++ tests/Australia/NT/EasterSaturdayTest.php | 89 +++++++++ tests/Australia/NT/GoodFridayTest.php | 20 ++ tests/Australia/NT/MayDayTest.php | 92 +++++++++ tests/Australia/NT/NTBaseTestCase.php | 34 ++++ tests/Australia/NT/NTTest.php | 56 ++++++ tests/Australia/NT/NewYearsDayTest.php | 20 ++ tests/Australia/NT/PicnicDayTest.php | 92 +++++++++ tests/Australia/NT/QueensBirthdayTest.php | 103 ++++++++++ tests/Australia/NewYearsDayTest.php | 53 +++-- tests/Australia/Queensland/AnzacDayTest.php | 20 ++ .../Australia/Queensland/AustraliaDayTest.php | 20 ++ tests/Australia/Queensland/BoxingDayTest.php | 20 ++ .../Queensland/Brisbane/AnzacDayTest.php | 20 ++ .../Queensland/Brisbane/AustraliaDayTest.php | 20 ++ .../Queensland/Brisbane/BoxingDayTest.php | 20 ++ .../Brisbane/BrisbaneBaseTestCase.php | 34 ++++ .../Queensland/Brisbane/BrisbaneTest.php | 55 ++++++ .../Queensland/Brisbane/ChristmasDayTest.php | 20 ++ .../Queensland/Brisbane/EasterMondayTest.php | 20 ++ .../Queensland/Brisbane/GoodFridayTest.php | 20 ++ .../Queensland/Brisbane/LabourDayTest.php | 20 ++ .../Queensland/Brisbane/NewYearsDayTest.php | 20 ++ .../Queensland/Brisbane/PeoplesDayTest.php | 92 +++++++++ .../Brisbane/QueensBirthdayTest.php | 20 ++ .../Australia/Queensland/ChristmasDayTest.php | 20 ++ .../Australia/Queensland/EasterMondayTest.php | 20 ++ tests/Australia/Queensland/GoodFridayTest.php | 20 ++ tests/Australia/Queensland/LabourDayTest.php | 93 +++++++++ .../Australia/Queensland/NewYearsDayTest.php | 20 ++ .../Queensland/QueensBirthdayTest.php | 103 ++++++++++ .../Queensland/QueenslandBaseTestCase.php | 34 ++++ tests/Australia/Queensland/QueenslandTest.php | 54 ++++++ tests/Australia/SA/AdelaideCupDayTest.php | 112 +++++++++++ tests/Australia/SA/AnzacDayTest.php | 20 ++ tests/Australia/SA/AustraliaDayTest.php | 20 ++ tests/Australia/SA/ChristmasDayTest.php | 116 +++++++++++ tests/Australia/SA/EasterMondayTest.php | 20 ++ tests/Australia/SA/EasterSaturdayTest.php | 89 +++++++++ tests/Australia/SA/GoodFridayTest.php | 20 ++ tests/Australia/{ => SA}/LabourDayTest.php | 27 ++- tests/Australia/SA/NewYearsDayTest.php | 20 ++ tests/Australia/SA/ProclamationDayTest.php | 97 ++++++++++ tests/Australia/SA/QueensBirthdayTest.php | 103 ++++++++++ tests/Australia/SA/SABaseTestCase.php | 34 ++++ tests/Australia/SA/SATest.php | 56 ++++++ tests/Australia/Tasmania/AnzacDayTest.php | 20 ++ tests/Australia/Tasmania/AustraliaDayTest.php | 20 ++ tests/Australia/Tasmania/BoxingDayTest.php | 20 ++ .../Tasmania/CentralNorth/AnzacDayTest.php | 20 ++ .../CentralNorth/AustraliaDayTest.php | 20 ++ .../Tasmania/CentralNorth/BoxingDayTest.php | 20 ++ .../CentralNorth/CentralNorthBaseTestCase.php | 34 ++++ .../CentralNorth/CentralNorthTest.php | 56 ++++++ .../CentralNorth/ChristmasDayTest.php | 20 ++ .../CentralNorth/DevonportShowTest.php | 92 +++++++++ .../CentralNorth/EasterMondayTest.php | 20 ++ .../CentralNorth/EightHourDayTest.php | 20 ++ .../Tasmania/CentralNorth/GoodFridayTest.php | 20 ++ .../Tasmania/CentralNorth/NewYearsDayTest.php | 20 ++ .../CentralNorth/QueensBirthdayTest.php | 20 ++ .../CentralNorth/RecreationDayTest.php | 20 ++ tests/Australia/Tasmania/ChristmasDayTest.php | 20 ++ tests/Australia/Tasmania/EasterMondayTest.php | 20 ++ tests/Australia/Tasmania/EightHourDayTest.php | 93 +++++++++ .../Tasmania/FlindersIsland/AnzacDayTest.php | 20 ++ .../FlindersIsland/AustraliaDayTest.php | 20 ++ .../Tasmania/FlindersIsland/BoxingDayTest.php | 20 ++ .../FlindersIsland/ChristmasDayTest.php | 20 ++ .../FlindersIsland/EasterMondayTest.php | 20 ++ .../FlindersIsland/EightHourDayTest.php | 20 ++ .../FlindersIslandBaseTestCase.php | 34 ++++ .../FlindersIsland/FlindersIslandShowTest.php | 92 +++++++++ .../FlindersIsland/FlindersIslandTest.php | 56 ++++++ .../FlindersIsland/GoodFridayTest.php | 20 ++ .../FlindersIsland/NewYearsDayTest.php | 20 ++ .../FlindersIsland/QueensBirthdayTest.php | 20 ++ .../FlindersIsland/RecreationDayTest.php | 20 ++ tests/Australia/Tasmania/GoodFridayTest.php | 20 ++ .../Tasmania/KingIsland/AnzacDayTest.php | 20 ++ .../Tasmania/KingIsland/AustraliaDayTest.php | 20 ++ .../Tasmania/KingIsland/BoxingDayTest.php | 20 ++ .../Tasmania/KingIsland/ChristmasDayTest.php | 20 ++ .../Tasmania/KingIsland/EasterMondayTest.php | 20 ++ .../Tasmania/KingIsland/EightHourDayTest.php | 20 ++ .../Tasmania/KingIsland/GoodFridayTest.php | 20 ++ .../KingIsland/KingIslandBaseTestCase.php | 34 ++++ .../KingIsland/KingIslandShowTest.php | 92 +++++++++ .../Tasmania/KingIsland/KingIslandTest.php | 56 ++++++ .../Tasmania/KingIsland/NewYearsDayTest.php | 20 ++ .../KingIsland/QueensBirthdayTest.php | 20 ++ .../Tasmania/KingIsland/RecreationDayTest.php | 20 ++ tests/Australia/Tasmania/NewYearsDayTest.php | 20 ++ .../Tasmania/Northeast/AnzacDayTest.php | 20 ++ .../Tasmania/Northeast/AustraliaDayTest.php | 20 ++ .../Tasmania/Northeast/BoxingDayTest.php | 20 ++ .../Tasmania/Northeast/ChristmasDayTest.php | 20 ++ .../Tasmania/Northeast/EasterMondayTest.php | 20 ++ .../Tasmania/Northeast/EightHourDayTest.php | 20 ++ .../Tasmania/Northeast/GoodFridayTest.php | 20 ++ .../Tasmania/Northeast/LauncestonShowTest.php | 92 +++++++++ .../Tasmania/Northeast/NewYearsDayTest.php | 20 ++ .../Northeast/NortheastBaseTestCase.php | 34 ++++ .../Tasmania/Northeast/NortheastTest.php | 56 ++++++ .../Tasmania/Northeast/QueensBirthdayTest.php | 20 ++ .../Tasmania/Northeast/RecreationDayTest.php | 20 ++ .../Tasmania/Northwest/AnzacDayTest.php | 20 ++ .../Tasmania/Northwest/AustraliaDayTest.php | 20 ++ .../Tasmania/Northwest/BoxingDayTest.php | 20 ++ .../Tasmania/Northwest/BurnieShowTest.php | 92 +++++++++ .../Tasmania/Northwest/ChristmasDayTest.php | 20 ++ .../Northwest/CircularHead/AGFESTTest.php | 92 +++++++++ .../Northwest/CircularHead/AnzacDayTest.php | 20 ++ .../CircularHead/AustraliaDayTest.php | 20 ++ .../Northwest/CircularHead/BoxingDayTest.php | 20 ++ .../Northwest/CircularHead/BurnieShowTest.php | 20 ++ .../CircularHead/ChristmasDayTest.php | 20 ++ .../CircularHead/CircularHeadBaseTestCase.php | 34 ++++ .../CircularHead/CircularHeadTest.php | 57 ++++++ .../CircularHead/EasterMondayTest.php | 20 ++ .../CircularHead/EightHourDayTest.php | 20 ++ .../Northwest/CircularHead/GoodFridayTest.php | 20 ++ .../CircularHead/NewYearsDayTest.php | 20 ++ .../CircularHead/QueensBirthdayTest.php | 20 ++ .../CircularHead/RecreationDayTest.php | 20 ++ .../Tasmania/Northwest/EasterMondayTest.php | 20 ++ .../Tasmania/Northwest/EightHourDayTest.php | 20 ++ .../Tasmania/Northwest/GoodFridayTest.php | 20 ++ .../Tasmania/Northwest/NewYearsDayTest.php | 20 ++ .../Northwest/NorthwestBaseTestCase.php | 34 ++++ .../Tasmania/Northwest/NorthwestTest.php | 56 ++++++ .../Tasmania/Northwest/QueensBirthdayTest.php | 20 ++ .../Tasmania/Northwest/RecreationDayTest.php | 20 ++ .../Australia/Tasmania/QueensBirthdayTest.php | 103 ++++++++++ .../Australia/Tasmania/RecreationDayTest.php | 92 +++++++++ .../Australia/Tasmania/South/AnzacDayTest.php | 20 ++ .../Tasmania/South/AustraliaDayTest.php | 20 ++ .../Tasmania/South/BoxingDayTest.php | 20 ++ .../Tasmania/South/ChristmasDayTest.php | 20 ++ .../Tasmania/South/EasterMondayTest.php | 20 ++ .../Tasmania/South/EightHourDayTest.php | 20 ++ .../Tasmania/South/GoodFridayTest.php | 20 ++ .../Tasmania/South/HobartShowTest.php | 92 +++++++++ .../Tasmania/South/NewYearsDayTest.php | 20 ++ .../Tasmania/South/QueensBirthdayTest.php | 20 ++ .../Tasmania/South/RecreationDayTest.php | 20 ++ .../Tasmania/South/SouthBaseTestCase.php | 34 ++++ tests/Australia/Tasmania/South/SouthTest.php | 56 ++++++ .../Tasmania/South/Southeast/AnzacDayTest.php | 20 ++ .../South/Southeast/AustraliaDayTest.php | 20 ++ .../South/Southeast/BoxingDayTest.php | 20 ++ .../South/Southeast/ChristmasDayTest.php | 20 ++ .../South/Southeast/EasterMondayTest.php | 20 ++ .../South/Southeast/EightHourDayTest.php | 20 ++ .../South/Southeast/GoodFridayTest.php | 20 ++ .../South/Southeast/HobartRegattaTest.php | 92 +++++++++ .../South/Southeast/HobartShowTest.php | 20 ++ .../South/Southeast/NewYearsDayTest.php | 20 ++ .../South/Southeast/QueensBirthdayTest.php | 20 ++ .../South/Southeast/SoutheastBaseTestCase.php | 34 ++++ .../South/Southeast/SoutheastTest.php | 56 ++++++ .../Tasmania/TasmaniaBaseTestCase.php | 34 ++++ tests/Australia/Tasmania/TasmaniaTest.php | 55 ++++++ .../Victoria/AFLGrandFinalFridayTest.php | 5 +- tests/Australia/Victoria/ChristmasDayTest.php | 2 +- .../Australia/Victoria/EasterSaturdayTest.php | 89 +++++++++ tests/Australia/Victoria/EasterSundayTest.php | 88 +++++++++ tests/Australia/Victoria/LabourDayTest.php | 55 +++++- .../Victoria/MelbourneCupDayTest.php | 102 ++++++++++ .../Australia/Victoria/QueensBirthdayTest.php | 88 ++++++++- .../Victoria/VictoriaBaseTestCase.php | 3 +- tests/Australia/Victoria/VictoriaTest.php | 11 +- tests/Australia/WA/AnzacDayTest.php | 20 ++ tests/Australia/WA/AustraliaDayTest.php | 20 ++ tests/Australia/WA/BoxingDayTest.php | 20 ++ tests/Australia/WA/ChristmasDayTest.php | 20 ++ tests/Australia/WA/EasterMondayTest.php | 20 ++ tests/Australia/WA/GoodFridayTest.php | 20 ++ tests/Australia/WA/LabourDayTest.php | 93 +++++++++ tests/Australia/WA/NewYearsDayTest.php | 20 ++ tests/Australia/WA/QueensBirthdayTest.php | 103 ++++++++++ tests/Australia/WA/WABaseTestCase.php | 34 ++++ tests/Australia/WA/WATest.php | 55 ++++++ .../Australia/WA/WesternAustraliaDayTest.php | 92 +++++++++ 242 files changed, 9868 insertions(+), 167 deletions(-) create mode 100644 src/Yasumi/Provider/Australia/ACT.php create mode 100644 src/Yasumi/Provider/Australia/NSW.php create mode 100644 src/Yasumi/Provider/Australia/NT.php create mode 100644 src/Yasumi/Provider/Australia/Queensland.php create mode 100644 src/Yasumi/Provider/Australia/Queensland/Brisbane.php create mode 100644 src/Yasumi/Provider/Australia/SA.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/KingIsland.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/Northeast.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/Northwest.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/South.php create mode 100644 src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php create mode 100644 src/Yasumi/Provider/Australia/WA.php create mode 100644 tests/Australia/ACT/ACTBaseTestCase.php create mode 100644 tests/Australia/ACT/ACTTest.php create mode 100644 tests/Australia/ACT/AnzacDayTest.php create mode 100644 tests/Australia/ACT/AustraliaDayTest.php create mode 100644 tests/Australia/ACT/BoxingDayTest.php create mode 100644 tests/Australia/ACT/CanberraDayTest.php create mode 100644 tests/Australia/ACT/ChristmasDayTest.php create mode 100644 tests/Australia/ACT/EasterMondayTest.php create mode 100644 tests/Australia/ACT/EasterSaturdayTest.php create mode 100644 tests/Australia/ACT/EasterSundayTest.php create mode 100644 tests/Australia/ACT/GoodFridayTest.php create mode 100644 tests/Australia/ACT/LabourDayTest.php create mode 100644 tests/Australia/ACT/NewYearsDayTest.php rename tests/Australia/{ => ACT}/QueensBirthdayTest.php (87%) create mode 100644 tests/Australia/ACT/ReconciliationDayTest.php create mode 100644 tests/Australia/NSW/AnzacDayTest.php create mode 100644 tests/Australia/NSW/AustraliaDayTest.php create mode 100644 tests/Australia/NSW/BankHolidayTest.php create mode 100644 tests/Australia/NSW/BoxingDayTest.php create mode 100644 tests/Australia/NSW/ChristmasDayTest.php create mode 100644 tests/Australia/NSW/EasterMondayTest.php create mode 100644 tests/Australia/NSW/EasterSaturdayTest.php create mode 100644 tests/Australia/NSW/EasterSundayTest.php create mode 100644 tests/Australia/NSW/GoodFridayTest.php create mode 100644 tests/Australia/NSW/LabourDayTest.php create mode 100644 tests/Australia/NSW/NSWBaseTestCase.php create mode 100644 tests/Australia/NSW/NSWTest.php create mode 100644 tests/Australia/NSW/NewYearsDayTest.php create mode 100644 tests/Australia/NSW/QueensBirthdayTest.php create mode 100644 tests/Australia/NT/AnzacDayTest.php create mode 100644 tests/Australia/NT/AustraliaDayTest.php create mode 100644 tests/Australia/NT/BoxingDayTest.php create mode 100644 tests/Australia/NT/ChristmasDayTest.php create mode 100644 tests/Australia/NT/EasterMondayTest.php create mode 100644 tests/Australia/NT/EasterSaturdayTest.php create mode 100644 tests/Australia/NT/GoodFridayTest.php create mode 100644 tests/Australia/NT/MayDayTest.php create mode 100644 tests/Australia/NT/NTBaseTestCase.php create mode 100644 tests/Australia/NT/NTTest.php create mode 100644 tests/Australia/NT/NewYearsDayTest.php create mode 100644 tests/Australia/NT/PicnicDayTest.php create mode 100644 tests/Australia/NT/QueensBirthdayTest.php create mode 100644 tests/Australia/Queensland/AnzacDayTest.php create mode 100644 tests/Australia/Queensland/AustraliaDayTest.php create mode 100644 tests/Australia/Queensland/BoxingDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/AnzacDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/AustraliaDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/BoxingDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php create mode 100644 tests/Australia/Queensland/Brisbane/BrisbaneTest.php create mode 100644 tests/Australia/Queensland/Brisbane/ChristmasDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/EasterMondayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/GoodFridayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/LabourDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/NewYearsDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/PeoplesDayTest.php create mode 100644 tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php create mode 100644 tests/Australia/Queensland/ChristmasDayTest.php create mode 100644 tests/Australia/Queensland/EasterMondayTest.php create mode 100644 tests/Australia/Queensland/GoodFridayTest.php create mode 100644 tests/Australia/Queensland/LabourDayTest.php create mode 100644 tests/Australia/Queensland/NewYearsDayTest.php create mode 100644 tests/Australia/Queensland/QueensBirthdayTest.php create mode 100644 tests/Australia/Queensland/QueenslandBaseTestCase.php create mode 100644 tests/Australia/Queensland/QueenslandTest.php create mode 100644 tests/Australia/SA/AdelaideCupDayTest.php create mode 100644 tests/Australia/SA/AnzacDayTest.php create mode 100644 tests/Australia/SA/AustraliaDayTest.php create mode 100644 tests/Australia/SA/ChristmasDayTest.php create mode 100644 tests/Australia/SA/EasterMondayTest.php create mode 100644 tests/Australia/SA/EasterSaturdayTest.php create mode 100644 tests/Australia/SA/GoodFridayTest.php rename tests/Australia/{ => SA}/LabourDayTest.php (72%) create mode 100644 tests/Australia/SA/NewYearsDayTest.php create mode 100644 tests/Australia/SA/ProclamationDayTest.php create mode 100644 tests/Australia/SA/QueensBirthdayTest.php create mode 100644 tests/Australia/SA/SABaseTestCase.php create mode 100644 tests/Australia/SA/SATest.php create mode 100644 tests/Australia/Tasmania/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php create mode 100644 tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php create mode 100644 tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/KingIslandTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/KingIsland/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/LauncestonShowTest.php create mode 100644 tests/Australia/Tasmania/Northeast/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php create mode 100644 tests/Australia/Tasmania/Northeast/NortheastTest.php create mode 100644 tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/Northeast/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/BurnieShowTest.php create mode 100644 tests/Australia/Tasmania/Northwest/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php create mode 100644 tests/Australia/Tasmania/Northwest/NorthwestTest.php create mode 100644 tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/Northwest/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/South/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/South/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/South/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/South/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/South/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/South/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/South/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/South/HobartShowTest.php create mode 100644 tests/Australia/Tasmania/South/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/South/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/South/RecreationDayTest.php create mode 100644 tests/Australia/Tasmania/South/SouthBaseTestCase.php create mode 100644 tests/Australia/Tasmania/South/SouthTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/HobartShowTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php create mode 100644 tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php create mode 100644 tests/Australia/Tasmania/South/Southeast/SoutheastTest.php create mode 100644 tests/Australia/Tasmania/TasmaniaBaseTestCase.php create mode 100644 tests/Australia/Tasmania/TasmaniaTest.php create mode 100644 tests/Australia/Victoria/EasterSaturdayTest.php create mode 100644 tests/Australia/Victoria/EasterSundayTest.php create mode 100644 tests/Australia/Victoria/MelbourneCupDayTest.php create mode 100644 tests/Australia/WA/AnzacDayTest.php create mode 100644 tests/Australia/WA/AustraliaDayTest.php create mode 100644 tests/Australia/WA/BoxingDayTest.php create mode 100644 tests/Australia/WA/ChristmasDayTest.php create mode 100644 tests/Australia/WA/EasterMondayTest.php create mode 100644 tests/Australia/WA/GoodFridayTest.php create mode 100644 tests/Australia/WA/LabourDayTest.php create mode 100644 tests/Australia/WA/NewYearsDayTest.php create mode 100644 tests/Australia/WA/QueensBirthdayTest.php create mode 100644 tests/Australia/WA/WABaseTestCase.php create mode 100644 tests/Australia/WA/WATest.php create mode 100644 tests/Australia/WA/WesternAustraliaDayTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 52e0d21d9..4318f8771 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] ### Added +- Holiday Providers for all Australian states and teritories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) - Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) - Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index 0669b4485..42fa99cd4 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\Provider; @@ -35,7 +36,6 @@ class Australia extends AbstractProvider /** * Initialize holidays for Australia. * - * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -43,8 +43,8 @@ class Australia extends AbstractProvider public function initialize() { // Official Holidays - $this->calculateAustraliaDay(); $this->calculateNewYearHolidays(); + $this->calculateAustraliaDay(); $this->calculateAnzacDay(); // Add Christian holidays @@ -67,7 +67,6 @@ public function initialize() * @link https://en.wikipedia.org/wiki/Waitangi_Day * @link https://www.timeanddate.com/holidays/australia/australia-day * - * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -76,7 +75,7 @@ public function calculateAustraliaDay() { $date = new DateTime("$this->year-01-26", new DateTimeZone($this->timezone)); - $this->calculateHoliday('australiaDay', [], $date); + $this->calculateHoliday('australiaDay', ['en_AU' => 'Australia Day'], $date); } /** @@ -84,9 +83,10 @@ public function calculateAustraliaDay() * * @param string $shortName * @param array $names - * @param \DateTime $date + * @param DateTime $date * @param bool $moveFromSaturday * @param bool $moveFromSunday + * @param string $type * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException @@ -96,16 +96,17 @@ public function calculateAustraliaDay() public function calculateHoliday( string $shortName, array $names = [], - \DateTime $date, - bool $moveFromSaturday = true, - bool $moveFromSunday = true + $date, + $moveFromSaturday = true, + $moveFromSunday = true, + $type = Holiday::TYPE_OFFICIAL ) { $day = (int)$date->format('w'); if (($day === 0 && $moveFromSunday) || ($day === 6 && $moveFromSaturday)) { $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P2D')); } - $this->addHoliday(new Holiday($shortName, $names, $date, $this->locale)); + $this->addHoliday(new Holiday($shortName, $names, $date, $this->locale, $type)); } /** @@ -113,23 +114,29 @@ public function calculateHoliday( * * New Year's Day is on January 1 and is the first day of a new year in the Gregorian calendar, * which is used in Australia and many other countries. Due to its geographical position close - * to the International Date Line, Australia is one of the first countries in the world to - * welcome the New Year. + * to the International Date Line, Australia is one of the first countries in the world to welcome the New Year. + * If it falls on a weekend an additional public holiday is held on the next available weekday. * * @link https://www.timeanddate.com/holidays/australia/new-year-day * - * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ public function calculateNewYearHolidays() { - $this->calculateHoliday( - 'newYearsDay', - [], - new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)) - ); + $newyearsday = new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)); + $this->calculateHoliday('newYearsDay', ['en_AU' => 'New Year\'s Day'], $newyearsday, false, false); + switch ($newyearsday->format('w')) { + case 0: // sunday + $newyearsday->add(new DateInterval('P1D')); + $this->calculateHoliday('newYearsHoliday', ['en_AU' => 'New Year\'s Holiday'], $newyearsday, false, false); + break; + case 6: // saturday + $newyearsday->add(new DateInterval('P2D')); + $this->calculateHoliday('newYearsHoliday', ['en_AU' => 'New Year\'s Holiday'], $newyearsday, false, false); + break; + } } /** @@ -137,12 +144,13 @@ public function calculateNewYearHolidays() * * Anzac Day is a national day of remembrance in Australia and New Zealand that broadly commemorates all Australians * and New Zealanders "who served and died in all wars, conflicts, and peacekeeping operations" - * Observed on 25 April each year. + * Observed on 25 April each year. Unlike most other Australian public holidays, If it falls on a weekend it is NOT moved + * to the next available weekday, nor is there an additional public holiday held. However, if it clashes with Easter, + * an additional public holiday is held for Easter. * * @link https://en.wikipedia.org/wiki/Anzac_Day * @link https://www.timeanddate.com/holidays/australia/anzac-day * - * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -154,19 +162,24 @@ public function calculateAnzacDay() } $date = new DateTime("$this->year-04-25", new DateTimeZone($this->timezone)); - - $this->calculateHoliday('anzacDay', [], $date); + $this->calculateHoliday('anzacDay', ['en_AU' => 'ANZAC Day'], $date, false, false); + $easter = $this->calculateEaster($this->year, $this->timezone); + $easterMonday = $this->calculateEaster($this->year, $this->timezone); + $easterMonday->add(new DateInterval('P1D')); + if (($date->format('Y-m-d') === $easter->format('Y-m-d')) || ($date->format('Y-m-d') === $easterMonday->format('Y-m-d'))) { + $easterMonday->add(new DateInterval('P1D')); + $this->calculateHoliday('easterTuesday', ['en_AU' => 'Easter Tuesday'], $easterMonday, false, false); + } } /** * Christmas Day / Boxing Day. * * Christmas day, and Boxing day are public holidays in Australia, - * if they fall on the weekend they are moved to the next available weekday. + * if they fall on the weekend an additional public holiday is held on the next available weekday. * * @link https://www.timeanddate.com/holidays/australia/christmas-day-holiday * - * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -175,60 +188,24 @@ public function calculateChristmasDay() { $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); $boxingDay = new DateTime("$this->year-12-26", new DateTimeZone($this->timezone)); + $this->calculateHoliday('christmasDay', ['en_AU' => 'Christmas Day'], $christmasDay, false, false); + $this->calculateHoliday('secondChristmasDay', ['en_AU' => 'Boxing Day'], $boxingDay, false, false); switch ($christmasDay->format('w')) { case 0: // sunday - $christmasDay->add(new \DateInterval('P2D')); + $christmasDay->add(new DateInterval('P2D')); + $this->calculateHoliday('christmasHoliday', ['en_AU' => 'Christmas Holiday'], $christmasDay, false, false); break; case 5: // friday - $boxingDay->add(new \DateInterval('P2D')); + $boxingDay->add(new DateInterval('P2D')); + $this->calculateHoliday('secondChristmasHoliday', ['en_AU' => 'Boxing Day Holiday'], $boxingDay, false, false); break; case 6: // saturday - $christmasDay->add(new \DateInterval('P2D')); - $boxingDay->add(new \DateInterval('P2D')); + $christmasDay->add(new DateInterval('P2D')); + $boxingDay->add(new DateInterval('P2D')); + $this->calculateHoliday('christmasHoliday', ['en_AU' => 'Christmas Holiday'], $christmasDay, false, false); + $this->calculateHoliday('secondChristmasHoliday', ['en_AU' => 'Boxing Day Holiday'], $boxingDay, false, false); break; } - $this->calculateHoliday('christmasDay', [], $christmasDay); - $this->calculateHoliday('secondChristmasDay', [], $boxingDay); - } - - /** - * Queens Birthday. - * - * The Queen's Birthday is an Australian public holiday but the date varies across - * states and territories. Australia celebrates this holiday because it is a constitutional - * monarchy, with the English monarch as head of state. - * - * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. - * (Except QLD & WA) - * - * @link https://www.timeanddate.com/holidays/australia/queens-birthday - * - * @throws \InvalidArgumentException - * @throws \Exception - */ - public function calculateQueensBirthday() - { - $this->calculateHoliday( - 'queensBirthday', - ['en_AU' => 'Queens Birthday'], - new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), - false, - false - ); - } - - /** - * @link https://www.timeanddate.com/holidays/australia/labour-day - * - * @throws \Yasumi\Exception\InvalidDateException - * @throws \InvalidArgumentException - * @throws \Yasumi\Exception\UnknownLocaleException - */ - public function calculateLabourDay() - { - $date = new DateTime('first Monday in October' . " $this->year", new DateTimeZone($this->timezone)); - - $this->addHoliday(new Holiday('labourDay', [], $date, $this->locale)); } } diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php new file mode 100644 index 000000000..44465eace --- /dev/null +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -0,0 +1,174 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in Australian Capital Territory (Australia). + * + */ +class ACT extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-ACT'; + + public $timezone = 'Australia/ACT'; + + /** + * Initialize holidays for Australian Capital Territory (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->addHoliday($this->easterSunday($this->year, $this->timezone, $this->locale)); + $this->addHoliday($this->easterSaturday($this->year, $this->timezone, $this->locale)); + $this->calculateQueensBirthday(); + $this->calculateLabourDay(); + $this->calculateCanberraDay(); + $this->calculateReconciliationDay(); + } + + public function calculateCanberraDay() + { + if ($this->year < 2007) { + $date = new DateTime("third monday of march $this->year", new DateTimeZone($this->timezone)); + } else { + $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); + } + $this->addHoliday(new Holiday('canberraDay', ['en_AU' => 'Canberra Day'], $date, $this->locale)); + } + + public function calculateReconciliationDay() + { + if ($this->year < 2018) { + return; + } else { + $date = new DateTime($this->year."-05-27", new DateTimeZone($this->timezone)); + $day = (int)$date->format('w'); + if ($day !== 1) { + $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P'.(8-$day).'D')); + } + $this->addHoliday(new Holiday('reconciliationDay', ['en_AU' => 'Reconciliation Day'], $date, $this->locale)); + } + } + + public function calculateLabourDay() + { + $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); + + $this->addHoliday(new Holiday('labourDay', ['en_AU' => 'Labour Day'], $date, $this->locale)); + } + + /** + * Easter Saturday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easterSaturday', + ['en_AU' => 'Easter Saturday'], + $this->calculateEaster($year, $timezone)->sub(new DateInterval('P1D')), + $locale, + $type + ); + } + + /** + * Easter Sunday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easter', + ['en_AU' => 'Easter Sunday'], + $this->calculateEaster($year, $timezone), + $locale, + $type + ); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } +} diff --git a/src/Yasumi/Provider/Australia/NSW.php b/src/Yasumi/Provider/Australia/NSW.php new file mode 100644 index 000000000..da076eab2 --- /dev/null +++ b/src/Yasumi/Provider/Australia/NSW.php @@ -0,0 +1,135 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in New South Wales (Australia). + * + */ +class NSW extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-NSW'; + + public $timezone = 'Australia/NSW'; + + /** + * Initialize holidays for New South Wales (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->addHoliday(new Holiday('easter', ['en_AU' => 'Easter Sunday'], $this->calculateEaster($this->year, $this->timezone), $this->locale)); + $this->addHoliday($this->easterSaturday($this->year, $this->timezone, $this->locale)); + $this->calculateQueensBirthday(); + $this->calculateLabourDay(); + $this->calculateBankHoliday(); + } + + public function calculateLabourDay() + { + $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); + + $this->addHoliday(new Holiday('labourDay', [], $date, $this->locale)); + } + + /** + * Easter Saturday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easterSaturday', + ['en_AU' => 'Easter Saturday'], + $this->calculateEaster($year, $timezone)->sub(new DateInterval('P1D')), + $locale, + $type + ); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + + /** + * Bank Holiday. + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateBankHoliday() + { + $this->calculateHoliday( + 'bankHoliday', + ['en_AU' => 'Bank Holiday'], + new DateTime('first monday of august '. $this->year, new DateTimeZone($this->timezone)), + false, + false, + Holiday::TYPE_BANK + ); + } +} diff --git a/src/Yasumi/Provider/Australia/NT.php b/src/Yasumi/Provider/Australia/NT.php new file mode 100644 index 000000000..345e5bc2c --- /dev/null +++ b/src/Yasumi/Provider/Australia/NT.php @@ -0,0 +1,135 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in Northern Territory (Australia). + * + */ +class NT extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-NT'; + + public $timezone = 'Australia/North'; + + /** + * Initialize holidays for Northern Territory (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->addHoliday($this->easterSaturday($this->year, $this->timezone, $this->locale)); + $this->calculateQueensBirthday(); + $this->calculateMayDay(); + $this->calculatePicnicDay(); + } + + public function calculateMayDay() + { + $date = new DateTime("first monday of may $this->year", new DateTimeZone($this->timezone)); + + $this->addHoliday(new Holiday('mayDay', ['en_AU' => 'May Day'], $date, $this->locale)); + } + + /** + * Picnic Day + * + * @link https://en.wikipedia.org/wiki/Picnic_Day_(Australian_holiday) + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculatePicnicDay() + { + $this->calculateHoliday( + 'picnicDay', + ['en_AU' => 'Picnic Day'], + new DateTime('first monday of august '. $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + + /** + * Easter Saturday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easterSaturday', + ['en_AU' => 'Easter Saturday'], + $this->calculateEaster($year, $timezone)->sub(new DateInterval('P1D')), + $locale, + $type + ); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } +} diff --git a/src/Yasumi/Provider/Australia/Queensland.php b/src/Yasumi/Provider/Australia/Queensland.php new file mode 100644 index 000000000..3b608883f --- /dev/null +++ b/src/Yasumi/Provider/Australia/Queensland.php @@ -0,0 +1,96 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in Queensland (Australia). + * + */ +class Queensland extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-QLD'; + + public $timezone = 'Australia/Queensland'; + + /** + * Initialize holidays for Queensland (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateQueensBirthday(); + $this->calculateLabourDay(); + } + + public function calculateLabourDay() + { + if ($this->year === 2013 || $this->year === 2014 || $this->year === 2015) { + $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); + } else { + $date = new DateTime("first monday of may $this->year", new DateTimeZone($this->timezone)); + } + + $this->addHoliday(new Holiday('labourDay', [], $date, $this->locale)); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + if ($this->year < 2012 || $this->year === 2013 || $this->year === 2014 || $this->year === 2015) { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } else { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('first monday of october ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + } +} diff --git a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php new file mode 100644 index 000000000..a9c3b0e0f --- /dev/null +++ b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php @@ -0,0 +1,76 @@ + + */ + +namespace Yasumi\Provider\Australia\Queensland; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Queensland; + +/** + * Provider for all holidays in Brisbane (Australia). + * + */ +class Brisbane extends Queensland +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there isn't one specifically for Brisbane, + * and I believe this is a logical extension. + */ + const ID = 'AU-QLD-BRI'; + + public $timezone = 'Australia/Brisbane'; + + /** + * Initialize holidays for Brisbane (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculatePeoplesDay(); + } + + /** + * Ekka People's Day. + * + * The Ekka is the annual agricultural show of Queensland, Australia. Its formal title is the Royal Queensland Show + * and it is held at the Brisbane Showgrounds. It was originally called the Brisbane Exhibition, however it is more + * commonly known as the Ekka, which is a shortening of the word exhibition. It is run by The Royal National + * Agricultural and Industrial Association of Queensland. + * Because of the cultural significance of the Ekka, the City of Brisbane holds a Wednesday public holiday known as + * "People's Day". The Ekka starts on the first Friday in August, except if the first Friday is before 5 August, in + * which case it starts on the second Friday of August. People's Day is then the Wednesday after the Ekka commences. + * + * @link https://en.wikipedia.org/wiki/Ekka + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function calculatePeoplesDay() + { + $date = new DateTime('first friday of august ' . $this->year, new DateTimeZone($this->timezone)); + if ($date->format('d') < 5) { + $date = $date->add(new DateInterval('P7D')); + } + $date = $date->add(new DateInterval('P5D')); + $this->addHoliday(new Holiday('peoplesDay', ['en_AU' => 'Ekka People\'s Day'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/SA.php b/src/Yasumi/Provider/Australia/SA.php new file mode 100644 index 000000000..b23bdcfe5 --- /dev/null +++ b/src/Yasumi/Provider/Australia/SA.php @@ -0,0 +1,183 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in South Australia (Australia). + * + */ +class SA extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-SA'; + + public $timezone = 'Australia/South'; + + /** + * Initialize holidays for South Australia (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->addHoliday($this->easterSaturday($this->year, $this->timezone, $this->locale)); + $this->calculateQueensBirthday(); + $this->calculateLabourDay(); + $this->calculateAdelaideCupDay(); + + // South Australia have Proclamation Day instead of Boxing Day, but the date definition is slightly different, + // so we have to rework everything here... + $this->removeHoliday('christmasDay'); + $this->removeHoliday('secondChristmasDay'); + $this->removeHoliday('christmasHoliday'); + $this->removeHoliday('secondChristmasHoliday'); + $this->calculateProclamationDay(); + } + + public function calculateProclamationDay() + { + $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); + $this->calculateHoliday('christmasDay', ['en_AU' => 'Christmas Day'], $christmasDay, false, false); + switch ($christmasDay->format('w')) { + case 0: // sunday + $christmasDay->add(new DateInterval('P1D')); + $this->calculateHoliday('christmasHoliday', ['en_AU' => 'Christmas Holiday'], $christmasDay, false, false); + $proclamationDay = $christmasDay->add(new DateInterval('P1D')); + $this->calculateHoliday('proclamationDay', ['en_AU' => 'Proclamation Day'], $proclamationDay, false, false); + break; + case 5: // friday + $proclamationDay = $christmasDay->add(new DateInterval('P3D')); + $this->calculateHoliday('proclamationDay', ['en_AU' => 'Proclamation Day'], $proclamationDay, false, false); + break; + case 6: // saturday + $christmasDay->add(new DateInterval('P2D')); + $this->calculateHoliday('christmasHoliday', ['en_AU' => 'Christmas Holiday'], $christmasDay, false, false); + $proclamationDay = $christmasDay->add(new DateInterval('P1D')); + $this->calculateHoliday('proclamationDay', ['en_AU' => 'Proclamation Day'], $proclamationDay, false, false); + break; + default: // monday-thursday + $proclamationDay = $christmasDay->add(new DateInterval('P1D')); + $this->calculateHoliday('proclamationDay', ['en_AU' => 'Proclamation Day'], $proclamationDay, false, false); + break; + } + } + + public function calculateLabourDay() + { + $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); + + $this->addHoliday(new Holiday('labourDay', ['en_AU' => 'Labour Day'], $date, $this->locale)); + } + + /** + * Adelaide Cup Day + * + * @link https://en.wikipedia.org/wiki/Adelaide_Cup + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateAdelaideCupDay() + { + if ($this->year >= 1973) { + if ($this->year < 2006) { + $this->calculateHoliday( + 'adelaideCup', + ['en_AU' => 'Adelaide Cup'], + new DateTime('third monday of may ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } else { + $this->calculateHoliday( + 'adelaideCup', + ['en_AU' => 'Adelaide Cup'], + new DateTime('second monday of march ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + } + } + + /** + * Easter Saturday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easterSaturday', + ['en_AU' => 'Easter Saturday'], + $this->calculateEaster($year, $timezone)->sub(new DateInterval('P1D')), + $locale, + $type + ); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania.php b/src/Yasumi/Provider/Australia/Tasmania.php new file mode 100644 index 000000000..50323d0a0 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania.php @@ -0,0 +1,102 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in Tasmania (Australia). + * + */ +class Tasmania extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-TAS'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for Tasmania (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateEightHoursDay(); + $this->calculateQueensBirthday(); + $this->calculateRecreationDay(); + } + + public function calculateEightHoursDay() + { + $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); + + $this->addHoliday(new Holiday('eightHourDay', ['en_AU' => 'Eight Hour Day'], $date, $this->locale)); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => 'Queen\'s Birthday'], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + + /** + * Recreation Day + * + * @link https://en.wikipedia.org/wiki/Recreation_Day_holiday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateRecreationDay() + { + $this->calculateHoliday( + 'recreationDay', + ['en_AU' => 'Recreation Day'], + new DateTime('first monday of november ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php new file mode 100644 index 000000000..e3d404ec2 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania; + +/** + * Provider for all holidays in central north Tasmania (Australia). + * + */ +class CentralNorth extends Tasmania +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-CN'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for northeastern Tasmania (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateDevonportShow(); + } + + public function calculateDevonportShow() + { + $date = new DateTime($this->year . '-12-02', new DateTimeZone($this->timezone)); + $date = $date->modify('previous friday'); + $this->addHoliday(new Holiday('devonportShow', ['en_AU' => 'Devonport Show'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php new file mode 100644 index 000000000..aa1e8bd74 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania; + +/** + * Provider for all holidays in Flinders Island (Australia). + * + */ +class FlindersIsland extends Tasmania +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-FI'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for Flinders Island (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateFlindersIslandShow(); + } + + public function calculateFlindersIslandShow() + { + $date = new DateTime('third saturday of october ' . $this->year, new DateTimeZone($this->timezone)); + $date = $date->sub(new DateInterval('P1D')); + $this->addHoliday(new Holiday('flindersIslandShow', ['en_AU' => 'Flinders Island Show'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php new file mode 100644 index 000000000..82e64fb8d --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -0,0 +1,60 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania; + +/** + * Provider for all holidays in King Island (Australia). + * + */ +class KingIsland extends Tasmania +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-KI'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for King Island (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateKingIslandShow(); + } + + public function calculateKingIslandShow() + { + $this->calculateHoliday( + 'kingIslandShow', + ['en_AU' => 'King Island Show'], + new DateTime('first tuesday of march ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php new file mode 100644 index 000000000..4fefad979 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania; + +/** + * Provider for all holidays in northeastern Tasmania (Australia). + * + */ +class Northeast extends Tasmania +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-NE'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for northeastern Tasmania (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateLauncestonShow(); + } + + public function calculateLauncestonShow() + { + $date = new DateTime('second saturday of october ' . $this->year, new DateTimeZone($this->timezone)); + $date = $date->sub(new DateInterval('P2D')); + $this->addHoliday(new Holiday('launcestonShow', ['en_AU' => 'Royal Launceston Show'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php new file mode 100644 index 000000000..a87a13b09 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania; + +/** + * Provider for all holidays in northwestern Tasmania (Australia). + * + */ +class Northwest extends Tasmania +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-NW'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for northwestern Tasmania (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateBurnieShow(); + } + + public function calculateBurnieShow() + { + $date = new DateTime('first saturday of october ' . $this->year, new DateTimeZone($this->timezone)); + $date = $date->sub(new DateInterval('P1D')); + $this->addHoliday(new Holiday('burnieShow', ['en_AU' => 'Burnie Show'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php new file mode 100644 index 000000000..f4c8c0d72 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania\Northwest; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania\Northwest; + +/** + * Provider for all holidays in Circular Head (Australia). + * + */ +class CircularHead extends Northwest +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-NW-CH'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for Circular Head (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateAGFEST(); + } + + public function calculateAGFEST() + { + $date = new DateTime('first thursday of may ' . $this->year, new DateTimeZone($this->timezone)); + $date = $date->add(new DateInterval('P1D')); + $this->addHoliday(new Holiday('agfest', ['en_AU' => 'AGFEST'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/South.php b/src/Yasumi/Provider/Australia/Tasmania/South.php new file mode 100644 index 000000000..84e31ae15 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/South.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania; + +/** + * Provider for all holidays in southern Tasmania (Australia). + * + */ +class South extends Tasmania +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-SOU'; + + public $timezone = 'Australia/Tasmania'; + + /** + * Initialize holidays for southern Tasmania (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateHobartShow(); + } + + public function calculateHobartShow() + { + $date = new DateTime('fourth saturday of october ' . $this->year, new DateTimeZone($this->timezone)); + $date = $date->sub(new DateInterval('P2D')); + $this->addHoliday(new Holiday('hobartShow', ['en_AU' => 'Royal Hobart Show'], $date, $this->locale)); + } +} diff --git a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php new file mode 100644 index 000000000..949990b82 --- /dev/null +++ b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php @@ -0,0 +1,61 @@ + + */ + +namespace Yasumi\Provider\Australia\Tasmania\South; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia\Tasmania\South; + +/** + * Provider for all holidays in southeastern Tasmania (Australia). + * + */ +class Southeast extends South +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, + * and I believe it to be a logical extension. + */ + const ID = 'AU-TAS-SOU-SE'; + + public $timezone = 'Australia/Hobart'; + + /** + * Initialize holidays for southeastern Tasmania (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->removeHoliday('recreationDay'); + $this->calculateHobartRegatta(); + } + + public function calculateHobartRegatta() + { + $this->calculateHoliday( + 'hobartRegatta', + ['en_AU' => 'Royal Hobart Regatta'], + new DateTime('second monday of february ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } +} diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index b32985c5d..923ae54fa 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -8,10 +8,12 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\Provider\Australia; +use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; @@ -29,10 +31,11 @@ class Victoria extends Australia */ const ID = 'AU-VIC'; + public $timezone = 'Australia/Victoria'; + /** * Initialize holidays for Victoria (Australia). * - * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception @@ -41,29 +44,19 @@ public function initialize() { parent::initialize(); + $this->addHoliday($this->easterSunday($this->year, $this->timezone, $this->locale)); + $this->addHoliday($this->easterSaturday($this->year, $this->timezone, $this->locale)); $this->calculateLabourDay(); $this->calculateQueensBirthday(); $this->calculateMelbourneCupDay(); $this->calculateAFLGrandFinalDay(); } - /** - * @throws \Exception - */ - public function calculateChristmasDay() - { - $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); - $boxingDay = new DateTime("$this->year-12-26", new DateTimeZone($this->timezone)); - - $this->calculateHoliday('christmasDay', [], $christmasDay); - $this->calculateHoliday('secondChristmasDay', [], $boxingDay, false); - } - public function calculateLabourDay() { $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); - $this->addHoliday(new Holiday('labourDay', [], $date, $this->locale)); + $this->addHoliday(new Holiday('labourDay', ['en_AU' => 'Labour Day'], $date, $this->locale)); } public function calculateMelbourneCupDay() @@ -82,6 +75,12 @@ public function calculateAFLGrandFinalDay() case 2016: $aflGrandFinalFriday = '2016-09-30'; break; + case 2017: + $aflGrandFinalFriday = '2017-09-29'; + break; + case 2018: + $aflGrandFinalFriday = '2018-09-28'; + break; default: return; } @@ -95,4 +94,94 @@ public function calculateAFLGrandFinalDay() $this->locale )); } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => 'Queen\'s Birthday'], + new DateTime('second monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + + /** + * Easter Saturday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easterSaturday', + ['en_AU' => 'Easter Saturday'], + $this->calculateEaster($year, $timezone)->sub(new DateInterval('P1D')), + $locale, + $type + ); + } + + /** + * Easter Sunday. + * + * Easter is a festival and holiday celebrating the resurrection of Jesus Christ from the dead. Easter is celebrated + * on a date based on a certain number of days after March 21st. The date of Easter Day was defined by the Council + * of Nicaea in AD325 as the Sunday after the first full moon which falls on or after the Spring Equinox. + * + * @link http://en.wikipedia.org/wiki/Easter + * + * @param int $year the year for which Easter Saturday need to be created + * @param string $timezone the timezone in which Easter Saturday is celebrated + * @param string $locale the locale for which Easter Saturday need to be displayed in. + * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, + * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. + * + * @return \Yasumi\Holiday + * + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + { + return new Holiday( + 'easter', + ['en_AU' => 'Easter Sunday'], + $this->calculateEaster($year, $timezone), + $locale, + $type + ); + } } diff --git a/src/Yasumi/Provider/Australia/WA.php b/src/Yasumi/Provider/Australia/WA.php new file mode 100644 index 000000000..c964f0afc --- /dev/null +++ b/src/Yasumi/Provider/Australia/WA.php @@ -0,0 +1,120 @@ + + */ + +namespace Yasumi\Provider\Australia; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\Provider\Australia; + +/** + * Provider for all holidays in Western Australia (Australia). + * + */ +class WA extends Australia +{ + /** + * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective + * country or sub-region. + */ + const ID = 'AU-WA'; + + public $timezone = 'Australia/West'; + + /** + * Initialize holidays for Western Australia (Australia). + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + $this->calculateQueensBirthday(); + $this->calculateLabourDay(); + $this->calculateWesternAustraliaDay(); + } + + public function calculateLabourDay() + { + $date = new DateTime("first monday of march $this->year", new DateTimeZone($this->timezone)); + + $this->addHoliday(new Holiday('labourDay', [], $date, $this->locale)); + } + + /** + * Western Australia Day + * + * @link https://en.wikipedia.org/wiki/Western_Australia_Day + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateWesternAustraliaDay() + { + $this->calculateHoliday( + 'westernAustraliaDay', + ['en_AU' => 'Western Australia Day'], + new DateTime('first monday of june ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + + /** + * Queens Birthday. + * + * The Queen's Birthday is an Australian public holiday but the date varies across + * states and territories. Australia celebrates this holiday because it is a constitutional + * monarchy, with the English monarch as head of state. + * + * Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. + * (Except QLD & WA) + * + * @link https://www.timeanddate.com/holidays/australia/queens-birthday + * + * @throws \InvalidArgumentException + * @throws \Exception + */ + public function calculateQueensBirthday() + { + if ($this->year === 2011) { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('2011-10-28', new DateTimeZone($this->timezone)), + false, + false + ); + } elseif ($this->year === 2012) { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('2012-10-01', new DateTimeZone($this->timezone)), + false, + false + ); + } else { + $this->calculateHoliday( + 'queensBirthday', + ['en_AU' => "Queen's Birthday"], + new DateTime('last monday of september ' . $this->year, new DateTimeZone($this->timezone)), + false, + false + ); + } + } +} diff --git a/tests/Australia/ACT/ACTBaseTestCase.php b/tests/Australia/ACT/ACTBaseTestCase.php new file mode 100644 index 000000000..52776a869 --- /dev/null +++ b/tests/Australia/ACT/ACTBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the ACT holiday provider. + */ +abstract class ACTBaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\ACT'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/ACT'; +} diff --git a/tests/Australia/ACT/ACTTest.php b/tests/Australia/ACT/ACTTest.php new file mode 100644 index 000000000..6101130d5 --- /dev/null +++ b/tests/Australia/ACT/ACTTest.php @@ -0,0 +1,58 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in ACT (Australia). + */ +class ACTTest extends ACTBaseTestCase +{ + public $region = 'Australia\ACT'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in ACT (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'easter', + 'easterSaturday', + 'queensBirthday', + 'labourDay', + 'canberraDay', + 'reconciliationDay' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(2018, 2100); + } +} diff --git a/tests/Australia/ACT/AnzacDayTest.php b/tests/Australia/ACT/AnzacDayTest.php new file mode 100644 index 000000000..9f421f6a7 --- /dev/null +++ b/tests/Australia/ACT/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing ANZAC day in ACT (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/ACT/AustraliaDayTest.php b/tests/Australia/ACT/AustraliaDayTest.php new file mode 100644 index 000000000..23c75c62e --- /dev/null +++ b/tests/Australia/ACT/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing Australia day in ACT (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/ACT/BoxingDayTest.php b/tests/Australia/ACT/BoxingDayTest.php new file mode 100644 index 000000000..bb3812c6d --- /dev/null +++ b/tests/Australia/ACT/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing Boxing Day in ACT (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\BoxingDayTest +{ +} diff --git a/tests/Australia/ACT/CanberraDayTest.php b/tests/Australia/ACT/CanberraDayTest.php new file mode 100644 index 000000000..da46540d7 --- /dev/null +++ b/tests/Australia/ACT/CanberraDayTest.php @@ -0,0 +1,102 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Canberra Day in ACT (Australia).. + */ +class CanberraDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'canberraDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1913; + + /** + * Tests Canberra Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-03-08'], + [2011, '2011-03-14'], + [2012, '2012-03-12'], + [2013, '2013-03-11'], + [2014, '2014-03-10'], + [2015, '2015-03-09'], + [2016, '2016-03-14'], + [2017, '2017-03-13'], + [2018, '2018-03-12'], + [2019, '2019-03-11'], + [2020, '2020-03-09'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Canberra Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/ACT/ChristmasDayTest.php b/tests/Australia/ACT/ChristmasDayTest.php new file mode 100644 index 000000000..282134de1 --- /dev/null +++ b/tests/Australia/ACT/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing Christmas Day in ACT (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest +{ +} diff --git a/tests/Australia/ACT/EasterMondayTest.php b/tests/Australia/ACT/EasterMondayTest.php new file mode 100644 index 000000000..42ce1a91d --- /dev/null +++ b/tests/Australia/ACT/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing Easter Monday in ACT (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/ACT/EasterSaturdayTest.php b/tests/Australia/ACT/EasterSaturdayTest.php new file mode 100644 index 000000000..869ed1550 --- /dev/null +++ b/tests/Australia/ACT/EasterSaturdayTest.php @@ -0,0 +1,89 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Saturday in ACT (Australia).. + */ +class EasterSaturdayTest extends ACTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easterSaturday'; + + /** + * Tests Easter Saturday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + $date->sub(new DateInterval('P1D')); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Saturday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php new file mode 100644 index 000000000..c32e4f299 --- /dev/null +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -0,0 +1,88 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Sunday in ACT (Australia).. + */ +class EasterSundayTest extends ACTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easter'; + + /** + * Tests Easter Sunday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Sunday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/ACT/GoodFridayTest.php b/tests/Australia/ACT/GoodFridayTest.php new file mode 100644 index 000000000..df6f1f4c6 --- /dev/null +++ b/tests/Australia/ACT/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing Good Friday in ACT (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/ACT/LabourDayTest.php b/tests/Australia/ACT/LabourDayTest.php new file mode 100644 index 000000000..abf0c9a3f --- /dev/null +++ b/tests/Australia/ACT/LabourDayTest.php @@ -0,0 +1,93 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\ACT; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Labour Day in ACT (Australia).. + */ +class LabourDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'labourDay'; + + /** + * Tests Labour Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-10-04'], + [2011, '2011-10-03'], + [2012, '2012-10-01'], + [2013, '2013-10-07'], + [2014, '2014-10-06'], + [2015, '2015-10-05'], + [2016, '2016-10-03'], + [2017, '2017-10-02'], + [2018, '2018-10-01'], + [2019, '2019-10-07'], + [2020, '2020-10-05'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Labour Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/ACT/NewYearsDayTest.php b/tests/Australia/ACT/NewYearsDayTest.php new file mode 100644 index 000000000..489779aa2 --- /dev/null +++ b/tests/Australia/ACT/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +/** + * Class for testing New Years Day in ACT (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/QueensBirthdayTest.php b/tests/Australia/ACT/QueensBirthdayTest.php similarity index 87% rename from tests/Australia/QueensBirthdayTest.php rename to tests/Australia/ACT/QueensBirthdayTest.php index eebec927d..8051863ed 100644 --- a/tests/Australia/QueensBirthdayTest.php +++ b/tests/Australia/ACT/QueensBirthdayTest.php @@ -8,9 +8,10 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ -namespace Yasumi\tests\Australia; +namespace Yasumi\tests\Australia\ACT; use DateTime; use DateTimeZone; @@ -18,9 +19,9 @@ use Yasumi\tests\YasumiTestCaseInterface; /** - * Class for testing QueensBirthday in Australia. + * Class for testing Queen's Birthday in ACT (Australia).. */ -abstract class QueensBirthdayTest extends AustraliaBaseTestCase implements YasumiTestCaseInterface +class QueensBirthdayTest extends ACTBaseTestCase implements YasumiTestCaseInterface { /** * The name of the holiday @@ -32,10 +33,8 @@ abstract class QueensBirthdayTest extends AustraliaBaseTestCase implements Yasum */ const ESTABLISHMENT_YEAR = 1950; - protected $dateFormat; // picked a random date -- sorry :) - /** - * Tests Labour Day + * Tests Queen's Birthday * * @dataProvider HolidayDataProvider * @@ -52,7 +51,6 @@ public function testHoliday($year, $expected) ); } - /** * Returns a list of test dates * @@ -86,7 +84,7 @@ public function testTranslation() $this->region, self::HOLIDAY, $this->generateRandomYear(self::ESTABLISHMENT_YEAR), - [self::LOCALE => 'Queens Birthday'] + [self::LOCALE => 'Queen\'s Birthday'] ); } diff --git a/tests/Australia/ACT/ReconciliationDayTest.php b/tests/Australia/ACT/ReconciliationDayTest.php new file mode 100644 index 000000000..02bc12cb8 --- /dev/null +++ b/tests/Australia/ACT/ReconciliationDayTest.php @@ -0,0 +1,104 @@ + + */ + +namespace Yasumi\tests\Australia\ACT; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Reconciliation Day in ACT (Australia).. + */ +class ReconciliationDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'reconciliationDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 2018; + + /** + * Tests Reconciliation Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2018, '2018-05-28'], + [2019, '2019-05-27'], + [2020, '2020-06-01'], + [2021, '2021-05-31'], + [2022, '2022-05-30'], + [2023, '2023-05-29'], + [2024, '2024-05-27'], + [2025, '2025-06-02'], + [2026, '2026-06-01'], + [2027, '2027-05-31'], + [2028, '2028-05-29'], + [2029, '2029-05-28'], + [2030, '2030-05-27'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Reconciliation Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index a56ed73b8..405c205a3 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia; @@ -51,7 +52,7 @@ public function testHoliday($year, $expected) } /** - * Tests that Labour Day is not present before 1921 + * Tests that ANZAC Day is not present before 1921 */ public function testNotHoliday() { @@ -66,18 +67,18 @@ public function testNotHoliday() public function HolidayDataProvider(): array { $data = [ - [2010, '2010-04-26'], + [2010, '2010-04-25'], [2011, '2011-04-25'], [2012, '2012-04-25'], [2013, '2013-04-25'], [2014, '2014-04-25'], - [2015, '2015-04-27'], + [2015, '2015-04-25'], [2016, '2016-04-25'], [2017, '2017-04-25'], [2018, '2018-04-25'], [2019, '2019-04-25'], [2019, '2019-04-25'], - [2020, '2020-04-27'], + [2020, '2020-04-25'], ]; return $data; diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index 9d60c1c6a..b8a431643 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -72,7 +72,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider(): array + public function HolidayDataProvider() { $data = [ [2010, '2010-01-26'], diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index b3f4096f7..27ad9ba81 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia; @@ -26,16 +27,18 @@ class BoxingDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInter * The name of the holiday */ const HOLIDAY = 'secondChristmasDay'; + const HOLIDAY2 = 'secondChristmasHoliday'; /** * Tests Boxing Day * * @dataProvider HolidayDataProvider * - * @param int $year the year for which the holiday defined in this test needs to be tested - * @param string $expected the expected date + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday */ - public function testHoliday($year, $expected) + public function testHoliday($year, $expected, $expectedExtra) { $this->assertHoliday( $this->region, @@ -43,6 +46,20 @@ public function testHoliday($year, $expected) $year, new DateTime($expected, new DateTimeZone($this->timezone)) ); + if ($expectedExtra === null) { + $this->assertNotHoliday( + $this->region, + self::HOLIDAY2, + $year + ); + } else { + $this->assertHoliday( + $this->region, + self::HOLIDAY2, + $year, + new DateTime($expectedExtra, new DateTimeZone($this->timezone)) + ); + } } /** @@ -53,17 +70,17 @@ public function testHoliday($year, $expected) public function HolidayDataProvider(): array { $data = [ - [2010, '2010-12-28'], - [2011, '2011-12-26'], - [2012, '2012-12-26'], - [2013, '2013-12-26'], - [2014, '2014-12-26'], - [2015, '2015-12-28'], - [2016, '2016-12-26'], - [2017, '2017-12-26'], - [2018, '2018-12-26'], - [2019, '2019-12-26'], - [2020, '2020-12-28'], + [2010, '2010-12-26', '2010-12-28'], + [2011, '2011-12-26', null], + [2012, '2012-12-26', null], + [2013, '2013-12-26', null], + [2014, '2014-12-26', null], + [2015, '2015-12-26', '2015-12-28'], + [2016, '2016-12-26', null], + [2017, '2017-12-26', null], + [2018, '2018-12-26', null], + [2019, '2019-12-26', null], + [2020, '2020-12-26', '2020-12-28'], ]; return $data; @@ -80,6 +97,12 @@ public function testTranslation() $this->generateRandomYear(), [self::LOCALE => 'Boxing Day'] ); + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY2, + 2020, + [self::LOCALE => 'Boxing Day Holiday'] + ); } /** @@ -88,5 +111,6 @@ public function testTranslation() public function testHolidayType() { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + $this->assertHolidayType($this->region, self::HOLIDAY2, 2020, Holiday::TYPE_OFFICIAL); } } diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index 212d97e8f..3aea5a363 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia; @@ -18,7 +19,7 @@ use Yasumi\tests\YasumiTestCaseInterface; /** - * Class for testing Christmas Day in the Australia. + * Class for testing Christmas Day in Australia. */ class ChristmasDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInterface { @@ -26,16 +27,18 @@ class ChristmasDayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn * The name of the holiday */ const HOLIDAY = 'christmasDay'; + const HOLIDAY2 = 'christmasHoliday'; /** * Tests Christmas Day * * @dataProvider HolidayDataProvider * - * @param int $year the year for which the holiday defined in this test needs to be tested - * @param string $expected the expected date + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday */ - public function testHoliday($year, $expected) + public function testHoliday($year, $expected, $expectedExtra) { $this->assertHoliday( $this->region, @@ -43,6 +46,20 @@ public function testHoliday($year, $expected) $year, new DateTime($expected, new DateTimeZone($this->timezone)) ); + if ($expectedExtra === null) { + $this->assertNotHoliday( + $this->region, + self::HOLIDAY2, + $year + ); + } else { + $this->assertHoliday( + $this->region, + self::HOLIDAY2, + $year, + new DateTime($expectedExtra, new DateTimeZone($this->timezone)) + ); + } } /** @@ -53,17 +70,17 @@ public function testHoliday($year, $expected) public function HolidayDataProvider(): array { $data = [ - [2010, '2010-12-27'], - [2011, '2011-12-27'], - [2012, '2012-12-25'], - [2013, '2013-12-25'], - [2014, '2014-12-25'], - [2015, '2015-12-25'], - [2016, '2016-12-27'], - [2017, '2017-12-25'], - [2018, '2018-12-25'], - [2019, '2019-12-25'], - [2020, '2020-12-25'], + [2010, '2010-12-25', '2010-12-27'], + [2011, '2011-12-25', '2011-12-27'], + [2012, '2012-12-25', null], + [2013, '2013-12-25', null], + [2014, '2014-12-25', null], + [2015, '2015-12-25', null], + [2016, '2016-12-25', '2016-12-27'], + [2017, '2017-12-25', null], + [2018, '2018-12-25', null], + [2019, '2019-12-25', null], + [2020, '2020-12-25', null], ]; return $data; @@ -80,6 +97,12 @@ public function testTranslation() $this->generateRandomYear(), [self::LOCALE => 'Christmas Day'] ); + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY2, + 2016, + [self::LOCALE => 'Christmas Holiday'] + ); } /** @@ -88,5 +111,6 @@ public function testTranslation() public function testHolidayType() { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + $this->assertHolidayType($this->region, self::HOLIDAY2, 2016, Holiday::TYPE_OFFICIAL); } } diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index c89930d49..162077f40 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia; @@ -27,6 +28,7 @@ class EasterMondayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn * The name of the holiday */ const HOLIDAY = 'easterMonday'; + const HOLIDAY2 = 'easterTuesday'; /** * Tests Easter Monday @@ -46,11 +48,28 @@ public function testHoliday($year, $expected) ); } + /** + * Tests Easter Tuesday for those years when ANZAC Day clashes with Easter Sunday or Monday + * + * @dataProvider HolidayDataProvider2 + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday2($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY2, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + /** * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test - * @throws \Exception */ public function HolidayDataProvider(): array { @@ -67,6 +86,25 @@ public function HolidayDataProvider(): array return $data; } + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider2(): array + { + $data = []; + + $data = [ + [2011, '2011-04-26'], + [2038, '2038-04-27'], + [2095, '2095-04-26'], + [2163, '2163-04-26'], + ]; + + return $data; + } + /** * Tests the translated name of the holiday defined in this test. */ @@ -78,6 +116,12 @@ public function testTranslation() $this->generateRandomYear(), [self::LOCALE => 'Easter Monday'] ); + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY2, + 2011, + [self::LOCALE => 'Easter Tuesday'] + ); } /** @@ -86,5 +130,6 @@ public function testTranslation() public function testHolidayType() { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + $this->assertHolidayType($this->region, self::HOLIDAY2, 2011, Holiday::TYPE_OFFICIAL); } } diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index d864a1d0d..9f57a557f 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -50,7 +50,6 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test - * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Australia/NSW/AnzacDayTest.php b/tests/Australia/NSW/AnzacDayTest.php new file mode 100644 index 000000000..b6029d5eb --- /dev/null +++ b/tests/Australia/NSW/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing ANZAC day in NSW (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/NSW/AustraliaDayTest.php b/tests/Australia/NSW/AustraliaDayTest.php new file mode 100644 index 000000000..a09a9b5d6 --- /dev/null +++ b/tests/Australia/NSW/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing Australia day in NSW (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/NSW/BankHolidayTest.php b/tests/Australia/NSW/BankHolidayTest.php new file mode 100644 index 000000000..bb3232ea1 --- /dev/null +++ b/tests/Australia/NSW/BankHolidayTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Bank Holiday in NSW (Australia).. + */ +class BankHolidayTest extends NSWBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'bankHoliday'; + + /** + * Tests Bank Holiday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-08-02'], + [2011, '2011-08-01'], + [2012, '2012-08-06'], + [2013, '2013-08-05'], + [2014, '2014-08-04'], + [2015, '2015-08-03'], + [2016, '2016-08-01'], + [2017, '2017-08-07'], + [2018, '2018-08-06'], + [2019, '2019-08-05'], + [2020, '2020-08-03'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Bank Holiday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_BANK); + } +} diff --git a/tests/Australia/NSW/BoxingDayTest.php b/tests/Australia/NSW/BoxingDayTest.php new file mode 100644 index 000000000..de2167bcc --- /dev/null +++ b/tests/Australia/NSW/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing Boxing Day in NSW (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\BoxingDayTest +{ +} diff --git a/tests/Australia/NSW/ChristmasDayTest.php b/tests/Australia/NSW/ChristmasDayTest.php new file mode 100644 index 000000000..0dccefdff --- /dev/null +++ b/tests/Australia/NSW/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing Christmas Day in NSW (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest +{ +} diff --git a/tests/Australia/NSW/EasterMondayTest.php b/tests/Australia/NSW/EasterMondayTest.php new file mode 100644 index 000000000..7b8fe6c40 --- /dev/null +++ b/tests/Australia/NSW/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing Easter Monday in NSW (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/NSW/EasterSaturdayTest.php b/tests/Australia/NSW/EasterSaturdayTest.php new file mode 100644 index 000000000..837194890 --- /dev/null +++ b/tests/Australia/NSW/EasterSaturdayTest.php @@ -0,0 +1,89 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Saturday in NSW (Australia).. + */ +class EasterSaturdayTest extends NSWBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easterSaturday'; + + /** + * Tests Easter Saturday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + $date->sub(new DateInterval('P1D')); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Saturday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php new file mode 100644 index 000000000..a59fcd188 --- /dev/null +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -0,0 +1,88 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Sunday in NSW (Australia).. + */ +class EasterSundayTest extends NSWBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easter'; + + /** + * Tests Easter Sunday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Sunday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/NSW/GoodFridayTest.php b/tests/Australia/NSW/GoodFridayTest.php new file mode 100644 index 000000000..6242782dc --- /dev/null +++ b/tests/Australia/NSW/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing Good Friday in NSW (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/NSW/LabourDayTest.php b/tests/Australia/NSW/LabourDayTest.php new file mode 100644 index 000000000..918ea1622 --- /dev/null +++ b/tests/Australia/NSW/LabourDayTest.php @@ -0,0 +1,93 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\NSW; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Labour Day in NSW (Australia).. + */ +class LabourDayTest extends NSWBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'labourDay'; + + /** + * Tests Labour Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-10-04'], + [2011, '2011-10-03'], + [2012, '2012-10-01'], + [2013, '2013-10-07'], + [2014, '2014-10-06'], + [2015, '2015-10-05'], + [2016, '2016-10-03'], + [2017, '2017-10-02'], + [2018, '2018-10-01'], + [2019, '2019-10-07'], + [2020, '2020-10-05'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Labour Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/NSW/NSWBaseTestCase.php b/tests/Australia/NSW/NSWBaseTestCase.php new file mode 100644 index 000000000..828924916 --- /dev/null +++ b/tests/Australia/NSW/NSWBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the NSW holiday provider. + */ +abstract class NSWBaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\NSW'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/NSW'; +} diff --git a/tests/Australia/NSW/NSWTest.php b/tests/Australia/NSW/NSWTest.php new file mode 100644 index 000000000..20a765b78 --- /dev/null +++ b/tests/Australia/NSW/NSWTest.php @@ -0,0 +1,66 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in NSW (Australia). + */ +class NSWTest extends NSWBaseTestCase +{ + public $region = 'Australia\NSW'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in NSW (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'easter', + 'easterSaturday', + 'queensBirthday', + 'labourDay', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Tests if all bank holidays in NSW (Australia) are defined by the provider class + */ + public function testBankHolidays() + { + $this->assertDefinedHolidays([ + 'bankHoliday', + ], $this->region, $this->year, Holiday::TYPE_BANK); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/NSW/NewYearsDayTest.php b/tests/Australia/NSW/NewYearsDayTest.php new file mode 100644 index 000000000..0e7ce0aff --- /dev/null +++ b/tests/Australia/NSW/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NSW; + +/** + * Class for testing New Years Day in NSW (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/NSW/QueensBirthdayTest.php b/tests/Australia/NSW/QueensBirthdayTest.php new file mode 100644 index 000000000..3759bb722 --- /dev/null +++ b/tests/Australia/NSW/QueensBirthdayTest.php @@ -0,0 +1,103 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\NSW; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Queen's Birthday in NSW (Australia).. + */ +class QueensBirthdayTest extends NSWBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-14'], + [2011, '2011-06-13'], + [2012, '2012-06-11'], + [2013, '2013-06-10'], + [2014, '2014-06-09'], + [2015, '2015-06-08'], + [2016, '2016-06-13'], + [2017, '2017-06-12'], + [2018, '2018-06-11'], + [2019, '2019-06-10'], + [2020, '2020-06-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/NT/AnzacDayTest.php b/tests/Australia/NT/AnzacDayTest.php new file mode 100644 index 000000000..5a71d2125 --- /dev/null +++ b/tests/Australia/NT/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing ANZAC day in NT (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/NT/AustraliaDayTest.php b/tests/Australia/NT/AustraliaDayTest.php new file mode 100644 index 000000000..cfb6e5241 --- /dev/null +++ b/tests/Australia/NT/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing Australia day in NT (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/NT/BoxingDayTest.php b/tests/Australia/NT/BoxingDayTest.php new file mode 100644 index 000000000..305cf0949 --- /dev/null +++ b/tests/Australia/NT/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing Boxing Day in NT (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\BoxingDayTest +{ +} diff --git a/tests/Australia/NT/ChristmasDayTest.php b/tests/Australia/NT/ChristmasDayTest.php new file mode 100644 index 000000000..8dce26352 --- /dev/null +++ b/tests/Australia/NT/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing Christmas Day in NT (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest +{ +} diff --git a/tests/Australia/NT/EasterMondayTest.php b/tests/Australia/NT/EasterMondayTest.php new file mode 100644 index 000000000..fd4f0e2df --- /dev/null +++ b/tests/Australia/NT/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing Easter Monday in NT (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/NT/EasterSaturdayTest.php b/tests/Australia/NT/EasterSaturdayTest.php new file mode 100644 index 000000000..718b6a6b3 --- /dev/null +++ b/tests/Australia/NT/EasterSaturdayTest.php @@ -0,0 +1,89 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Saturday in NT (Australia).. + */ +class EasterSaturdayTest extends NTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easterSaturday'; + + /** + * Tests Easter Saturday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + $date->sub(new DateInterval('P1D')); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Saturday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/NT/GoodFridayTest.php b/tests/Australia/NT/GoodFridayTest.php new file mode 100644 index 000000000..7eb41b953 --- /dev/null +++ b/tests/Australia/NT/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing Good Friday in NT (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/NT/MayDayTest.php b/tests/Australia/NT/MayDayTest.php new file mode 100644 index 000000000..82a8d1e16 --- /dev/null +++ b/tests/Australia/NT/MayDayTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing May Day in NT (Australia).. + */ +class MayDayTest extends NTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'mayDay'; + + /** + * Tests May Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-05-03'], + [2011, '2011-05-02'], + [2012, '2012-05-07'], + [2013, '2013-05-06'], + [2014, '2014-05-05'], + [2015, '2015-05-04'], + [2016, '2016-05-02'], + [2017, '2017-05-01'], + [2018, '2018-05-07'], + [2019, '2019-05-06'], + [2020, '2020-05-04'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'May Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/NT/NTBaseTestCase.php b/tests/Australia/NT/NTBaseTestCase.php new file mode 100644 index 000000000..5569f9df0 --- /dev/null +++ b/tests/Australia/NT/NTBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the NT holiday provider. + */ +abstract class NTBaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\NT'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/North'; +} diff --git a/tests/Australia/NT/NTTest.php b/tests/Australia/NT/NTTest.php new file mode 100644 index 000000000..12b1cc5cc --- /dev/null +++ b/tests/Australia/NT/NTTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in NT (Australia). + */ +class NTTest extends NTBaseTestCase +{ + public $region = 'Australia\NT'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in NT (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'easterSaturday', + 'queensBirthday', + 'mayDay', + 'picnicDay', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/NT/NewYearsDayTest.php b/tests/Australia/NT/NewYearsDayTest.php new file mode 100644 index 000000000..6df71f5a8 --- /dev/null +++ b/tests/Australia/NT/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +/** + * Class for testing New Years Day in NT (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/NT/PicnicDayTest.php b/tests/Australia/NT/PicnicDayTest.php new file mode 100644 index 000000000..2a852ef68 --- /dev/null +++ b/tests/Australia/NT/PicnicDayTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\NT; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Picnic Day in NT (Australia).. + */ +class PicnicDayTest extends NTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'picnicDay'; + + /** + * Tests Picnic Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-08-02'], + [2011, '2011-08-01'], + [2012, '2012-08-06'], + [2013, '2013-08-05'], + [2014, '2014-08-04'], + [2015, '2015-08-03'], + [2016, '2016-08-01'], + [2017, '2017-08-07'], + [2018, '2018-08-06'], + [2019, '2019-08-05'], + [2020, '2020-08-03'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Picnic Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/NT/QueensBirthdayTest.php b/tests/Australia/NT/QueensBirthdayTest.php new file mode 100644 index 000000000..99497b86e --- /dev/null +++ b/tests/Australia/NT/QueensBirthdayTest.php @@ -0,0 +1,103 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\NT; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Queen's Birthday in NT (Australia).. + */ +class QueensBirthdayTest extends NTBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-14'], + [2011, '2011-06-13'], + [2012, '2012-06-11'], + [2013, '2013-06-10'], + [2014, '2014-06-09'], + [2015, '2015-06-08'], + [2016, '2016-06-13'], + [2017, '2017-06-12'], + [2018, '2018-06-11'], + [2019, '2019-06-10'], + [2020, '2020-06-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index dc3b79619..01eb5de2c 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia; @@ -26,16 +27,18 @@ class NewYearsDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInt * The name of the holiday */ const HOLIDAY = 'newYearsDay'; + const HOLIDAY2 = 'newYearsHoliday'; /** * Tests New Years Day * * @dataProvider HolidayDataProvider * - * @param int $year the year for which the holiday defined in this test needs to be tested - * @param string $expected the expected date + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday */ - public function testHoliday($year, $expected) + public function testHoliday($year, $expected, $expectedExtra) { $this->assertHoliday( $this->region, @@ -43,6 +46,20 @@ public function testHoliday($year, $expected) $year, new DateTime($expected, new DateTimeZone($this->timezone)) ); + if ($expectedExtra === null) { + $this->assertNotHoliday( + $this->region, + self::HOLIDAY2, + $year + ); + } else { + $this->assertHoliday( + $this->region, + self::HOLIDAY2, + $year, + new DateTime($expectedExtra, new DateTimeZone($this->timezone)) + ); + } } /** @@ -53,20 +70,19 @@ public function testHoliday($year, $expected) public function HolidayDataProvider(): array { $data = [ - [2010, '2010-01-01'], - [2011, '2011-01-03'], - [2012, '2012-01-02'], - [2013, '2013-01-01'], - [2014, '2014-01-01'], - [2015, '2015-01-01'], - [2016, '2016-01-01'], - [2017, '2017-01-02'], - [2018, '2018-01-01'], - [2019, '2019-01-01'], - [2020, '2020-01-01'], + [2010, '2010-01-01', null], + [2011, '2011-01-01', '2011-01-03'], + [2012, '2012-01-01', '2012-01-02'], + [2013, '2013-01-01', null], + [2014, '2014-01-01', null], + [2015, '2015-01-01', null], + [2016, '2016-01-01', null], + [2017, '2017-01-01', '2017-01-02'], + [2018, '2018-01-01', null], + [2019, '2019-01-01', null], + [2020, '2020-01-01', null], ]; - return $data; } @@ -81,6 +97,12 @@ public function testTranslation() $this->generateRandomYear(), [self::LOCALE => 'New Year\'s Day'] ); + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY2, + 2017, + [self::LOCALE => 'New Year\'s Holiday'] + ); } /** @@ -89,5 +111,6 @@ public function testTranslation() public function testHolidayType() { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + $this->assertHolidayType($this->region, self::HOLIDAY2, 2017, Holiday::TYPE_OFFICIAL); } } diff --git a/tests/Australia/Queensland/AnzacDayTest.php b/tests/Australia/Queensland/AnzacDayTest.php new file mode 100644 index 000000000..1774415b5 --- /dev/null +++ b/tests/Australia/Queensland/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing ANZAC day in Queensland (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/Queensland/AustraliaDayTest.php b/tests/Australia/Queensland/AustraliaDayTest.php new file mode 100644 index 000000000..188eacb89 --- /dev/null +++ b/tests/Australia/Queensland/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing Australia day in Queensland (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/Queensland/BoxingDayTest.php b/tests/Australia/Queensland/BoxingDayTest.php new file mode 100644 index 000000000..22ab0d866 --- /dev/null +++ b/tests/Australia/Queensland/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing Boxing Day in Queensland (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\BoxingDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/AnzacDayTest.php b/tests/Australia/Queensland/Brisbane/AnzacDayTest.php new file mode 100644 index 000000000..67493969d --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing ANZAC day in Brisbane (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Queensland\AnzacDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php b/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php new file mode 100644 index 000000000..072348ed2 --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Australia day in Brisbane (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Queensland\AustraliaDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/BoxingDayTest.php b/tests/Australia/Queensland/Brisbane/BoxingDayTest.php new file mode 100644 index 000000000..d15d8d9e9 --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Boxing Day in Brisbane (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Queensland\BoxingDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php b/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php new file mode 100644 index 000000000..cc9a1609f --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +use Yasumi\tests\Australia\Queensland\QueenslandBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Queensland holiday provider. + */ +abstract class BrisbaneBaseTestCase extends QueenslandBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Queensland\Brisbane'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Brisbane'; +} diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php new file mode 100644 index 000000000..75a0d28ed --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php @@ -0,0 +1,55 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in Queensland (Australia). + */ +class BrisbaneTest extends BrisbaneBaseTestCase +{ + public $region = 'Australia\Queensland\Brisbane'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Queensland (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'labourDay', + 'peoplesDay', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php b/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php new file mode 100644 index 000000000..6783d16dd --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Christmas Day in Brisbane (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Queensland\ChristmasDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/EasterMondayTest.php b/tests/Australia/Queensland/Brisbane/EasterMondayTest.php new file mode 100644 index 000000000..323e476d7 --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Easter Monday in Brisbane (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Queensland\EasterMondayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/GoodFridayTest.php b/tests/Australia/Queensland/Brisbane/GoodFridayTest.php new file mode 100644 index 000000000..5c57b19fc --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Good Friday in Brisbane (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Queensland\GoodFridayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/LabourDayTest.php b/tests/Australia/Queensland/Brisbane/LabourDayTest.php new file mode 100644 index 000000000..684027438 --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/LabourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Labour Day in Brisbane (Australia).. + */ +class LabourDayTest extends \Yasumi\tests\Australia\Queensland\LabourDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php b/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php new file mode 100644 index 000000000..22fbc98a9 --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing New Years Day in Brisbane (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Queensland\NewYearsDayTest +{ +} diff --git a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php new file mode 100644 index 000000000..c2a7bbe6c --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Ekka People's Day in Brisbane (Australia).. + */ +class PeoplesDayTest extends BrisbaneBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'peoplesDay'; + + /** + * Tests Ekka People's Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-08-11'], + [2011, '2011-08-10'], + [2012, '2012-08-15'], + [2013, '2013-08-14'], + [2014, '2014-08-13'], + [2015, '2015-08-12'], + [2016, '2016-08-10'], + [2017, '2017-08-16'], + [2018, '2018-08-15'], + [2019, '2019-08-14'], + [2020, '2020-08-12'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Ekka People\'s Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php b/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php new file mode 100644 index 000000000..d7a4c2bde --- /dev/null +++ b/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland\Brisbane; + +/** + * Class for testing Queen's Birthday in Brisbane (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Queensland\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Queensland/ChristmasDayTest.php b/tests/Australia/Queensland/ChristmasDayTest.php new file mode 100644 index 000000000..40bc53e7c --- /dev/null +++ b/tests/Australia/Queensland/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing Christmas Day in Queensland (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest +{ +} diff --git a/tests/Australia/Queensland/EasterMondayTest.php b/tests/Australia/Queensland/EasterMondayTest.php new file mode 100644 index 000000000..ef2213d88 --- /dev/null +++ b/tests/Australia/Queensland/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing Easter Monday in Queensland (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/Queensland/GoodFridayTest.php b/tests/Australia/Queensland/GoodFridayTest.php new file mode 100644 index 000000000..4f069ab0a --- /dev/null +++ b/tests/Australia/Queensland/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing Good Friday in Queensland (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/Queensland/LabourDayTest.php b/tests/Australia/Queensland/LabourDayTest.php new file mode 100644 index 000000000..433dce198 --- /dev/null +++ b/tests/Australia/Queensland/LabourDayTest.php @@ -0,0 +1,93 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\Queensland; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Labour Day in Queensland (Australia).. + */ +class LabourDayTest extends QueenslandBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'labourDay'; + + /** + * Tests Labour Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-05-03'], + [2011, '2011-05-02'], + [2012, '2012-05-07'], + [2013, '2013-10-07'], + [2014, '2014-10-06'], + [2015, '2015-10-05'], + [2016, '2016-05-02'], + [2017, '2017-05-01'], + [2018, '2018-05-07'], + [2019, '2019-05-06'], + [2020, '2020-05-04'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Labour Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Queensland/NewYearsDayTest.php b/tests/Australia/Queensland/NewYearsDayTest.php new file mode 100644 index 000000000..c3dabe28f --- /dev/null +++ b/tests/Australia/Queensland/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +/** + * Class for testing New Years Day in Queensland (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/Queensland/QueensBirthdayTest.php b/tests/Australia/Queensland/QueensBirthdayTest.php new file mode 100644 index 000000000..6f10f34dc --- /dev/null +++ b/tests/Australia/Queensland/QueensBirthdayTest.php @@ -0,0 +1,103 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\Queensland; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Queen's Birthday in Queensland (Australia).. + */ +class QueensBirthdayTest extends QueenslandBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-14'], + [2011, '2011-06-13'], + [2012, '2012-10-01'], + [2013, '2013-06-10'], + [2014, '2014-06-09'], + [2015, '2015-06-08'], + [2016, '2016-10-03'], + [2017, '2017-10-02'], + [2018, '2018-10-01'], + [2019, '2019-10-07'], + [2020, '2020-10-05'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/Queensland/QueenslandBaseTestCase.php b/tests/Australia/Queensland/QueenslandBaseTestCase.php new file mode 100644 index 000000000..0d18c5760 --- /dev/null +++ b/tests/Australia/Queensland/QueenslandBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Queensland holiday provider. + */ +abstract class QueenslandBaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Queensland'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Queensland'; +} diff --git a/tests/Australia/Queensland/QueenslandTest.php b/tests/Australia/Queensland/QueenslandTest.php new file mode 100644 index 000000000..0264e4714 --- /dev/null +++ b/tests/Australia/Queensland/QueenslandTest.php @@ -0,0 +1,54 @@ + + */ + +namespace Yasumi\tests\Australia\Queensland; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in Queensland (Australia). + */ +class QueenslandTest extends QueenslandBaseTestCase +{ + public $region = 'Australia\Queensland'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Queensland (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'labourDay', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/SA/AdelaideCupDayTest.php b/tests/Australia/SA/AdelaideCupDayTest.php new file mode 100644 index 000000000..9a7f92faf --- /dev/null +++ b/tests/Australia/SA/AdelaideCupDayTest.php @@ -0,0 +1,112 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Adelaide Cup Day in SA (Australia).. + */ +class AdelaideCupDayTest extends SABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'adelaideCup'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1973; + + /** + * Tests Adelaide Cup Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2000, '2000-05-15'], + [2001, '2001-05-21'], + [2002, '2002-05-20'], + [2003, '2003-05-19'], + [2004, '2004-05-17'], + [2005, '2005-05-16'], + [2006, '2006-03-13'], + [2007, '2007-03-12'], + [2008, '2008-03-10'], + [2009, '2009-03-09'], + [2010, '2010-03-08'], + [2011, '2011-03-14'], + [2012, '2012-03-12'], + [2013, '2013-03-11'], + [2014, '2014-03-10'], + [2015, '2015-03-09'], + [2016, '2016-03-14'], + [2017, '2017-03-13'], + [2018, '2018-03-12'], + [2019, '2019-03-11'], + [2020, '2020-03-09'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Adelaide Cup'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/SA/AnzacDayTest.php b/tests/Australia/SA/AnzacDayTest.php new file mode 100644 index 000000000..69a05b01c --- /dev/null +++ b/tests/Australia/SA/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +/** + * Class for testing ANZAC day in SA (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/SA/AustraliaDayTest.php b/tests/Australia/SA/AustraliaDayTest.php new file mode 100644 index 000000000..67692d55d --- /dev/null +++ b/tests/Australia/SA/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +/** + * Class for testing Australia day in SA (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/SA/ChristmasDayTest.php b/tests/Australia/SA/ChristmasDayTest.php new file mode 100644 index 000000000..ebc9814c5 --- /dev/null +++ b/tests/Australia/SA/ChristmasDayTest.php @@ -0,0 +1,116 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\SA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Christmas Day in South Australia. + */ +class ChristmasDayTest extends SABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'christmasDay'; + const HOLIDAY2 = 'christmasHoliday'; + + /** + * Tests Christmas Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday + */ + public function testHoliday($year, $expected, $expectedExtra) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + if ($expectedExtra === null) { + $this->assertNotHoliday( + $this->region, + self::HOLIDAY2, + $year + ); + } else { + $this->assertHoliday( + $this->region, + self::HOLIDAY2, + $year, + new DateTime($expectedExtra, new DateTimeZone($this->timezone)) + ); + } + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider() + { + $data = [ + [2010, '2010-12-25', '2010-12-27'], + [2011, '2011-12-25', '2011-12-26'], + [2012, '2012-12-25', null], + [2013, '2013-12-25', null], + [2014, '2014-12-25', null], + [2015, '2015-12-25', null], + [2016, '2016-12-25', '2016-12-26'], + [2017, '2017-12-25', null], + [2018, '2018-12-25', null], + [2019, '2019-12-25', null], + [2020, '2020-12-25', null], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Christmas Day'] + ); + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY2, + 2016, + [self::LOCALE => 'Christmas Holiday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + $this->assertHolidayType($this->region, self::HOLIDAY2, 2016, Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/SA/EasterMondayTest.php b/tests/Australia/SA/EasterMondayTest.php new file mode 100644 index 000000000..2323d6588 --- /dev/null +++ b/tests/Australia/SA/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +/** + * Class for testing Easter Monday in SA (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/SA/EasterSaturdayTest.php b/tests/Australia/SA/EasterSaturdayTest.php new file mode 100644 index 000000000..7dc861833 --- /dev/null +++ b/tests/Australia/SA/EasterSaturdayTest.php @@ -0,0 +1,89 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Saturday in SA (Australia).. + */ +class EasterSaturdayTest extends SABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easterSaturday'; + + /** + * Tests Easter Saturday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + $date->sub(new DateInterval('P1D')); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Saturday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/SA/GoodFridayTest.php b/tests/Australia/SA/GoodFridayTest.php new file mode 100644 index 000000000..150e03531 --- /dev/null +++ b/tests/Australia/SA/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +/** + * Class for testing Good Friday in SA (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/LabourDayTest.php b/tests/Australia/SA/LabourDayTest.php similarity index 72% rename from tests/Australia/LabourDayTest.php rename to tests/Australia/SA/LabourDayTest.php index eb88afdb0..28d1eb96c 100644 --- a/tests/Australia/LabourDayTest.php +++ b/tests/Australia/SA/LabourDayTest.php @@ -8,9 +8,10 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ -namespace Yasumi\tests\Australia; +namespace Yasumi\tests\Australia\SA; use DateTime; use DateTimeZone; @@ -18,18 +19,15 @@ use Yasumi\tests\YasumiTestCaseInterface; /** - * Class for testing Labour Day in Australia. + * Class for testing Labour Day in SA (Australia).. */ -abstract class LabourDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInterface +class LabourDayTest extends SABaseTestCase implements YasumiTestCaseInterface { /** * The name of the holiday */ const HOLIDAY = 'labourDay'; - - protected $dateFormat; // picked a random date -- sorry :) - /** * Tests Labour Day * @@ -48,7 +46,6 @@ public function testHoliday($year, $expected) ); } - /** * Returns a list of test dates * @@ -56,7 +53,21 @@ public function testHoliday($year, $expected) */ public function HolidayDataProvider(): array { - return []; + $data = [ + [2010, '2010-10-04'], + [2011, '2011-10-03'], + [2012, '2012-10-01'], + [2013, '2013-10-07'], + [2014, '2014-10-06'], + [2015, '2015-10-05'], + [2016, '2016-10-03'], + [2017, '2017-10-02'], + [2018, '2018-10-01'], + [2019, '2019-10-07'], + [2020, '2020-10-05'], + ]; + + return $data; } /** diff --git a/tests/Australia/SA/NewYearsDayTest.php b/tests/Australia/SA/NewYearsDayTest.php new file mode 100644 index 000000000..588bc3eb9 --- /dev/null +++ b/tests/Australia/SA/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +/** + * Class for testing New Years Day in SA (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/SA/ProclamationDayTest.php b/tests/Australia/SA/ProclamationDayTest.php new file mode 100644 index 000000000..840388c20 --- /dev/null +++ b/tests/Australia/SA/ProclamationDayTest.php @@ -0,0 +1,97 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Proclamation Day in SA (Australia).. + */ +class ProclamationDayTest extends SABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'proclamationDay'; + + /** + * Tests Proclamation Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-12-28'], + [2011, '2011-12-27'], + [2012, '2012-12-26'], + [2013, '2013-12-26'], + [2014, '2014-12-26'], + [2015, '2015-12-28'], + [2016, '2016-12-27'], + [2017, '2017-12-26'], + [2018, '2018-12-26'], + [2019, '2019-12-26'], + [2020, '2020-12-28'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Proclamation Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/SA/QueensBirthdayTest.php b/tests/Australia/SA/QueensBirthdayTest.php new file mode 100644 index 000000000..87a0a7719 --- /dev/null +++ b/tests/Australia/SA/QueensBirthdayTest.php @@ -0,0 +1,103 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\SA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Queen's Birthday in SA (Australia).. + */ +class QueensBirthdayTest extends SABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-14'], + [2011, '2011-06-13'], + [2012, '2012-06-11'], + [2013, '2013-06-10'], + [2014, '2014-06-09'], + [2015, '2015-06-08'], + [2016, '2016-06-13'], + [2017, '2017-06-12'], + [2018, '2018-06-11'], + [2019, '2019-06-10'], + [2020, '2020-06-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/SA/SABaseTestCase.php b/tests/Australia/SA/SABaseTestCase.php new file mode 100644 index 000000000..49f870e57 --- /dev/null +++ b/tests/Australia/SA/SABaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Victoria holiday provider. + */ +abstract class SABaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\SA'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/South'; +} diff --git a/tests/Australia/SA/SATest.php b/tests/Australia/SA/SATest.php new file mode 100644 index 000000000..633c421c1 --- /dev/null +++ b/tests/Australia/SA/SATest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\SA; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in SA (Australia). + */ +class SATest extends SABaseTestCase +{ + public $region = 'Australia\SA'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in SA (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'proclamationDay', + 'australiaDay', + 'anzacDay', + 'easterSaturday', + 'queensBirthday', + 'labourDay', + 'adelaideCup' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1973); + } +} diff --git a/tests/Australia/Tasmania/AnzacDayTest.php b/tests/Australia/Tasmania/AnzacDayTest.php new file mode 100644 index 000000000..e6e847726 --- /dev/null +++ b/tests/Australia/Tasmania/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing ANZAC day in Tasmania (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/AustraliaDayTest.php b/tests/Australia/Tasmania/AustraliaDayTest.php new file mode 100644 index 000000000..cf5353e87 --- /dev/null +++ b/tests/Australia/Tasmania/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing Australia day in Tasmania (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/BoxingDayTest.php b/tests/Australia/Tasmania/BoxingDayTest.php new file mode 100644 index 000000000..4f2c4026c --- /dev/null +++ b/tests/Australia/Tasmania/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing Boxing Day in Tasmania (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php b/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php new file mode 100644 index 000000000..0a138a6ba --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing ANZAC day in central north Tasmania (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php b/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php new file mode 100644 index 000000000..0a5f52d7f --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Australia day in central north Tasmania (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php b/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php new file mode 100644 index 000000000..0f621dd49 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Boxing Day in central north Tasmania (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php new file mode 100644 index 000000000..bc2cd1bed --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +use Yasumi\tests\Australia\Tasmania\TasmaniaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the central north Tasmania holiday provider. + */ +abstract class CentralNorthBaseTestCase extends TasmaniaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\CentralNorth'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php new file mode 100644 index 000000000..41b2e3517 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in central north Tasmania (Australia). + */ +class CentralNorthTest extends CentralNorthBaseTestCase +{ + public $region = 'Australia\Tasmania\CentralNorth'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in central north Tasmania (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'devonportShow' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php b/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php new file mode 100644 index 000000000..61f734b98 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Christmas Day in central north Tasmania (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php new file mode 100644 index 000000000..56a2105d5 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Devonport Show Day in central north Tasmania (Australia).. + */ +class DevonportShowTest extends CentralNorthBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'devonportShow'; + + /** + * Tests Devonport Show Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-11-26'], + [2011, '2011-11-25'], + [2012, '2012-11-30'], + [2013, '2013-11-29'], + [2014, '2014-11-28'], + [2015, '2015-11-27'], + [2016, '2016-11-25'], + [2017, '2017-12-01'], + [2018, '2018-11-30'], + [2019, '2019-11-29'], + [2020, '2020-11-27'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Devonport Show'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php b/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php new file mode 100644 index 000000000..7649ed129 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Easter Monday in central north Tasmania (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php b/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php new file mode 100644 index 000000000..38d314b06 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Eight Hour Day in central north Tasmania (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php b/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php new file mode 100644 index 000000000..f298e1266 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Good Friday in central north Tasmania (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php b/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php new file mode 100644 index 000000000..a64597d15 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing New Years Day in central north Tasmania (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php b/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php new file mode 100644 index 000000000..f92e65f2b --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Queen's Birthday in central north Tasmania (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php b/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php new file mode 100644 index 000000000..3668c4b28 --- /dev/null +++ b/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\CentralNorth; + +/** + * Class for testing Recreation Day in central north Tasmania (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/ChristmasDayTest.php b/tests/Australia/Tasmania/ChristmasDayTest.php new file mode 100644 index 000000000..680cdc332 --- /dev/null +++ b/tests/Australia/Tasmania/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing Christmas Day in Tasmania (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/EasterMondayTest.php b/tests/Australia/Tasmania/EasterMondayTest.php new file mode 100644 index 000000000..c639a92eb --- /dev/null +++ b/tests/Australia/Tasmania/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing Easter Monday in Tasmania (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/EightHourDayTest.php b/tests/Australia/Tasmania/EightHourDayTest.php new file mode 100644 index 000000000..18129b93a --- /dev/null +++ b/tests/Australia/Tasmania/EightHourDayTest.php @@ -0,0 +1,93 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\Tasmania; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Eight Hour Day in Tasmania (Australia).. + */ +class EightHourDayTest extends TasmaniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'eightHourDay'; + + /** + * Tests Eight Hour Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-03-08'], + [2011, '2011-03-14'], + [2012, '2012-03-12'], + [2013, '2013-03-11'], + [2014, '2014-03-10'], + [2015, '2015-03-09'], + [2016, '2016-03-14'], + [2017, '2017-03-13'], + [2018, '2018-03-12'], + [2019, '2019-03-11'], + [2020, '2020-03-09'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Eight Hour Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php b/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php new file mode 100644 index 000000000..4114b20d2 --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing ANZAC day in Flinders Island (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php b/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php new file mode 100644 index 000000000..98050ac40 --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Australia day in Flinders Island (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php b/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php new file mode 100644 index 000000000..754a0376c --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Boxing Day in Flinders Island (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php b/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php new file mode 100644 index 000000000..ac5d09da2 --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Christmas Day in Flinders Island (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php b/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php new file mode 100644 index 000000000..f5f5dc2ee --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Easter Monday in Flinders Island (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php b/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php new file mode 100644 index 000000000..7b91c9e68 --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Eight Hour Day in Flinders Island (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php new file mode 100644 index 000000000..4523287b1 --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +use Yasumi\tests\Australia\Tasmania\TasmaniaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Flinders Island holiday provider. + */ +abstract class FlindersIslandBaseTestCase extends TasmaniaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\FlindersIsland'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php new file mode 100644 index 000000000..9e39e807c --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Flinders Island Show Day in Flinders Island (Australia).. + */ +class FlindersIslandShowTest extends FlindersIslandBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'flindersIslandShow'; + + /** + * Tests Flinders Island Show Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-10-15'], + [2011, '2011-10-14'], + [2012, '2012-10-19'], + [2013, '2013-10-18'], + [2014, '2014-10-17'], + [2015, '2015-10-16'], + [2016, '2016-10-14'], + [2017, '2017-10-20'], + [2018, '2018-10-19'], + [2019, '2019-10-18'], + [2020, '2020-10-16'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Flinders Island Show'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php new file mode 100644 index 000000000..bf467dbdb --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in Flinders Island (Australia). + */ +class FlindersIslandTest extends FlindersIslandBaseTestCase +{ + public $region = 'Australia\Tasmania\FlindersIsland'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Flinders Island (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'flindersIslandShow' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php b/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php new file mode 100644 index 000000000..734a680cf --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Good Friday in Flinders Island (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php b/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php new file mode 100644 index 000000000..30b1ccce8 --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing New Years Day in Flinders Island (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php b/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php new file mode 100644 index 000000000..77355d31d --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Queen's Birthday in Flinders Island (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php b/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php new file mode 100644 index 000000000..6054fd3bf --- /dev/null +++ b/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; + +/** + * Class for testing Recreation Day in Flinders Island (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/GoodFridayTest.php b/tests/Australia/Tasmania/GoodFridayTest.php new file mode 100644 index 000000000..8b36d2997 --- /dev/null +++ b/tests/Australia/Tasmania/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing Good Friday in Tasmania (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php b/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php new file mode 100644 index 000000000..031662f56 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing ANZAC day in King Island (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php b/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php new file mode 100644 index 000000000..52402e3d1 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Australia day in King Island (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php b/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php new file mode 100644 index 000000000..0b525bc90 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Boxing Day in King Island (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php b/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php new file mode 100644 index 000000000..445e5f687 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Christmas Day in King Island (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php b/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php new file mode 100644 index 000000000..7da480a94 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Easter Monday in King Island (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php b/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php new file mode 100644 index 000000000..a502a5c3c --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Eight Hour Day in King Island (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php b/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php new file mode 100644 index 000000000..5897f36d2 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Good Friday in King Island (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php b/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php new file mode 100644 index 000000000..63bfe022c --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +use Yasumi\tests\Australia\Tasmania\TasmaniaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the King Island holiday provider. + */ +abstract class KingIslandBaseTestCase extends TasmaniaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\KingIsland'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php new file mode 100644 index 000000000..937446892 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing King Island Show Day in King Island (Australia).. + */ +class KingIslandShowTest extends KingIslandBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'kingIslandShow'; + + /** + * Tests King Island Show Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-03-02'], + [2011, '2011-03-01'], + [2012, '2012-03-06'], + [2013, '2013-03-05'], + [2014, '2014-03-04'], + [2015, '2015-03-03'], + [2016, '2016-03-01'], + [2017, '2017-03-07'], + [2018, '2018-03-06'], + [2019, '2019-03-05'], + [2020, '2020-03-03'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'King Island Show'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php new file mode 100644 index 000000000..0231687fc --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in Flinders Island (Australia). + */ +class KingIslandTest extends KingIslandBaseTestCase +{ + public $region = 'Australia\Tasmania\KingIsland'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in King Island (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'kingIslandShow' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php b/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php new file mode 100644 index 000000000..b45d3aeaf --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing New Years Day in King Island (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php b/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php new file mode 100644 index 000000000..348597b80 --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Queen's Birthday in King Island (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php b/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php new file mode 100644 index 000000000..04363dd7a --- /dev/null +++ b/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\KingIsland; + +/** + * Class for testing Recreation Day in King Island (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/NewYearsDayTest.php b/tests/Australia/Tasmania/NewYearsDayTest.php new file mode 100644 index 000000000..4bbc6c878 --- /dev/null +++ b/tests/Australia/Tasmania/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +/** + * Class for testing New Years Day in Tasmania (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/AnzacDayTest.php b/tests/Australia/Tasmania/Northeast/AnzacDayTest.php new file mode 100644 index 000000000..bba3bb613 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing ANZAC day in northeastern Tasmania (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php b/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php new file mode 100644 index 000000000..23a1c7233 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Australia day in northeastern Tasmania (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/BoxingDayTest.php b/tests/Australia/Tasmania/Northeast/BoxingDayTest.php new file mode 100644 index 000000000..3b7271284 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Boxing Day in northeastern Tasmania (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php b/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php new file mode 100644 index 000000000..e3a8fc974 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Christmas Day in northeastern Tasmania (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/EasterMondayTest.php b/tests/Australia/Tasmania/Northeast/EasterMondayTest.php new file mode 100644 index 000000000..46c6f404e --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Easter Monday in northeastern Tasmania (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/EightHourDayTest.php b/tests/Australia/Tasmania/Northeast/EightHourDayTest.php new file mode 100644 index 000000000..d9d1842fc --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Eight Hour Day in northeastern Tasmania (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/GoodFridayTest.php b/tests/Australia/Tasmania/Northeast/GoodFridayTest.php new file mode 100644 index 000000000..172cc4c40 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Good Friday in northeastern Tasmania (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php new file mode 100644 index 000000000..b208dfbc0 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Launceston Show Day in northeastern Tasmania (Australia).. + */ +class LauncestonShowTest extends NortheastBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'launcestonShow'; + + /** + * Tests Launceston Show Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-10-07'], + [2011, '2011-10-06'], + [2012, '2012-10-11'], + [2013, '2013-10-10'], + [2014, '2014-10-09'], + [2015, '2015-10-08'], + [2016, '2016-10-06'], + [2017, '2017-10-12'], + [2018, '2018-10-11'], + [2019, '2019-10-10'], + [2020, '2020-10-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Royal Launceston Show'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php b/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php new file mode 100644 index 000000000..4b5bbb166 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing New Years Day in northeastern Tasmania (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php b/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php new file mode 100644 index 000000000..bdb1cc47f --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +use Yasumi\tests\Australia\Tasmania\TasmaniaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the northeastern Tasmania holiday provider. + */ +abstract class NortheastBaseTestCase extends TasmaniaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\Northeast'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/Northeast/NortheastTest.php b/tests/Australia/Tasmania/Northeast/NortheastTest.php new file mode 100644 index 000000000..ee39381a8 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/NortheastTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in northeastern Tasmania (Australia). + */ +class NortheastTest extends NortheastBaseTestCase +{ + public $region = 'Australia\Tasmania\Northeast'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in northeastern Tasmania (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'launcestonShow' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php b/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php new file mode 100644 index 000000000..509011f53 --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Queen's Birthday in northeast Tasmania (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/Northeast/RecreationDayTest.php b/tests/Australia/Tasmania/Northeast/RecreationDayTest.php new file mode 100644 index 000000000..6454edf2c --- /dev/null +++ b/tests/Australia/Tasmania/Northeast/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northeast; + +/** + * Class for testing Recreation Day in northeastern Tasmania (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/AnzacDayTest.php b/tests/Australia/Tasmania/Northwest/AnzacDayTest.php new file mode 100644 index 000000000..e3b135e8f --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing ANZAC day in northwestern Tasmania (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php b/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php new file mode 100644 index 000000000..3ceacc334 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Australia day in northwestern Tasmania (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/BoxingDayTest.php b/tests/Australia/Tasmania/Northwest/BoxingDayTest.php new file mode 100644 index 000000000..41c45a491 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Boxing Day in northwestern Tasmania (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php new file mode 100644 index 000000000..47c51f0f2 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Burnie Show Day in northwestern Tasmania (Australia).. + */ +class BurnieShowTest extends NorthwestBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'burnieShow'; + + /** + * Tests Burnie Show Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-10-01'], + [2011, '2011-09-30'], + [2012, '2012-10-05'], + [2013, '2013-10-04'], + [2014, '2014-10-03'], + [2015, '2015-10-02'], + [2016, '2016-09-30'], + [2017, '2017-10-06'], + [2018, '2018-10-05'], + [2019, '2019-10-04'], + [2020, '2020-10-02'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Burnie Show'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php b/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php new file mode 100644 index 000000000..6ab70382d --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Christmas Day in northwestern Tasmania (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php new file mode 100644 index 000000000..a949e12d8 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing AGFEST in northwestern Tasmania (Australia).. + */ +class AGFESTTest extends CircularHeadBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'agfest'; + + /** + * Tests AGFEST + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-05-07'], + [2011, '2011-05-06'], + [2012, '2012-05-04'], + [2013, '2013-05-03'], + [2014, '2014-05-02'], + [2015, '2015-05-08'], + [2016, '2016-05-06'], + [2017, '2017-05-05'], + [2018, '2018-05-04'], + [2019, '2019-05-03'], + [2020, '2020-05-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'AGFEST'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php new file mode 100644 index 000000000..3a2399bca --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing ANZAC day in Circular Head (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php new file mode 100644 index 000000000..609da1dd6 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Australia day in Circular Head (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php new file mode 100644 index 000000000..daacfb923 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Boxing Day in Circular Head (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php new file mode 100644 index 000000000..388598c89 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Burnie Show Day in Circular Head (Australia).. + */ +class BurnieShowTest extends \Yasumi\tests\Australia\Tasmania\Northwest\BurnieShowTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php new file mode 100644 index 000000000..b81b2d6d0 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Christmas Day in Circular Head (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php new file mode 100644 index 000000000..540c7bb80 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +use Yasumi\tests\Australia\Tasmania\Northwest\NorthwestBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the northwestern Tasmania holiday provider. + */ +abstract class CircularHeadBaseTestCase extends NorthwestBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\Northwest\CircularHead'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php new file mode 100644 index 000000000..7f03be153 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php @@ -0,0 +1,57 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in Circular Head (Australia). + */ +class CircularHeadTest extends CircularHeadBaseTestCase +{ + public $region = 'Australia\Tasmania\Northwest\CircularHead'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Circular Head (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'burnieShow', + 'agfest', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php new file mode 100644 index 000000000..7dee65cb2 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Easter Monday in Circular Head (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php new file mode 100644 index 000000000..6261780cc --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Eight Hour Day in Circular Head (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php new file mode 100644 index 000000000..bf078cf28 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Good Friday in Circular Head (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php new file mode 100644 index 000000000..47fc63c8e --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing New Years Day in Circular Head (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php new file mode 100644 index 000000000..b2efd02fa --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Queen's Birthday in Circular Head (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php new file mode 100644 index 000000000..0da851fac --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; + +/** + * Class for testing Recreation Day in Circular Head (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\Northwest\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/EasterMondayTest.php b/tests/Australia/Tasmania/Northwest/EasterMondayTest.php new file mode 100644 index 000000000..a81c5e19a --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Easter Monday in northwestern Tasmania (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/EightHourDayTest.php b/tests/Australia/Tasmania/Northwest/EightHourDayTest.php new file mode 100644 index 000000000..135c41fba --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Eight Hour Day in northwestern Tasmania (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/GoodFridayTest.php b/tests/Australia/Tasmania/Northwest/GoodFridayTest.php new file mode 100644 index 000000000..554618725 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Good Friday in northwestern Tasmania (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php b/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php new file mode 100644 index 000000000..2c2df13ea --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing New Years Day in northwestern Tasmania (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php b/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php new file mode 100644 index 000000000..7f81bb90e --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +use Yasumi\tests\Australia\Tasmania\TasmaniaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the northwestern Tasmania holiday provider. + */ +abstract class NorthwestBaseTestCase extends TasmaniaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\Northwest'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/Northwest/NorthwestTest.php b/tests/Australia/Tasmania/Northwest/NorthwestTest.php new file mode 100644 index 000000000..b284ddeed --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/NorthwestTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in northwestern Tasmania (Australia). + */ +class NorthwestTest extends NorthwestBaseTestCase +{ + public $region = 'Australia\Tasmania\Northwest'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'burnieShow' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php b/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php new file mode 100644 index 000000000..edb25a827 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Queen's Birthday in northwest Tasmania (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/Northwest/RecreationDayTest.php b/tests/Australia/Tasmania/Northwest/RecreationDayTest.php new file mode 100644 index 000000000..bcc6366d6 --- /dev/null +++ b/tests/Australia/Tasmania/Northwest/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\Northwest; + +/** + * Class for testing Recreation Day in northwestern Tasmania (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/QueensBirthdayTest.php b/tests/Australia/Tasmania/QueensBirthdayTest.php new file mode 100644 index 000000000..0f03b78aa --- /dev/null +++ b/tests/Australia/Tasmania/QueensBirthdayTest.php @@ -0,0 +1,103 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\Tasmania; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Queen's Birthday in Tasmania (Australia).. + */ +class QueensBirthdayTest extends TasmaniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-14'], + [2011, '2011-06-13'], + [2012, '2012-06-11'], + [2013, '2013-06-10'], + [2014, '2014-06-09'], + [2015, '2015-06-08'], + [2016, '2016-06-13'], + [2017, '2017-06-12'], + [2018, '2018-06-11'], + [2019, '2019-06-10'], + [2020, '2020-06-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/Tasmania/RecreationDayTest.php b/tests/Australia/Tasmania/RecreationDayTest.php new file mode 100644 index 000000000..77a9b8c58 --- /dev/null +++ b/tests/Australia/Tasmania/RecreationDayTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Recreation Day in Tasmania (Australia).. + */ +class RecreationDayTest extends TasmaniaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'recreationDay'; + + /** + * Tests Recreation Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-11-01'], + [2011, '2011-11-07'], + [2012, '2012-11-05'], + [2013, '2013-11-04'], + [2014, '2014-11-03'], + [2015, '2015-11-02'], + [2016, '2016-11-07'], + [2017, '2017-11-06'], + [2018, '2018-11-05'], + [2019, '2019-11-04'], + [2020, '2020-11-02'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Recreation Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/South/AnzacDayTest.php b/tests/Australia/Tasmania/South/AnzacDayTest.php new file mode 100644 index 000000000..1f10d16a7 --- /dev/null +++ b/tests/Australia/Tasmania/South/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing ANZAC day in southern Tasmania (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/AustraliaDayTest.php b/tests/Australia/Tasmania/South/AustraliaDayTest.php new file mode 100644 index 000000000..37cebbfc8 --- /dev/null +++ b/tests/Australia/Tasmania/South/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Australia day in southern Tasmania (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/BoxingDayTest.php b/tests/Australia/Tasmania/South/BoxingDayTest.php new file mode 100644 index 000000000..015228519 --- /dev/null +++ b/tests/Australia/Tasmania/South/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Boxing Day in soutehrn Tasmania (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/ChristmasDayTest.php b/tests/Australia/Tasmania/South/ChristmasDayTest.php new file mode 100644 index 000000000..d3faa1943 --- /dev/null +++ b/tests/Australia/Tasmania/South/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Christmas Day in southern Tasmania (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/EasterMondayTest.php b/tests/Australia/Tasmania/South/EasterMondayTest.php new file mode 100644 index 000000000..b1b47002e --- /dev/null +++ b/tests/Australia/Tasmania/South/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Easter Monday in southern Tasmania (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/South/EightHourDayTest.php b/tests/Australia/Tasmania/South/EightHourDayTest.php new file mode 100644 index 000000000..7e9afb0ed --- /dev/null +++ b/tests/Australia/Tasmania/South/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Eight Hour Day in southern Tasmania (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/GoodFridayTest.php b/tests/Australia/Tasmania/South/GoodFridayTest.php new file mode 100644 index 000000000..069393414 --- /dev/null +++ b/tests/Australia/Tasmania/South/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Good Friday in southern Tasmania (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/South/HobartShowTest.php b/tests/Australia/Tasmania/South/HobartShowTest.php new file mode 100644 index 000000000..f233fd16a --- /dev/null +++ b/tests/Australia/Tasmania/South/HobartShowTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Royal Hobart Show Day in southern Tasmania (Australia).. + */ +class HobartShowTest extends SouthBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'hobartShow'; + + /** + * Tests Royal Hobart Show Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-10-21'], + [2011, '2011-10-20'], + [2012, '2012-10-25'], + [2013, '2013-10-24'], + [2014, '2014-10-23'], + [2015, '2015-10-22'], + [2016, '2016-10-20'], + [2017, '2017-10-26'], + [2018, '2018-10-25'], + [2019, '2019-10-24'], + [2020, '2020-10-22'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Royal Hobart Show'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/South/NewYearsDayTest.php b/tests/Australia/Tasmania/South/NewYearsDayTest.php new file mode 100644 index 000000000..428174212 --- /dev/null +++ b/tests/Australia/Tasmania/South/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing New Years Day in soutehrn Tasmania (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/QueensBirthdayTest.php b/tests/Australia/Tasmania/South/QueensBirthdayTest.php new file mode 100644 index 000000000..cbdfc69d4 --- /dev/null +++ b/tests/Australia/Tasmania/South/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Queen's Birthday in southe0rn Tasmania (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/South/RecreationDayTest.php b/tests/Australia/Tasmania/South/RecreationDayTest.php new file mode 100644 index 000000000..771923f37 --- /dev/null +++ b/tests/Australia/Tasmania/South/RecreationDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +/** + * Class for testing Recreation Day in southern Tasmania (Australia).. + */ +class RecreationDayTest extends \Yasumi\tests\Australia\Tasmania\RecreationDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/SouthBaseTestCase.php b/tests/Australia/Tasmania/South/SouthBaseTestCase.php new file mode 100644 index 000000000..c3a379ce8 --- /dev/null +++ b/tests/Australia/Tasmania/South/SouthBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +use Yasumi\tests\Australia\Tasmania\TasmaniaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the northwestern Tasmania holiday provider. + */ +abstract class SouthBaseTestCase extends TasmaniaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\South'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/South/SouthTest.php b/tests/Australia/Tasmania/South/SouthTest.php new file mode 100644 index 000000000..4a8ce3ffb --- /dev/null +++ b/tests/Australia/Tasmania/South/SouthTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in southern Tasmania (Australia). + */ +class SouthTest extends SouthBaseTestCase +{ + public $region = 'Australia\Tasmania\South'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + 'hobartShow' + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php b/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php new file mode 100644 index 000000000..81518e4e8 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing ANZAC day in southeastern Tasmania (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\Tasmania\South\AnzacDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php b/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php new file mode 100644 index 000000000..5e3ebdb91 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast\CircularHead; + +/** + * Class for testing Australia day in southeastern Tasmania (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\Tasmania\South\AustraliaDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php b/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php new file mode 100644 index 000000000..5d0ba2b5c --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Boxing Day in southeastern Tasmania (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\Tasmania\South\BoxingDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php b/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php new file mode 100644 index 000000000..02623dbc7 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Christmas Day in southeastern Tasmania (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\Tasmania\South\ChristmasDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php b/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php new file mode 100644 index 000000000..db112785f --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Easter Monday in southeastern Tasmania (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\Tasmania\South\EasterMondayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php b/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php new file mode 100644 index 000000000..64f5a2752 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Eight Hour Day in southeastern Tasmania (Australia).. + */ +class EightHourDayTest extends \Yasumi\tests\Australia\Tasmania\South\EightHourDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php b/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php new file mode 100644 index 000000000..3437ddf40 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Good Friday in southeastern Tasmania (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\Tasmania\South\GoodFridayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php new file mode 100644 index 000000000..6aaab2b83 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Burnie Show Day in northwestern Tasmania (Australia).. + */ +class HobartRegattaTest extends SoutheastBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'hobartRegatta'; + + /** + * Tests Royal Hobart Regatta + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-02-08'], + [2011, '2011-02-14'], + [2012, '2012-02-13'], + [2013, '2013-02-11'], + [2014, '2014-02-10'], + [2015, '2015-02-09'], + [2016, '2016-02-08'], + [2017, '2017-02-13'], + [2018, '2018-02-12'], + [2019, '2019-02-11'], + [2020, '2020-02-10'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Royal Hobart Regatta'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php b/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php new file mode 100644 index 000000000..e380e449e --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Hobart Show Day in southeastern Tasmania (Australia).. + */ +class HobartShowTest extends \Yasumi\tests\Australia\Tasmania\South\HobartShowTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php b/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php new file mode 100644 index 000000000..ac3a3a7ff --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing New Years Day in southeastern Tasmania (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\Tasmania\South\NewYearsDayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php b/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php new file mode 100644 index 000000000..2879c67b2 --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +/** + * Class for testing Queen's Birthday in southeastern Tasmania (Australia).. + */ +class QueensBirthdayTest extends \Yasumi\tests\Australia\Tasmania\South\QueensBirthdayTest +{ +} diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php b/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php new file mode 100644 index 000000000..102f8169c --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +use Yasumi\tests\Australia\Tasmania\South\SouthBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the northwestern Tasmania holiday provider. + */ +abstract class SoutheastBaseTestCase extends SouthBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania\South\Southeast'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Hobart'; +} diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php new file mode 100644 index 000000000..afaa1b02b --- /dev/null +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php @@ -0,0 +1,56 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in southeastern Tasmania (Australia). + */ +class SoutheastTest extends SoutheastBaseTestCase +{ + public $region = 'Australia\Tasmania\South\Southeast'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Circular Head (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'hobartShow', + 'hobartRegatta', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Tasmania/TasmaniaBaseTestCase.php b/tests/Australia/Tasmania/TasmaniaBaseTestCase.php new file mode 100644 index 000000000..d0dc42760 --- /dev/null +++ b/tests/Australia/Tasmania/TasmaniaBaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Victoria holiday provider. + */ +abstract class TasmaniaBaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\Tasmania'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/Tasmania'; +} diff --git a/tests/Australia/Tasmania/TasmaniaTest.php b/tests/Australia/Tasmania/TasmaniaTest.php new file mode 100644 index 000000000..2712bcf61 --- /dev/null +++ b/tests/Australia/Tasmania/TasmaniaTest.php @@ -0,0 +1,55 @@ + + */ + +namespace Yasumi\tests\Australia\Tasmania; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in Tasmania (Australia). + */ +class TasmaniaTest extends TasmaniaBaseTestCase +{ + public $region = 'Australia\Tasmania'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in Tasmania (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'eightHourDay', + 'recreationDay', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index d9fef3876..d4500e445 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia\Victoria; @@ -28,7 +29,7 @@ class AFLGrandFinalFridayTest extends VictoriaBaseTestCase implements YasumiTest const HOLIDAY = 'aflGrandFinalFriday'; const ESTABLISHMENT_YEAR = 2015; - const LAST_KNOWN_YEAR = 2016; + const LAST_KNOWN_YEAR = 2018; /** * Tests AFL Grand Final Friday @@ -93,6 +94,8 @@ public function HolidayDataProvider(): array $data = [ [2015, '2015-10-02'], [2016, '2016-09-30'], + [2017, '2017-09-29'], + [2018, '2018-09-28'], ]; return $data; diff --git a/tests/Australia/Victoria/ChristmasDayTest.php b/tests/Australia/Victoria/ChristmasDayTest.php index 3e8c38a09..3439559b4 100644 --- a/tests/Australia/Victoria/ChristmasDayTest.php +++ b/tests/Australia/Victoria/ChristmasDayTest.php @@ -13,7 +13,7 @@ namespace Yasumi\tests\Australia\Victoria; /** - * Class for testing Christmas Day in the Victoria (Australia).. + * Class for testing Christmas Day in Victoria (Australia).. */ class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest { diff --git a/tests/Australia/Victoria/EasterSaturdayTest.php b/tests/Australia/Victoria/EasterSaturdayTest.php new file mode 100644 index 000000000..a15c5c0d1 --- /dev/null +++ b/tests/Australia/Victoria/EasterSaturdayTest.php @@ -0,0 +1,89 @@ + + */ + +namespace Yasumi\tests\Australia\Victoria; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Saturday in Victoria (Australia).. + */ +class EasterSaturdayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easterSaturday'; + + /** + * Tests Easter Saturday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + $date->sub(new DateInterval('P1D')); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Saturday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php new file mode 100644 index 000000000..ba36b709b --- /dev/null +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -0,0 +1,88 @@ + + */ + +namespace Yasumi\tests\Australia\Victoria; + +use DateInterval; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Easter Sunday in Victoria (Australia).. + */ +class EasterSundayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'easter'; + + /** + * Tests Easter Sunday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < 50; $y++) { + $year = $this->generateRandomYear(); + $date = $this->calculateEaster($year, $this->timezone); + + $data[] = [$year, $date->format('Y-m-d')]; + } + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(), + [self::LOCALE => 'Easter Sunday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index 3b06030a7..1e7db9fad 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -8,20 +8,43 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia\Victoria; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + /** * Class for testing Labour Day in Victoria (Australia).. */ -class LabourDayTest extends \Yasumi\tests\Australia\LabourDayTest +class LabourDayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterface { - public $region = 'Australia\Victoria'; - - public $timezone = 'Australia/Melbourne'; + /** + * The name of the holiday + */ + const HOLIDAY = 'labourDay'; - protected $dateFormat = 'second Monday of March'; + /** + * Tests Labour Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } /** * Returns a list of test dates @@ -44,7 +67,27 @@ public function HolidayDataProvider(): array [2020, '2020-03-09'], ]; - return $data; } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Labour Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } } diff --git a/tests/Australia/Victoria/MelbourneCupDayTest.php b/tests/Australia/Victoria/MelbourneCupDayTest.php new file mode 100644 index 000000000..2d9beafb4 --- /dev/null +++ b/tests/Australia/Victoria/MelbourneCupDayTest.php @@ -0,0 +1,102 @@ + + */ + +namespace Yasumi\tests\Australia\Victoria; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Melbourne cup Day in Victoria (Australia).. + */ +class MelbourneCupDayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'melbourneCup'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1877; + + /** + * Tests Melbourne Cup Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-11-02'], + [2011, '2011-11-01'], + [2012, '2012-11-06'], + [2013, '2013-11-05'], + [2014, '2014-11-04'], + [2015, '2015-11-03'], + [2016, '2016-11-01'], + [2017, '2017-11-07'], + [2018, '2018-11-06'], + [2019, '2019-11-05'], + [2020, '2020-11-03'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Melbourne Cup'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/Victoria/QueensBirthdayTest.php b/tests/Australia/Victoria/QueensBirthdayTest.php index 39fe62d18..0d9f0c602 100644 --- a/tests/Australia/Victoria/QueensBirthdayTest.php +++ b/tests/Australia/Victoria/QueensBirthdayTest.php @@ -8,16 +8,96 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia\Victoria; +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + /** - * Class for testing Queens Birthday in Victoria (Australia).. + * Class for testing Queen's Birthday in Victoria (Australia).. */ -class QueensBirthdayTest extends \Yasumi\tests\Australia\QueensBirthdayTest +class QueensBirthdayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterface { - public $region = 'Australia\Victoria'; + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-14'], + [2011, '2011-06-13'], + [2012, '2012-06-11'], + [2013, '2013-06-10'], + [2014, '2014-06-09'], + [2015, '2015-06-08'], + [2016, '2016-06-13'], + [2017, '2017-06-12'], + [2018, '2018-06-11'], + [2019, '2019-06-10'], + [2020, '2020-06-08'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } - protected $dateFormat = 'second monday of june'; + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } } diff --git a/tests/Australia/Victoria/VictoriaBaseTestCase.php b/tests/Australia/Victoria/VictoriaBaseTestCase.php index 666b40d94..eed0a5851 100644 --- a/tests/Australia/Victoria/VictoriaBaseTestCase.php +++ b/tests/Australia/Victoria/VictoriaBaseTestCase.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia\Victoria; @@ -30,5 +31,5 @@ abstract class VictoriaBaseTestCase extends AustraliaBaseTestCase /** * Timezone in which this provider has holidays defined */ - public $timezone = 'Australia/Melbourne'; + public $timezone = 'Australia/Victoria'; } diff --git a/tests/Australia/Victoria/VictoriaTest.php b/tests/Australia/Victoria/VictoriaTest.php index 7cf9ccc10..2440b6602 100644 --- a/tests/Australia/Victoria/VictoriaTest.php +++ b/tests/Australia/Victoria/VictoriaTest.php @@ -8,17 +8,17 @@ * file that was distributed with this source code. * * @author Sacha Telgenhof + * @author William Sanders */ namespace Yasumi\tests\Australia\Victoria; use Yasumi\Holiday; -use Yasumi\tests\Australia\AustraliaTest; /** * Class for testing holidays in Victoria (Australia). */ -class VictoriaTest extends AustraliaTest +class VictoriaTest extends VictoriaBaseTestCase { public $region = 'Australia\Victoria'; @@ -40,9 +40,12 @@ public function testOfficialHolidays() 'secondChristmasDay', 'australiaDay', 'anzacDay', + 'easter', + 'easterSaturday', 'queensBirthday', 'labourDay', - 'aflGrandFinalFriday' + 'aflGrandFinalFriday', + 'melbourneCup' ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); } @@ -51,6 +54,6 @@ public function testOfficialHolidays() */ protected function setUp() { - $this->year = $this->generateRandomYear(2015, 2016); + $this->year = $this->generateRandomYear(2015, 2018); } } diff --git a/tests/Australia/WA/AnzacDayTest.php b/tests/Australia/WA/AnzacDayTest.php new file mode 100644 index 000000000..da81db658 --- /dev/null +++ b/tests/Australia/WA/AnzacDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing ANZAC day in WA (Australia).. + */ +class AnzacDayTest extends \Yasumi\tests\Australia\AnzacDayTest +{ +} diff --git a/tests/Australia/WA/AustraliaDayTest.php b/tests/Australia/WA/AustraliaDayTest.php new file mode 100644 index 000000000..47f15b5bd --- /dev/null +++ b/tests/Australia/WA/AustraliaDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing Australia day in WA (Australia).. + */ +class AustraliaDayTest extends \Yasumi\tests\Australia\AustraliaDayTest +{ +} diff --git a/tests/Australia/WA/BoxingDayTest.php b/tests/Australia/WA/BoxingDayTest.php new file mode 100644 index 000000000..651b74359 --- /dev/null +++ b/tests/Australia/WA/BoxingDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing Boxing Day in WA (Australia).. + */ +class BoxingDayTest extends \Yasumi\tests\Australia\BoxingDayTest +{ +} diff --git a/tests/Australia/WA/ChristmasDayTest.php b/tests/Australia/WA/ChristmasDayTest.php new file mode 100644 index 000000000..3dede7824 --- /dev/null +++ b/tests/Australia/WA/ChristmasDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing Christmas Day in WA (Australia).. + */ +class ChristmasDayTest extends \Yasumi\tests\Australia\ChristmasDayTest +{ +} diff --git a/tests/Australia/WA/EasterMondayTest.php b/tests/Australia/WA/EasterMondayTest.php new file mode 100644 index 000000000..d2220466a --- /dev/null +++ b/tests/Australia/WA/EasterMondayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing Easter Monday in WA (Australia).. + */ +class EasterMondayTest extends \Yasumi\tests\Australia\EasterMondayTest +{ +} diff --git a/tests/Australia/WA/GoodFridayTest.php b/tests/Australia/WA/GoodFridayTest.php new file mode 100644 index 000000000..f01ccab1a --- /dev/null +++ b/tests/Australia/WA/GoodFridayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing Good Friday in WA (Australia).. + */ +class GoodFridayTest extends \Yasumi\tests\Australia\GoodFridayTest +{ +} diff --git a/tests/Australia/WA/LabourDayTest.php b/tests/Australia/WA/LabourDayTest.php new file mode 100644 index 000000000..d10e5a242 --- /dev/null +++ b/tests/Australia/WA/LabourDayTest.php @@ -0,0 +1,93 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\WA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Labour Day in WA (Australia).. + */ +class LabourDayTest extends WABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'labourDay'; + + /** + * Tests Labour Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-03-01'], + [2011, '2011-03-07'], + [2012, '2012-03-05'], + [2013, '2013-03-04'], + [2014, '2014-03-03'], + [2015, '2015-03-02'], + [2016, '2016-03-07'], + [2017, '2017-03-06'], + [2018, '2018-03-05'], + [2019, '2019-03-04'], + [2020, '2020-03-02'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Labour Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} diff --git a/tests/Australia/WA/NewYearsDayTest.php b/tests/Australia/WA/NewYearsDayTest.php new file mode 100644 index 000000000..d54f8c355 --- /dev/null +++ b/tests/Australia/WA/NewYearsDayTest.php @@ -0,0 +1,20 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +/** + * Class for testing New Years Day in WA (Australia).. + */ +class NewYearsDayTest extends \Yasumi\tests\Australia\NewYearsDayTest +{ +} diff --git a/tests/Australia/WA/QueensBirthdayTest.php b/tests/Australia/WA/QueensBirthdayTest.php new file mode 100644 index 000000000..7f174a886 --- /dev/null +++ b/tests/Australia/WA/QueensBirthdayTest.php @@ -0,0 +1,103 @@ + + * @author William Sanders + */ + +namespace Yasumi\tests\Australia\WA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Queen's Birthday in WA (Australia).. + */ +class QueensBirthdayTest extends WABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'queensBirthday'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 1950; + + /** + * Tests Queen's Birthday + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-09-27'], + [2011, '2011-10-28'], + [2012, '2012-10-01'], + [2013, '2013-09-30'], + [2014, '2014-09-29'], + [2015, '2015-09-28'], + [2016, '2016-09-26'], + [2017, '2017-09-25'], + [2018, '2018-09-24'], + [2019, '2019-09-30'], + [2020, '2020-09-28'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Queen\'s Birthday'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR, 2100), + Holiday::TYPE_OFFICIAL + ); + } +} diff --git a/tests/Australia/WA/WABaseTestCase.php b/tests/Australia/WA/WABaseTestCase.php new file mode 100644 index 000000000..c141cd641 --- /dev/null +++ b/tests/Australia/WA/WABaseTestCase.php @@ -0,0 +1,34 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +use Yasumi\tests\Australia\AustraliaBaseTestCase; +use Yasumi\tests\YasumiBase; + +/** + * Base class for test cases of the Queensland holiday provider. + */ +abstract class WABaseTestCase extends AustraliaBaseTestCase +{ + use YasumiBase; + + /** + * Name of the region (e.g. country / state) to be tested + */ + public $region = 'Australia\WA'; + + /** + * Timezone in which this provider has holidays defined + */ + public $timezone = 'Australia/West'; +} diff --git a/tests/Australia/WA/WATest.php b/tests/Australia/WA/WATest.php new file mode 100644 index 000000000..8d9d1cbe4 --- /dev/null +++ b/tests/Australia/WA/WATest.php @@ -0,0 +1,55 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +use Yasumi\Holiday; + +/** + * Class for testing holidays in WA (Australia). + */ +class WATest extends WABaseTestCase +{ + public $region = 'Australia\WA'; + + /** + * @var int year random year number used for all tests in this Test Case + */ + protected $year; + + /** + * Tests if all official holidays in WA (Australia) are defined by the provider class + */ + public function testOfficialHolidays() + { + $this->assertDefinedHolidays([ + 'newYearsDay', + 'goodFriday', + 'easterMonday', + 'christmasDay', + 'secondChristmasDay', + 'australiaDay', + 'anzacDay', + 'queensBirthday', + 'labourDay', + 'westernAustraliaDay', + ], $this->region, $this->year, Holiday::TYPE_OFFICIAL); + } + + /** + * Initial setup of this Test Case + */ + protected function setUp() + { + $this->year = $this->generateRandomYear(1921); + } +} diff --git a/tests/Australia/WA/WesternAustraliaDayTest.php b/tests/Australia/WA/WesternAustraliaDayTest.php new file mode 100644 index 000000000..9341a3864 --- /dev/null +++ b/tests/Australia/WA/WesternAustraliaDayTest.php @@ -0,0 +1,92 @@ + + */ + +namespace Yasumi\tests\Australia\WA; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Western Australia Day in WA (Australia).. + */ +class WesternAustraliaDayTest extends WABaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday + */ + const HOLIDAY = 'westernAustraliaDay'; + + /** + * Tests Western Australia Day + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param string $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday( + $this->region, + self::HOLIDAY, + $year, + new DateTime($expected, new DateTimeZone($this->timezone)) + ); + } + + /** + * Returns a list of test dates + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = [ + [2010, '2010-06-07'], + [2011, '2011-06-06'], + [2012, '2012-06-04'], + [2013, '2013-06-03'], + [2014, '2014-06-02'], + [2015, '2015-06-01'], + [2016, '2016-06-06'], + [2017, '2017-06-05'], + [2018, '2018-06-04'], + [2019, '2019-06-03'], + [2020, '2020-06-01'], + ]; + + return $data; + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + $this->region, + self::HOLIDAY, + $this->generateRandomYear(1990), + [self::LOCALE => 'Western Australia Day'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); + } +} From 851d436820cdac9c5a62c77f453708bc5171c2d1 Mon Sep 17 00:00:00 2001 From: "Yoshihisa.Hamada" Date: Sat, 11 Aug 2018 21:16:32 +0900 Subject: [PATCH 062/132] Changing Japan's holiday for the 2020 Olympic Games. (#113) --- CHANGELOG.md | 1 + src/Yasumi/Provider/Japan.php | 52 ++++++++++++++++++-------- tests/Japan/HealthAndSportsDayTest.php | 14 +++++++ tests/Japan/MarineDayTest.php | 14 +++++++ tests/Japan/MountainDayTest.php | 14 +++++++ 5 files changed, 79 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4318f8771..422151669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) ### Changed +- Changed Japanese holiday for the 2020 Olympic Games.Marine Day,Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) - Changed translation for Norway's national day. [\#98](https://github.com/azuyalabs/yasumi/pull/98) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 6000bb01b..0694f4978 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -138,18 +138,6 @@ public function initialize() )); } - /** - * Mountain Day. Mountain Day is held on August 11th and established since 2016. - */ - if ($this->year >= 2016) { - $this->addHoliday(new Holiday( - 'mountainDay', - ['en_US' => 'Mountain Day', 'ja_JP' => '山の日'], - new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)), - $this->locale - )); - } - /** * Culture Day. Culture Day is held on November 11th and established since 1948. */ @@ -191,6 +179,7 @@ public function initialize() $this->calculateComingOfAgeDay(); $this->calculateGreeneryDay(); $this->calculateMarineDay(); + $this->caluclateMountainDay(); $this->calculateRespectForTheAgeDay(); $this->calculateHealthAndSportsDay(); $this->calculateAutumnalEquinoxDay(); @@ -294,7 +283,7 @@ private function calculateGreeneryDay() /** * Calculates Marine Day. * - * Marine Day was established since 1996 on July 20th. After 2003 it was changed to be the third monday of July. + * Marine Day was established since 1996 on July 20th. After 2003 it was changed to be the third monday of July.In 2020 is July 23th. * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException @@ -303,7 +292,9 @@ private function calculateGreeneryDay() private function calculateMarineDay() { $date = null; - if ($this->year >= 2003) { + if ($this->year == 2020) { + $date = new DateTime("$this->year-7-23", new DateTimeZone($this->timezone)); + } elseif ($this->year >= 2003) { $date = new DateTime("third monday of july $this->year", new DateTimeZone($this->timezone)); } elseif ($this->year >= 1996) { $date = new DateTime("$this->year-7-20", new DateTimeZone($this->timezone)); @@ -319,6 +310,33 @@ private function calculateMarineDay() } } + /** + * Calculates MountainDay + * + * Mountain Day. Mountain Day is held on August 11th and established since 2016.In 2020 is August 10th. + * + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + private function caluclateMountainDay() + { + $date = null; + if ($this->year == 2020) { + $date = new DateTime("$this->year-8-10", new DateTimeZone($this->timezone)); + } elseif ($this->year >= 2016) { + $date = new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)); + } + + if (null !== $date) { + $this->addHoliday(new Holiday( + 'mountainDay', + ['en_US' => 'Mountain Day', 'ja_JP' => '山の日'], + $date, + $this->locale + )); + } + } + /** * Calculates Respect for the Age Day. * @@ -352,7 +370,7 @@ private function calculateRespectForTheAgeDay() * Calculates Health And Sports Day. * * Health And Sports Day was established since 1966 on October 10th. After 2000 it was changed to be the second - * monday of October. + * monday of October.In 2020 is July 24th. * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException @@ -361,7 +379,9 @@ private function calculateRespectForTheAgeDay() private function calculateHealthAndSportsDay() { $date = null; - if ($this->year >= 2000) { + if ($this->year == 2020) { + $date = new DateTime("$this->year-7-24", new DateTimeZone($this->timezone)); + } elseif ($this->year >= 2000) { $date = new DateTime("second monday of october $this->year", new DateTimeZone($this->timezone)); } elseif ($this->year >= 1996) { $date = new DateTime("$this->year-10-10", new DateTimeZone($this->timezone)); diff --git a/tests/Japan/HealthAndSportsDayTest.php b/tests/Japan/HealthAndSportsDayTest.php index b6a5786b3..00a2abe11 100644 --- a/tests/Japan/HealthAndSportsDayTest.php +++ b/tests/Japan/HealthAndSportsDayTest.php @@ -32,6 +32,20 @@ class HealthAndSportsDayTest extends JapanBaseTestCase implements YasumiTestCase */ const ESTABLISHMENT_YEAR = 1996; + /** + * Tests Health And Sports Day in 2020. Health And Sports Day in 2020 is July 24th for the Olympic Games. + */ + public function testHealthAndSportsDayIn2020() + { + $year = 2020; + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-7-24", new DateTimeZone(self::TIMEZONE)) + ); + } + /** * Tests Health And Sports Day after 2000. Health And Sports Day was established since 1996 on October 10th. After * 2000 it was changed to be the second monday of October. diff --git a/tests/Japan/MarineDayTest.php b/tests/Japan/MarineDayTest.php index 290c4f648..26ec54353 100644 --- a/tests/Japan/MarineDayTest.php +++ b/tests/Japan/MarineDayTest.php @@ -32,6 +32,20 @@ class MarineDayTest extends JapanBaseTestCase implements YasumiTestCaseInterface */ const ESTABLISHMENT_YEAR = 1996; + /** + * Tests Marine Day in 2020. Marine Day in 2020 is July 23th for the Olympic Games. + */ + public function testMarineDayIn2020() + { + $year = 2020; + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-7-23", new DateTimeZone(self::TIMEZONE)) + ); + } + /** * Tests Marine Day after 2003. Marine Day was established since 1996 on July 20th. After 2003 it was changed * to be the third monday of July. diff --git a/tests/Japan/MountainDayTest.php b/tests/Japan/MountainDayTest.php index 1701ce173..775290d41 100644 --- a/tests/Japan/MountainDayTest.php +++ b/tests/Japan/MountainDayTest.php @@ -32,6 +32,20 @@ class MountainDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa */ const ESTABLISHMENT_YEAR = 2016; + /** + * Tests Mountain Day in 2020. Mountain Day in 2020 is August 10th for the Olympic Games. + */ + public function testMountainDayIn2020() + { + $year = 2020; + $this->assertHoliday( + self::REGION, + self::HOLIDAY, + $year, + new DateTime("$year-8-10", new DateTimeZone(self::TIMEZONE)) + ); + } + /** * Tests Mountain Day after 2016. Mountain Day was established in 2014 and is held from 2016 on August 11th. */ From 9446133e9d555bd81af2394bb4e8b7e11c9737a7 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Wed, 19 Sep 2018 16:27:23 +0200 Subject: [PATCH 063/132] Remove HHVM (#114) --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 31dbac790..561adc9e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,19 @@ php: - 7.0 - 7.1 - 7.2 - - hhvm - nightly +dist: trusty +sudo: required + cache: directories: - $HOME/.composer/cache +before_install: + - if [[ $HHVM == true ]]; then sudo apt-get update; fi + - if [[ $HHVM == true ]]; then sudo apt-get install hhvm=3.\*; fi + before_script: - composer self-update - composer install --no-interaction @@ -31,3 +37,5 @@ matrix: env: PHPSTAN=1 - php: 7.2 env: PHPSTAN=1 + - php: hhvm + env: HHVM=true From 4f306293c5b6b447fd3ae0605d2dbe9493dc1371 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 1 Nov 2018 09:58:42 +0900 Subject: [PATCH 064/132] Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). Signed-off-by: Sacha Telgenhof --- CHANGELOG.md | 1 + src/Yasumi/Provider/Germany/LowerSaxony.php | 34 ++++++ .../LowerSaxony/ReformationDayTest.php | 102 ++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 tests/Germany/LowerSaxony/ReformationDayTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 422151669..47e0e07a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - Holiday Providers for all Australian states and teritories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) +- Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). [#115](https://github.com/azuyalabs/yasumi/issues/115) - Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) - Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) diff --git a/src/Yasumi/Provider/Germany/LowerSaxony.php b/src/Yasumi/Provider/Germany/LowerSaxony.php index fd38fa7e3..583efb32e 100755 --- a/src/Yasumi/Provider/Germany/LowerSaxony.php +++ b/src/Yasumi/Provider/Germany/LowerSaxony.php @@ -31,4 +31,38 @@ class LowerSaxony extends Germany * country or sub-region. */ const ID = 'DE-NI'; + + /** + * Initialize holidays for Lower Saxony (Germany). + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + // Add custom Christian holidays + $this->calculateReformationDay(); + } + + /** + * For the German state of Lower Saxony, Reformation Day is celebrated since 2018. + * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. + * + * @link https://www.zeit.de/gesellschaft/zeitgeschehen/2018-06/reformationstag-niedersachsen-neuer-feiertag + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + private function calculateReformationDay() + { + if ($this->year < 2018) { + return; + } + $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); + } } diff --git a/tests/Germany/LowerSaxony/ReformationDayTest.php b/tests/Germany/LowerSaxony/ReformationDayTest.php new file mode 100644 index 000000000..2fe1f4b9e --- /dev/null +++ b/tests/Germany/LowerSaxony/ReformationDayTest.php @@ -0,0 +1,102 @@ + + */ + +namespace Yasumi\tests\Germany\LowerSaxony; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Reformation Day in Lower Saxony (Germany). + */ +class ReformationDayTest extends LowerSaxonyBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'reformationDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 2018; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < self::TEST_ITERATIONS; $y++) { + $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); + $data[] = [$year, new DateTime("$year-10-31", new DateTimeZone(self::TIMEZONE))]; + } + + return $data; + } + + /** + * Tests the holiday defined in this test before establishment. + */ + public function testHolidayBeforeEstablishment() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Reformationstag'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OFFICIAL + ); + } +} From cd84071560e7270d4df0cb65a36e9e41774e5cd0 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 1 Nov 2018 10:11:59 +0900 Subject: [PATCH 065/132] Bumbper PHP CS Fixer version. Signed-off-by: Sacha Telgenhof --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 784eaeb92..9bb8ade64 100755 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php": ">=7.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.6", + "friendsofphp/php-cs-fixer": "^2.13", "fzaninotto/faker": "~1.7", "mikey179/vfsStream": "~1.6", "phpunit/phpunit": "~5.7" From 2def7b33839992f5375c3815321b25cb7d472728 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 1 Nov 2018 12:09:37 +0900 Subject: [PATCH 066/132] Upgraded PHPUnit version to 7 (7.4) Configured PHPUnit not to report Risky Tests (false negative as custom functions are used) Corrected PHPUnit's TestCase class name Adjusted inline documentation (unused @throws tags) Signed-off-by: Sacha Telgenhof --- composer.json | 2 +- phpunit.xml | 2 +- tests/Australia/AustraliaBaseTestCase.php | 4 ++-- tests/Austria/AustriaBaseTestCase.php | 4 ++-- tests/Base/HolidayBetweenFilterTest.php | 4 ++-- tests/Base/HolidayFiltersTest.php | 4 ++-- tests/Base/HolidayTest.php | 4 ++-- tests/Base/TranslationsTest.php | 4 ++-- tests/Base/YasumiTest.php | 4 ++-- tests/Base/YasumiWorkdayTest.php | 4 ++-- tests/Belgium/BelgiumBaseTestCase.php | 4 ++-- tests/Bosnia/BosniaBaseTestCase.php | 4 ++-- tests/Brazil/BrazilBaseTestCase.php | 4 ++-- tests/Croatia/CroatiaBaseTestCase.php | 4 ++-- .../CzechRepublic/CzechRepublicBaseTestCase.php | 4 ++-- tests/Denmark/DenmarkBaseTestCase.php | 4 ++-- tests/Estonia/EstoniaBaseTestCase.php | 3 ++- tests/Finland/FinlandBaseTestCase.php | 4 ++-- tests/France/FranceBaseTestCase.php | 4 ++-- tests/Germany/GermanyBaseTestCase.php | 4 ++-- tests/Greece/GreeceBaseTestCase.php | 4 ++-- tests/Hungary/HungaryBaseTestCase.php | 4 ++-- tests/Ireland/IrelandBaseTestCase.php | 4 ++-- tests/Italy/ItalyBaseTestCase.php | 4 ++-- tests/Japan/JapanBaseTestCase.php | 4 ++-- tests/Latvia/LatviaBaseTestCase.php | 3 ++- tests/Lithuania/LithuaniaBaseTestCase.php | 3 ++- tests/Netherlands/NetherlandsBaseTestCase.php | 4 ++-- tests/NewZealand/NewZealandBaseTestCase.php | 4 ++-- tests/Norway/NorwayBaseTestCase.php | 4 ++-- tests/Poland/PolandBaseTestCase.php | 4 ++-- tests/Portugal/PortugalBaseTestCase.php | 4 ++-- tests/Romania/RomaniaBaseTestCase.php | 4 ++-- tests/Russia/RussiaBaseTestCase.php | 3 ++- tests/Slovakia/SlovakiaBaseTestCase.php | 4 ++-- tests/SouthAfrica/SouthAfricaBaseTestCase.php | 4 ++-- tests/Spain/SpainBaseTestCase.php | 4 ++-- tests/Sweden/SwedenBaseTestCase.php | 4 ++-- tests/Switzerland/SwitzerlandBaseTestCase.php | 4 ++-- tests/USA/USABaseTestCase.php | 4 ++-- tests/Ukraine/UkraineBaseTestCase.php | 3 ++- .../UnitedKingdom/UnitedKingdomBaseTestCase.php | 4 ++-- tests/YasumiBase.php | 16 ++++++---------- 43 files changed, 88 insertions(+), 87 deletions(-) diff --git a/composer.json b/composer.json index 9bb8ade64..fb63fe467 100755 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "friendsofphp/php-cs-fixer": "^2.13", "fzaninotto/faker": "~1.7", "mikey179/vfsStream": "~1.6", - "phpunit/phpunit": "~5.7" + "phpunit/phpunit": "~7.4" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index a56514a5a..6e095a549 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -12,6 +12,7 @@ diff --git a/tests/Australia/AustraliaBaseTestCase.php b/tests/Australia/AustraliaBaseTestCase.php index 7d204ac2b..601dbe823 100644 --- a/tests/Australia/AustraliaBaseTestCase.php +++ b/tests/Australia/AustraliaBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Australia; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Australia holiday provider. */ -abstract class AustraliaBaseTestCase extends PHPUnit_Framework_TestCase +abstract class AustraliaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Austria/AustriaBaseTestCase.php b/tests/Austria/AustriaBaseTestCase.php index 100624594..6b99b2460 100644 --- a/tests/Austria/AustriaBaseTestCase.php +++ b/tests/Austria/AustriaBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Austria; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Austria holiday provider. */ -abstract class AustriaBaseTestCase extends PHPUnit_Framework_TestCase +abstract class AustriaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index 2e23b4011..332a5f44f 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -15,7 +15,7 @@ use DateTime; use DateTimeZone; use InvalidArgumentException; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; use Yasumi\Yasumi; @@ -24,7 +24,7 @@ * * Contains tests for testing the BetweenFilter class */ -class HolidayBetweenFilterTest extends PHPUnit_Framework_TestCase +class HolidayBetweenFilterTest extends TestCase { use YasumiBase; diff --git a/tests/Base/HolidayFiltersTest.php b/tests/Base/HolidayFiltersTest.php index 36504a1c3..66a31b793 100644 --- a/tests/Base/HolidayFiltersTest.php +++ b/tests/Base/HolidayFiltersTest.php @@ -12,7 +12,7 @@ namespace Yasumi\tests\Base; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\Filters\BankHolidaysFilter; use Yasumi\Filters\ObservedHolidaysFilter; use Yasumi\Filters\OfficialHolidaysFilter; @@ -26,7 +26,7 @@ * * Contains tests for testing the filter classes */ -class HolidayFiltersTest extends PHPUnit_Framework_TestCase +class HolidayFiltersTest extends TestCase { use YasumiBase; diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index d1e5f7e08..a3fe6652a 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -14,7 +14,7 @@ use DateTime; use InvalidArgumentException; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\Holiday; use Yasumi\tests\YasumiBase; use Yasumi\TranslationsInterface; @@ -24,7 +24,7 @@ * * Contains tests for testing the Holiday class */ -class HolidayTest extends PHPUnit_Framework_TestCase +class HolidayTest extends TestCase { use YasumiBase; diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index f3ae439c0..78d45bbb9 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -14,7 +14,7 @@ use InvalidArgumentException; use org\bovigo\vfs\vfsStream; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\Translations; /** @@ -22,7 +22,7 @@ * * Contains tests for testing the Translations class */ -class TranslationsTest extends PHPUnit_Framework_TestCase +class TranslationsTest extends TestCase { const LOCALES = [ 'en_US', diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 503f5d351..fcee569e6 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -14,7 +14,7 @@ use Faker\Factory; use InvalidArgumentException; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; use Yasumi\Yasumi; @@ -23,7 +23,7 @@ * * Contains tests for testing the Holiday class */ -class YasumiTest extends PHPUnit_Framework_TestCase +class YasumiTest extends TestCase { use YasumiBase; diff --git a/tests/Base/YasumiWorkdayTest.php b/tests/Base/YasumiWorkdayTest.php index 82f1c7a87..13b835d96 100644 --- a/tests/Base/YasumiWorkdayTest.php +++ b/tests/Base/YasumiWorkdayTest.php @@ -12,10 +12,10 @@ namespace Yasumi\tests; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\Yasumi; -class YasumiWorkdayTest extends PHPUnit_Framework_TestCase +class YasumiWorkdayTest extends TestCase { const FORMAT_DATE = 'Y-m-d'; diff --git a/tests/Belgium/BelgiumBaseTestCase.php b/tests/Belgium/BelgiumBaseTestCase.php index 36fdf9a31..6770f200c 100644 --- a/tests/Belgium/BelgiumBaseTestCase.php +++ b/tests/Belgium/BelgiumBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Belgium; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Belgium holiday provider. */ -abstract class BelgiumBaseTestCase extends PHPUnit_Framework_TestCase +abstract class BelgiumBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Bosnia/BosniaBaseTestCase.php b/tests/Bosnia/BosniaBaseTestCase.php index f9b32f248..8e30fcc74 100644 --- a/tests/Bosnia/BosniaBaseTestCase.php +++ b/tests/Bosnia/BosniaBaseTestCase.php @@ -12,7 +12,7 @@ namespace Yasumi\tests\Bosnia; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -20,7 +20,7 @@ * * @author Adnan Kičin */ -abstract class BosniaBaseTestCase extends PHPUnit_Framework_TestCase +abstract class BosniaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Brazil/BrazilBaseTestCase.php b/tests/Brazil/BrazilBaseTestCase.php index 160ec85a5..14552cc11 100644 --- a/tests/Brazil/BrazilBaseTestCase.php +++ b/tests/Brazil/BrazilBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Brazil; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Class BrazilBaseTestCase. */ -abstract class BrazilBaseTestCase extends PHPUnit_Framework_TestCase +abstract class BrazilBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Croatia/CroatiaBaseTestCase.php b/tests/Croatia/CroatiaBaseTestCase.php index d0b41e60b..ff79cda4d 100644 --- a/tests/Croatia/CroatiaBaseTestCase.php +++ b/tests/Croatia/CroatiaBaseTestCase.php @@ -12,7 +12,7 @@ namespace Yasumi\tests\Croatia; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -20,7 +20,7 @@ * * @author Karlo Mikus */ -abstract class CroatiaBaseTestCase extends PHPUnit_Framework_TestCase +abstract class CroatiaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/CzechRepublic/CzechRepublicBaseTestCase.php b/tests/CzechRepublic/CzechRepublicBaseTestCase.php index 18ae5b7b9..f328be283 100644 --- a/tests/CzechRepublic/CzechRepublicBaseTestCase.php +++ b/tests/CzechRepublic/CzechRepublicBaseTestCase.php @@ -12,7 +12,7 @@ namespace Yasumi\tests\CzechRepublic; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -22,7 +22,7 @@ * @package Yasumi\tests\CzechRepublic * @author Dennis Fridrich */ -abstract class CzechRepublicBaseTestCase extends PHPUnit_Framework_TestCase +abstract class CzechRepublicBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Denmark/DenmarkBaseTestCase.php b/tests/Denmark/DenmarkBaseTestCase.php index 12c99ba37..53c0e1230 100644 --- a/tests/Denmark/DenmarkBaseTestCase.php +++ b/tests/Denmark/DenmarkBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Denmark; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Denmark holiday provider. */ -abstract class DenmarkBaseTestCase extends PHPUnit_Framework_TestCase +abstract class DenmarkBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Estonia/EstoniaBaseTestCase.php b/tests/Estonia/EstoniaBaseTestCase.php index 6ed265032..9aac0cdd4 100644 --- a/tests/Estonia/EstoniaBaseTestCase.php +++ b/tests/Estonia/EstoniaBaseTestCase.php @@ -13,6 +13,7 @@ namespace Yasumi\tests\Estonia; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -20,7 +21,7 @@ * * @author Gedas Lukošius */ -abstract class EstoniaBaseTestCase extends \PHPUnit_Framework_TestCase +abstract class EstoniaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Finland/FinlandBaseTestCase.php b/tests/Finland/FinlandBaseTestCase.php index cb0f51baf..6387ae5ef 100644 --- a/tests/Finland/FinlandBaseTestCase.php +++ b/tests/Finland/FinlandBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Finland; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Finland holiday provider. */ -abstract class FinlandBaseTestCase extends PHPUnit_Framework_TestCase +abstract class FinlandBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/France/FranceBaseTestCase.php b/tests/France/FranceBaseTestCase.php index 4d8da261e..5a7f1a843 100644 --- a/tests/France/FranceBaseTestCase.php +++ b/tests/France/FranceBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\France; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the France holiday provider. */ -abstract class FranceBaseTestCase extends PHPUnit_Framework_TestCase +abstract class FranceBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Germany/GermanyBaseTestCase.php b/tests/Germany/GermanyBaseTestCase.php index 1f43e743d..ed043d0dc 100644 --- a/tests/Germany/GermanyBaseTestCase.php +++ b/tests/Germany/GermanyBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Germany; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Germany holiday provider. */ -abstract class GermanyBaseTestCase extends PHPUnit_Framework_TestCase +abstract class GermanyBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Greece/GreeceBaseTestCase.php b/tests/Greece/GreeceBaseTestCase.php index 04de00743..0afafd1c8 100644 --- a/tests/Greece/GreeceBaseTestCase.php +++ b/tests/Greece/GreeceBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Greece; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Greece holiday provider. */ -abstract class GreeceBaseTestCase extends PHPUnit_Framework_TestCase +abstract class GreeceBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Hungary/HungaryBaseTestCase.php b/tests/Hungary/HungaryBaseTestCase.php index 63c3b92c2..8434688b0 100644 --- a/tests/Hungary/HungaryBaseTestCase.php +++ b/tests/Hungary/HungaryBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Hungary; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Hungary holiday provider. */ -abstract class HungaryBaseTestCase extends PHPUnit_Framework_TestCase +abstract class HungaryBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Ireland/IrelandBaseTestCase.php b/tests/Ireland/IrelandBaseTestCase.php index f1c05a0a2..250831a8a 100644 --- a/tests/Ireland/IrelandBaseTestCase.php +++ b/tests/Ireland/IrelandBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Ireland; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Ireland holiday provider. */ -abstract class IrelandBaseTestCase extends PHPUnit_Framework_TestCase +abstract class IrelandBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Italy/ItalyBaseTestCase.php b/tests/Italy/ItalyBaseTestCase.php index 78a544164..60ffa32e6 100644 --- a/tests/Italy/ItalyBaseTestCase.php +++ b/tests/Italy/ItalyBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Italy; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Italy holiday provider. */ -abstract class ItalyBaseTestCase extends PHPUnit_Framework_TestCase +abstract class ItalyBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Japan/JapanBaseTestCase.php b/tests/Japan/JapanBaseTestCase.php index 597b8cd9c..cd2f60757 100644 --- a/tests/Japan/JapanBaseTestCase.php +++ b/tests/Japan/JapanBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Japan; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Class JapanBaseTestCase. */ -abstract class JapanBaseTestCase extends PHPUnit_Framework_TestCase +abstract class JapanBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Latvia/LatviaBaseTestCase.php b/tests/Latvia/LatviaBaseTestCase.php index 591ba57c2..314230e44 100644 --- a/tests/Latvia/LatviaBaseTestCase.php +++ b/tests/Latvia/LatviaBaseTestCase.php @@ -13,6 +13,7 @@ namespace Yasumi\tests\Latvia; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -20,7 +21,7 @@ * * @author Gedas Lukošius */ -abstract class LatviaBaseTestCase extends \PHPUnit_Framework_TestCase +abstract class LatviaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Lithuania/LithuaniaBaseTestCase.php b/tests/Lithuania/LithuaniaBaseTestCase.php index 51bbf23da..f89129ddb 100644 --- a/tests/Lithuania/LithuaniaBaseTestCase.php +++ b/tests/Lithuania/LithuaniaBaseTestCase.php @@ -13,6 +13,7 @@ namespace Yasumi\tests\Lithuania; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -20,7 +21,7 @@ * * @author Gedas Lukošius */ -abstract class LithuaniaBaseTestCase extends \PHPUnit_Framework_TestCase +abstract class LithuaniaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Netherlands/NetherlandsBaseTestCase.php b/tests/Netherlands/NetherlandsBaseTestCase.php index 3b830006e..2ebe7a62f 100644 --- a/tests/Netherlands/NetherlandsBaseTestCase.php +++ b/tests/Netherlands/NetherlandsBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Netherlands; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Netherlands holiday provider. */ -abstract class NetherlandsBaseTestCase extends PHPUnit_Framework_TestCase +abstract class NetherlandsBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/NewZealand/NewZealandBaseTestCase.php b/tests/NewZealand/NewZealandBaseTestCase.php index ab72a8ecb..453684e6e 100644 --- a/tests/NewZealand/NewZealandBaseTestCase.php +++ b/tests/NewZealand/NewZealandBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\NewZealand; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the NewZealand holiday provider. */ -abstract class NewZealandBaseTestCase extends PHPUnit_Framework_TestCase +abstract class NewZealandBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Norway/NorwayBaseTestCase.php b/tests/Norway/NorwayBaseTestCase.php index 060b791b4..cdd13e130 100644 --- a/tests/Norway/NorwayBaseTestCase.php +++ b/tests/Norway/NorwayBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Norway; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Norway holiday provider. */ -abstract class NorwayBaseTestCase extends PHPUnit_Framework_TestCase +abstract class NorwayBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Poland/PolandBaseTestCase.php b/tests/Poland/PolandBaseTestCase.php index 6f1134e73..4dd265e53 100644 --- a/tests/Poland/PolandBaseTestCase.php +++ b/tests/Poland/PolandBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Poland; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Poland holiday provider. */ -abstract class PolandBaseTestCase extends PHPUnit_Framework_TestCase +abstract class PolandBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Portugal/PortugalBaseTestCase.php b/tests/Portugal/PortugalBaseTestCase.php index b36a3ef84..8570bd78f 100644 --- a/tests/Portugal/PortugalBaseTestCase.php +++ b/tests/Portugal/PortugalBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Portugal; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Portugal holiday provider. */ -abstract class PortugalBaseTestCase extends PHPUnit_Framework_TestCase +abstract class PortugalBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Romania/RomaniaBaseTestCase.php b/tests/Romania/RomaniaBaseTestCase.php index ed00acaec..42b9da8ab 100755 --- a/tests/Romania/RomaniaBaseTestCase.php +++ b/tests/Romania/RomaniaBaseTestCase.php @@ -12,14 +12,14 @@ namespace Yasumi\tests\Romania; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Class RomaniaBaseTestCase * @package Yasumi\tests\Romania */ -class RomaniaBaseTestCase extends PHPUnit_Framework_TestCase +class RomaniaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Russia/RussiaBaseTestCase.php b/tests/Russia/RussiaBaseTestCase.php index fb0e104a6..311b55037 100644 --- a/tests/Russia/RussiaBaseTestCase.php +++ b/tests/Russia/RussiaBaseTestCase.php @@ -13,6 +13,7 @@ namespace Yasumi\tests\Russia; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -20,7 +21,7 @@ * * @author Gedas Lukošius */ -abstract class RussiaBaseTestCase extends \PHPUnit_Framework_TestCase +abstract class RussiaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Slovakia/SlovakiaBaseTestCase.php b/tests/Slovakia/SlovakiaBaseTestCase.php index 64605a8f8..52a97fdb4 100644 --- a/tests/Slovakia/SlovakiaBaseTestCase.php +++ b/tests/Slovakia/SlovakiaBaseTestCase.php @@ -14,7 +14,7 @@ namespace Yasumi\tests\Slovakia; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -24,7 +24,7 @@ * @package Yasumi\tests\Slovakia * @author Andrej Rypak (dakujem) */ -abstract class SlovakiaBaseTestCase extends PHPUnit_Framework_TestCase +abstract class SlovakiaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/SouthAfrica/SouthAfricaBaseTestCase.php b/tests/SouthAfrica/SouthAfricaBaseTestCase.php index 729759156..c617de248 100644 --- a/tests/SouthAfrica/SouthAfricaBaseTestCase.php +++ b/tests/SouthAfrica/SouthAfricaBaseTestCase.php @@ -13,7 +13,7 @@ namespace Yasumi\tests\SouthAfrica; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** @@ -22,7 +22,7 @@ * @package Yasumi\tests\SouthAfrica * @author Sacha Telgenhof */ -abstract class SouthAfricaBaseTestCase extends PHPUnit_Framework_TestCase +abstract class SouthAfricaBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Spain/SpainBaseTestCase.php b/tests/Spain/SpainBaseTestCase.php index 8a6051371..1cd3649fa 100644 --- a/tests/Spain/SpainBaseTestCase.php +++ b/tests/Spain/SpainBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Spain; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Spain holiday provider. */ -abstract class SpainBaseTestCase extends PHPUnit_Framework_TestCase +abstract class SpainBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Sweden/SwedenBaseTestCase.php b/tests/Sweden/SwedenBaseTestCase.php index e004950ef..4e3707de0 100644 --- a/tests/Sweden/SwedenBaseTestCase.php +++ b/tests/Sweden/SwedenBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Sweden; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Sweden holiday provider. */ -abstract class SwedenBaseTestCase extends PHPUnit_Framework_TestCase +abstract class SwedenBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Switzerland/SwitzerlandBaseTestCase.php b/tests/Switzerland/SwitzerlandBaseTestCase.php index 20af82a40..d94161d89 100644 --- a/tests/Switzerland/SwitzerlandBaseTestCase.php +++ b/tests/Switzerland/SwitzerlandBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\Switzerland; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the Switzerland holiday provider. */ -abstract class SwitzerlandBaseTestCase extends PHPUnit_Framework_TestCase +abstract class SwitzerlandBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/USA/USABaseTestCase.php b/tests/USA/USABaseTestCase.php index d6763af18..9e658aee8 100644 --- a/tests/USA/USABaseTestCase.php +++ b/tests/USA/USABaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\USA; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Class USABaseTestCase. */ -abstract class USABaseTestCase extends PHPUnit_Framework_TestCase +abstract class USABaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/Ukraine/UkraineBaseTestCase.php b/tests/Ukraine/UkraineBaseTestCase.php index 2571ef3d0..dce3d5b11 100644 --- a/tests/Ukraine/UkraineBaseTestCase.php +++ b/tests/Ukraine/UkraineBaseTestCase.php @@ -12,13 +12,14 @@ namespace Yasumi\tests\Ukraine; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Class UkraineBaseTestCase * @package Yasumi\tests\Ukraine */ -class UkraineBaseTestCase extends \PHPUnit_Framework_TestCase +class UkraineBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php b/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php index 4575a0235..6bcd70405 100644 --- a/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php +++ b/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php @@ -12,13 +12,13 @@ namespace Yasumi\tests\UnitedKingdom; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; /** * Base class for test cases of the United Kingdom holiday provider. */ -abstract class UnitedKingdomBaseTestCase extends PHPUnit_Framework_TestCase +abstract class UnitedKingdomBaseTestCase extends TestCase { use YasumiBase; diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 834dbcd72..06ab0ba97 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -88,9 +88,8 @@ public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \RuntimeException - * @throws \PHPUnit_Framework_AssertionFailedError + * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException - * @throws \TypeError */ public function assertHoliday($provider, $shortName, $year, $expected) { @@ -117,9 +116,8 @@ public function assertHoliday($provider, $shortName, $year, $expected) * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Yasumi\Exception\InvalidDateException - * @throws \PHPUnit_Framework_AssertionFailedError + * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException - * @throws \TypeError */ public function assertNotHoliday($provider, $shortName, $year) { @@ -143,9 +141,8 @@ public function assertNotHoliday($provider, $shortName, $year) * @throws \InvalidArgumentException * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException - * @throws \PHPUnit_Framework_AssertionFailedError + * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException - * @throws \TypeError */ public function assertTranslatedHolidayName($provider, $shortName, $year, $translations) { @@ -179,7 +176,7 @@ public function assertTranslatedHolidayName($provider, $shortName, $year, $trans * * @throws \InvalidArgumentException * @throws \RuntimeException - * @throws \PHPUnit_Framework_AssertionFailedError + * @throws \PHPUnit\Framework\AssertionFailedError * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ @@ -205,12 +202,11 @@ public function assertHolidayType($provider, $shortName, $year, $type) * @param int $year holiday calendar year * @param string $expectedDayOfWeek the expected week day (i.e. "Saturday", "Sunday", etc.) * - * @throws \PHPUnit_Framework_AssertionFailedError + * @throws \PHPUnit\Framework\AssertionFailedError * @throws \InvalidArgumentException * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException - * @throws \TypeError */ public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek) { @@ -455,7 +451,7 @@ public function generateRandomDatesWithHolidayMovedToMonday( $iterations = 10, $range = 1000 ): array { - return $this->generateRandomDatesWithModifier($month, $day, function ($year, \DateTime $date) { + return $this->generateRandomDatesWithModifier($month, $day, function (\DateTime $date) { if ($this->isWeekend($date)) { $date->modify('next monday'); } From f1145ca160509d46fd8108383baa6e76996404ab Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 1 Nov 2018 12:13:46 +0900 Subject: [PATCH 067/132] Reverted incorrectly made removal of $year parameter. Signed-off-by: Sacha Telgenhof --- tests/YasumiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 06ab0ba97..56bb7c862 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -451,7 +451,7 @@ public function generateRandomDatesWithHolidayMovedToMonday( $iterations = 10, $range = 1000 ): array { - return $this->generateRandomDatesWithModifier($month, $day, function (\DateTime $date) { + return $this->generateRandomDatesWithModifier($month, $day, function ($year, \DateTime $date) { if ($this->isWeekend($date)) { $date->modify('next monday'); } From ef4779c1874367866bf1c8dea370a3475941a85a Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 1 Nov 2018 12:17:07 +0900 Subject: [PATCH 068/132] Added PHPUnit v7 upgrade note. Signed-off-by: Sacha Telgenhof --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47e0e07a1..ebb45f8d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) ### Changed +- Upgraded to PHPUnit 7. - Changed Japanese holiday for the 2020 Olympic Games.Marine Day,Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) - Changed translation for Norway's national day. [\#98](https://github.com/azuyalabs/yasumi/pull/98) From 774135cfb5c7e018393dedb13992e152228cb15c Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 1 Nov 2018 12:40:21 +0900 Subject: [PATCH 069/132] PHP7.1 is now the minimum required version. Signed-off-by: Sacha Telgenhof --- .travis.yml | 1 - composer.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 561adc9e7..51d24d72e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: php php: - - 7.0 - 7.1 - 7.2 - nightly diff --git a/composer.json b/composer.json index fb63fe467..9c1684625 100755 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=7.0" + "php": ">=7.1" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.13", From ff595371f8c8ca7dcf8b2f2e2364b8a13fe54fc8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 2 Nov 2018 11:15:59 +0900 Subject: [PATCH 070/132] Corrected namespaces. Signed-off-by: Sacha Telgenhof --- tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php | 2 +- tests/Germany/Hamburg/DayOfReformationTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php b/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php index 5e3ebdb91..374ff7846 100644 --- a/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php @@ -10,7 +10,7 @@ * @author William Sanders */ -namespace Yasumi\tests\Australia\Tasmania\South\Southeast\CircularHead; +namespace Yasumi\tests\Australia\Tasmania\South\Southeast; /** * Class for testing Australia day in southeastern Tasmania (Australia).. diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index 0d6439108..5e74fddeb 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -10,7 +10,7 @@ * @author Sacha Telgenhof */ -namespace Yasumi\tests\Germany\SchleswigHolstein; +namespace Yasumi\tests\Germany\Hamburg; use DateTime; use DateTimeZone; @@ -19,7 +19,7 @@ use Yasumi\tests\YasumiTestCaseInterface; /** - * Class for testing Reformation Day in Schleswig-Holstein (Germany). + * Class for testing Reformation Day in Hamburg (Germany). */ class DayOfReformationTest extends HamburgBaseTestCase implements YasumiTestCaseInterface { From 05fcc92c570ba060acc1eed0e756c8a50dde8938 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 2 Nov 2018 11:19:03 +0900 Subject: [PATCH 071/132] Resorted translations. --- src/Yasumi/data/translations/newYearsEve.php | 4 ++-- src/Yasumi/data/translations/summerTime.php | 2 +- src/Yasumi/data/translations/winterTime.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Yasumi/data/translations/newYearsEve.php b/src/Yasumi/data/translations/newYearsEve.php index 5d1154da0..39502a65f 100755 --- a/src/Yasumi/data/translations/newYearsEve.php +++ b/src/Yasumi/data/translations/newYearsEve.php @@ -12,7 +12,7 @@ // Translations for New Year's Eve return [ - 'en_US' => 'New Year\'s Eve', 'da_DK' => 'Nytårsaften', - 'lv_LV' => 'Vecgada vakars' + 'en_US' => 'New Year\'s Eve', + 'lv_LV' => 'Vecgada vakars', ]; diff --git a/src/Yasumi/data/translations/summerTime.php b/src/Yasumi/data/translations/summerTime.php index 89bfc2efb..7f4cd8c0f 100644 --- a/src/Yasumi/data/translations/summerTime.php +++ b/src/Yasumi/data/translations/summerTime.php @@ -10,7 +10,7 @@ * @author Sacha Telgenhof */ -// Translations for daylight saving time start. +// Translations for Summertime return [ 'da_DK' => 'Sommertid starter', 'en_US' => 'Summertime', diff --git a/src/Yasumi/data/translations/winterTime.php b/src/Yasumi/data/translations/winterTime.php index b86595bdc..5346c2374 100644 --- a/src/Yasumi/data/translations/winterTime.php +++ b/src/Yasumi/data/translations/winterTime.php @@ -10,7 +10,7 @@ * @author Sacha Telgenhof */ -// Translations for daylight saving time end. +// Translations for Wintertime return [ 'da_DK' => 'Sommertid slutter', 'en_US' => 'Wintertime', From 74e52b20f14f2db50f9e48c914dc12d3d33a650e Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 2 Nov 2018 12:22:53 +0900 Subject: [PATCH 072/132] Since 1980 Summertime in Denmark starts on the last day of March. In 1980 itself however, it started on April, 6th. Adjusted the test accordingly to avoid a false negative. Signed-off-by: Sacha Telgenhof --- tests/Denmark/SummerTimeTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php index 297d7ea29..8d9075581 100644 --- a/tests/Denmark/SummerTimeTest.php +++ b/tests/Denmark/SummerTimeTest.php @@ -35,11 +35,18 @@ public function testSummerTime() $this->assertNotHoliday(self::REGION, self::HOLIDAY, $this->generateRandomYear(1949, 1979)); $year = $this->generateRandomYear(1980, 2036); + $expectedDate = new DateTime("last sunday of march $year", new DateTimeZone(self::TIMEZONE)); + + // Since 1980 Summertime in Denmark starts on the last day of March. In 1980 itself however, it started on April, 6th. + if ($year === 1980) { + $expectedDate = new DateTime('1980-04-06', new DateTimeZone(self::TIMEZONE)); + } + $this->assertHoliday( self::REGION, self::HOLIDAY, $year, - new DateTime("last sunday of march $year", new DateTimeZone(self::TIMEZONE)) + $expectedDate ); } From 3273e0fc8ecce233400304587459d1b55095805d Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 2 Nov 2018 12:42:40 +0900 Subject: [PATCH 073/132] Applied proper null check. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Denmark.php | 4 ++-- src/Yasumi/Provider/Netherlands.php | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index b360c819f..7da476633 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -63,11 +63,11 @@ public function initialize() $this->calculateConstitutionDay(); $summerTime = $this->summerTime($this->year, $this->timezone, $this->locale); - if ($summerTime) { + if ($summerTime !== null) { $this->addHoliday($summerTime); } $winterTime = $this->winterTime($this->year, $this->timezone, $this->locale); - if ($winterTime) { + if ($winterTime !== null) { $this->addHoliday($winterTime); } } diff --git a/src/Yasumi/Provider/Netherlands.php b/src/Yasumi/Provider/Netherlands.php index 7d0d547c9..0746b3a7f 100755 --- a/src/Yasumi/Provider/Netherlands.php +++ b/src/Yasumi/Provider/Netherlands.php @@ -177,11 +177,12 @@ public function initialize() )); $summerTime = $this->summerTime($this->year, $this->timezone, $this->locale); - if ($summerTime) { + if ($summerTime !== null) { $this->addHoliday($summerTime); } + $winterTime = $this->winterTime($this->year, $this->timezone, $this->locale); - if ($winterTime) { + if ($winterTime !== null) { $this->addHoliday($winterTime); } From 87b730de8b045026ec852216a8ad35ed8c840b78 Mon Sep 17 00:00:00 2001 From: Christian Mohr Date: Fri, 9 Nov 2018 13:21:16 +0100 Subject: [PATCH 074/132] Added Reformation Day as official holiday since 2018 in Bremen (Germany) --- CHANGELOG.md | 1 + src/Yasumi/Provider/Germany/Bremen.php | 31 ++++++ tests/Germany/Bremen/ReformationDayTest.php | 102 ++++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 tests/Germany/Bremen/ReformationDayTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index ebb45f8d9..a3ff67ebb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). [#115](https://github.com/azuyalabs/yasumi/issues/115) - Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) - Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) +- Added Reformation Day as offical holiday since 2018 in Bremen (Germany). [#116](https://github.com/azuyalabs/yasumi/issues/116) ### Changed - Upgraded to PHPUnit 7. diff --git a/src/Yasumi/Provider/Germany/Bremen.php b/src/Yasumi/Provider/Germany/Bremen.php index 3e37353be..c7408cf8f 100755 --- a/src/Yasumi/Provider/Germany/Bremen.php +++ b/src/Yasumi/Provider/Germany/Bremen.php @@ -30,4 +30,35 @@ class Bremen extends Germany * country or sub-region. */ const ID = 'DE-HB'; + + /** + * Initialize holidays for Bremen (Germany). + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + */ + public function initialize() + { + parent::initialize(); + + // Add custom Christian holidays + $this->calculateReformationDay(); + } + /** + * For the German state of Bremen, Reformation Day is celebrated since 2018. + * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. + * + * @throws \Yasumi\Exception\InvalidDateException + * @throws \InvalidArgumentException + * @throws \Yasumi\Exception\UnknownLocaleException + */ + private function calculateReformationDay() + { + if ($this->year < 2018) { + return; + } + $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); + } } diff --git a/tests/Germany/Bremen/ReformationDayTest.php b/tests/Germany/Bremen/ReformationDayTest.php new file mode 100644 index 000000000..0eff682f7 --- /dev/null +++ b/tests/Germany/Bremen/ReformationDayTest.php @@ -0,0 +1,102 @@ + + */ + +namespace Yasumi\tests\Germany\Bremen; + +use DateTime; +use DateTimeZone; +use Yasumi\Holiday; +use Yasumi\tests\YasumiTestCaseInterface; + +/** + * Class for testing Reformation Day in Bremen (Germany). + */ +class ReformationDayTest extends BremenBaseTestCase implements YasumiTestCaseInterface +{ + /** + * The name of the holiday to be tested + */ + const HOLIDAY = 'reformationDay'; + + /** + * The year in which the holiday was first established + */ + const ESTABLISHMENT_YEAR = 2018; + + /** + * Tests the holiday defined in this test. + * + * @dataProvider HolidayDataProvider + * + * @param int $year the year for which the holiday defined in this test needs to be tested + * @param DateTime $expected the expected date + */ + public function testHoliday($year, $expected) + { + $this->assertHoliday(self::REGION, self::HOLIDAY, $year, $expected); + } + + /** + * Returns a list of random test dates used for assertion of the holiday defined in this test + * + * @return array list of test dates for the holiday defined in this test + */ + public function HolidayDataProvider(): array + { + $data = []; + + for ($y = 0; $y < self::TEST_ITERATIONS; $y++) { + $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); + $data[] = [$year, new DateTime("$year-10-31", new DateTimeZone(self::TIMEZONE))]; + } + + return $data; + } + + /** + * Tests the holiday defined in this test before establishment. + */ + public function testHolidayBeforeEstablishment() + { + $this->assertNotHoliday( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR - 1) + ); + } + + /** + * Tests the translated name of the holiday defined in this test. + */ + public function testTranslation() + { + $this->assertTranslatedHolidayName( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + [self::LOCALE => 'Reformationstag'] + ); + } + + /** + * Tests type of the holiday defined in this test. + */ + public function testHolidayType() + { + $this->assertHolidayType( + self::REGION, + self::HOLIDAY, + $this->generateRandomYear(self::ESTABLISHMENT_YEAR), + Holiday::TYPE_OFFICIAL + ); + } +} From 0248b780ae137d84a7ea835866c4c4639ac3c548 Mon Sep 17 00:00:00 2001 From: Clark Seanor Date: Thu, 22 Nov 2018 05:10:54 +0000 Subject: [PATCH 075/132] Adds a new filter to select holidays that happen on a given date. (#119) --- src/Yasumi/Filters/OnFilter.php | 75 +++++++++++++++++++ src/Yasumi/Provider/AbstractProvider.php | 20 ++++++ tests/Base/HolidayOnFilterTest.php | 92 ++++++++++++++++++++++++ 3 files changed, 187 insertions(+) create mode 100644 src/Yasumi/Filters/OnFilter.php create mode 100644 tests/Base/HolidayOnFilterTest.php diff --git a/src/Yasumi/Filters/OnFilter.php b/src/Yasumi/Filters/OnFilter.php new file mode 100644 index 000000000..ed13cd785 --- /dev/null +++ b/src/Yasumi/Filters/OnFilter.php @@ -0,0 +1,75 @@ + + * @author Sacha Telgenhof + */ + +namespace Yasumi\Filters; + +use Countable; +use FilterIterator; +use Iterator; + +/** + * OnFilter is a class used for filtering holidays based on a given date. + * + * Filters for all holidays that happen on the given date. + * + * Note: this class can be used separately, however is implemented by the AbstractProvider::on method. + * + * @package Yasumi\Filters + */ +class OnFilter extends FilterIterator implements Countable +{ + /** + * @var string date to check for holidays + */ + private $date; + + + /** + * Construct the On FilterIterator Object + * + * @param \Iterator $iterator Iterator object of the Holidays Provider + * @param \DateTimeInterface $date Start date of the time frame to check against + */ + + public function __construct( + Iterator $iterator, + \DateTimeInterface $date + ) { + parent::__construct($iterator); + $this->date = $date->format('Y-m-d'); + } + + /** + * @return bool Check whether the current element of the iterator is acceptable + */ + public function accept(): bool + { + $holiday = $this->getInnerIterator()->current()->format('Y-m-d'); + return $holiday == $this->date; + } + + /** + * @return integer Returns the number of holidays that happen on the specified date + */ + public function count(): int + { + $days = \array_keys(\iterator_to_array($this)); + + \array_walk($days, function (&$day) { + $day = \str_replace('substituteHoliday:', '', $day); + }); + + return \count(\array_unique($days)); + } +} diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index b35b0747a..a66738925 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -17,6 +17,7 @@ use InvalidArgumentException; use IteratorAggregate; use Yasumi\Filters\BetweenFilter; +use Yasumi\Filters\OnFilter; use Yasumi\Holiday; use Yasumi\ProviderInterface; use Yasumi\TranslationsInterface; @@ -443,6 +444,25 @@ public function between(\DateTimeInterface $start_date, \DateTimeInterface $end_ return new BetweenFilter($this->getIterator(), $start_date, $end_date, $equals); } + + /** + * Retrieves a list of all holidays that happen on the given date. + * + * Yasumi only calculates holidays for a single year, so a date outside of the given year will not appear to + * contain any holidays. + * + * Please take care to use the appropriate timezone for the date parameters. If there is a different timezone used + * for these parameters versus the instantiated Holiday Provider, the outcome might be unexpected (but correct). + * + * @param \DateTimeInterface $date Date to check for holidays on. + * + * @return \Yasumi\Filters\OnFilter + */ + public function on(\DateTimeInterface $date): OnFilter + { + return new OnFilter($this->getIterator(), $date); + } + /** * Get an iterator for the holidays. * diff --git a/tests/Base/HolidayOnFilterTest.php b/tests/Base/HolidayOnFilterTest.php new file mode 100644 index 000000000..56b5795ae --- /dev/null +++ b/tests/Base/HolidayOnFilterTest.php @@ -0,0 +1,92 @@ + + * @author Sacha Telgenhof + */ + +namespace Yasumi\tests\Base; + +use DateTime; +use DateTimeZone; +use InvalidArgumentException; +use PHPUnit\Framework\TestCase; +use Yasumi\tests\YasumiBase; +use Yasumi\Yasumi; + +/** + * Class HolidayOnFilterTest. + * + * Contains tests for testing the OnFilter class + */ +class HolidayOnFilterTest extends TestCase +{ + use YasumiBase; + + /** + * Tests the basic usage of the OnFilter. + */ + public function testHolidaysOnDate() + { + $timezone = 'Europe/Amsterdam'; + $holidays = Yasumi::create('Netherlands', 2016); + + $holidayDates = [ + 'goodFriday' => new DateTime('03/25/2016', new DateTimeZone($timezone)), + 'easter' => new DateTime('03/27/2016', new DateTimeZone($timezone)), + 'summerTime' => new DateTime('03/27/2016', new DateTimeZone($timezone)) + ]; + + foreach ($holidayDates as $name => $date) { + $holidaysOnDate = $holidays->on( + $date + ); + + $this->assertArrayHasKey($name, \iterator_to_array($holidaysOnDate)); + } + } + + public function testHolidaysNotOnDate() + { + $timezone = 'Europe/Amsterdam'; + $holidays = Yasumi::create('Netherlands', 2016); + + $holidayWrongDates = [ + 'goodFriday' => new DateTime('04/25/2016', new DateTimeZone($timezone)), + 'easter' => new DateTime('03/22/2016', new DateTimeZone($timezone)), + 'summerTime' => new DateTime('12/27/2016', new DateTimeZone($timezone)) + ]; + + foreach ($holidayWrongDates as $name => $date) { + $holidaysOnDate = $holidays->on( + $date + ); + + $this->assertArrayNotHasKey($name, \iterator_to_array($holidaysOnDate)); + } + } + + public function testCorrectNumberOfHolidaysOnDate() + { + $timezone = 'Europe/Amsterdam'; + $holidays = Yasumi::create('Netherlands', 2016); + + // No holidays + $holidaysOnDate = $holidays->on(new \DateTime('11/19/2016', new DateTimeZone($timezone))); + $this->assertEquals(0, $holidaysOnDate->count()); + + // One holiday + $holidaysOnDate = $holidays->on(new \DateTime('12/25/2016', new DateTimeZone($timezone))); + $this->assertEquals(1, $holidaysOnDate->count()); + + // Multiple holidays + $holidaysOnDate = $holidays->on(new \DateTime('03/27/2016', new DateTimeZone($timezone))); + $this->assertGreaterThan(1, $holidaysOnDate->count()); + } +} From a944918f1be46817b99d536bedbb494ab2a4ca78 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sun, 2 Dec 2018 17:14:54 +0900 Subject: [PATCH 076/132] Updated the CHANGELOG with all last changes. Added missing names of contributors. Signed-off-by: Sacha Telgenhof --- CHANGELOG.md | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3ff67ebb..f8ad93ac1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,24 +6,31 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] ### Added +- New filter to select holidays that happen on a given date [\#119](https://github.com/azuyalabs/yasumi/pull/119) ([cruxicheiros](https://github.com/cruxicheiros)) - Holiday Providers for all Australian states and teritories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) -- Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). [#115](https://github.com/azuyalabs/yasumi/issues/115) -- Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) -- Added Day of Reformation as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) -- Added Reformation Day as offical holiday since 2018 in Bremen (Germany). [#116](https://github.com/azuyalabs/yasumi/issues/116) +- Holiday Provider for Bosnia. [\#194](https://github.com/azuyalabs/yasumi/pull/94) ([TheAdnan](https://github.com/TheAdnan)) +- Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). [#115](https://github.com/azuyalabs/yasumi/issues/115) ([Taxcamp](https://github.com/Taxcamp)) +- Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) ([HenningCash](https://github.com/HenningCash)) +- Added Reformation Day as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) ([HenningCash](https://github.com/HenningCash)) +- Added Reformation Day as offical holiday since 2018 in Bremen (Germany). [#116](https://github.com/azuyalabs/yasumi/issues/116) ([TalonTR](https://github.com/TalonTR)) +- The (observed) holidays Lukkeloven, Constitution Day, New Year's Eve and Labour Day, as well as summertime and wintertime are included for Denmark [\#104](https://github.com/azuyalabs/yasumi/pull/104) ([c960657](https://github.com/c960657)) ### Changed - Upgraded to PHPUnit 7. -- Changed Japanese holiday for the 2020 Olympic Games.Marine Day,Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) -- Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) -- Changed translation for Norway's national day. [\#98](https://github.com/azuyalabs/yasumi/pull/98) +- PHP version 7.1 is now the minimum required version. +- Changed Japanese holiday for the 2020 Olympic Games.Marine Day,Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) ([cookie-maker](https://github.com/cookie-maker)) +- Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) ([c960657](https://github.com/c960657)) +- Changed translation for Norway's national day. [\#98](https://github.com/azuyalabs/yasumi/pull/98) ([c960657](https://github.com/c960657)) +- Applied proper null checks in the summertime and wintertime calculations for Denmark and The Netherlands. +- Corrected some namespaces for Australia and Germany. ### Fixed -- Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) -- Fixed spelling issues in the Danish translation. [\#96](https://github.com/azuyalabs/yasumi/pull/96) -- Fixed German Easter Sunday and Pentecost Sunday holidays (not nationwide, only in Brandenburg). [\#100](https://github.com/azuyalabs/yasumi/pull/100) -- Fixed BetweenFilter to ignore time part and timezone. [\#101](https://github.com/azuyalabs/yasumi/pull/101) -- Fixed bug in provider list generation related to variable order of files returned by the filesystem [\#107](https://github.com/azuyalabs/yasumi/pull/107) +- Fixed issue for summertime in Denmark in 1980. By default summertime in Denmark is set for the last day of March since 1980, however in 1980 itself, it started on April, 6th. +- Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) ([c960657](https://github.com/c960657)) +- Fixed spelling issues in the Danish translation. [\#96](https://github.com/azuyalabs/yasumi/pull/96) ([c960657](https://github.com/c960657)) +- Fixed German Easter Sunday and Pentecost Sunday holidays (not nationwide, only in Brandenburg). [\#100](https://github.com/azuyalabs/yasumi/pull/100) ([TalonTR](https://github.com/TalonTR)) +- Fixed BetweenFilter to ignore time part and timezone. [\#101](https://github.com/azuyalabs/yasumi/pull/101) ([c960657](https://github.com/c960657)) +- Fixed bug in provider list generation related to variable order of files returned by the filesystem [\#107](https://github.com/azuyalabs/yasumi/pull/107) ([leafnode](https://github.com/leafnode)) ### Removed From a90e0cd230b4e27d962bcab2db168c7a42833d80 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 09:12:03 +0900 Subject: [PATCH 077/132] Except New Years Day, all holidays for Russia didn't have the locale parameter in place, causing Yasumi to use the fallback locale ('en_US'). Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Russia.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index eeadcd82b..751ac6a11 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -67,7 +67,7 @@ private function addNewYearsHolidays() $this->addHoliday(new Holiday('newYearHolidaysDay' . $day, [ 'en_US' => 'New Year\'s holidays', 'ru_RU' => 'Новогодние каникулы' - ], new \DateTime("{$this->year}-01-{$day}", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-01-{$day}", new \DateTimeZone($this->timezone)), $this->locale)); } } @@ -79,7 +79,7 @@ private function addOrthodoxChristmasDay() $this->addHoliday(new Holiday('orthodoxChristmasDay', [ 'en_US' => 'Orthodox Christmas Day', 'ru_RU' => 'Рождество' - ], new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-01-07", new \DateTimeZone($this->timezone)), $this->locale)); } /** @@ -94,7 +94,7 @@ private function addDefenceOfTheFatherlandDay() $this->addHoliday(new Holiday('defenceOfTheFatherlandDay', [ 'en_US' => 'Defence of the Fatherland Day', 'ru_RU' => 'День защитника Отечества' - ], new \DateTime("{$this->year}-02-23", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-02-23", new \DateTimeZone($this->timezone)), $this->locale)); } /** @@ -105,7 +105,7 @@ private function addInternationalWomensDay() $this->addHoliday(new Holiday('internationalWomensDay', [ 'en_US' => 'International Women\'s Day', 'ru_RU' => 'Международный женский день' - ], new \DateTime("{$this->year}-03-08", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-03-08", new \DateTimeZone($this->timezone)), $this->locale)); } /** @@ -116,7 +116,7 @@ private function addSpringAndLabourDay() $this->addHoliday(new Holiday('springAndLabourDay', [ 'en_US' => 'Spring and Labour Day', 'ru_RU' => 'Праздник Весны и Труда' - ], new \DateTime("{$this->year}-05-01", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-05-01", new \DateTimeZone($this->timezone)), $this->locale)); } /** @@ -127,7 +127,7 @@ private function addVictoryDay() $this->addHoliday(new Holiday('victoryDay', [ 'en_US' => 'Victory Day', 'ru_RU' => 'День Победы' - ], new \DateTime("{$this->year}-05-09", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-05-09", new \DateTimeZone($this->timezone)), $this->locale)); } /** @@ -142,7 +142,7 @@ private function addRussiaDay() $this->addHoliday(new Holiday('russiaDay', [ 'en_US' => 'Russia Day', 'ru_RU' => 'День России' - ], new \DateTime("{$this->year}-06-12", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-06-12", new \DateTimeZone($this->timezone)), $this->locale)); } /** @@ -157,6 +157,6 @@ private function addUnityDay() $this->addHoliday(new Holiday('unityDay', [ 'en_US' => 'Unity Day', 'ru_RU' => 'День народного единства' - ], new \DateTime("{$this->year}-11-04", new \DateTimeZone($this->timezone)))); + ], new \DateTime("{$this->year}-11-04", new \DateTimeZone($this->timezone)), $this->locale)); } } From 3303ecbdcc97ded3b35059806ad65da26304dae3 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 09:20:25 +0900 Subject: [PATCH 078/132] Removed unnecessary type cast. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index fa848bdb5..115433c56 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -187,6 +187,6 @@ public function mergeGlobalTranslations(TranslationsInterface $globalTranslation */ public function __toString(): string { - return (string)$this->format('Y-m-d'); + return $this->format('Y-m-d'); } } From f01c0f8918dd5fa1f935d153988253a90aed0464 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 09:26:20 +0900 Subject: [PATCH 079/132] Added missing return statement documentation. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/CommonHolidays.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index 005191665..713ba83b5 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -390,15 +390,22 @@ public function armisticeDay( /** * Calculates daylight saving time transitions. * - * Daylight saving time is the practice of advancing clocks by one hour during summer months so evening daylight lasts even longer, while sacrificing normal sunrise times. + * Daylight saving time is the practice of advancing clocks by one hour during summer months so evening daylight + * lasts even longer, while sacrificing normal sunrise times. * - * The date of transition between standard time and daylight saving time differs from country to country and sometimes from year to year. Most countries outside Europe and North America do not observe daylight saving time. + * The date of transition between standard time and daylight saving time differs from country to country and + * sometimes from year to year. Most countries outside Europe and North America do not observe daylight saving + * time. * - * On the northern hemisphere, summer time starts around March/April. On the southern hemisphere it happens 6 months later. + * On the northern hemisphere, summer time starts around March/April. On the southern hemisphere it happens 6 + * months later. * * @param int $year the year for which Easter needs to be calculated * @param string $timezone the timezone in which Easter is celebrated * @param bool $summer whether to calculate the start of summer or winter time + * + * @return \DateTime|null A DateTime object representing the summer or winter transition time for the given timezone. + * If no transition time is found, a null value is returned. */ protected function calculateSummerWinterTime($year, $timezone, $summer) { From 6f25f12dcd06c6ebd4e4a1f63283d9c295604f1a Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 09:28:39 +0900 Subject: [PATCH 080/132] Removed unused import classes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia/Queensland.php | 1 - src/Yasumi/Provider/Australia/Tasmania.php | 1 - src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php | 1 - src/Yasumi/Provider/Australia/Tasmania/KingIsland.php | 2 -- src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php | 2 -- src/Yasumi/Provider/Australia/WA.php | 1 - 6 files changed, 8 deletions(-) diff --git a/src/Yasumi/Provider/Australia/Queensland.php b/src/Yasumi/Provider/Australia/Queensland.php index 3b608883f..c57fd0462 100644 --- a/src/Yasumi/Provider/Australia/Queensland.php +++ b/src/Yasumi/Provider/Australia/Queensland.php @@ -12,7 +12,6 @@ namespace Yasumi\Provider\Australia; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; diff --git a/src/Yasumi/Provider/Australia/Tasmania.php b/src/Yasumi/Provider/Australia/Tasmania.php index 50323d0a0..d98684ec7 100644 --- a/src/Yasumi/Provider/Australia/Tasmania.php +++ b/src/Yasumi/Provider/Australia/Tasmania.php @@ -12,7 +12,6 @@ namespace Yasumi\Provider\Australia; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php index e3d404ec2..850ad6576 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -12,7 +12,6 @@ namespace Yasumi\Provider\Australia\Tasmania; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php index 82e64fb8d..78951dac2 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -12,10 +12,8 @@ namespace Yasumi\Provider\Australia\Tasmania; -use DateInterval; use DateTime; use DateTimeZone; -use Yasumi\Holiday; use Yasumi\Provider\Australia\Tasmania; /** diff --git a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php index 949990b82..a7d63bf39 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php @@ -12,10 +12,8 @@ namespace Yasumi\Provider\Australia\Tasmania\South; -use DateInterval; use DateTime; use DateTimeZone; -use Yasumi\Holiday; use Yasumi\Provider\Australia\Tasmania\South; /** diff --git a/src/Yasumi/Provider/Australia/WA.php b/src/Yasumi/Provider/Australia/WA.php index c964f0afc..7a1475314 100644 --- a/src/Yasumi/Provider/Australia/WA.php +++ b/src/Yasumi/Provider/Australia/WA.php @@ -12,7 +12,6 @@ namespace Yasumi\Provider\Australia; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; From f9c798d2bbd8fcd729952e4f9f2ad014a4bdbd95 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 10:14:27 +0900 Subject: [PATCH 081/132] Added missing exceptions in inline documentation. For Austria (and related states) added missing PHPDocumentation for a number of methods. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 1 + src/Yasumi/Provider/Australia/ACT.php | 19 +++++++++++++-- src/Yasumi/Provider/Australia/NSW.php | 5 ++++ src/Yasumi/Provider/Australia/NT.php | 5 ++++ src/Yasumi/Provider/Australia/Queensland.php | 5 ++++ src/Yasumi/Provider/Australia/SA.php | 12 +++++++++- src/Yasumi/Provider/Australia/Tasmania.php | 5 ++++ .../Australia/Tasmania/CentralNorth.php | 7 +++++- .../Australia/Tasmania/FlindersIsland.php | 7 +++++- .../Australia/Tasmania/KingIsland.php | 7 +++++- .../Provider/Australia/Tasmania/Northeast.php | 7 +++++- .../Provider/Australia/Tasmania/Northwest.php | 7 +++++- .../Tasmania/Northwest/CircularHead.php | 7 +++++- .../Provider/Australia/Tasmania/South.php | 7 +++++- .../Australia/Tasmania/South/Southeast.php | 7 +++++- src/Yasumi/Provider/Australia/Victoria.php | 15 ++++++++++++ src/Yasumi/Provider/Australia/WA.php | 5 ++++ src/Yasumi/Provider/Austria.php | 1 + src/Yasumi/Provider/ChristianHolidays.php | 14 +++++++++++ src/Yasumi/Provider/CommonHolidays.php | 23 +++++++++++++++---- src/Yasumi/Provider/CzechRepublic.php | 5 ++++ src/Yasumi/Provider/Denmark.php | 1 + src/Yasumi/Provider/Estonia.php | 3 +++ src/Yasumi/Provider/Finland.php | 2 ++ src/Yasumi/Provider/France.php | 1 + src/Yasumi/Provider/Germany.php | 1 + src/Yasumi/Provider/Germany/Brandenburg.php | 1 + src/Yasumi/Provider/Germany/Bremen.php | 2 ++ src/Yasumi/Provider/Germany/Hamburg.php | 1 + src/Yasumi/Provider/Germany/LowerSaxony.php | 1 + .../Germany/MecklenburgWesternPomerania.php | 1 + src/Yasumi/Provider/Germany/Saxony.php | 2 ++ src/Yasumi/Provider/Germany/SaxonyAnhalt.php | 1 + .../Provider/Germany/SchleswigHolstein.php | 2 ++ src/Yasumi/Provider/Germany/Thuringia.php | 1 + src/Yasumi/Provider/Greece.php | 4 ++++ src/Yasumi/Provider/Ireland.php | 13 +++++++++++ src/Yasumi/Provider/Italy.php | 4 ++++ src/Yasumi/Provider/Japan.php | 19 ++++++++++++++- src/Yasumi/Provider/Latvia.php | 3 +++ src/Yasumi/Provider/Lithuania.php | 3 +++ src/Yasumi/Provider/NewZealand.php | 4 ++++ src/Yasumi/Provider/Norway.php | 4 +++- src/Yasumi/Provider/Poland.php | 2 ++ src/Yasumi/Provider/Portugal.php | 5 ++++ src/Yasumi/Provider/Romania.php | 7 ++++++ src/Yasumi/Provider/Russia.php | 9 ++++++++ src/Yasumi/Provider/Slovakia.php | 5 ++++ src/Yasumi/Provider/SouthAfrica.php | 8 +++++++ src/Yasumi/Provider/Spain.php | 2 ++ src/Yasumi/Provider/Spain/Andalusia.php | 1 + src/Yasumi/Provider/Spain/Asturias.php | 1 + src/Yasumi/Provider/Spain/BalearicIslands.php | 1 + src/Yasumi/Provider/Spain/BasqueCountry.php | 1 + src/Yasumi/Provider/Spain/CanaryIslands.php | 1 + src/Yasumi/Provider/Spain/Cantabria.php | 1 + src/Yasumi/Provider/Spain/CastileAndLeon.php | 1 + .../Provider/Spain/CastillaLaMancha.php | 1 + src/Yasumi/Provider/Spain/Catalonia.php | 1 + src/Yasumi/Provider/Spain/Ceuta.php | 1 + .../Provider/Spain/CommunityOfMadrid.php | 1 + src/Yasumi/Provider/Spain/Extremadura.php | 1 + src/Yasumi/Provider/Spain/Galicia.php | 2 ++ src/Yasumi/Provider/Spain/LaRioja.php | 1 + src/Yasumi/Provider/Spain/RegionOfMurcia.php | 1 + .../Provider/Spain/ValencianCommunity.php | 1 + src/Yasumi/Provider/Sweden.php | 1 + src/Yasumi/Provider/Switzerland.php | 4 ++++ src/Yasumi/Provider/Switzerland/Geneva.php | 1 + src/Yasumi/Provider/Switzerland/Glarus.php | 1 + src/Yasumi/Provider/Switzerland/Jura.php | 1 + src/Yasumi/Provider/Switzerland/Neuchatel.php | 1 + src/Yasumi/Provider/Switzerland/Obwalden.php | 2 ++ src/Yasumi/Provider/Switzerland/Ticino.php | 1 + src/Yasumi/Provider/Ukraine.php | 7 ++++++ src/Yasumi/Provider/UnitedKingdom.php | 4 ++++ 76 files changed, 305 insertions(+), 18 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 115433c56..0a5788e16 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -96,6 +96,7 @@ class Holiday extends DateTime implements JsonSerializable * @throws \Yasumi\Exception\InvalidDateException * @throws UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function __construct( string $shortName, diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index 44465eace..c86b44757 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -51,6 +51,11 @@ public function initialize() $this->calculateReconciliationDay(); } + /** + * Canberra Day + * + * @throws \Exception + */ public function calculateCanberraDay() { if ($this->year < 2007) { @@ -60,7 +65,12 @@ public function calculateCanberraDay() } $this->addHoliday(new Holiday('canberraDay', ['en_AU' => 'Canberra Day'], $date, $this->locale)); } - + + /** + * Reconciliation Day + * + * @throws \Exception + */ public function calculateReconciliationDay() { if ($this->year < 2018) { @@ -74,7 +84,12 @@ public function calculateReconciliationDay() $this->addHoliday(new Holiday('reconciliationDay', ['en_AU' => 'Reconciliation Day'], $date, $this->locale)); } } - + + /** + * Labour Day + * + * @throws \Exception + */ public function calculateLabourDay() { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/NSW.php b/src/Yasumi/Provider/Australia/NSW.php index da076eab2..24449c5b1 100644 --- a/src/Yasumi/Provider/Australia/NSW.php +++ b/src/Yasumi/Provider/Australia/NSW.php @@ -50,6 +50,11 @@ public function initialize() $this->calculateBankHoliday(); } + /** + * Labour Day + * + * @throws \Exception + */ public function calculateLabourDay() { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/NT.php b/src/Yasumi/Provider/Australia/NT.php index 345e5bc2c..dcd81c635 100644 --- a/src/Yasumi/Provider/Australia/NT.php +++ b/src/Yasumi/Provider/Australia/NT.php @@ -49,6 +49,11 @@ public function initialize() $this->calculatePicnicDay(); } + /** + * May Day + * + * @throws \Exception + */ public function calculateMayDay() { $date = new DateTime("first monday of may $this->year", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Queensland.php b/src/Yasumi/Provider/Australia/Queensland.php index c57fd0462..ea1046f34 100644 --- a/src/Yasumi/Provider/Australia/Queensland.php +++ b/src/Yasumi/Provider/Australia/Queensland.php @@ -46,6 +46,11 @@ public function initialize() $this->calculateLabourDay(); } + /** + * Labour Day + * + * @throws \Exception + */ public function calculateLabourDay() { if ($this->year === 2013 || $this->year === 2014 || $this->year === 2015) { diff --git a/src/Yasumi/Provider/Australia/SA.php b/src/Yasumi/Provider/Australia/SA.php index b23bdcfe5..f56fa86d4 100644 --- a/src/Yasumi/Provider/Australia/SA.php +++ b/src/Yasumi/Provider/Australia/SA.php @@ -57,6 +57,11 @@ public function initialize() $this->calculateProclamationDay(); } + /** + * Proclamation Day + * + * @throws \Exception + */ public function calculateProclamationDay() { $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); @@ -84,7 +89,12 @@ public function calculateProclamationDay() break; } } - + + /** + * Labour Day + * + * @throws \Exception + */ public function calculateLabourDay() { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania.php b/src/Yasumi/Provider/Australia/Tasmania.php index d98684ec7..fb096502c 100644 --- a/src/Yasumi/Provider/Australia/Tasmania.php +++ b/src/Yasumi/Provider/Australia/Tasmania.php @@ -47,6 +47,11 @@ public function initialize() $this->calculateRecreationDay(); } + /** + * Eight Hours Day + * + * @throws \Exception + */ public function calculateEightHoursDay() { $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php index 850ad6576..c9a942db7 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -45,7 +45,12 @@ public function initialize() $this->calculateDevonportShow(); } - + + /** + * Devonport Show + * + * @throws \Exception + */ public function calculateDevonportShow() { $date = new DateTime($this->year . '-12-02', new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php index aa1e8bd74..d92354b0e 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php @@ -46,7 +46,12 @@ public function initialize() $this->calculateFlindersIslandShow(); } - + + /** + * Flinders Island Show + * + * @throws \Exception + */ public function calculateFlindersIslandShow() { $date = new DateTime('third saturday of october ' . $this->year, new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php index 78951dac2..21d2f3a70 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -44,7 +44,12 @@ public function initialize() $this->calculateKingIslandShow(); } - + + /** + * King Island Show + * + * @throws \Exception + */ public function calculateKingIslandShow() { $this->calculateHoliday( diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php index 4fefad979..960e3c240 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php @@ -46,7 +46,12 @@ public function initialize() $this->calculateLauncestonShow(); } - + + /** + * Royal Launceston Show + * + * @throws \Exception + */ public function calculateLauncestonShow() { $date = new DateTime('second saturday of october ' . $this->year, new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php index a87a13b09..44b7f3ae2 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php @@ -46,7 +46,12 @@ public function initialize() $this->calculateBurnieShow(); } - + + /** + * Burnie Show + * + * @throws \Exception + */ public function calculateBurnieShow() { $date = new DateTime('first saturday of october ' . $this->year, new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php index f4c8c0d72..f9356acae 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php @@ -46,7 +46,12 @@ public function initialize() $this->calculateAGFEST(); } - + + /** + * AGFEST + * + * @throws \Exception + */ public function calculateAGFEST() { $date = new DateTime('first thursday of may ' . $this->year, new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/South.php b/src/Yasumi/Provider/Australia/Tasmania/South.php index 84e31ae15..dcb6085d8 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South.php @@ -46,7 +46,12 @@ public function initialize() $this->calculateHobartShow(); } - + + /** + * Royal Hobart Show + * + * @throws \Exception + */ public function calculateHobartShow() { $date = new DateTime('fourth saturday of october ' . $this->year, new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php index a7d63bf39..6a7737b76 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php @@ -45,7 +45,12 @@ public function initialize() $this->removeHoliday('recreationDay'); $this->calculateHobartRegatta(); } - + + /** + * Royal Hobart Regatta + * + * @throws \Exception + */ public function calculateHobartRegatta() { $this->calculateHoliday( diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index 923ae54fa..969b62664 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -52,6 +52,11 @@ public function initialize() $this->calculateAFLGrandFinalDay(); } + /** + * Labour Day + * + * @throws \Exception + */ public function calculateLabourDay() { $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); @@ -59,6 +64,11 @@ public function calculateLabourDay() $this->addHoliday(new Holiday('labourDay', ['en_AU' => 'Labour Day'], $date, $this->locale)); } + /** + * Melbourne Cup Day + * + * @throws \Exception + */ public function calculateMelbourneCupDay() { $date = new DateTime('first Tuesday of November' . " $this->year", new DateTimeZone($this->timezone)); @@ -66,6 +76,11 @@ public function calculateMelbourneCupDay() $this->addHoliday(new Holiday('melbourneCup', ['en_AU' => 'Melbourne Cup'], $date, $this->locale)); } + /** + * AFL Grand Final Day + * + * @throws \Exception + */ public function calculateAFLGrandFinalDay() { switch ($this->year) { diff --git a/src/Yasumi/Provider/Australia/WA.php b/src/Yasumi/Provider/Australia/WA.php index 7a1475314..2f77886e7 100644 --- a/src/Yasumi/Provider/Australia/WA.php +++ b/src/Yasumi/Provider/Australia/WA.php @@ -47,6 +47,11 @@ public function initialize() $this->calculateWesternAustraliaDay(); } + /** + * Labour Day + * + * @throws \Exception + */ public function calculateLabourDay() { $date = new DateTime("first monday of march $this->year", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Austria.php b/src/Yasumi/Provider/Austria.php index 210a497a8..c1ecb0299 100644 --- a/src/Yasumi/Provider/Austria.php +++ b/src/Yasumi/Provider/Austria.php @@ -76,6 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNationalDay() { diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index 59f2dbe7e..d8eb677e1 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -45,6 +45,7 @@ trait ChristianHolidays * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function easter(int $year, string $timezone, string $locale, string $type = Holiday::TYPE_OFFICIAL): Holiday { @@ -251,6 +252,7 @@ public function corpusChristi( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function christmasEve( int $year, @@ -285,6 +287,7 @@ public function christmasEve( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function christmasDay( int $year, @@ -319,6 +322,7 @@ public function christmasDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function secondChristmasDay( int $year, @@ -356,6 +360,7 @@ public function secondChristmasDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function allSaintsDay( int $year, @@ -386,6 +391,7 @@ public function allSaintsDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function assumptionOfMary( int $year, @@ -459,6 +465,7 @@ public function goodFriday( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function epiphany( int $year, @@ -527,6 +534,7 @@ public function ashWednesday( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function immaculateConception( int $year, @@ -565,6 +573,7 @@ public function immaculateConception( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function stStephensDay( int $year, @@ -603,6 +612,7 @@ public function stStephensDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function stJosephsDay( int $year, @@ -672,6 +682,7 @@ public function maundyThursday( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function stGeorgesDay( int $year, @@ -704,6 +715,7 @@ public function stGeorgesDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function stJohnsDay( int $year, @@ -736,6 +748,7 @@ public function stJohnsDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function annunciation( int $year, @@ -803,6 +816,7 @@ public function calculateOrthodoxEaster(int $year, string $timezone): \DateTime * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function reformationDay( int $year, diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index 713ba83b5..fcb293002 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -27,9 +27,9 @@ trait CommonHolidays * New Year's Eve. * * New Year's Eve is observed on December 31, the last day of the year on the modern Gregorian calendar as well as - * the Julian calendar. In present day, with most countries now using the Gregorian calendar as their de facto calendar, - * New Year's Eve is probably the most celebrated holiday, often observed with fireworks at the stroke of midnight as - * the new year starts in each time zone. + * the Julian calendar. In present day, with most countries now using the Gregorian calendar as their de facto + * calendar, New Year's Eve is probably the most celebrated holiday, often observed with fireworks at the stroke of + * midnight as the new year starts in each time zone. * * @link http://en.wikipedia.org/wiki/New_Year%27s_Eve * @@ -44,6 +44,7 @@ trait CommonHolidays * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function newYearsEve( int $year, @@ -77,6 +78,7 @@ public function newYearsEve( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function newYearsDay( int $year, @@ -109,6 +111,7 @@ public function newYearsDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function internationalWorkersDay( int $year, @@ -147,6 +150,7 @@ public function internationalWorkersDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function valentinesDay( int $year, @@ -183,6 +187,7 @@ public function valentinesDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function worldAnimalDay( int $year, @@ -221,6 +226,7 @@ public function worldAnimalDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function stMartinsDay( int $year, @@ -258,6 +264,7 @@ public function stMartinsDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function fathersDay( int $year, @@ -295,6 +302,7 @@ public function fathersDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function mothersDay( int $year, @@ -332,6 +340,7 @@ public function mothersDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function victoryInEuropeDay( int $year, @@ -371,6 +380,7 @@ public function victoryInEuropeDay( * @throws \Yasumi\Exception\InvalidDateException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function armisticeDay( int $year, @@ -404,8 +414,9 @@ public function armisticeDay( * @param string $timezone the timezone in which Easter is celebrated * @param bool $summer whether to calculate the start of summer or winter time * - * @return \DateTime|null A DateTime object representing the summer or winter transition time for the given timezone. - * If no transition time is found, a null value is returned. + * @return \DateTime|null A DateTime object representing the summer or winter transition time for the given + * timezone. If no transition time is found, a null value is returned. + * @throws \Exception */ protected function calculateSummerWinterTime($year, $timezone, $summer) { @@ -441,6 +452,7 @@ protected function calculateSummerWinterTime($year, $timezone, $summer) * * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON) { @@ -472,6 +484,7 @@ public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEAS * * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException + * @throws \Exception */ public function winterTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON) { diff --git a/src/Yasumi/Provider/CzechRepublic.php b/src/Yasumi/Provider/CzechRepublic.php index 9f5f7fa74..d0168e540 100644 --- a/src/Yasumi/Provider/CzechRepublic.php +++ b/src/Yasumi/Provider/CzechRepublic.php @@ -78,6 +78,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateSaintsCyrilAndMethodiusDay() { @@ -102,6 +103,7 @@ public function calculateSaintsCyrilAndMethodiusDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateJanHusDay() { @@ -129,6 +131,7 @@ public function calculateJanHusDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateCzechStatehoodDay() { @@ -148,6 +151,7 @@ public function calculateCzechStatehoodDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateIndependentCzechoslovakStateDay() { @@ -165,6 +169,7 @@ public function calculateIndependentCzechoslovakStateDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateStruggleForFreedomAndDemocracyDay() { diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index 7da476633..fc0b2f107 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -116,6 +116,7 @@ public function calculateGreatPrayerDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateConstitutionDay() { diff --git a/src/Yasumi/Provider/Estonia.php b/src/Yasumi/Provider/Estonia.php index bad66c457..0167d2ce2 100644 --- a/src/Yasumi/Provider/Estonia.php +++ b/src/Yasumi/Provider/Estonia.php @@ -63,6 +63,7 @@ public function initialize() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addIndependenceDay() { @@ -76,6 +77,7 @@ private function addIndependenceDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addVictoryDay() { @@ -89,6 +91,7 @@ private function addVictoryDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addRestorationOfIndependenceDay() { diff --git a/src/Yasumi/Provider/Finland.php b/src/Yasumi/Provider/Finland.php index 0f2a4cfad..3e9770f9e 100644 --- a/src/Yasumi/Provider/Finland.php +++ b/src/Yasumi/Provider/Finland.php @@ -80,6 +80,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateStJohnsDay() { @@ -156,6 +157,7 @@ private function calculateAllSaintsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateIndependenceDay() { diff --git a/src/Yasumi/Provider/France.php b/src/Yasumi/Provider/France.php index 126c87eef..ab68f6e4c 100755 --- a/src/Yasumi/Provider/France.php +++ b/src/Yasumi/Provider/France.php @@ -80,6 +80,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateBastilleDay() { diff --git a/src/Yasumi/Provider/Germany.php b/src/Yasumi/Provider/Germany.php index 1b0a85f0c..2667f6af4 100644 --- a/src/Yasumi/Provider/Germany.php +++ b/src/Yasumi/Provider/Germany.php @@ -78,6 +78,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateGermanUnityDay() { diff --git a/src/Yasumi/Provider/Germany/Brandenburg.php b/src/Yasumi/Provider/Germany/Brandenburg.php index 596e4d560..226f7165f 100755 --- a/src/Yasumi/Provider/Germany/Brandenburg.php +++ b/src/Yasumi/Provider/Germany/Brandenburg.php @@ -58,6 +58,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Germany/Bremen.php b/src/Yasumi/Provider/Germany/Bremen.php index c7408cf8f..7bdabfd50 100755 --- a/src/Yasumi/Provider/Germany/Bremen.php +++ b/src/Yasumi/Provider/Germany/Bremen.php @@ -46,6 +46,7 @@ public function initialize() // Add custom Christian holidays $this->calculateReformationDay(); } + /** * For the German state of Bremen, Reformation Day is celebrated since 2018. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. @@ -53,6 +54,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Germany/Hamburg.php b/src/Yasumi/Provider/Germany/Hamburg.php index d777c7b1e..4a9371725 100755 --- a/src/Yasumi/Provider/Germany/Hamburg.php +++ b/src/Yasumi/Provider/Germany/Hamburg.php @@ -55,6 +55,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateDayOfReformation() { diff --git a/src/Yasumi/Provider/Germany/LowerSaxony.php b/src/Yasumi/Provider/Germany/LowerSaxony.php index 583efb32e..42b97bb62 100755 --- a/src/Yasumi/Provider/Germany/LowerSaxony.php +++ b/src/Yasumi/Provider/Germany/LowerSaxony.php @@ -57,6 +57,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php index 8b12c95bd..341dfff67 100755 --- a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php +++ b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php @@ -55,6 +55,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Germany/Saxony.php b/src/Yasumi/Provider/Germany/Saxony.php index 551c46dd0..7399707da 100755 --- a/src/Yasumi/Provider/Germany/Saxony.php +++ b/src/Yasumi/Provider/Germany/Saxony.php @@ -57,6 +57,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { @@ -82,6 +83,7 @@ private function calculateReformationDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateRepentanceAndPrayerDay() { diff --git a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php index 588645de4..e75f230de 100755 --- a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php +++ b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php @@ -56,6 +56,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Germany/SchleswigHolstein.php b/src/Yasumi/Provider/Germany/SchleswigHolstein.php index 5aec6c11f..9aadfbe7d 100755 --- a/src/Yasumi/Provider/Germany/SchleswigHolstein.php +++ b/src/Yasumi/Provider/Germany/SchleswigHolstein.php @@ -46,6 +46,7 @@ public function initialize() // Add custom Christian holidays $this->calculateReformationDay(); } + /** * For the German state of Schleswig-Holstein, Reformation Day is celebrated since 2018. * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. @@ -53,6 +54,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Germany/Thuringia.php b/src/Yasumi/Provider/Germany/Thuringia.php index fa24890c9..2b6dfe77f 100755 --- a/src/Yasumi/Provider/Germany/Thuringia.php +++ b/src/Yasumi/Provider/Germany/Thuringia.php @@ -55,6 +55,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateReformationDay() { diff --git a/src/Yasumi/Provider/Greece.php b/src/Yasumi/Provider/Greece.php index d2d7fd563..9f5923e88 100644 --- a/src/Yasumi/Provider/Greece.php +++ b/src/Yasumi/Provider/Greece.php @@ -77,6 +77,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateThreeHolyHierarchs() { @@ -138,6 +139,7 @@ public function calculateEaster($year, $timezone): DateTime * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateIndependenceDay() @@ -162,6 +164,7 @@ public function calculateIndependenceDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateOhiDay() { @@ -185,6 +188,7 @@ public function calculateOhiDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculatePolytechnio() { diff --git a/src/Yasumi/Provider/Ireland.php b/src/Yasumi/Provider/Ireland.php index bdc096467..2ecbacb74 100644 --- a/src/Yasumi/Provider/Ireland.php +++ b/src/Yasumi/Provider/Ireland.php @@ -89,6 +89,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNewYearsDay() { @@ -143,6 +144,8 @@ public function calculatePentecostMonday() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateChristmasDay() { @@ -178,6 +181,8 @@ public function calculateChristmasDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateStStephensDay() { @@ -215,6 +220,8 @@ public function calculateStStephensDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateStPatricksDay() { @@ -255,6 +262,8 @@ public function calculateStPatricksDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateMayDay() { @@ -281,6 +290,8 @@ public function calculateMayDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateJuneHoliday() { @@ -306,6 +317,8 @@ public function calculateJuneHoliday() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateOctoberHoliday() { diff --git a/src/Yasumi/Provider/Italy.php b/src/Yasumi/Provider/Italy.php index e667364d8..97d084e54 100755 --- a/src/Yasumi/Provider/Italy.php +++ b/src/Yasumi/Provider/Italy.php @@ -74,6 +74,8 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateLiberationDay() { @@ -100,6 +102,8 @@ public function calculateLiberationDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateRepublicDay() { diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 0694f4978..4467f33d4 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -199,6 +199,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateVernalEquinoxDay() { @@ -232,6 +233,8 @@ private function calculateVernalEquinoxDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ private function calculateComingOfAgeDay() { @@ -260,6 +263,8 @@ private function calculateComingOfAgeDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ private function calculateGreeneryDay() { @@ -283,11 +288,15 @@ private function calculateGreeneryDay() /** * Calculates Marine Day. * - * Marine Day was established since 1996 on July 20th. After 2003 it was changed to be the third monday of July.In 2020 is July 23th. + * Marine Day was established since 1996 on July 20th. After 2003 it was changed to be the third monday of July.In + * 2020 is July 23th. * * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception + * @throws \Exception */ private function calculateMarineDay() { @@ -317,6 +326,8 @@ private function calculateMarineDay() * * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ private function caluclateMountainDay() { @@ -346,6 +357,8 @@ private function caluclateMountainDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ private function calculateRespectForTheAgeDay() { @@ -375,6 +388,9 @@ private function calculateRespectForTheAgeDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception + * @throws \Exception */ private function calculateHealthAndSportsDay() { @@ -409,6 +425,7 @@ private function calculateHealthAndSportsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateAutumnalEquinoxDay() { diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 5662cdf19..4b2317ec7 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -66,6 +66,7 @@ public function initialize() * * @throws \InvalidArgumentException * @throws \TypeError + * @throws \Exception */ private function addRestorationOfIndependenceDay() { @@ -85,6 +86,7 @@ private function addRestorationOfIndependenceDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addMidsummerEveDay() { @@ -100,6 +102,7 @@ private function addMidsummerEveDay() * * @throws \InvalidArgumentException * @throws \TypeError + * @throws \Exception */ private function addProclamationDay() { diff --git a/src/Yasumi/Provider/Lithuania.php b/src/Yasumi/Provider/Lithuania.php index 7016c8ba3..f84201c1c 100644 --- a/src/Yasumi/Provider/Lithuania.php +++ b/src/Yasumi/Provider/Lithuania.php @@ -75,6 +75,7 @@ public function initialize() * The Act of Reinstating Independence of Lithuania was signed on February 16, 1918. * * @throws \InvalidArgumentException + * @throws \Exception */ private function addRestorationOfTheStateDay() { @@ -90,6 +91,7 @@ private function addRestorationOfTheStateDay() * The Act of the Re-Establishment of the State of Lithuania was signed on March 11, 1990. * * @throws \InvalidArgumentException + * @throws \Exception */ private function addRestorationOfIndependenceDay() { @@ -106,6 +108,7 @@ private function addRestorationOfIndependenceDay() * the coronation in 1253 of Mindaugas as the only King of Lithuania. * * @throws \InvalidArgumentException + * @throws \Exception */ private function addStatehoodDay() { diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index f35f67baf..5aaed3a04 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -110,6 +110,7 @@ public function calculateNewYearHolidays() * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \TypeError + * @throws \Exception */ public function calculateWaitangiDay() { @@ -140,6 +141,7 @@ public function calculateWaitangiDay() * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException * @throws \TypeError + * @throws \Exception */ public function calculateAnzacDay() { @@ -172,6 +174,7 @@ public function calculateAnzacDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateQueensBirthday() { @@ -204,6 +207,7 @@ public function calculateQueensBirthday() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateLabourDay() { diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index 44c9d06d4..9cfea4095 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -64,7 +64,8 @@ public function initialize() * Constitution Day * * Norway’s Constitution Day is May 17 and commemorates the signing of Norways's constitution at Eidsvoll on - * May 17, 1814. It’s usually referred to as Grunnlovsdag(en) ((The) Constitution Day), syttende mai (May 17) or Nasjonaldagen (The National Day) in Norwegian. + * May 17, 1814. It’s usually referred to as Grunnlovsdag(en) ((The) Constitution Day), syttende mai (May 17) or + * Nasjonaldagen (The National Day) in Norwegian. * * Norway adopted its constitution on May 16 1814 and it was signed on May 17, 1814, ending almost 100 years of a * coalition with Sweden, proceeded by nearly 400 years of Danish rule. The Norwegian Parliament, known as @@ -75,6 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateConstitutionDay() { diff --git a/src/Yasumi/Provider/Poland.php b/src/Yasumi/Provider/Poland.php index cc1a58c2c..00f026c16 100755 --- a/src/Yasumi/Provider/Poland.php +++ b/src/Yasumi/Provider/Poland.php @@ -74,6 +74,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateIndependenceDay() @@ -101,6 +102,7 @@ public function calculateIndependenceDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateConstitutionDay() diff --git a/src/Yasumi/Provider/Portugal.php b/src/Yasumi/Provider/Portugal.php index 313e60f30..4afb46f66 100644 --- a/src/Yasumi/Provider/Portugal.php +++ b/src/Yasumi/Provider/Portugal.php @@ -79,6 +79,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateCarnationRevolutionDay() { @@ -125,6 +126,7 @@ public function calculateCorpusChristi() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculatePortugalDay() { @@ -156,6 +158,7 @@ public function calculatePortugalDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculatePortugueseRepublicDay() { @@ -176,6 +179,7 @@ public function calculatePortugueseRepublicDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateAllSaintsDay() { @@ -207,6 +211,7 @@ public function calculateAllSaintsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateRestorationOfIndependenceDay() { diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index 6a28df971..6c79cb4b4 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -82,6 +82,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDayAfterNewYearsDay() { @@ -104,6 +105,7 @@ public function calculateDayAfterNewYearsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateUnitedPrincipalitiesDay() { @@ -126,6 +128,7 @@ public function calculateUnitedPrincipalitiesDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateStAndrewDay() { @@ -151,6 +154,7 @@ public function calculateStAndrewDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNationalDay() { @@ -186,6 +190,7 @@ public function calculateNationalDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateConstantinBrancusiDay() { @@ -213,6 +218,8 @@ public function calculateConstantinBrancusiDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateChildrensDay() { diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index 751ac6a11..e43ee45df 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -39,6 +39,7 @@ class Russia extends AbstractProvider * Initialize holidays for Russia. * * @throws \InvalidArgumentException + * @throws \Exception */ public function initialize() { @@ -58,6 +59,7 @@ public function initialize() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addNewYearsHolidays() { @@ -73,6 +75,7 @@ private function addNewYearsHolidays() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addOrthodoxChristmasDay() { @@ -84,6 +87,7 @@ private function addOrthodoxChristmasDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addDefenceOfTheFatherlandDay() { @@ -99,6 +103,7 @@ private function addDefenceOfTheFatherlandDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addInternationalWomensDay() { @@ -110,6 +115,7 @@ private function addInternationalWomensDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addSpringAndLabourDay() { @@ -121,6 +127,7 @@ private function addSpringAndLabourDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addVictoryDay() { @@ -132,6 +139,7 @@ private function addVictoryDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addRussiaDay() { @@ -147,6 +155,7 @@ private function addRussiaDay() /** * @throws \InvalidArgumentException + * @throws \Exception */ private function addUnityDay() { diff --git a/src/Yasumi/Provider/Slovakia.php b/src/Yasumi/Provider/Slovakia.php index bbcdcff65..596fe8876 100644 --- a/src/Yasumi/Provider/Slovakia.php +++ b/src/Yasumi/Provider/Slovakia.php @@ -114,6 +114,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateSaintsCyrilAndMethodiusDay() { @@ -138,6 +139,7 @@ public function calculateSaintsCyrilAndMethodiusDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateSlovakNationalUprisingDay() { @@ -161,6 +163,7 @@ public function calculateSlovakNationalUprisingDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateSlovakConstitutionDay() { @@ -188,6 +191,7 @@ public function calculateSlovakConstitutionDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateOurLadyOfSorrowsDay() { @@ -205,6 +209,7 @@ public function calculateOurLadyOfSorrowsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateStruggleForFreedomAndDemocracyDay() { diff --git a/src/Yasumi/Provider/SouthAfrica.php b/src/Yasumi/Provider/SouthAfrica.php index 84cf31990..c0370f225 100644 --- a/src/Yasumi/Provider/SouthAfrica.php +++ b/src/Yasumi/Provider/SouthAfrica.php @@ -90,6 +90,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateHumanRightsDay() { @@ -134,6 +135,7 @@ public function calculateFamilyDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateFreedomDay() { @@ -160,6 +162,7 @@ public function calculateFreedomDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateYouthDay() { @@ -182,6 +185,7 @@ public function calculateYouthDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculate2016MunicipalElectionsDay() { @@ -210,6 +214,7 @@ public function calculate2016MunicipalElectionsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNationalWomensDay() { @@ -234,6 +239,7 @@ public function calculateNationalWomensDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateHeritageDay() { @@ -260,6 +266,7 @@ public function calculateHeritageDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDayOfReconciliation() { @@ -285,6 +292,7 @@ public function calculateDayOfReconciliation() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateSubstituteDayOfGoodwill() { diff --git a/src/Yasumi/Provider/Spain.php b/src/Yasumi/Provider/Spain.php index 5260a8396..03a660271 100755 --- a/src/Yasumi/Provider/Spain.php +++ b/src/Yasumi/Provider/Spain.php @@ -74,6 +74,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNationalDay() { @@ -99,6 +100,7 @@ public function calculateNationalDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateConstitutionDay() { diff --git a/src/Yasumi/Provider/Spain/Andalusia.php b/src/Yasumi/Provider/Spain/Andalusia.php index dfb58e02d..2f58f35d6 100755 --- a/src/Yasumi/Provider/Spain/Andalusia.php +++ b/src/Yasumi/Provider/Spain/Andalusia.php @@ -69,6 +69,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateAndalusiaDay() { diff --git a/src/Yasumi/Provider/Spain/Asturias.php b/src/Yasumi/Provider/Spain/Asturias.php index 3c26048e5..c949a1b4b 100755 --- a/src/Yasumi/Provider/Spain/Asturias.php +++ b/src/Yasumi/Provider/Spain/Asturias.php @@ -71,6 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateAsturiasDay() { diff --git a/src/Yasumi/Provider/Spain/BalearicIslands.php b/src/Yasumi/Provider/Spain/BalearicIslands.php index f40ed5c86..03aac02c3 100755 --- a/src/Yasumi/Provider/Spain/BalearicIslands.php +++ b/src/Yasumi/Provider/Spain/BalearicIslands.php @@ -71,6 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateBalearicIslandsDay() { diff --git a/src/Yasumi/Provider/Spain/BasqueCountry.php b/src/Yasumi/Provider/Spain/BasqueCountry.php index a34d3eedb..68e2c4424 100755 --- a/src/Yasumi/Provider/Spain/BasqueCountry.php +++ b/src/Yasumi/Provider/Spain/BasqueCountry.php @@ -71,6 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateBasqueCountryDay() { diff --git a/src/Yasumi/Provider/Spain/CanaryIslands.php b/src/Yasumi/Provider/Spain/CanaryIslands.php index 91f040fe8..1e92361ab 100755 --- a/src/Yasumi/Provider/Spain/CanaryIslands.php +++ b/src/Yasumi/Provider/Spain/CanaryIslands.php @@ -70,6 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateCanaryIslandsDay() { diff --git a/src/Yasumi/Provider/Spain/Cantabria.php b/src/Yasumi/Provider/Spain/Cantabria.php index 9cb318ebd..ca652f45d 100755 --- a/src/Yasumi/Provider/Spain/Cantabria.php +++ b/src/Yasumi/Provider/Spain/Cantabria.php @@ -74,6 +74,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateCantabriaDay() { diff --git a/src/Yasumi/Provider/Spain/CastileAndLeon.php b/src/Yasumi/Provider/Spain/CastileAndLeon.php index 8bfa195aa..280232c7f 100755 --- a/src/Yasumi/Provider/Spain/CastileAndLeon.php +++ b/src/Yasumi/Provider/Spain/CastileAndLeon.php @@ -71,6 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateCastileAndLeonDay() { diff --git a/src/Yasumi/Provider/Spain/CastillaLaMancha.php b/src/Yasumi/Provider/Spain/CastillaLaMancha.php index 054354a45..594982b89 100755 --- a/src/Yasumi/Provider/Spain/CastillaLaMancha.php +++ b/src/Yasumi/Provider/Spain/CastillaLaMancha.php @@ -74,6 +74,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateCastillaLaManchaDay() { diff --git a/src/Yasumi/Provider/Spain/Catalonia.php b/src/Yasumi/Provider/Spain/Catalonia.php index 47ea60253..0388bfd45 100755 --- a/src/Yasumi/Provider/Spain/Catalonia.php +++ b/src/Yasumi/Provider/Spain/Catalonia.php @@ -74,6 +74,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNationalDayOfCatalonia() { diff --git a/src/Yasumi/Provider/Spain/Ceuta.php b/src/Yasumi/Provider/Spain/Ceuta.php index 15ea67ee7..6a871eeea 100755 --- a/src/Yasumi/Provider/Spain/Ceuta.php +++ b/src/Yasumi/Provider/Spain/Ceuta.php @@ -68,6 +68,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDayOfCeuta() { diff --git a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php index 7f8567679..bf04542b2 100755 --- a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php +++ b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php @@ -75,6 +75,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDosdeMayoUprisingDay() { diff --git a/src/Yasumi/Provider/Spain/Extremadura.php b/src/Yasumi/Provider/Spain/Extremadura.php index aa8e9c571..b82a83cbc 100755 --- a/src/Yasumi/Provider/Spain/Extremadura.php +++ b/src/Yasumi/Provider/Spain/Extremadura.php @@ -71,6 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDayOfExtremadura() { diff --git a/src/Yasumi/Provider/Spain/Galicia.php b/src/Yasumi/Provider/Spain/Galicia.php index f2c6e15b7..6b4003203 100755 --- a/src/Yasumi/Provider/Spain/Galicia.php +++ b/src/Yasumi/Provider/Spain/Galicia.php @@ -72,6 +72,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateGalicianLiteratureDay() { @@ -99,6 +100,7 @@ public function calculateGalicianLiteratureDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateStJamesDay() { diff --git a/src/Yasumi/Provider/Spain/LaRioja.php b/src/Yasumi/Provider/Spain/LaRioja.php index 4bd3788dd..24448a022 100755 --- a/src/Yasumi/Provider/Spain/LaRioja.php +++ b/src/Yasumi/Provider/Spain/LaRioja.php @@ -68,6 +68,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateLaRiojaDay() { diff --git a/src/Yasumi/Provider/Spain/RegionOfMurcia.php b/src/Yasumi/Provider/Spain/RegionOfMurcia.php index 1bc5f3083..ccd83072a 100755 --- a/src/Yasumi/Provider/Spain/RegionOfMurcia.php +++ b/src/Yasumi/Provider/Spain/RegionOfMurcia.php @@ -69,6 +69,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDayOfMurcia() { diff --git a/src/Yasumi/Provider/Spain/ValencianCommunity.php b/src/Yasumi/Provider/Spain/ValencianCommunity.php index 30be094aa..b2a959700 100755 --- a/src/Yasumi/Provider/Spain/ValencianCommunity.php +++ b/src/Yasumi/Provider/Spain/ValencianCommunity.php @@ -76,6 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateValencianCommunityDay() { diff --git a/src/Yasumi/Provider/Sweden.php b/src/Yasumi/Provider/Sweden.php index 631a0a4db..b3deed704 100644 --- a/src/Yasumi/Provider/Sweden.php +++ b/src/Yasumi/Provider/Sweden.php @@ -145,6 +145,7 @@ public function calculateAllSaintsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNationalDay() { diff --git a/src/Yasumi/Provider/Switzerland.php b/src/Yasumi/Provider/Switzerland.php index 3a6503a04..50b131d3a 100644 --- a/src/Yasumi/Provider/Switzerland.php +++ b/src/Yasumi/Provider/Switzerland.php @@ -36,6 +36,7 @@ class Switzerland extends AbstractProvider * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function initialize() { @@ -56,6 +57,8 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateNationalDay() { @@ -100,6 +103,7 @@ public function calculateNationalDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateBerchtoldsTag() { diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index 09a7c586c..352f5b0be 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -103,6 +103,7 @@ public function calculateJeuneGenevois() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateRestaurationGenevoise() { diff --git a/src/Yasumi/Provider/Switzerland/Glarus.php b/src/Yasumi/Provider/Switzerland/Glarus.php index 87d0407e7..6687d9382 100644 --- a/src/Yasumi/Provider/Switzerland/Glarus.php +++ b/src/Yasumi/Provider/Switzerland/Glarus.php @@ -70,6 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNafelserFahrt() { diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index cf66ebdbf..2e64bbed7 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -73,6 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculatePlebisciteJurassien() { diff --git a/src/Yasumi/Provider/Switzerland/Neuchatel.php b/src/Yasumi/Provider/Switzerland/Neuchatel.php index d930e3261..c031fa297 100644 --- a/src/Yasumi/Provider/Switzerland/Neuchatel.php +++ b/src/Yasumi/Provider/Switzerland/Neuchatel.php @@ -71,6 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateInstaurationRepublique() { diff --git a/src/Yasumi/Provider/Switzerland/Obwalden.php b/src/Yasumi/Provider/Switzerland/Obwalden.php index 083f35d1d..c14f9031d 100644 --- a/src/Yasumi/Provider/Switzerland/Obwalden.php +++ b/src/Yasumi/Provider/Switzerland/Obwalden.php @@ -74,6 +74,8 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception + * @throws \Exception */ public function calculateBruderKlausenFest() { diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index 866244be8..c70713497 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -80,6 +80,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateStPeterPaul() { diff --git a/src/Yasumi/Provider/Ukraine.php b/src/Yasumi/Provider/Ukraine.php index 4080c369d..6cac0606a 100644 --- a/src/Yasumi/Provider/Ukraine.php +++ b/src/Yasumi/Provider/Ukraine.php @@ -68,6 +68,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateChristmasDay() { @@ -90,6 +91,7 @@ public function calculateChristmasDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateInternationalWomensDay() { @@ -109,6 +111,7 @@ public function calculateInternationalWomensDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateSecondInternationalWorkersDay() { @@ -132,6 +135,7 @@ public function calculateSecondInternationalWorkersDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateVictoryDay() { @@ -153,6 +157,7 @@ public function calculateVictoryDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateConstitutionDay() { @@ -180,6 +185,7 @@ public function calculateConstitutionDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateIndependenceDay() { @@ -208,6 +214,7 @@ public function calculateIndependenceDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateDefenderOfUkraineDay() { diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index 5195a8187..db50c4e16 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -70,6 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function calculateNewYearsDay() { @@ -108,6 +109,7 @@ public function calculateNewYearsDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateMayDayBankHoliday() { @@ -139,6 +141,7 @@ private function calculateMayDayBankHoliday() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateSpringBankHoliday() { @@ -170,6 +173,7 @@ private function calculateSpringBankHoliday() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ private function calculateSummerBankHoliday() { From 00be819641c7c3157b9f6f903dba882062d39e75 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 10:15:18 +0900 Subject: [PATCH 082/132] Replaced double quotes with single quotes. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia/ACT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index c86b44757..e7b55d713 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -76,7 +76,7 @@ public function calculateReconciliationDay() if ($this->year < 2018) { return; } else { - $date = new DateTime($this->year."-05-27", new DateTimeZone($this->timezone)); + $date = new DateTime($this->year . '-05-27', new DateTimeZone($this->timezone)); $day = (int)$date->format('w'); if ($day !== 1) { $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P'.(8-$day).'D')); From 617ddb8921aa946e1f50785b9f816c8e5dc48847 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 10:16:34 +0900 Subject: [PATCH 083/132] Simplified the if-then-else control flow. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia/ACT.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index e7b55d713..0a402f173 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -75,14 +75,14 @@ public function calculateReconciliationDay() { if ($this->year < 2018) { return; - } else { - $date = new DateTime($this->year . '-05-27', new DateTimeZone($this->timezone)); - $day = (int)$date->format('w'); - if ($day !== 1) { - $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P'.(8-$day).'D')); - } - $this->addHoliday(new Holiday('reconciliationDay', ['en_AU' => 'Reconciliation Day'], $date, $this->locale)); } + + $date = new DateTime($this->year . '-05-27', new DateTimeZone($this->timezone)); + $day = (int)$date->format('w'); + if ($day !== 1) { + $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P'.(8-$day).'D')); + } + $this->addHoliday(new Holiday('reconciliationDay', ['en_AU' => 'Reconciliation Day'], $date, $this->locale)); } /** From 9b86ac4833943db4f1fa27eb5ca279e2ba935ca8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 10:18:43 +0900 Subject: [PATCH 084/132] Added return type. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia/ACT.php | 2 +- src/Yasumi/Provider/Australia/NSW.php | 2 +- src/Yasumi/Provider/Australia/NT.php | 2 +- src/Yasumi/Provider/Australia/SA.php | 2 +- src/Yasumi/Provider/Australia/Victoria.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index 0a402f173..0e138d4ce 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -118,7 +118,7 @@ public function calculateLabourDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easterSaturday', diff --git a/src/Yasumi/Provider/Australia/NSW.php b/src/Yasumi/Provider/Australia/NSW.php index 24449c5b1..260ede52e 100644 --- a/src/Yasumi/Provider/Australia/NSW.php +++ b/src/Yasumi/Provider/Australia/NSW.php @@ -83,7 +83,7 @@ public function calculateLabourDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easterSaturday', diff --git a/src/Yasumi/Provider/Australia/NT.php b/src/Yasumi/Provider/Australia/NT.php index dcd81c635..356e51764 100644 --- a/src/Yasumi/Provider/Australia/NT.php +++ b/src/Yasumi/Provider/Australia/NT.php @@ -101,7 +101,7 @@ public function calculatePicnicDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easterSaturday', diff --git a/src/Yasumi/Provider/Australia/SA.php b/src/Yasumi/Provider/Australia/SA.php index f56fa86d4..b02747a0a 100644 --- a/src/Yasumi/Provider/Australia/SA.php +++ b/src/Yasumi/Provider/Australia/SA.php @@ -154,7 +154,7 @@ public function calculateAdelaideCupDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easterSaturday', diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index 969b62664..1cac31a6e 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -157,7 +157,7 @@ public function calculateQueensBirthday() * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easterSaturday', @@ -189,7 +189,7 @@ public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easter', From 750b65f5e0c6da41a4939054649e83e5c492205f Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:33:48 +0900 Subject: [PATCH 085/132] Changed checking for empty variables to proper type (showing intent). Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 4 ++-- src/Yasumi/Yasumi.php | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 0a5788e16..835522c99 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -55,7 +55,7 @@ class Holiday extends DateTime implements JsonSerializable /** * @var array list of all defined locales */ - private static $locales; + private static $locales = []; /** * @var string short name (internal name) of this holiday @@ -111,7 +111,7 @@ public function __construct( } // Load internal locales variable - if (null === self::$locales) { + if (empty(self::$locales)) { self::$locales = Yasumi::getAvailableLocales(); } diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 1a08ed095..b1315826e 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -34,14 +34,14 @@ class Yasumi /** * @var array list of all defined locales */ - private static $locales; + private static $locales = []; /** * Global translations. * - * @var Translations + * @var array Translations */ - private static $globalTranslations; + private static $globalTranslations = []; /** * Provider class to be ignored (Abstract, trait, other) @@ -121,7 +121,7 @@ public static function nextWorkingDay( * * @return AbstractProvider An instance of class $class is created and returned */ - public static function create(string $class, int $year = null, string $locale = self::DEFAULT_LOCALE): ProviderInterface + public static function create(string $class, int $year = 0, string $locale = self::DEFAULT_LOCALE): ProviderInterface { // Find and return holiday provider instance $providerClass = \sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $class)); @@ -140,12 +140,12 @@ public static function create(string $class, int $year = null, string $locale = } // Load internal locales variable - if (null === self::$locales) { + if (empty(self::$locales)) { self::$locales = self::getAvailableLocales(); } // Load internal translations variable - if (null === self::$globalTranslations) { + if (empty(self::$globalTranslations)) { self::$globalTranslations = new Translations(self::$locales); self::$globalTranslations->loadTranslations(__DIR__ . '/data/translations'); } @@ -190,7 +190,7 @@ public static function getAvailableLocales(): array */ public static function createByISO3166_2( string $iso3166_2, - int $year = null, + int $year = 0, string $locale = self::DEFAULT_LOCALE ): AbstractProvider { $availableProviders = self::getProviders(); @@ -216,7 +216,7 @@ public static function getProviders(): array { // Basic static cache static $providers; - if ($providers !== null) { + if (!empty($providers)) { return $providers; } From ca295027b4189aef9bbdc4f3484c7151997a8429 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:45:42 +0900 Subject: [PATCH 086/132] Reverted the last change for the globalTranslations variable as it isn't an array but a Translations object. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index b1315826e..7cd18effe 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -39,9 +39,9 @@ class Yasumi /** * Global translations. * - * @var array Translations + * @var Translations */ - private static $globalTranslations = []; + private static $globalTranslations; /** * Provider class to be ignored (Abstract, trait, other) @@ -145,7 +145,7 @@ public static function create(string $class, int $year = 0, string $locale = sel } // Load internal translations variable - if (empty(self::$globalTranslations)) { + if (null === self::$globalTranslations) { self::$globalTranslations = new Translations(self::$locales); self::$globalTranslations->loadTranslations(__DIR__ . '/data/translations'); } From a2b6e284c2334a4aee4ca2bac9683e9a551f00ae Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:47:01 +0900 Subject: [PATCH 087/132] Renamed php-cs-fixer composer command to 'format' (Shorter, less typing) Signed-off-by: Sacha Telgenhof --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9c1684625..4b7a8052d 100755 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ } }, "scripts": { - "php-cs-fixer": "./vendor/bin/php-cs-fixer fix .", + "format": "./vendor/bin/php-cs-fixer fix .", "test": "vendor/bin/phpunit" }, "config": { From 6a1b7cd4aa0136611a5e871ca34269a6f0e29923 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:49:56 +0900 Subject: [PATCH 088/132] Changed literal class name to ::class naming style. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 7cd18effe..aafbf8e26 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -243,7 +243,7 @@ public static function getProviders(): array $class = new ReflectionClass(\sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $provider))); $key = 'ID'; - if ($class->isSubclassOf('Yasumi\Provider\AbstractProvider') && $class->hasConstant($key)) { + if ($class->isSubclassOf(AbstractProvider::class) && $class->hasConstant($key)) { $providers[\strtoupper($class->getConstant($key))] = $provider; } } From 9d7ae0fd9323ffedd942513abec29e30548df17e Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:53:24 +0900 Subject: [PATCH 089/132] Removed unused throw type. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 2 -- src/Yasumi/Provider/Latvia.php | 2 -- src/Yasumi/Provider/NewZealand.php | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index a66738925..a73855ba6 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -177,7 +177,6 @@ public function removeHoliday($shortName) * \DateTime) * * @throws \Yasumi\Exception\InvalidDateException - * @throws \TypeError * * @return bool true if date represents a working day, otherwise false */ @@ -208,7 +207,6 @@ public function isWorkingDay(\DateTimeInterface $date): bool * \DateTime) * * @throws \Yasumi\Exception\InvalidDateException - * @throws \TypeError * * @return bool true if date represents a holiday, otherwise false */ diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 4b2317ec7..978de1334 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -65,7 +65,6 @@ public function initialize() * If the day is on the weekend the next Monday is a holiday. * * @throws \InvalidArgumentException - * @throws \TypeError * @throws \Exception */ private function addRestorationOfIndependenceDay() @@ -101,7 +100,6 @@ private function addMidsummerEveDay() * If the day is on the weekend the next Monday is a holiday. * * @throws \InvalidArgumentException - * @throws \TypeError * @throws \Exception */ private function addProclamationDay() diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index 5aaed3a04..032bd6071 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -109,7 +109,6 @@ public function calculateNewYearHolidays() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException - * @throws \TypeError * @throws \Exception */ public function calculateWaitangiDay() @@ -140,7 +139,6 @@ public function calculateWaitangiDay() * @throws \Yasumi\Exception\InvalidDateException * @throws \InvalidArgumentException * @throws \Yasumi\Exception\UnknownLocaleException - * @throws \TypeError * @throws \Exception */ public function calculateAnzacDay() From cb8a532fc1bfef2328105ea23cf7277051d60085 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:55:16 +0900 Subject: [PATCH 090/132] Changed to null coalesce check / return. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 835522c99..44ff5299c 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -163,11 +163,7 @@ public function getName(): string return $this->translations[$this->displayLocale]; } - if (isset($this->translations[self::DEFAULT_LOCALE])) { - return $this->translations[self::DEFAULT_LOCALE]; - } - - return $this->shortName; + return $this->translations[self::DEFAULT_LOCALE] ?? $this->shortName; } /** From c20689fe0f43d1c32073f33307e06b37453eb811 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:58:12 +0900 Subject: [PATCH 091/132] Changed to null coalesce check / return. (Even shorter). Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 44ff5299c..ae5189292 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -159,11 +159,7 @@ public function jsonSerialize() */ public function getName(): string { - if (isset($this->translations[$this->displayLocale])) { - return $this->translations[$this->displayLocale]; - } - - return $this->translations[self::DEFAULT_LOCALE] ?? $this->shortName; + return $this->translations[$this->displayLocale] ?? $this->translations[self::DEFAULT_LOCALE] ?? $this->shortName; } /** From 3456f0656a7382973bada9b020b306ed09840411 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 4 Dec 2018 11:59:13 +0900 Subject: [PATCH 092/132] Declared proper return type. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 2 +- src/Yasumi/Provider/Australia/ACT.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index ae5189292..a0a69d0c7 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -145,7 +145,7 @@ public function getType(): string * * @return $this */ - public function jsonSerialize() + public function jsonSerialize(): self { return $this; } diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index 0e138d4ce..10253b377 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -150,7 +150,7 @@ public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \InvalidArgumentException * @throws \Exception */ - public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL) + public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OFFICIAL): Holiday { return new Holiday( 'easter', From fd548512693c2ebcc06d3c06316c26262db9a111 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 11 Dec 2018 11:16:29 +0900 Subject: [PATCH 093/132] Removed unnecessary variable holding a system constant. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index aafbf8e26..fa3f9289d 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -220,11 +220,9 @@ public static function getProviders(): array return $providers; } - $ds = DIRECTORY_SEPARATOR; - $providers = []; $filesIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator( - __DIR__ . $ds . 'Provider', + __DIR__ . DIRECTORY_SEPARATOR . 'Provider', FilesystemIterator::SKIP_DOTS ), RecursiveIteratorIterator::SELF_FIRST); @@ -237,7 +235,7 @@ public static function getProviders(): array continue; } - $quotedDs = \preg_quote($ds, null); + $quotedDs = \preg_quote(DIRECTORY_SEPARATOR, null); $provider = \preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); $class = new ReflectionClass(\sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $provider))); From 4005ada5e5aec6a839143fec50d0c6fa55b5ef68 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 1 Jan 2019 12:49:50 +0900 Subject: [PATCH 094/132] Updated copyright year. Signed-off-by: Sacha Telgenhof --- .php_cs | 2 +- CHANGELOG.md | 1 + LICENSE | 2 +- phpunit.xml | 2 +- src/Yasumi/Exception/Exception.php | 2 +- src/Yasumi/Exception/InvalidDateException.php | 2 +- src/Yasumi/Exception/UnknownLocaleException.php | 2 +- src/Yasumi/Filters/BankHolidaysFilter.php | 2 +- src/Yasumi/Filters/BetweenFilter.php | 2 +- src/Yasumi/Filters/ObservedHolidaysFilter.php | 2 +- src/Yasumi/Filters/OfficialHolidaysFilter.php | 2 +- src/Yasumi/Filters/OnFilter.php | 3 +-- src/Yasumi/Filters/OtherHolidaysFilter.php | 2 +- src/Yasumi/Filters/SeasonalHolidaysFilter.php | 2 +- src/Yasumi/Holiday.php | 2 +- src/Yasumi/Provider/AbstractProvider.php | 2 +- src/Yasumi/Provider/Australia.php | 3 +-- src/Yasumi/Provider/Australia/ACT.php | 4 ++-- src/Yasumi/Provider/Australia/NSW.php | 4 ++-- src/Yasumi/Provider/Australia/NT.php | 4 ++-- src/Yasumi/Provider/Australia/Queensland.php | 4 ++-- src/Yasumi/Provider/Australia/Queensland/Brisbane.php | 4 ++-- src/Yasumi/Provider/Australia/SA.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/KingIsland.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/Northeast.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/Northwest.php | 4 ++-- .../Provider/Australia/Tasmania/Northwest/CircularHead.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/South.php | 4 ++-- src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php | 4 ++-- src/Yasumi/Provider/Australia/Victoria.php | 3 +-- src/Yasumi/Provider/Australia/WA.php | 4 ++-- src/Yasumi/Provider/Austria.php | 2 +- src/Yasumi/Provider/Belgium.php | 2 +- src/Yasumi/Provider/Bosnia.php | 2 +- src/Yasumi/Provider/Brazil.php | 2 +- src/Yasumi/Provider/ChristianHolidays.php | 2 +- src/Yasumi/Provider/CommonHolidays.php | 2 +- src/Yasumi/Provider/Croatia.php | 2 +- src/Yasumi/Provider/CzechRepublic.php | 2 +- src/Yasumi/Provider/Denmark.php | 2 +- src/Yasumi/Provider/Estonia.php | 2 +- src/Yasumi/Provider/Finland.php | 2 +- src/Yasumi/Provider/France.php | 2 +- src/Yasumi/Provider/France/BasRhin.php | 2 +- src/Yasumi/Provider/France/HautRhin.php | 2 +- src/Yasumi/Provider/France/Moselle.php | 2 +- src/Yasumi/Provider/Germany.php | 2 +- src/Yasumi/Provider/Germany/BadenWurttemberg.php | 2 +- src/Yasumi/Provider/Germany/Bavaria.php | 2 +- src/Yasumi/Provider/Germany/Berlin.php | 2 +- src/Yasumi/Provider/Germany/Brandenburg.php | 2 +- src/Yasumi/Provider/Germany/Bremen.php | 2 +- src/Yasumi/Provider/Germany/Hamburg.php | 2 +- src/Yasumi/Provider/Germany/Hesse.php | 2 +- src/Yasumi/Provider/Germany/LowerSaxony.php | 2 +- src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php | 2 +- src/Yasumi/Provider/Germany/NorthRhineWestphalia.php | 2 +- src/Yasumi/Provider/Germany/RhinelandPalatinate.php | 2 +- src/Yasumi/Provider/Germany/Saarland.php | 2 +- src/Yasumi/Provider/Germany/Saxony.php | 2 +- src/Yasumi/Provider/Germany/SaxonyAnhalt.php | 2 +- src/Yasumi/Provider/Germany/SchleswigHolstein.php | 2 +- src/Yasumi/Provider/Germany/Thuringia.php | 2 +- src/Yasumi/Provider/Greece.php | 2 +- src/Yasumi/Provider/Hungary.php | 2 +- src/Yasumi/Provider/Ireland.php | 2 +- src/Yasumi/Provider/Italy.php | 2 +- src/Yasumi/Provider/Japan.php | 2 +- src/Yasumi/Provider/Latvia.php | 2 +- src/Yasumi/Provider/Lithuania.php | 2 +- src/Yasumi/Provider/Netherlands.php | 2 +- src/Yasumi/Provider/NewZealand.php | 2 +- src/Yasumi/Provider/Norway.php | 2 +- src/Yasumi/Provider/Poland.php | 2 +- src/Yasumi/Provider/Portugal.php | 2 +- src/Yasumi/Provider/Romania.php | 2 +- src/Yasumi/Provider/Russia.php | 2 +- src/Yasumi/Provider/Slovakia.php | 2 +- src/Yasumi/Provider/SouthAfrica.php | 2 +- src/Yasumi/Provider/Spain.php | 2 +- src/Yasumi/Provider/Spain/Andalusia.php | 2 +- src/Yasumi/Provider/Spain/Aragon.php | 2 +- src/Yasumi/Provider/Spain/Asturias.php | 2 +- src/Yasumi/Provider/Spain/BalearicIslands.php | 2 +- src/Yasumi/Provider/Spain/BasqueCountry.php | 2 +- src/Yasumi/Provider/Spain/CanaryIslands.php | 2 +- src/Yasumi/Provider/Spain/Cantabria.php | 2 +- src/Yasumi/Provider/Spain/CastileAndLeon.php | 2 +- src/Yasumi/Provider/Spain/CastillaLaMancha.php | 2 +- src/Yasumi/Provider/Spain/Catalonia.php | 2 +- src/Yasumi/Provider/Spain/Ceuta.php | 2 +- src/Yasumi/Provider/Spain/CommunityOfMadrid.php | 2 +- src/Yasumi/Provider/Spain/Extremadura.php | 2 +- src/Yasumi/Provider/Spain/Galicia.php | 2 +- src/Yasumi/Provider/Spain/LaRioja.php | 2 +- src/Yasumi/Provider/Spain/Melilla.php | 2 +- src/Yasumi/Provider/Spain/Navarre.php | 2 +- src/Yasumi/Provider/Spain/RegionOfMurcia.php | 2 +- src/Yasumi/Provider/Spain/ValencianCommunity.php | 2 +- src/Yasumi/Provider/Sweden.php | 2 +- src/Yasumi/Provider/Switzerland.php | 2 +- src/Yasumi/Provider/Switzerland/Aargau.php | 2 +- src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php | 2 +- src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php | 2 +- src/Yasumi/Provider/Switzerland/BaselLandschaft.php | 2 +- src/Yasumi/Provider/Switzerland/BaselStadt.php | 2 +- src/Yasumi/Provider/Switzerland/Bern.php | 2 +- src/Yasumi/Provider/Switzerland/Fribourg.php | 2 +- src/Yasumi/Provider/Switzerland/Geneva.php | 2 +- src/Yasumi/Provider/Switzerland/Glarus.php | 2 +- src/Yasumi/Provider/Switzerland/Grisons.php | 2 +- src/Yasumi/Provider/Switzerland/Jura.php | 2 +- src/Yasumi/Provider/Switzerland/Lucerne.php | 2 +- src/Yasumi/Provider/Switzerland/Neuchatel.php | 2 +- src/Yasumi/Provider/Switzerland/Nidwalden.php | 2 +- src/Yasumi/Provider/Switzerland/Obwalden.php | 2 +- src/Yasumi/Provider/Switzerland/Schaffhausen.php | 2 +- src/Yasumi/Provider/Switzerland/Schwyz.php | 2 +- src/Yasumi/Provider/Switzerland/Solothurn.php | 2 +- src/Yasumi/Provider/Switzerland/StGallen.php | 2 +- src/Yasumi/Provider/Switzerland/Thurgau.php | 2 +- src/Yasumi/Provider/Switzerland/Ticino.php | 2 +- src/Yasumi/Provider/Switzerland/Uri.php | 2 +- src/Yasumi/Provider/Switzerland/Valais.php | 2 +- src/Yasumi/Provider/Switzerland/Vaud.php | 2 +- src/Yasumi/Provider/Switzerland/Zug.php | 2 +- src/Yasumi/Provider/Switzerland/Zurich.php | 2 +- src/Yasumi/Provider/USA.php | 2 +- src/Yasumi/Provider/Ukraine.php | 2 +- src/Yasumi/Provider/UnitedKingdom.php | 2 +- src/Yasumi/ProviderInterface.php | 2 +- src/Yasumi/Translations.php | 2 +- src/Yasumi/TranslationsInterface.php | 2 +- src/Yasumi/Yasumi.php | 2 +- src/Yasumi/data/locales.php | 2 +- src/Yasumi/data/translations/allSaintsDay.php | 2 +- src/Yasumi/data/translations/annunciation.php | 2 +- src/Yasumi/data/translations/anzacDay.php | 2 +- src/Yasumi/data/translations/armisticeDay.php | 2 +- src/Yasumi/data/translations/ascensionDay.php | 2 +- src/Yasumi/data/translations/ashWednesday.php | 2 +- src/Yasumi/data/translations/assumptionOfMary.php | 2 +- src/Yasumi/data/translations/australiaDay.php | 2 +- src/Yasumi/data/translations/carnationRevolutionDay.php | 2 +- src/Yasumi/data/translations/christmasDay.php | 2 +- src/Yasumi/data/translations/christmasEve.php | 2 +- src/Yasumi/data/translations/corpusChristi.php | 2 +- src/Yasumi/data/translations/dayAfterNewYearsDay.php | 2 +- src/Yasumi/data/translations/dayOfReformation.php | 2 +- src/Yasumi/data/translations/easter.php | 2 +- src/Yasumi/data/translations/easterMonday.php | 2 +- src/Yasumi/data/translations/epiphany.php | 2 +- src/Yasumi/data/translations/fathersDay.php | 2 +- src/Yasumi/data/translations/goodFriday.php | 2 +- src/Yasumi/data/translations/immaculateConception.php | 2 +- src/Yasumi/data/translations/internationalWorkersDay.php | 2 +- src/Yasumi/data/translations/labourDay.php | 2 +- src/Yasumi/data/translations/maundyThursday.php | 2 +- src/Yasumi/data/translations/mothersDay.php | 2 +- src/Yasumi/data/translations/newYearsDay.php | 2 +- src/Yasumi/data/translations/newYearsEve.php | 2 +- src/Yasumi/data/translations/pentecost.php | 2 +- src/Yasumi/data/translations/pentecostMonday.php | 2 +- src/Yasumi/data/translations/portugalDay.php | 2 +- src/Yasumi/data/translations/portugueseRepublicDay.php | 2 +- src/Yasumi/data/translations/reformationDay.php | 2 +- src/Yasumi/data/translations/restorationOfIndepence.php | 2 +- src/Yasumi/data/translations/secondChristmasDay.php | 2 +- src/Yasumi/data/translations/stDavidsDay.php | 2 +- src/Yasumi/data/translations/stGeorgesDay.php | 2 +- src/Yasumi/data/translations/stJohnsDay.php | 2 +- src/Yasumi/data/translations/stJosephsDay.php | 2 +- src/Yasumi/data/translations/stMartinsDay.php | 2 +- src/Yasumi/data/translations/stStephensDay.php | 2 +- src/Yasumi/data/translations/summerTime.php | 2 +- src/Yasumi/data/translations/valentinesDay.php | 2 +- src/Yasumi/data/translations/victoryInEuropeDay.php | 2 +- src/Yasumi/data/translations/waitangiDay.php | 2 +- src/Yasumi/data/translations/winterTime.php | 2 +- src/Yasumi/data/translations/worldAnimalDay.php | 2 +- tests/Australia/ACT/ACTBaseTestCase.php | 4 ++-- tests/Australia/ACT/ACTTest.php | 4 ++-- tests/Australia/ACT/AnzacDayTest.php | 4 ++-- tests/Australia/ACT/AustraliaDayTest.php | 4 ++-- tests/Australia/ACT/BoxingDayTest.php | 4 ++-- tests/Australia/ACT/CanberraDayTest.php | 4 ++-- tests/Australia/ACT/ChristmasDayTest.php | 4 ++-- tests/Australia/ACT/EasterMondayTest.php | 4 ++-- tests/Australia/ACT/EasterSaturdayTest.php | 4 ++-- tests/Australia/ACT/EasterSundayTest.php | 4 ++-- tests/Australia/ACT/GoodFridayTest.php | 4 ++-- tests/Australia/ACT/LabourDayTest.php | 3 +-- tests/Australia/ACT/NewYearsDayTest.php | 4 ++-- tests/Australia/ACT/QueensBirthdayTest.php | 3 +-- tests/Australia/ACT/ReconciliationDayTest.php | 4 ++-- tests/Australia/AnzacDayTest.php | 3 +-- tests/Australia/AustraliaBaseTestCase.php | 2 +- tests/Australia/AustraliaDayTest.php | 2 +- tests/Australia/AustraliaTest.php | 2 +- tests/Australia/BoxingDayTest.php | 3 +-- tests/Australia/ChristmasDayTest.php | 3 +-- tests/Australia/EasterMondayTest.php | 3 +-- tests/Australia/GoodFridayTest.php | 2 +- tests/Australia/NSW/AnzacDayTest.php | 4 ++-- tests/Australia/NSW/AustraliaDayTest.php | 4 ++-- tests/Australia/NSW/BankHolidayTest.php | 4 ++-- tests/Australia/NSW/BoxingDayTest.php | 4 ++-- tests/Australia/NSW/ChristmasDayTest.php | 4 ++-- tests/Australia/NSW/EasterMondayTest.php | 4 ++-- tests/Australia/NSW/EasterSaturdayTest.php | 4 ++-- tests/Australia/NSW/EasterSundayTest.php | 4 ++-- tests/Australia/NSW/GoodFridayTest.php | 4 ++-- tests/Australia/NSW/LabourDayTest.php | 3 +-- tests/Australia/NSW/NSWBaseTestCase.php | 4 ++-- tests/Australia/NSW/NSWTest.php | 4 ++-- tests/Australia/NSW/NewYearsDayTest.php | 4 ++-- tests/Australia/NSW/QueensBirthdayTest.php | 3 +-- tests/Australia/NT/AnzacDayTest.php | 4 ++-- tests/Australia/NT/AustraliaDayTest.php | 4 ++-- tests/Australia/NT/BoxingDayTest.php | 4 ++-- tests/Australia/NT/ChristmasDayTest.php | 4 ++-- tests/Australia/NT/EasterMondayTest.php | 4 ++-- tests/Australia/NT/EasterSaturdayTest.php | 4 ++-- tests/Australia/NT/GoodFridayTest.php | 4 ++-- tests/Australia/NT/MayDayTest.php | 4 ++-- tests/Australia/NT/NTBaseTestCase.php | 4 ++-- tests/Australia/NT/NTTest.php | 4 ++-- tests/Australia/NT/NewYearsDayTest.php | 4 ++-- tests/Australia/NT/PicnicDayTest.php | 4 ++-- tests/Australia/NT/QueensBirthdayTest.php | 3 +-- tests/Australia/NewYearsDayTest.php | 3 +-- tests/Australia/Queensland/AnzacDayTest.php | 4 ++-- tests/Australia/Queensland/AustraliaDayTest.php | 4 ++-- tests/Australia/Queensland/BoxingDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/AnzacDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/AustraliaDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/BoxingDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php | 4 ++-- tests/Australia/Queensland/Brisbane/BrisbaneTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/ChristmasDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/EasterMondayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/GoodFridayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/LabourDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/NewYearsDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/PeoplesDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php | 4 ++-- tests/Australia/Queensland/ChristmasDayTest.php | 4 ++-- tests/Australia/Queensland/EasterMondayTest.php | 4 ++-- tests/Australia/Queensland/GoodFridayTest.php | 4 ++-- tests/Australia/Queensland/LabourDayTest.php | 3 +-- tests/Australia/Queensland/NewYearsDayTest.php | 4 ++-- tests/Australia/Queensland/QueensBirthdayTest.php | 3 +-- tests/Australia/Queensland/QueenslandBaseTestCase.php | 4 ++-- tests/Australia/Queensland/QueenslandTest.php | 4 ++-- tests/Australia/SA/AdelaideCupDayTest.php | 4 ++-- tests/Australia/SA/AnzacDayTest.php | 4 ++-- tests/Australia/SA/AustraliaDayTest.php | 4 ++-- tests/Australia/SA/ChristmasDayTest.php | 3 +-- tests/Australia/SA/EasterMondayTest.php | 4 ++-- tests/Australia/SA/EasterSaturdayTest.php | 4 ++-- tests/Australia/SA/GoodFridayTest.php | 4 ++-- tests/Australia/SA/LabourDayTest.php | 3 +-- tests/Australia/SA/NewYearsDayTest.php | 4 ++-- tests/Australia/SA/ProclamationDayTest.php | 4 ++-- tests/Australia/SA/QueensBirthdayTest.php | 3 +-- tests/Australia/SA/SABaseTestCase.php | 4 ++-- tests/Australia/SA/SATest.php | 4 ++-- tests/Australia/Tasmania/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php | 4 ++-- .../Tasmania/CentralNorth/CentralNorthBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/EightHourDayTest.php | 3 +-- tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php | 4 ++-- .../Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php | 4 ++-- .../Tasmania/FlindersIsland/FlindersIslandShowTest.php | 4 ++-- .../Australia/Tasmania/FlindersIsland/FlindersIslandTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php | 4 ++-- .../Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/GoodFridayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/EightHourDayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/GoodFridayTest.php | 4 ++-- .../Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/KingIslandTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/KingIsland/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/NewYearsDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/EightHourDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/GoodFridayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/LauncestonShowTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/NewYearsDayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/Northeast/NortheastTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/Northeast/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/BurnieShowTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/ChristmasDayTest.php | 4 ++-- .../Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/AnzacDayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/AustraliaDayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/BoxingDayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/BurnieShowTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/ChristmasDayTest.php | 4 ++-- .../Northwest/CircularHead/CircularHeadBaseTestCase.php | 4 ++-- .../Tasmania/Northwest/CircularHead/CircularHeadTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/EasterMondayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/EightHourDayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/GoodFridayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/NewYearsDayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/QueensBirthdayTest.php | 4 ++-- .../Tasmania/Northwest/CircularHead/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/EightHourDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/GoodFridayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/NewYearsDayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/Northwest/NorthwestTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/Northwest/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/QueensBirthdayTest.php | 3 +-- tests/Australia/Tasmania/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/South/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/South/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/South/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/South/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/South/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/South/EightHourDayTest.php | 4 ++-- tests/Australia/Tasmania/South/GoodFridayTest.php | 4 ++-- tests/Australia/Tasmania/South/HobartShowTest.php | 4 ++-- tests/Australia/Tasmania/South/NewYearsDayTest.php | 4 ++-- tests/Australia/Tasmania/South/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/South/RecreationDayTest.php | 4 ++-- tests/Australia/Tasmania/South/SouthBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/South/SouthTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php | 4 ++-- .../Australia/Tasmania/South/Southeast/HobartRegattaTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/HobartShowTest.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php | 4 ++-- .../Australia/Tasmania/South/Southeast/QueensBirthdayTest.php | 4 ++-- .../Tasmania/South/Southeast/SoutheastBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/South/Southeast/SoutheastTest.php | 4 ++-- tests/Australia/Tasmania/TasmaniaBaseTestCase.php | 4 ++-- tests/Australia/Tasmania/TasmaniaTest.php | 4 ++-- tests/Australia/Victoria/AFLGrandFinalFridayTest.php | 3 +-- tests/Australia/Victoria/AnzacDayTest.php | 2 +- tests/Australia/Victoria/AustraliaDayTest.php | 2 +- tests/Australia/Victoria/BoxingDayTest.php | 2 +- tests/Australia/Victoria/ChristmasDayTest.php | 2 +- tests/Australia/Victoria/EasterMondayTest.php | 2 +- tests/Australia/Victoria/EasterSaturdayTest.php | 4 ++-- tests/Australia/Victoria/EasterSundayTest.php | 4 ++-- tests/Australia/Victoria/GoodFridayTest.php | 2 +- tests/Australia/Victoria/LabourDayTest.php | 3 +-- tests/Australia/Victoria/MelbourneCupDayTest.php | 4 ++-- tests/Australia/Victoria/NewYearsDayTest.php | 2 +- tests/Australia/Victoria/QueensBirthdayTest.php | 3 +-- tests/Australia/Victoria/VictoriaBaseTestCase.php | 3 +-- tests/Australia/Victoria/VictoriaTest.php | 3 +-- tests/Australia/WA/AnzacDayTest.php | 4 ++-- tests/Australia/WA/AustraliaDayTest.php | 4 ++-- tests/Australia/WA/BoxingDayTest.php | 4 ++-- tests/Australia/WA/ChristmasDayTest.php | 4 ++-- tests/Australia/WA/EasterMondayTest.php | 4 ++-- tests/Australia/WA/GoodFridayTest.php | 4 ++-- tests/Australia/WA/LabourDayTest.php | 3 +-- tests/Australia/WA/NewYearsDayTest.php | 4 ++-- tests/Australia/WA/QueensBirthdayTest.php | 3 +-- tests/Australia/WA/WABaseTestCase.php | 4 ++-- tests/Australia/WA/WATest.php | 4 ++-- tests/Australia/WA/WesternAustraliaDayTest.php | 4 ++-- tests/Austria/AllSaintsDayTest.php | 2 +- tests/Austria/AscensionDayTest.php | 2 +- tests/Austria/AssumptionOfMaryTest.php | 2 +- tests/Austria/AustriaBaseTestCase.php | 2 +- tests/Austria/AustriaTest.php | 2 +- tests/Austria/ChristmasTest.php | 2 +- tests/Austria/CorpusChristiTest.php | 2 +- tests/Austria/EasterMondayTest.php | 2 +- tests/Austria/EasterTest.php | 2 +- tests/Austria/EpiphanyTest.php | 2 +- tests/Austria/ImmaculateConceptionTest.php | 2 +- tests/Austria/InternationalWorkersDayTest.php | 2 +- tests/Austria/NationalDayTest.php | 2 +- tests/Austria/NewYearsDayTest.php | 2 +- tests/Austria/PentecostMondayTest.php | 2 +- tests/Austria/PentecostTest.php | 2 +- tests/Austria/SecondChristmasDayTest.php | 2 +- tests/Base/HolidayBetweenFilterTest.php | 2 +- tests/Base/HolidayFiltersTest.php | 2 +- tests/Base/HolidayOnFilterTest.php | 3 +-- tests/Base/HolidayTest.php | 2 +- tests/Base/TranslationsTest.php | 2 +- tests/Base/YasumiExternalProvider.php | 2 +- tests/Base/YasumiTest.php | 2 +- tests/Base/YasumiWorkdayTest.php | 2 +- tests/Belgium/AllSaintsDayTest.php | 2 +- tests/Belgium/ArmisticeDayTest.php | 2 +- tests/Belgium/AscensionDayTest.php | 2 +- tests/Belgium/AssumptionOfMaryTest.php | 2 +- tests/Belgium/BelgiumBaseTestCase.php | 2 +- tests/Belgium/BelgiumTest.php | 2 +- tests/Belgium/ChristmasTest.php | 2 +- tests/Belgium/EasterMondayTest.php | 2 +- tests/Belgium/EasterTest.php | 2 +- tests/Belgium/InternationalWorkersDayTest.php | 2 +- tests/Belgium/NationalDayTest.php | 2 +- tests/Belgium/NewYearsDayTest.php | 2 +- tests/Belgium/PentecostTest.php | 2 +- tests/Belgium/pentecostMondayTest.php | 2 +- tests/Bosnia/BosniaBaseTestCase.php | 2 +- tests/Bosnia/BosniaTest.php | 2 +- tests/Bosnia/ChristmasDayTest.php | 2 +- tests/Bosnia/DayAfterNewYearsDay.php | 2 +- tests/Bosnia/EasterTest.php | 2 +- tests/Bosnia/IndependenceDayTest.php | 2 +- tests/Bosnia/InternationalWorkersDayTest.php | 2 +- tests/Bosnia/NewYearsDayTest.php | 2 +- tests/Bosnia/OrthodoxChristmasDay.php | 2 +- tests/Bosnia/SecondLabourDay.php | 2 +- tests/Bosnia/StatehoodDayTest.php | 2 +- tests/Brazil/AllSoulsDayTest.php | 2 +- tests/Brazil/AshWednesdayTest.php | 2 +- tests/Brazil/BrazilBaseTestCase.php | 2 +- tests/Brazil/BrazilTest.php | 2 +- tests/Brazil/CarnavalMondayTest.php | 2 +- tests/Brazil/CarnavalTuesdayTest.php | 2 +- tests/Brazil/ChristmasDayTest.php | 2 +- tests/Brazil/CorpusChristiTest.php | 2 +- tests/Brazil/EasterTest.php | 2 +- tests/Brazil/GoodFridayTest.php | 2 +- tests/Brazil/IndependenceDayTest.php | 2 +- tests/Brazil/InternationalWorkersDayTest.php | 2 +- tests/Brazil/NewYearsDayTest.php | 2 +- tests/Brazil/OurLadyOfAparecidaDayTest.php | 2 +- tests/Brazil/ProclamationOfRepublicDayTest.php | 2 +- tests/Brazil/TiradentesDayTest.php | 2 +- tests/Croatia/AllSaintsDayTest.php | 2 +- tests/Croatia/AntifascistStruggleDayTest.php | 2 +- tests/Croatia/AssumptionOfMaryTest.php | 2 +- tests/Croatia/ChristmasDayTest.php | 2 +- tests/Croatia/CorpusChristiTest.php | 2 +- tests/Croatia/CroatiaBaseTestCase.php | 2 +- tests/Croatia/EasterMondayTest.php | 2 +- tests/Croatia/EasterTest.php | 2 +- tests/Croatia/EpiphanyTest.php | 2 +- tests/Croatia/HomelandThanksgivingDayTest.php | 2 +- tests/Croatia/IndependenceDayTest.php | 2 +- tests/Croatia/InternationalWorkersDayTest.php | 2 +- tests/Croatia/NewYearsDayTest.php | 2 +- tests/Croatia/StStephensDayTest.php | 2 +- tests/Croatia/StatehoodDayTest.php | 2 +- tests/CzechRepublic/ChristmasDayTest.php | 2 +- tests/CzechRepublic/ChristmasEveTest.php | 2 +- tests/CzechRepublic/CzechRepublicBaseTestCase.php | 2 +- tests/CzechRepublic/CzechRepublicTest.php | 2 +- tests/CzechRepublic/CzechStateHoodDayTest.php | 2 +- tests/CzechRepublic/EasterMondayTest.php | 2 +- tests/CzechRepublic/GoodFridayTest.php | 2 +- tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php | 2 +- tests/CzechRepublic/InternationalWorkersDayTest.php | 2 +- tests/CzechRepublic/JanHusDayTest.php | 2 +- tests/CzechRepublic/NewYearsDayTest.php | 2 +- tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php | 2 +- tests/CzechRepublic/SecondChristmasDayTest.php | 2 +- tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php | 2 +- tests/CzechRepublic/VictoryInEuropeDayTest.php | 2 +- tests/Denmark/AscensionDayTest.php | 2 +- tests/Denmark/ChristmasDayTest.php | 2 +- tests/Denmark/ChristmasEveTest.php | 2 +- tests/Denmark/ConstitutionDayTest.php | 2 +- tests/Denmark/DenmarkBaseTestCase.php | 2 +- tests/Denmark/DenmarkTest.php | 2 +- tests/Denmark/EasterMondayTest.php | 2 +- tests/Denmark/EasterTest.php | 2 +- tests/Denmark/GoodFridayTest.php | 2 +- tests/Denmark/GreatPrayerDayTest.php | 2 +- tests/Denmark/InternationalWorkersDayTest.php | 2 +- tests/Denmark/MaundyThursdayTest.php | 2 +- tests/Denmark/NewYearsDayTest.php | 2 +- tests/Denmark/NewYearsEveTest.php | 2 +- tests/Denmark/PentecostMondayTest.php | 2 +- tests/Denmark/PentecostTest.php | 2 +- tests/Denmark/SecondChristmasDayTest.php | 2 +- tests/Denmark/SummerTimeTest.php | 2 +- tests/Denmark/WinterTimeTest.php | 2 +- tests/Estonia/ChristmasDayTest.php | 2 +- tests/Estonia/ChristmasEveDayTest.php | 2 +- tests/Estonia/EasterDayTest.php | 2 +- tests/Estonia/EstoniaBaseTestCase.php | 2 +- tests/Estonia/EstoniaTest.php | 2 +- tests/Estonia/GoodFridayDayTest.php | 2 +- tests/Estonia/IndependenceDayTest.php | 2 +- tests/Estonia/InternationalWorkersDayTest.php | 2 +- tests/Estonia/NewYearsDayTest.php | 2 +- tests/Estonia/PentecostTest.php | 2 +- tests/Estonia/RestorationOfIndependenceDayTest.php | 2 +- tests/Estonia/SecondChristmasDayTest.php | 2 +- tests/Estonia/StJohnsDayTest.php | 2 +- tests/Estonia/VictoryDayTest.php | 2 +- tests/Finland/AllSaintsDayTest.php | 2 +- tests/Finland/AscensionDayTest.php | 2 +- tests/Finland/ChristmasDayTest.php | 2 +- tests/Finland/EasterMondayTest.php | 2 +- tests/Finland/EasterTest.php | 2 +- tests/Finland/EpiphanyTest.php | 2 +- tests/Finland/FinlandBaseTestCase.php | 2 +- tests/Finland/FinlandTest.php | 2 +- tests/Finland/GoodFridayTest.php | 2 +- tests/Finland/IndependenceDayTest.php | 2 +- tests/Finland/InternationalWorkersDayTest.php | 2 +- tests/Finland/NewYearsDayTest.php | 2 +- tests/Finland/PentecostTest.php | 2 +- tests/Finland/SecondChristmasDayTest.php | 2 +- tests/Finland/stJohnsDayTest.php | 2 +- tests/France/AllSaintsDayTest.php | 2 +- tests/France/ArmisticeDayTest.php | 2 +- tests/France/AscensionDayTest.php | 2 +- tests/France/AssumptionOfMaryTest.php | 2 +- tests/France/BasRhin/BasRhinBaseTestCase.php | 2 +- tests/France/BasRhin/BasRhinTest.php | 2 +- tests/France/BasRhin/GoodFridayTest.php | 2 +- tests/France/BasRhin/stStephensDayTest.php | 2 +- tests/France/BastilleDayTest.php | 2 +- tests/France/ChristmasDayTest.php | 2 +- tests/France/EasterMondayTest.php | 2 +- tests/France/FranceBaseTestCase.php | 2 +- tests/France/FranceTest.php | 2 +- tests/France/HautRhin/GoodFridayTest.php | 2 +- tests/France/HautRhin/HautRhinBaseTestCase.php | 2 +- tests/France/HautRhin/HautRhinTest.php | 2 +- tests/France/HautRhin/stStephensDayTest.php | 2 +- tests/France/InternationalWorkersDayTest.php | 2 +- tests/France/Moselle/GoodFridayTest.php | 2 +- tests/France/Moselle/MoselleBaseTestCase.php | 2 +- tests/France/Moselle/MoselleTest.php | 2 +- tests/France/Moselle/stStephensDayTest.php | 2 +- tests/France/NewYearsDayTest.php | 2 +- tests/France/PentecostMondayTest.php | 2 +- tests/France/VictoryInEuropeDayTest.php | 2 +- tests/Germany/AscensionDayTest.php | 2 +- tests/Germany/BadenWurttemberg/AllSaintsDayTest.php | 2 +- .../Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php | 2 +- tests/Germany/BadenWurttemberg/BadenWurttembergTest.php | 2 +- tests/Germany/BadenWurttemberg/CorpusChristiTest.php | 2 +- tests/Germany/BadenWurttemberg/EpiphanyTest.php | 2 +- tests/Germany/BadenWurttemberg/GermanUnityDayTest.php | 2 +- tests/Germany/BadenWurttemberg/ReformationDay2017Test.php | 2 +- tests/Germany/Bavaria/AllSaintsDayTest.php | 2 +- tests/Germany/Bavaria/BavariaBaseTestCase.php | 2 +- tests/Germany/Bavaria/BavariaTest.php | 2 +- tests/Germany/Bavaria/CorpusChristiTest.php | 2 +- tests/Germany/Bavaria/EpiphanyTest.php | 2 +- tests/Germany/Bavaria/GermanUnityDayTest.php | 2 +- tests/Germany/Bavaria/ReformationDay2017Test.php | 2 +- tests/Germany/Berlin/BerlinBaseTestCase.php | 2 +- tests/Germany/Berlin/BerlinTest.php | 2 +- tests/Germany/Berlin/GermanUnityDayTest.php | 2 +- tests/Germany/Berlin/ReformationDay2017Test.php | 2 +- tests/Germany/Brandenburg/BrandenburgBaseTestCase.php | 2 +- tests/Germany/Brandenburg/BrandenburgTest.php | 2 +- tests/Germany/Brandenburg/GermanUnityDayTest.php | 2 +- tests/Germany/Brandenburg/ReformationDayTest.php | 2 +- tests/Germany/Bremen/BremenBaseTestCase.php | 2 +- tests/Germany/Bremen/BremenTest.php | 2 +- tests/Germany/Bremen/GermanUnityDayTest.php | 2 +- tests/Germany/Bremen/ReformationDay2017Test.php | 2 +- tests/Germany/Bremen/ReformationDayTest.php | 2 +- tests/Germany/ChristmasTest.php | 2 +- tests/Germany/EasterMondayTest.php | 2 +- tests/Germany/GermanUnityDayTest.php | 2 +- tests/Germany/GermanyBaseTestCase.php | 2 +- tests/Germany/GermanyTest.php | 2 +- tests/Germany/GoodFridayTest.php | 2 +- tests/Germany/Hamburg/DayOfReformationTest.php | 2 +- tests/Germany/Hamburg/GermanUnityDay.php | 2 +- tests/Germany/Hamburg/HamburgBaseTestCase.php | 2 +- tests/Germany/Hamburg/HamburgTest.php | 2 +- tests/Germany/Hamburg/ReformationDay2017Test.php | 2 +- tests/Germany/Hesse/CorpusChristiTest.php | 2 +- tests/Germany/Hesse/GermanUnityDayTest.php | 2 +- tests/Germany/Hesse/HesseBaseTestCase.php | 2 +- tests/Germany/Hesse/HesseTest.php | 2 +- tests/Germany/Hesse/ReformationDay2017Test.php | 2 +- tests/Germany/InternationalWorkersDayTest.php | 2 +- tests/Germany/LowerSaxony/GermanUnityDayTest.php | 2 +- tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php | 2 +- tests/Germany/LowerSaxony/LowerSaxonyTest.php | 2 +- tests/Germany/LowerSaxony/ReformationDay2017Test.php | 2 +- tests/Germany/LowerSaxony/ReformationDayTest.php | 2 +- .../MecklenburgWesternPomerania/GermanUnityDayTest.php | 2 +- .../MecklenburgWesternPomeraniaBaseTestCase.php | 2 +- .../MecklenburgWesternPomeraniaTest.php | 2 +- .../MecklenburgWesternPomerania/ReformationDayTest.php | 2 +- tests/Germany/NewYearsDayTest.php | 2 +- tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php | 2 +- tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php | 2 +- tests/Germany/NorthRhineWestphalia/GermanUnityDayTest.php | 2 +- .../NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php | 2 +- .../Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php | 2 +- tests/Germany/NorthRhineWestphalia/ReformationDay2017Test.php | 2 +- tests/Germany/PentecostMondayTest.php | 2 +- tests/Germany/ReformationDay2017Test.php | 2 +- tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php | 2 +- tests/Germany/RhinelandPalatinate/CorpusChristiTest.php | 2 +- tests/Germany/RhinelandPalatinate/GermanUnityDayTest.php | 2 +- tests/Germany/RhinelandPalatinate/ReformationDay2017Test.php | 2 +- .../RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php | 2 +- tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php | 2 +- tests/Germany/Saarland/AllSaintsDayTest.php | 2 +- tests/Germany/Saarland/AssumptionOfMaryTest.php | 2 +- tests/Germany/Saarland/CorpusChristiTest.php | 2 +- tests/Germany/Saarland/GermanUnityDayTest.php | 2 +- tests/Germany/Saarland/ReformationDay2017Test.php | 2 +- tests/Germany/Saarland/SaarlandBaseTestCase.php | 2 +- tests/Germany/Saarland/SaarlandTest.php | 2 +- tests/Germany/Saxony/GermanUnityDayTest.php | 2 +- tests/Germany/Saxony/ReformationDayTest.php | 2 +- tests/Germany/Saxony/RepentanceAndPrayerDayTest.php | 2 +- tests/Germany/Saxony/SaxonyBaseTestCase.php | 2 +- tests/Germany/Saxony/SaxonyTest.php | 2 +- tests/Germany/SaxonyAnhalt/EpiphanyTest.php | 2 +- tests/Germany/SaxonyAnhalt/GermanUnityDayTest.php | 2 +- tests/Germany/SaxonyAnhalt/ReformationDayTest.php | 2 +- tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php | 2 +- tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php | 2 +- tests/Germany/SchleswigHolstein/GermanUnityDayTest.php | 2 +- tests/Germany/SchleswigHolstein/ReformationDay2017Test.php | 2 +- tests/Germany/SchleswigHolstein/ReformationDayTest.php | 2 +- .../SchleswigHolstein/SchleswigHolsteinBaseTestCase.php | 2 +- tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php | 2 +- tests/Germany/SecondChristmasDayTest.php | 2 +- tests/Germany/Thuringia/GermanUnityDayTest.php | 2 +- tests/Germany/Thuringia/ReformationDayTest.php | 2 +- tests/Germany/Thuringia/ThuringiaBaseTestCase.php | 2 +- tests/Germany/Thuringia/ThuringiaTest.php | 2 +- tests/Greece/AnnunciationTest.php | 2 +- tests/Greece/AscensionDayTest.php | 2 +- tests/Greece/AssumptionOfMaryTest.php | 2 +- tests/Greece/ChristmasDayTest.php | 2 +- tests/Greece/CleanMondayTest.php | 2 +- tests/Greece/EasterMondayTest.php | 2 +- tests/Greece/EasterTest.php | 2 +- tests/Greece/EpiphanyTest.php | 2 +- tests/Greece/GreeceBaseTestCase.php | 2 +- tests/Greece/GreeceTest.php | 2 +- tests/Greece/IndepencenceDayTest.php | 2 +- tests/Greece/InternationalWorkersDayTest.php | 2 +- tests/Greece/NewYearsDayTest.php | 2 +- tests/Greece/OhiDayTest.php | 2 +- tests/Greece/PentecostMondayTest.php | 2 +- tests/Greece/PentecostTest.php | 2 +- tests/Greece/PolytechnioTest.php | 2 +- tests/Greece/ThreeHolyHierarchsTest.php | 2 +- tests/Greece/goodFridayTest.php | 2 +- tests/Hungary/AllSaintsDayTest.php | 2 +- tests/Hungary/ChristmasTest.php | 2 +- tests/Hungary/EasterMondayTest.php | 2 +- tests/Hungary/EasterTest.php | 2 +- tests/Hungary/HungaryBaseTestCase.php | 2 +- tests/Hungary/HungaryTest.php | 2 +- tests/Hungary/InternationalWorkersDayTest.php | 2 +- tests/Hungary/MemorialDay1848Test.php | 2 +- tests/Hungary/MemorialDay1956Test.php | 2 +- tests/Hungary/NewYearsDayTest.php | 2 +- tests/Hungary/PentecostMondayTest.php | 2 +- tests/Hungary/PentecostTest.php | 2 +- tests/Hungary/SecondChristmasDayTest.php | 2 +- tests/Hungary/StateFoundationDayTest.php | 2 +- tests/Ireland/AugustHolidayTest.php | 2 +- tests/Ireland/ChristmasDayTest.php | 2 +- tests/Ireland/EasterMondayTest.php | 2 +- tests/Ireland/EasterTest.php | 2 +- tests/Ireland/GoodFridayTest.php | 2 +- tests/Ireland/IrelandBaseTestCase.php | 2 +- tests/Ireland/IrelandTest.php | 2 +- tests/Ireland/JuneHolidayTest.php | 2 +- tests/Ireland/MayDayTest.php | 2 +- tests/Ireland/NewYearsDayTest.php | 2 +- tests/Ireland/OctoberHolidayTest.php | 2 +- tests/Ireland/PentecostTest.php | 2 +- tests/Ireland/StPatricksDayTest.php | 2 +- tests/Ireland/StStephensDayTest.php | 2 +- tests/Ireland/pentecostMondayTest.php | 2 +- tests/Italy/AllSaintsDayTest.php | 2 +- tests/Italy/AssumptionOfMaryTest.php | 2 +- tests/Italy/ChristmasTest.php | 2 +- tests/Italy/EasterMondayTest.php | 2 +- tests/Italy/EasterTest.php | 2 +- tests/Italy/EpiphanyTest.php | 2 +- tests/Italy/ImmaculateConceptionTest.php | 2 +- tests/Italy/InternationalWorkersDayTest.php | 2 +- tests/Italy/ItalyBaseTestCase.php | 2 +- tests/Italy/ItalyTest.php | 2 +- tests/Italy/LiberationDayTest.php | 2 +- tests/Italy/NewYearsDayTest.php | 2 +- tests/Italy/RepublicDayTest.php | 2 +- tests/Italy/stStephensDayTest.php | 2 +- tests/Japan/AutumnalEquinoxDayTest.php | 2 +- tests/Japan/ChildrensDayTest.php | 2 +- tests/Japan/ComingOfAgeDayTest.php | 2 +- tests/Japan/ConstitutionMemorialDayTest.php | 2 +- tests/Japan/CultureDayTest.php | 2 +- tests/Japan/EmperorsBirthdayTest.php | 2 +- tests/Japan/GreeneryDayTest.php | 2 +- tests/Japan/HealthAndSportsDayTest.php | 2 +- tests/Japan/JapanBaseTestCase.php | 2 +- tests/Japan/JapanTest.php | 2 +- tests/Japan/LabourThanksgivingDayTest.php | 2 +- tests/Japan/MarineDayTest.php | 2 +- tests/Japan/MountainDayTest.php | 2 +- tests/Japan/NationalFoundationDayTest.php | 2 +- tests/Japan/NewYearsDayTest.php | 2 +- tests/Japan/PublicBridgeDayTest.php | 2 +- tests/Japan/RespectForTheAgedDayTest.php | 2 +- tests/Japan/ShowaDayTest.php | 2 +- tests/Japan/VernalEquinoxDayTest.php | 2 +- tests/Latvia/ChristmasDayTest.php | 2 +- tests/Latvia/ChristmasEveDayTest.php | 2 +- tests/Latvia/EasterDayTest.php | 2 +- tests/Latvia/EasterMondayDayTest.php | 2 +- tests/Latvia/GoodFridayDayTest.php | 2 +- tests/Latvia/InternationalWorkersDayTest.php | 2 +- tests/Latvia/LatviaBaseTestCase.php | 2 +- tests/Latvia/LatviaTest.php | 2 +- tests/Latvia/MidsummerEveDayTest.php | 2 +- tests/Latvia/NewYearsDayTest.php | 2 +- tests/Latvia/NewYearsEveDayTest.php | 2 +- tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php | 2 +- tests/Latvia/RestorationOfIndependenceDayTest.php | 2 +- tests/Latvia/SecondChristmasDayTest.php | 2 +- tests/Latvia/StJohnsDayTest.php | 2 +- tests/Lithuania/AllSaintsDayTest.php | 2 +- tests/Lithuania/AssumptionOfMaryDayTest.php | 2 +- tests/Lithuania/ChristmasDayTest.php | 2 +- tests/Lithuania/ChristmasEveDayTest.php | 2 +- tests/Lithuania/EasterDayTest.php | 2 +- tests/Lithuania/EasterMondayDayTest.php | 2 +- tests/Lithuania/InternationalWorkersDayTest.php | 2 +- tests/Lithuania/LithuaniaBaseTestCase.php | 2 +- tests/Lithuania/LithuaniaTest.php | 2 +- tests/Lithuania/NewYearsDayTest.php | 2 +- .../Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php | 2 +- tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php | 2 +- tests/Lithuania/SecondChristmasDayTest.php | 2 +- tests/Lithuania/StJohnsDayTest.php | 2 +- tests/Lithuania/StatehoodDayTest.php | 2 +- tests/Netherlands/AscensionDayTest.php | 2 +- tests/Netherlands/AshWednesdayTest.php | 2 +- tests/Netherlands/ChristmasDayTest.php | 2 +- tests/Netherlands/CommemorationDayTest.php | 2 +- tests/Netherlands/EasterMondayTest.php | 2 +- tests/Netherlands/EasterTest.php | 2 +- tests/Netherlands/EpiphanyTest.php | 2 +- tests/Netherlands/FathersDayTest.php | 2 +- tests/Netherlands/GoodFridayTest.php | 2 +- tests/Netherlands/HalloweenTest.php | 2 +- tests/Netherlands/InternationalWorkersDayTest.php | 2 +- tests/Netherlands/KingsDayTest.php | 2 +- tests/Netherlands/LiberationDayTest.php | 2 +- tests/Netherlands/MothersDayTest.php | 2 +- tests/Netherlands/NetherlandsBaseTestCase.php | 2 +- tests/Netherlands/NetherlandsTest.php | 2 +- tests/Netherlands/NewYearsDayTest.php | 2 +- tests/Netherlands/PentecostTest.php | 2 +- tests/Netherlands/QueensDayTest.php | 2 +- tests/Netherlands/SummertimeTest.php | 2 +- tests/Netherlands/ValentinesDayTest.php | 2 +- tests/Netherlands/WintertimeTest.php | 2 +- tests/Netherlands/WorldAnimalDayTest.php | 2 +- tests/Netherlands/carnivalDayTest.php | 2 +- tests/Netherlands/pentecostMondayTest.php | 2 +- tests/Netherlands/princesDayTest.php | 2 +- tests/Netherlands/secondCarnivalDay.php | 2 +- tests/Netherlands/secondChristmasdayTest.php | 2 +- tests/Netherlands/stMartinsDayTest.php | 2 +- tests/Netherlands/stNicholasDayTest.php | 2 +- tests/Netherlands/thirdCarnivalDay.php | 2 +- tests/NewZealand/AnzacDayTest.php | 2 +- tests/NewZealand/BoxingDayTest.php | 2 +- tests/NewZealand/ChristmasDayTest.php | 2 +- tests/NewZealand/DayAfterNewYearsDayTest.php | 2 +- tests/NewZealand/EasterMondayTest.php | 2 +- tests/NewZealand/GoodFridayTest.php | 2 +- tests/NewZealand/LabourDayTest.php | 2 +- tests/NewZealand/NewYearsDayTest.php | 2 +- tests/NewZealand/NewZealandBaseTestCase.php | 2 +- tests/NewZealand/NewZealandTest.php | 2 +- tests/NewZealand/QueensBirthdayTest.php | 2 +- tests/NewZealand/WaitangiDayTest.php | 2 +- tests/Norway/AscensionDayTest.php | 2 +- tests/Norway/ChristmasDayTest.php | 2 +- tests/Norway/ConstitutionDayTest.php | 2 +- tests/Norway/EasterMondayTest.php | 2 +- tests/Norway/EasterTest.php | 2 +- tests/Norway/GoodFridayTest.php | 2 +- tests/Norway/InternationalWorkersDayTest.php | 2 +- tests/Norway/MaundyThursdayTest.php | 2 +- tests/Norway/NewYearsDayTest.php | 2 +- tests/Norway/NorwayBaseTestCase.php | 2 +- tests/Norway/NorwayTest.php | 2 +- tests/Norway/PentecostMondayTest.php | 2 +- tests/Norway/PentecostTest.php | 2 +- tests/Norway/SecondChristmasDayTest.php | 2 +- tests/Poland/AllSaintsDayTest.php | 2 +- tests/Poland/AssumptionOfMaryTest.php | 2 +- tests/Poland/ChristmasTest.php | 2 +- tests/Poland/ConstitutionDayTest.php | 2 +- tests/Poland/CorpusChristiTest.php | 2 +- tests/Poland/EasterMondayTest.php | 2 +- tests/Poland/EasterTest.php | 2 +- tests/Poland/EpiphanyTest.php | 2 +- tests/Poland/IndependenceDayTest.php | 2 +- tests/Poland/InternationalWorkersDayTest.php | 2 +- tests/Poland/NewYearsDayTest.php | 2 +- tests/Poland/PentecostTest.php | 2 +- tests/Poland/PolandBaseTestCase.php | 2 +- tests/Poland/PolandTest.php | 2 +- tests/Poland/SecondChristmasDayTest.php | 2 +- tests/Portugal/AllSaintsDayTest.php | 2 +- tests/Portugal/AssumptionOfMaryTest.php | 2 +- tests/Portugal/CarnationRevolutionDayTest.php | 2 +- tests/Portugal/ChristmasTest.php | 2 +- tests/Portugal/CorpusChristiTest.php | 2 +- tests/Portugal/EasterTest.php | 2 +- tests/Portugal/GoodFridayTest.php | 2 +- tests/Portugal/ImmaculateConceptionTest.php | 2 +- tests/Portugal/InternationalWorkersDayTest.php | 2 +- tests/Portugal/NewYearsDayTest.php | 2 +- tests/Portugal/PortugalBaseTestCase.php | 2 +- tests/Portugal/PortugalDayTest.php | 2 +- tests/Portugal/PortugalTest.php | 2 +- tests/Portugal/PortugueseRepublicDayTest.php | 2 +- tests/Portugal/RestorationOfIndependenceTest.php | 2 +- tests/Romania/AssumptionOfMaryTest.php | 2 +- tests/Romania/ChildrensDayTest.php | 2 +- tests/Romania/ChristmasDayTest.php | 2 +- tests/Romania/ConstantinBrancusiDayTest.php | 2 +- tests/Romania/DayAfterNewYearsDayTest.php | 2 +- tests/Romania/EasterMondayTest.php | 2 +- tests/Romania/EasterTest.php | 2 +- tests/Romania/InternationalWorkersDayTest.php | 2 +- tests/Romania/NationalDayTest.php | 2 +- tests/Romania/NewYearsDayTest.php | 2 +- tests/Romania/PentecostMondayTest.php | 2 +- tests/Romania/PentecostTest.php | 2 +- tests/Romania/RomaniaBaseTestCase.php | 2 +- tests/Romania/RomaniaTest.php | 2 +- tests/Romania/SecondChristmasDayTest.php | 2 +- tests/Romania/StAndrewDayTest.php | 2 +- tests/Romania/UnitedPrincipalitiesDayTest.php | 2 +- tests/Russia/DefenceOfTheFatherlandDayTest.php | 2 +- tests/Russia/InternationalWomensDayTest.php | 2 +- tests/Russia/NewYearHolidaysDay2Test.php | 2 +- tests/Russia/NewYearHolidaysDay3Test.php | 2 +- tests/Russia/NewYearHolidaysDay4Test.php | 2 +- tests/Russia/NewYearHolidaysDay5Test.php | 2 +- tests/Russia/NewYearHolidaysDay6Test.php | 2 +- tests/Russia/NewYearHolidaysDay8Test.php | 2 +- tests/Russia/NewYearsDayTest.php | 2 +- tests/Russia/OrthodoxChristmasDayTest.php | 2 +- tests/Russia/RussiaBaseTestCase.php | 2 +- tests/Russia/RussiaDayTest.php | 2 +- tests/Russia/RussiaTest.php | 2 +- tests/Russia/SpringAndLabourDayTest.php | 2 +- tests/Russia/UnityDayTest.php | 2 +- tests/Russia/VictoryDayTest.php | 2 +- tests/Slovakia/AllSaintsDayTest.php | 2 +- tests/Slovakia/ChristmasDayTest.php | 2 +- tests/Slovakia/ChristmasEveTest.php | 2 +- tests/Slovakia/EasterMondayTest.php | 2 +- tests/Slovakia/EpiphanyTest.php | 2 +- tests/Slovakia/GoodFridayTest.php | 2 +- tests/Slovakia/InternationalWorkersDayTest.php | 2 +- tests/Slovakia/NewYearsDayTest.php | 2 +- tests/Slovakia/OurLadyOfSorrowsDayTest.php | 2 +- tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php | 2 +- tests/Slovakia/SecondChristmasDayTest.php | 2 +- tests/Slovakia/SlovakConstitutionDayTest.php | 2 +- tests/Slovakia/SlovakNationalUprisingDayTest.php | 2 +- tests/Slovakia/SlovakiaBaseTestCase.php | 2 +- tests/Slovakia/SlovakiaTest.php | 2 +- tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php | 2 +- tests/Slovakia/VictoryInEuropeDayTest.php | 2 +- tests/SouthAfrica/ChristmasDayTest.php | 2 +- tests/SouthAfrica/FamilyDayTest.php | 2 +- tests/SouthAfrica/FreedomDayTest.php | 2 +- tests/SouthAfrica/GoodFridayTest.php | 2 +- tests/SouthAfrica/HeritageDayTest.php | 2 +- tests/SouthAfrica/HumanRightsDayTest.php | 2 +- tests/SouthAfrica/MunicipalElections2016DayTest.php | 2 +- tests/SouthAfrica/NationalWomensDayTest.php | 2 +- tests/SouthAfrica/NewYearsDayTest.php | 2 +- tests/SouthAfrica/ReconciliationDayTest.php | 2 +- tests/SouthAfrica/SecondChristmasDayTest.php | 2 +- tests/SouthAfrica/SouthAfricaBaseTestCase.php | 2 +- tests/SouthAfrica/SouthAfricaTest.php | 2 +- tests/SouthAfrica/SubstituteDayOfGoodwillTest.php | 2 +- tests/SouthAfrica/WorkersDayTest.php | 2 +- tests/SouthAfrica/YouthDayTest.php | 2 +- tests/Spain/AllSaintsDayTest.php | 2 +- tests/Spain/Andalusia/AndalusiaBaseTestCase.php | 2 +- tests/Spain/Andalusia/AndalusiaDayTest.php | 2 +- tests/Spain/Andalusia/AndalusiaTest.php | 2 +- tests/Spain/Aragon/AragonBaseTestCase.php | 2 +- tests/Spain/Aragon/AragonTest.php | 2 +- tests/Spain/Aragon/StGeorgesDayTest.php | 2 +- tests/Spain/AssumptionOfMaryTest.php | 2 +- tests/Spain/Asturias/AsturiasBaseTestCase.php | 2 +- tests/Spain/Asturias/AsturiasDayTest.php | 2 +- tests/Spain/Asturias/AsturiasTest.php | 2 +- tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php | 2 +- tests/Spain/BalearicIslands/BalearicIslandsDayTest.php | 2 +- tests/Spain/BalearicIslands/BalearicIslandsTest.php | 2 +- tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php | 2 +- tests/Spain/BasqueCountry/BasqueCountryDayTest.php | 2 +- tests/Spain/BasqueCountry/BasqueCountryTest.php | 2 +- tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php | 2 +- tests/Spain/CanaryIslands/CanaryIslandsDayTest.php | 2 +- tests/Spain/CanaryIslands/CanaryIslandsTest.php | 2 +- tests/Spain/Cantabria/CantabriaBaseTestCase.php | 2 +- tests/Spain/Cantabria/CantabriaDayTest.php | 2 +- tests/Spain/Cantabria/CantabriaTest.php | 2 +- tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php | 2 +- tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php | 2 +- tests/Spain/CastileAndLeon/CastileAndLeonTest.php | 2 +- tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php | 2 +- tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php | 2 +- tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php | 2 +- tests/Spain/Catalonia/CataloniaBaseTestCase.php | 2 +- tests/Spain/Catalonia/CataloniaTest.php | 2 +- tests/Spain/Catalonia/nationalCataloniaDayTest.php | 2 +- tests/Spain/Catalonia/stJohnsDayTest.php | 2 +- tests/Spain/Ceuta/CeutaBaseTestCase.php | 2 +- tests/Spain/Ceuta/CeutaTest.php | 2 +- tests/Spain/Ceuta/ceutaDayTest.php | 2 +- tests/Spain/ChristmasTest.php | 2 +- .../Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php | 2 +- tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php | 2 +- tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php | 2 +- tests/Spain/ConstitutionDayTest.php | 2 +- tests/Spain/EasterMondayTest.php | 2 +- tests/Spain/EpiphanyTest.php | 2 +- tests/Spain/Extremadura/ExtremaduraBaseTestCase.php | 2 +- tests/Spain/Extremadura/ExtremaduraDayTest.php | 2 +- tests/Spain/Extremadura/ExtremaduraTest.php | 2 +- tests/Spain/Galicia/GaliciaBaseTestCase.php | 2 +- tests/Spain/Galicia/GaliciaTest.php | 2 +- tests/Spain/Galicia/GalicianLiteratureDayTest.php | 2 +- tests/Spain/Galicia/stJamesDayTest.php | 2 +- tests/Spain/GoodFridayTest.php | 2 +- tests/Spain/ImmaculateConceptionTest.php | 2 +- tests/Spain/InternationalWorkersDayTest.php | 2 +- tests/Spain/LaRioja/LaRiojaBaseTestCase.php | 2 +- tests/Spain/LaRioja/LaRiojaDayTest.php | 2 +- tests/Spain/LaRioja/LaRiojaTest.php | 2 +- tests/Spain/MaundyThursdayTest.php | 2 +- tests/Spain/Melilla/MelillaBaseTestCase.php | 2 +- tests/Spain/Melilla/MelillaTest.php | 2 +- tests/Spain/NationalDayTest.php | 2 +- tests/Spain/Navarre/NavarreBaseTestCase.php | 2 +- tests/Spain/Navarre/NavarreTest.php | 2 +- tests/Spain/NewYearsDayTest.php | 2 +- tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php | 2 +- tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php | 2 +- tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php | 2 +- tests/Spain/SpainBaseTestCase.php | 2 +- tests/Spain/SpainTest.php | 2 +- .../ValencianCommunity/ValencianCommunityBaseTestCase.php | 2 +- tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php | 2 +- tests/Spain/ValencianCommunity/ValencianCommunityTest.php | 2 +- tests/Spain/ValentinesDayTest.php | 2 +- tests/Spain/stJosephsDayTest.php | 2 +- tests/Sweden/AllSaintsDayTest.php | 2 +- tests/Sweden/AscensionDayTest.php | 2 +- tests/Sweden/ChristmasDayTest.php | 2 +- tests/Sweden/ChristmasEveTest.php | 2 +- tests/Sweden/EasterMondayTest.php | 2 +- tests/Sweden/EasterTest.php | 2 +- tests/Sweden/EpiphanyTest.php | 2 +- tests/Sweden/GoodFridayTest.php | 2 +- tests/Sweden/InternationalWorkersDayTest.php | 2 +- tests/Sweden/NationalDayTest.php | 2 +- tests/Sweden/NewYearsDayTest.php | 2 +- tests/Sweden/PentecostTest.php | 2 +- tests/Sweden/SecondChristmasDayTest.php | 2 +- tests/Sweden/SwedenBaseTestCase.php | 2 +- tests/Sweden/SwedenTest.php | 2 +- tests/Sweden/stJohnsDayTest.php | 2 +- tests/Switzerland/Aargau/AargauBaseTestCase.php | 2 +- tests/Switzerland/Aargau/AargauTest.php | 2 +- tests/Switzerland/Aargau/AscensionDayTest.php | 2 +- tests/Switzerland/Aargau/ChristmasDayTest.php | 2 +- tests/Switzerland/Aargau/GoodFridayTest.php | 2 +- tests/Switzerland/Aargau/NewYearsDayTest.php | 2 +- .../AppenzellAusserrhodenBaseTestCase.php | 2 +- .../AppenzellAusserrhoden/AppenzellAusserrhodenTest.php | 2 +- tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php | 2 +- tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php | 2 +- tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php | 2 +- tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php | 2 +- tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php | 2 +- .../Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php | 2 +- tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php | 2 +- .../AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php | 2 +- .../AppenzellInnerrhoden/AppenzellInnerrhodenTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php | 2 +- .../Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php | 2 +- .../AppenzellInnerrhoden/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php | 2 +- .../Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/AscensionDayTest.php | 2 +- .../BaselLandschaft/BaselLandschaftBaseTestCase.php | 2 +- tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php | 2 +- tests/Switzerland/BaselLandschaft/ChristmasDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/EasterMondayTest.php | 2 +- tests/Switzerland/BaselLandschaft/GoodFridayTest.php | 2 +- tests/Switzerland/BaselLandschaft/NewYearsDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/PentecostMondayTest.php | 2 +- tests/Switzerland/BaselLandschaft/StStephensDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/WorkersDayTest.php | 2 +- tests/Switzerland/BaselStadt/AscensionDayTest.php | 2 +- tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php | 2 +- tests/Switzerland/BaselStadt/BaselStadtTest.php | 2 +- tests/Switzerland/BaselStadt/ChristmasDayTest.php | 2 +- tests/Switzerland/BaselStadt/EasterMondayTest.php | 2 +- tests/Switzerland/BaselStadt/GoodFridayTest.php | 2 +- tests/Switzerland/BaselStadt/NewYearsDayTest.php | 2 +- tests/Switzerland/BaselStadt/PentecostMondayTest.php | 2 +- tests/Switzerland/BaselStadt/StStephensDayTest.php | 2 +- tests/Switzerland/BaselStadt/WorkersDayTest.php | 2 +- tests/Switzerland/Bern/AscensionDayTest.php | 2 +- tests/Switzerland/Bern/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Bern/BernBaseTestCase.php | 2 +- tests/Switzerland/Bern/BernTest.php | 2 +- tests/Switzerland/Bern/ChristmasDayTest.php | 2 +- tests/Switzerland/Bern/EasterMondayTest.php | 2 +- tests/Switzerland/Bern/GoodFridayTest.php | 2 +- tests/Switzerland/Bern/NewYearsDayTest.php | 2 +- tests/Switzerland/Bern/PentecostMondayTest.php | 2 +- tests/Switzerland/Bern/StStephensDayTest.php | 2 +- tests/Switzerland/Fribourg/AscensionDayTest.php | 2 +- tests/Switzerland/Fribourg/ChristmasDayTest.php | 2 +- tests/Switzerland/Fribourg/EasterMondayTest.php | 2 +- tests/Switzerland/Fribourg/FribourgBaseTestCase.php | 2 +- tests/Switzerland/Fribourg/FribourgTest.php | 2 +- tests/Switzerland/Fribourg/GoodFridayTest.php | 2 +- tests/Switzerland/Fribourg/NewYearsDayTest.php | 2 +- tests/Switzerland/Fribourg/PentecostMondayTest.php | 2 +- tests/Switzerland/Geneva/AscensionDayTest.php | 2 +- tests/Switzerland/Geneva/ChristmasDayTest.php | 2 +- tests/Switzerland/Geneva/EasterMondayTest.php | 2 +- tests/Switzerland/Geneva/GenevaBaseTestCase.php | 2 +- tests/Switzerland/Geneva/GenevaTest.php | 2 +- tests/Switzerland/Geneva/GoodFridayTest.php | 2 +- tests/Switzerland/Geneva/JeuneGenevoisTest.php | 2 +- tests/Switzerland/Geneva/NewYearsDayTest.php | 2 +- tests/Switzerland/Geneva/PentecostMondayTest.php | 2 +- tests/Switzerland/Geneva/RestaurationGenevoiseTest.php | 2 +- tests/Switzerland/Glarus/AllSaintsDayTest.php | 2 +- tests/Switzerland/Glarus/AscensionDayTest.php | 2 +- tests/Switzerland/Glarus/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Glarus/ChristmasDayTest.php | 2 +- tests/Switzerland/Glarus/EasterMondayTest.php | 2 +- tests/Switzerland/Glarus/GlarusBaseTestCase.php | 2 +- tests/Switzerland/Glarus/GlarusTest.php | 2 +- tests/Switzerland/Glarus/GoodFridayTest.php | 2 +- tests/Switzerland/Glarus/NafelserFahrtTest.php | 2 +- tests/Switzerland/Glarus/NewYearsDayTest.php | 2 +- tests/Switzerland/Glarus/PentecostMondayTest.php | 2 +- tests/Switzerland/Glarus/StStephensDayTest.php | 2 +- tests/Switzerland/Grisons/AscensionDayTest.php | 2 +- tests/Switzerland/Grisons/ChristmasDayTest.php | 2 +- tests/Switzerland/Grisons/EasterMondayTest.php | 2 +- tests/Switzerland/Grisons/GoodFridayTest.php | 2 +- tests/Switzerland/Grisons/GrisonsBaseTestCase.php | 2 +- tests/Switzerland/Grisons/GrisonsTest.php | 2 +- tests/Switzerland/Grisons/NewYearsDayTest.php | 2 +- tests/Switzerland/Grisons/PentecostMondayTest.php | 2 +- tests/Switzerland/Grisons/StStephensDayTest.php | 2 +- tests/Switzerland/Jura/AllSaintsDayTest.php | 2 +- tests/Switzerland/Jura/AscensionDayTest.php | 2 +- tests/Switzerland/Jura/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Jura/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Jura/ChristmasDayTest.php | 2 +- tests/Switzerland/Jura/CorpusChristiTest.php | 2 +- tests/Switzerland/Jura/EasterMondayTest.php | 2 +- tests/Switzerland/Jura/GoodFridayTest.php | 2 +- tests/Switzerland/Jura/JuraBaseTestCase.php | 2 +- tests/Switzerland/Jura/JuraTest.php | 2 +- tests/Switzerland/Jura/NewYearsDayTest.php | 2 +- tests/Switzerland/Jura/PentecostMondayTest.php | 2 +- tests/Switzerland/Jura/PlebisciteJurassienTest.php | 2 +- tests/Switzerland/Jura/WorkersDayTest.php | 2 +- tests/Switzerland/Lucerne/AllSaintsDayTest.php | 2 +- tests/Switzerland/Lucerne/AscensionDayTest.php | 2 +- tests/Switzerland/Lucerne/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Lucerne/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Lucerne/ChristmasDayTest.php | 2 +- tests/Switzerland/Lucerne/CorpusChristiTest.php | 2 +- tests/Switzerland/Lucerne/EasterMondayTest.php | 2 +- tests/Switzerland/Lucerne/GoodFridayTest.php | 2 +- tests/Switzerland/Lucerne/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Lucerne/LucerneBaseTestCase.php | 2 +- tests/Switzerland/Lucerne/LucerneTest.php | 2 +- tests/Switzerland/Lucerne/NewYearsDayTest.php | 2 +- tests/Switzerland/Lucerne/PentecostMondayTest.php | 2 +- tests/Switzerland/Lucerne/StStephensDayTest.php | 2 +- tests/Switzerland/Neuchatel/AscensionDayTest.php | 2 +- tests/Switzerland/Neuchatel/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Neuchatel/BettagsMontagTest.php | 2 +- tests/Switzerland/Neuchatel/ChristmasDayTest.php | 2 +- tests/Switzerland/Neuchatel/EasterMondayTest.php | 2 +- tests/Switzerland/Neuchatel/GoodFridayTest.php | 2 +- tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php | 2 +- tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php | 2 +- tests/Switzerland/Neuchatel/NeuchatelTest.php | 2 +- tests/Switzerland/Neuchatel/NewYearsDayTest.php | 2 +- tests/Switzerland/Neuchatel/PentecostMondayTest.php | 2 +- tests/Switzerland/Neuchatel/WorkersDayTest.php | 2 +- tests/Switzerland/Nidwalden/AllSaintsDayTest.php | 2 +- tests/Switzerland/Nidwalden/AscensionDayTest.php | 2 +- tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Nidwalden/ChristmasDayTest.php | 2 +- tests/Switzerland/Nidwalden/CorpusChristiTest.php | 2 +- tests/Switzerland/Nidwalden/EasterMondayTest.php | 2 +- tests/Switzerland/Nidwalden/GoodFridayTest.php | 2 +- tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Nidwalden/NewYearsDayTest.php | 2 +- tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php | 2 +- tests/Switzerland/Nidwalden/NidwaldenTest.php | 2 +- tests/Switzerland/Nidwalden/PentecostMondayTest.php | 2 +- tests/Switzerland/Nidwalden/StJosephDayTest.php | 2 +- tests/Switzerland/Nidwalden/StStephensDayTest.php | 2 +- tests/Switzerland/Obwalden/AllSaintsDayTest.php | 2 +- tests/Switzerland/Obwalden/AscensionDayTest.php | 2 +- tests/Switzerland/Obwalden/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Obwalden/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Obwalden/BruderKlausenFestTest.php | 2 +- tests/Switzerland/Obwalden/ChristmasDayTest.php | 2 +- tests/Switzerland/Obwalden/CorpusChristiTest.php | 2 +- tests/Switzerland/Obwalden/EasterMondayTest.php | 2 +- tests/Switzerland/Obwalden/GoodFridayTest.php | 2 +- tests/Switzerland/Obwalden/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Obwalden/NewYearsDayTest.php | 2 +- tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php | 2 +- tests/Switzerland/Obwalden/ObwaldenTest.php | 2 +- tests/Switzerland/Obwalden/PentecostMondayTest.php | 2 +- tests/Switzerland/Obwalden/StStephensDayTest.php | 2 +- tests/Switzerland/Schaffhausen/AscensionDayTest.php | 2 +- tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Schaffhausen/ChristmasDayTest.php | 2 +- tests/Switzerland/Schaffhausen/EasterMondayTest.php | 2 +- tests/Switzerland/Schaffhausen/GoodFridayTest.php | 2 +- tests/Switzerland/Schaffhausen/NewYearsDayTest.php | 2 +- tests/Switzerland/Schaffhausen/PentecostMondayTest.php | 2 +- tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php | 2 +- tests/Switzerland/Schaffhausen/SchaffhausenTest.php | 2 +- tests/Switzerland/Schaffhausen/StStephensDayTest.php | 2 +- tests/Switzerland/Schaffhausen/WorkersDayTest.php | 2 +- tests/Switzerland/Schwyz/AllSaintsDayTest.php | 2 +- tests/Switzerland/Schwyz/AscensionDayTest.php | 2 +- tests/Switzerland/Schwyz/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Schwyz/ChristmasDayTest.php | 2 +- tests/Switzerland/Schwyz/CorpusChristiTest.php | 2 +- tests/Switzerland/Schwyz/EasterMondayTest.php | 2 +- tests/Switzerland/Schwyz/EpiphanyTest.php | 2 +- tests/Switzerland/Schwyz/GoodFridayTest.php | 2 +- tests/Switzerland/Schwyz/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Schwyz/NewYearsDayTest.php | 2 +- tests/Switzerland/Schwyz/PentecostMondayTest.php | 2 +- tests/Switzerland/Schwyz/SchwyzBaseTestCase.php | 2 +- tests/Switzerland/Schwyz/SchwyzTest.php | 2 +- tests/Switzerland/Schwyz/StJosephDayTest.php | 2 +- tests/Switzerland/Schwyz/StStephensDayTest.php | 2 +- tests/Switzerland/Solothurn/AscensionDayTest.php | 2 +- tests/Switzerland/Solothurn/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Solothurn/ChristmasDayTest.php | 2 +- tests/Switzerland/Solothurn/GoodFridayTest.php | 2 +- tests/Switzerland/Solothurn/NewYearsDayTest.php | 2 +- tests/Switzerland/Solothurn/SolothurnBaseTestCase.php | 2 +- tests/Switzerland/Solothurn/SolothurnTest.php | 2 +- tests/Switzerland/StGallen/AllSaintsDayTest.php | 2 +- tests/Switzerland/StGallen/AscensionDayTest.php | 2 +- tests/Switzerland/StGallen/ChristmasDayTest.php | 2 +- tests/Switzerland/StGallen/EasterMondayTest.php | 2 +- tests/Switzerland/StGallen/GoodFridayTest.php | 2 +- tests/Switzerland/StGallen/NewYearsDayTest.php | 2 +- tests/Switzerland/StGallen/PentecostMondayTest.php | 2 +- tests/Switzerland/StGallen/StGallenBaseTestCase.php | 2 +- tests/Switzerland/StGallen/StGallenTest.php | 2 +- tests/Switzerland/StGallen/StStephensDayTest.php | 2 +- tests/Switzerland/SwissNationalDayTest.php | 2 +- tests/Switzerland/SwitzerlandBaseTestCase.php | 2 +- tests/Switzerland/SwitzerlandTest.php | 2 +- tests/Switzerland/Thurgau/AscensionDayTest.php | 2 +- tests/Switzerland/Thurgau/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Thurgau/ChristmasDayTest.php | 2 +- tests/Switzerland/Thurgau/EasterMondayTest.php | 2 +- tests/Switzerland/Thurgau/GoodFridayTest.php | 2 +- tests/Switzerland/Thurgau/NewYearsDayTest.php | 2 +- tests/Switzerland/Thurgau/PentecostMondayTest.php | 2 +- tests/Switzerland/Thurgau/StStephensDayTest.php | 2 +- tests/Switzerland/Thurgau/ThurgauBaseTestCase.php | 2 +- tests/Switzerland/Thurgau/ThurgauTest.php | 2 +- tests/Switzerland/Thurgau/WorkersDayTest.php | 2 +- tests/Switzerland/Ticino/AllSaintsDayTest.php | 2 +- tests/Switzerland/Ticino/AscensionDayTest.php | 2 +- tests/Switzerland/Ticino/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Ticino/ChristmasDayTest.php | 2 +- tests/Switzerland/Ticino/CorpusChristiTest.php | 2 +- tests/Switzerland/Ticino/EasterMondayTest.php | 2 +- tests/Switzerland/Ticino/EpiphanyTest.php | 2 +- tests/Switzerland/Ticino/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Ticino/NewYearsDayTest.php | 2 +- tests/Switzerland/Ticino/PentecostMondayTest.php | 2 +- tests/Switzerland/Ticino/StJosephDayTest.php | 2 +- tests/Switzerland/Ticino/StPeterPaulTest.php | 2 +- tests/Switzerland/Ticino/StStephensDayTest.php | 2 +- tests/Switzerland/Ticino/TicinoBaseTestCase.php | 2 +- tests/Switzerland/Ticino/TicinoTest.php | 2 +- tests/Switzerland/Ticino/WorkersDayTest.php | 2 +- tests/Switzerland/Uri/AllSaintsDayTest.php | 2 +- tests/Switzerland/Uri/AscensionDayTest.php | 2 +- tests/Switzerland/Uri/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Uri/ChristmasDayTest.php | 2 +- tests/Switzerland/Uri/CorpusChristiTest.php | 2 +- tests/Switzerland/Uri/EasterMondayTest.php | 2 +- tests/Switzerland/Uri/EpiphanyTest.php | 2 +- tests/Switzerland/Uri/GoodFridayTest.php | 2 +- tests/Switzerland/Uri/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Uri/NewYearsDayTest.php | 2 +- tests/Switzerland/Uri/PentecostMondayTest.php | 2 +- tests/Switzerland/Uri/StJosephDayTest.php | 2 +- tests/Switzerland/Uri/StStephensDayTest.php | 2 +- tests/Switzerland/Uri/UriBaseTestCase.php | 2 +- tests/Switzerland/Uri/UriTest.php | 2 +- tests/Switzerland/Valais/AllSaintsDayTest.php | 2 +- tests/Switzerland/Valais/AscensionDayTest.php | 2 +- tests/Switzerland/Valais/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Valais/ChristmasDayTest.php | 2 +- tests/Switzerland/Valais/CorpusChristiTest.php | 2 +- tests/Switzerland/Valais/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Valais/NewYearsDayTest.php | 2 +- tests/Switzerland/Valais/StJosephDayTest.php | 2 +- tests/Switzerland/Valais/ValaisBaseTestCase.php | 2 +- tests/Switzerland/Valais/ValaisTest.php | 2 +- tests/Switzerland/Vaud/AscensionDayTest.php | 2 +- tests/Switzerland/Vaud/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Vaud/BettagsMontagTest.php | 2 +- tests/Switzerland/Vaud/ChristmasDayTest.php | 2 +- tests/Switzerland/Vaud/EasterMondayTest.php | 2 +- tests/Switzerland/Vaud/GoodFridayTest.php | 2 +- tests/Switzerland/Vaud/NewYearsDayTest.php | 2 +- tests/Switzerland/Vaud/PentecostMondayTest.php | 2 +- tests/Switzerland/Vaud/VaudBaseTestCase.php | 2 +- tests/Switzerland/Vaud/VaudTest.php | 2 +- tests/Switzerland/Zug/AllSaintsDayTest.php | 2 +- tests/Switzerland/Zug/AscensionDayTest.php | 2 +- tests/Switzerland/Zug/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Zug/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Zug/ChristmasDayTest.php | 2 +- tests/Switzerland/Zug/CorpusChristiTest.php | 2 +- tests/Switzerland/Zug/EasterMondayTest.php | 2 +- tests/Switzerland/Zug/GoodFridayTest.php | 2 +- tests/Switzerland/Zug/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Zug/NewYearsDayTest.php | 2 +- tests/Switzerland/Zug/PentecostMondayTest.php | 2 +- tests/Switzerland/Zug/StStephensDayTest.php | 2 +- tests/Switzerland/Zug/ZugBaseTestCase.php | 2 +- tests/Switzerland/Zug/ZugTest.php | 2 +- tests/Switzerland/Zurich/AscensionDayTest.php | 2 +- tests/Switzerland/Zurich/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Zurich/ChristmasDayTest.php | 2 +- tests/Switzerland/Zurich/EasterMondayTest.php | 2 +- tests/Switzerland/Zurich/GoodFridayTest.php | 2 +- tests/Switzerland/Zurich/NewYearsDayTest.php | 2 +- tests/Switzerland/Zurich/PentecostMondayTest.php | 2 +- tests/Switzerland/Zurich/StStephensDayTest.php | 2 +- tests/Switzerland/Zurich/WorkersDayTest.php | 2 +- tests/Switzerland/Zurich/ZurichBaseTestCase.php | 2 +- tests/Switzerland/Zurich/ZurichTest.php | 2 +- tests/USA/ChristmasDayTest.php | 2 +- tests/USA/ColumbusDayTest.php | 2 +- tests/USA/IndependenceDayTest.php | 2 +- tests/USA/LabourDayTest.php | 2 +- tests/USA/MartinLutherKingDayTest.php | 2 +- tests/USA/MemorialDayTest.php | 2 +- tests/USA/NewYearsDayTest.php | 2 +- tests/USA/ThanksgivingDayTest.php | 2 +- tests/USA/USABaseTestCase.php | 2 +- tests/USA/USATest.php | 2 +- tests/USA/VeteransDayTest.php | 2 +- tests/USA/WashingtonsBirthdayTest.php | 2 +- tests/Ukraine/ChristmasDayTest.php | 2 +- tests/Ukraine/ConstitutionDayTest.php | 2 +- tests/Ukraine/DefenderOfUkraineDayTest.php | 2 +- tests/Ukraine/EasterTest.php | 2 +- tests/Ukraine/IndependenceDayTest.php | 2 +- tests/Ukraine/InternationalWomensDayTest.php | 2 +- tests/Ukraine/InternationalWorkersDayTest.php | 2 +- tests/Ukraine/NewYearsDayTest.php | 2 +- tests/Ukraine/PentecostTest.php | 2 +- tests/Ukraine/SecondInternationalWorkersDayTest.php | 2 +- tests/Ukraine/UkraineBaseTestCase.php | 2 +- tests/Ukraine/UkraineTest.php | 2 +- tests/Ukraine/VictoryDayTest.php | 2 +- tests/UnitedKingdom/BoxingDayTest.php | 2 +- tests/UnitedKingdom/ChristmasDayTest.php | 2 +- tests/UnitedKingdom/EasterMondayTest.php | 2 +- tests/UnitedKingdom/GoodFridayTest.php | 2 +- tests/UnitedKingdom/MayDayBankHolidayTest.php | 2 +- tests/UnitedKingdom/NewYearsDayTest.php | 2 +- tests/UnitedKingdom/SpringBankHolidayTest.php | 2 +- tests/UnitedKingdom/SummerBankHolidayTest.php | 2 +- tests/UnitedKingdom/UnitedKingdomBaseTestCase.php | 2 +- tests/UnitedKingdom/UnitedKingdomTest.php | 2 +- tests/YasumiBase.php | 2 +- tests/YasumiTestCaseInterface.php | 2 +- 1368 files changed, 1580 insertions(+), 1607 deletions(-) diff --git a/.php_cs b/.php_cs index 3a504dc63..db5e14986 100644 --- a/.php_cs +++ b/.php_cs @@ -2,7 +2,7 @@ /** * This file is part of the Yasumi package. * - * Copyright (c) 2015 - 2018 AzuyaLabs + * Copyright (c) 2015 - 2019 AzuyaLabs * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. diff --git a/CHANGELOG.md b/CHANGELOG.md index f8ad93ac1..82801ffb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - The (observed) holidays Lukkeloven, Constitution Day, New Year's Eve and Labour Day, as well as summertime and wintertime are included for Denmark [\#104](https://github.com/azuyalabs/yasumi/pull/104) ([c960657](https://github.com/c960657)) ### Changed +- Updated copyright year. - Upgraded to PHPUnit 7. - PHP version 7.1 is now the minimum required version. - Changed Japanese holiday for the 2020 Olympic Games.Marine Day,Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) ([cookie-maker](https://github.com/cookie-maker)) diff --git a/LICENSE b/LICENSE index 57c9b9a99..9ffbc6f6b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 - 2018 AzuyaLabs +Copyright (c) 2015 - 2019 AzuyaLabs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/phpunit.xml b/phpunit.xml index 6e095a549..7065f5997 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,7 +2,7 @@ + * @author Sacha Telgenhof */ namespace Yasumi\Exception; diff --git a/src/Yasumi/Exception/InvalidDateException.php b/src/Yasumi/Exception/InvalidDateException.php index 0123570e0..202497327 100644 --- a/src/Yasumi/Exception/InvalidDateException.php +++ b/src/Yasumi/Exception/InvalidDateException.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Exception; diff --git a/src/Yasumi/Exception/UnknownLocaleException.php b/src/Yasumi/Exception/UnknownLocaleException.php index 814994a51..5e64dcc07 100644 --- a/src/Yasumi/Exception/UnknownLocaleException.php +++ b/src/Yasumi/Exception/UnknownLocaleException.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Exception; diff --git a/src/Yasumi/Filters/BankHolidaysFilter.php b/src/Yasumi/Filters/BankHolidaysFilter.php index 1208e7588..edd1bc2f9 100644 --- a/src/Yasumi/Filters/BankHolidaysFilter.php +++ b/src/Yasumi/Filters/BankHolidaysFilter.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Filters/BetweenFilter.php b/src/Yasumi/Filters/BetweenFilter.php index ec82693d6..8153c24a9 100644 --- a/src/Yasumi/Filters/BetweenFilter.php +++ b/src/Yasumi/Filters/BetweenFilter.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Filters/ObservedHolidaysFilter.php b/src/Yasumi/Filters/ObservedHolidaysFilter.php index a3daa74b7..58550e700 100644 --- a/src/Yasumi/Filters/ObservedHolidaysFilter.php +++ b/src/Yasumi/Filters/ObservedHolidaysFilter.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Filters/OfficialHolidaysFilter.php b/src/Yasumi/Filters/OfficialHolidaysFilter.php index 75bc66eca..94e315702 100644 --- a/src/Yasumi/Filters/OfficialHolidaysFilter.php +++ b/src/Yasumi/Filters/OfficialHolidaysFilter.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Filters/OnFilter.php b/src/Yasumi/Filters/OnFilter.php index 645e3eb6e..ed722c9ef 100644 --- a/src/Yasumi/Filters/OnFilter.php +++ b/src/Yasumi/Filters/OnFilter.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Filters/OtherHolidaysFilter.php b/src/Yasumi/Filters/OtherHolidaysFilter.php index 33c0490cb..1349a23c7 100644 --- a/src/Yasumi/Filters/OtherHolidaysFilter.php +++ b/src/Yasumi/Filters/OtherHolidaysFilter.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Filters/SeasonalHolidaysFilter.php b/src/Yasumi/Filters/SeasonalHolidaysFilter.php index 518a17feb..5eebaa59e 100644 --- a/src/Yasumi/Filters/SeasonalHolidaysFilter.php +++ b/src/Yasumi/Filters/SeasonalHolidaysFilter.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Filters; diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index beae6c18f..51948d013 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi; diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 42096eedd..5b69c6b22 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index d849154b8..f2e7bae16 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index a55df4d08..895444842 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/NSW.php b/src/Yasumi/Provider/Australia/NSW.php index 5e2dc8939..0ee5b8e45 100644 --- a/src/Yasumi/Provider/Australia/NSW.php +++ b/src/Yasumi/Provider/Australia/NSW.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/NT.php b/src/Yasumi/Provider/Australia/NT.php index b01f2b7c4..abf907c14 100644 --- a/src/Yasumi/Provider/Australia/NT.php +++ b/src/Yasumi/Provider/Australia/NT.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/Queensland.php b/src/Yasumi/Provider/Australia/Queensland.php index a0af047c9..6c74693e1 100644 --- a/src/Yasumi/Provider/Australia/Queensland.php +++ b/src/Yasumi/Provider/Australia/Queensland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php index 31e13c50a..3b4b488d3 100644 --- a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php +++ b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Queensland; diff --git a/src/Yasumi/Provider/Australia/SA.php b/src/Yasumi/Provider/Australia/SA.php index 969126d32..2d652fe43 100644 --- a/src/Yasumi/Provider/Australia/SA.php +++ b/src/Yasumi/Provider/Australia/SA.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/Tasmania.php b/src/Yasumi/Provider/Australia/Tasmania.php index 7353ae926..223543815 100644 --- a/src/Yasumi/Provider/Australia/Tasmania.php +++ b/src/Yasumi/Provider/Australia/Tasmania.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php index 6eadfc504..96d38d207 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania; diff --git a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php index 5197a6bb5..bbde12c95 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania; diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php index fe7d9721f..337c4d537 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania; diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php index fd67156db..d3fa5c178 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania; diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php index 4f18fd77a..cf034029c 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania; diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php index 3cb3c8199..d4e9e5edf 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania\Northwest; diff --git a/src/Yasumi/Provider/Australia/Tasmania/South.php b/src/Yasumi/Provider/Australia/Tasmania/South.php index 62e389336..0025cfcf1 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania; diff --git a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php index 68b1ff747..97a46630f 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia\Tasmania\South; diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index fab0cd15d..921487eb1 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Australia/WA.php b/src/Yasumi/Provider/Australia/WA.php index 1b219f0e5..032012103 100644 --- a/src/Yasumi/Provider/Australia/WA.php +++ b/src/Yasumi/Provider/Australia/WA.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Australia; diff --git a/src/Yasumi/Provider/Austria.php b/src/Yasumi/Provider/Austria.php index d3d3cd89a..558da8841 100644 --- a/src/Yasumi/Provider/Austria.php +++ b/src/Yasumi/Provider/Austria.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Belgium.php b/src/Yasumi/Provider/Belgium.php index 813f3dcbb..821f0fa12 100755 --- a/src/Yasumi/Provider/Belgium.php +++ b/src/Yasumi/Provider/Belgium.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Bosnia.php b/src/Yasumi/Provider/Bosnia.php index 46f1d156e..fb2f24173 100644 --- a/src/Yasumi/Provider/Bosnia.php +++ b/src/Yasumi/Provider/Bosnia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Brazil.php b/src/Yasumi/Provider/Brazil.php index f6772fd2d..67aab9c0e 100644 --- a/src/Yasumi/Provider/Brazil.php +++ b/src/Yasumi/Provider/Brazil.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/ChristianHolidays.php b/src/Yasumi/Provider/ChristianHolidays.php index 343b31f4e..aa1743788 100644 --- a/src/Yasumi/Provider/ChristianHolidays.php +++ b/src/Yasumi/Provider/ChristianHolidays.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index 45134f0f9..2ff636bef 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Croatia.php b/src/Yasumi/Provider/Croatia.php index e7bb326c1..fe75a08f3 100644 --- a/src/Yasumi/Provider/Croatia.php +++ b/src/Yasumi/Provider/Croatia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/CzechRepublic.php b/src/Yasumi/Provider/CzechRepublic.php index 1295b1755..6d1df3afd 100644 --- a/src/Yasumi/Provider/CzechRepublic.php +++ b/src/Yasumi/Provider/CzechRepublic.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index ecfe949a8..9f3b92a7a 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Estonia.php b/src/Yasumi/Provider/Estonia.php index e6c79fdbe..baae1bb24 100644 --- a/src/Yasumi/Provider/Estonia.php +++ b/src/Yasumi/Provider/Estonia.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Finland.php b/src/Yasumi/Provider/Finland.php index a56ade5be..429767b91 100644 --- a/src/Yasumi/Provider/Finland.php +++ b/src/Yasumi/Provider/Finland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/France.php b/src/Yasumi/Provider/France.php index 04508514b..01971ed16 100755 --- a/src/Yasumi/Provider/France.php +++ b/src/Yasumi/Provider/France.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/France/BasRhin.php b/src/Yasumi/Provider/France/BasRhin.php index 85a9bb4cf..2d51b02a6 100755 --- a/src/Yasumi/Provider/France/BasRhin.php +++ b/src/Yasumi/Provider/France/BasRhin.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\France; diff --git a/src/Yasumi/Provider/France/HautRhin.php b/src/Yasumi/Provider/France/HautRhin.php index 5201ef55b..ea486d6d8 100755 --- a/src/Yasumi/Provider/France/HautRhin.php +++ b/src/Yasumi/Provider/France/HautRhin.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\France; diff --git a/src/Yasumi/Provider/France/Moselle.php b/src/Yasumi/Provider/France/Moselle.php index 4977a8fd4..43f83d92a 100755 --- a/src/Yasumi/Provider/France/Moselle.php +++ b/src/Yasumi/Provider/France/Moselle.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\France; diff --git a/src/Yasumi/Provider/Germany.php b/src/Yasumi/Provider/Germany.php index 95ea3e879..218fba504 100644 --- a/src/Yasumi/Provider/Germany.php +++ b/src/Yasumi/Provider/Germany.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Germany/BadenWurttemberg.php b/src/Yasumi/Provider/Germany/BadenWurttemberg.php index ac0ed8af5..2f945cb2f 100755 --- a/src/Yasumi/Provider/Germany/BadenWurttemberg.php +++ b/src/Yasumi/Provider/Germany/BadenWurttemberg.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Bavaria.php b/src/Yasumi/Provider/Germany/Bavaria.php index 0e335741b..5cd0ab022 100755 --- a/src/Yasumi/Provider/Germany/Bavaria.php +++ b/src/Yasumi/Provider/Germany/Bavaria.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Berlin.php b/src/Yasumi/Provider/Germany/Berlin.php index 42385d8a2..48443a21d 100755 --- a/src/Yasumi/Provider/Germany/Berlin.php +++ b/src/Yasumi/Provider/Germany/Berlin.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Brandenburg.php b/src/Yasumi/Provider/Germany/Brandenburg.php index 6ef049524..8d1175211 100755 --- a/src/Yasumi/Provider/Germany/Brandenburg.php +++ b/src/Yasumi/Provider/Germany/Brandenburg.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Bremen.php b/src/Yasumi/Provider/Germany/Bremen.php index e4d187fcf..d70fde98a 100755 --- a/src/Yasumi/Provider/Germany/Bremen.php +++ b/src/Yasumi/Provider/Germany/Bremen.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Hamburg.php b/src/Yasumi/Provider/Germany/Hamburg.php index ec29609d9..e47b93492 100755 --- a/src/Yasumi/Provider/Germany/Hamburg.php +++ b/src/Yasumi/Provider/Germany/Hamburg.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Hesse.php b/src/Yasumi/Provider/Germany/Hesse.php index e07a4cf3e..1d3bffbbc 100755 --- a/src/Yasumi/Provider/Germany/Hesse.php +++ b/src/Yasumi/Provider/Germany/Hesse.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/LowerSaxony.php b/src/Yasumi/Provider/Germany/LowerSaxony.php index e386a01fd..4bbaa58c5 100755 --- a/src/Yasumi/Provider/Germany/LowerSaxony.php +++ b/src/Yasumi/Provider/Germany/LowerSaxony.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php index 9f45ded10..a648506ba 100755 --- a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php +++ b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php index 6471645d4..238a4644b 100755 --- a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php +++ b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php index c1d1db906..ef6c252d0 100755 --- a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php +++ b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Saarland.php b/src/Yasumi/Provider/Germany/Saarland.php index d6bdb50fa..4184864b7 100755 --- a/src/Yasumi/Provider/Germany/Saarland.php +++ b/src/Yasumi/Provider/Germany/Saarland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Saxony.php b/src/Yasumi/Provider/Germany/Saxony.php index 7f5fa9a03..55da27ecd 100755 --- a/src/Yasumi/Provider/Germany/Saxony.php +++ b/src/Yasumi/Provider/Germany/Saxony.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php index 4eaac0883..5483552bd 100755 --- a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php +++ b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/SchleswigHolstein.php b/src/Yasumi/Provider/Germany/SchleswigHolstein.php index 2974d0e36..406e306eb 100755 --- a/src/Yasumi/Provider/Germany/SchleswigHolstein.php +++ b/src/Yasumi/Provider/Germany/SchleswigHolstein.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Germany/Thuringia.php b/src/Yasumi/Provider/Germany/Thuringia.php index 5a0d1fbf7..ded7ed679 100755 --- a/src/Yasumi/Provider/Germany/Thuringia.php +++ b/src/Yasumi/Provider/Germany/Thuringia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Germany; diff --git a/src/Yasumi/Provider/Greece.php b/src/Yasumi/Provider/Greece.php index 96083090f..e6af79ef7 100644 --- a/src/Yasumi/Provider/Greece.php +++ b/src/Yasumi/Provider/Greece.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Hungary.php b/src/Yasumi/Provider/Hungary.php index 44e03fe72..ed86b3f39 100644 --- a/src/Yasumi/Provider/Hungary.php +++ b/src/Yasumi/Provider/Hungary.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Ireland.php b/src/Yasumi/Provider/Ireland.php index a9a4b62d7..a046fa6ea 100644 --- a/src/Yasumi/Provider/Ireland.php +++ b/src/Yasumi/Provider/Ireland.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Italy.php b/src/Yasumi/Provider/Italy.php index ae349b86a..4d2940649 100755 --- a/src/Yasumi/Provider/Italy.php +++ b/src/Yasumi/Provider/Italy.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index e310df0b1..bb57eebab 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 1b699720d..236b43cfd 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Lithuania.php b/src/Yasumi/Provider/Lithuania.php index 84d5aa8ff..a6f959783 100644 --- a/src/Yasumi/Provider/Lithuania.php +++ b/src/Yasumi/Provider/Lithuania.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Netherlands.php b/src/Yasumi/Provider/Netherlands.php index 30ef04689..0cb66cdbf 100755 --- a/src/Yasumi/Provider/Netherlands.php +++ b/src/Yasumi/Provider/Netherlands.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index 3449e9fbb..ffc4d5213 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index 23289a5cb..86355109f 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Poland.php b/src/Yasumi/Provider/Poland.php index 54cbd8667..a41fed8eb 100755 --- a/src/Yasumi/Provider/Poland.php +++ b/src/Yasumi/Provider/Poland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Portugal.php b/src/Yasumi/Provider/Portugal.php index 547cb5883..a4c33da19 100644 --- a/src/Yasumi/Provider/Portugal.php +++ b/src/Yasumi/Provider/Portugal.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index 4530ea32c..416335038 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index 7d13c8a2d..0cf47d0bf 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Slovakia.php b/src/Yasumi/Provider/Slovakia.php index 261677b2a..f17cbe712 100644 --- a/src/Yasumi/Provider/Slovakia.php +++ b/src/Yasumi/Provider/Slovakia.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/SouthAfrica.php b/src/Yasumi/Provider/SouthAfrica.php index 4aec38b2a..d87f40eed 100644 --- a/src/Yasumi/Provider/SouthAfrica.php +++ b/src/Yasumi/Provider/SouthAfrica.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Spain.php b/src/Yasumi/Provider/Spain.php index 27fb2d72a..3201e0d4b 100755 --- a/src/Yasumi/Provider/Spain.php +++ b/src/Yasumi/Provider/Spain.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Spain/Andalusia.php b/src/Yasumi/Provider/Spain/Andalusia.php index f75c3f9d5..e36e2519c 100755 --- a/src/Yasumi/Provider/Spain/Andalusia.php +++ b/src/Yasumi/Provider/Spain/Andalusia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Aragon.php b/src/Yasumi/Provider/Spain/Aragon.php index d7b664db0..66eb4fdf2 100755 --- a/src/Yasumi/Provider/Spain/Aragon.php +++ b/src/Yasumi/Provider/Spain/Aragon.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Asturias.php b/src/Yasumi/Provider/Spain/Asturias.php index 437fcdc9f..f3c7a740f 100755 --- a/src/Yasumi/Provider/Spain/Asturias.php +++ b/src/Yasumi/Provider/Spain/Asturias.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/BalearicIslands.php b/src/Yasumi/Provider/Spain/BalearicIslands.php index d90658132..70ea65320 100755 --- a/src/Yasumi/Provider/Spain/BalearicIslands.php +++ b/src/Yasumi/Provider/Spain/BalearicIslands.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/BasqueCountry.php b/src/Yasumi/Provider/Spain/BasqueCountry.php index 0919a2cdf..0e6a5d715 100755 --- a/src/Yasumi/Provider/Spain/BasqueCountry.php +++ b/src/Yasumi/Provider/Spain/BasqueCountry.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/CanaryIslands.php b/src/Yasumi/Provider/Spain/CanaryIslands.php index a583af0a6..0e3023bc4 100755 --- a/src/Yasumi/Provider/Spain/CanaryIslands.php +++ b/src/Yasumi/Provider/Spain/CanaryIslands.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Cantabria.php b/src/Yasumi/Provider/Spain/Cantabria.php index a071425a0..bdec9c1b5 100755 --- a/src/Yasumi/Provider/Spain/Cantabria.php +++ b/src/Yasumi/Provider/Spain/Cantabria.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/CastileAndLeon.php b/src/Yasumi/Provider/Spain/CastileAndLeon.php index b8f93e0bb..4210bae29 100755 --- a/src/Yasumi/Provider/Spain/CastileAndLeon.php +++ b/src/Yasumi/Provider/Spain/CastileAndLeon.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/CastillaLaMancha.php b/src/Yasumi/Provider/Spain/CastillaLaMancha.php index cbbb6dbc5..722fa3fa7 100755 --- a/src/Yasumi/Provider/Spain/CastillaLaMancha.php +++ b/src/Yasumi/Provider/Spain/CastillaLaMancha.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Catalonia.php b/src/Yasumi/Provider/Spain/Catalonia.php index f3eebc1d2..1abca0c6b 100755 --- a/src/Yasumi/Provider/Spain/Catalonia.php +++ b/src/Yasumi/Provider/Spain/Catalonia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Ceuta.php b/src/Yasumi/Provider/Spain/Ceuta.php index 1ee48b927..ac8aa472e 100755 --- a/src/Yasumi/Provider/Spain/Ceuta.php +++ b/src/Yasumi/Provider/Spain/Ceuta.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php index 9e019ca9f..effdb6145 100755 --- a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php +++ b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Extremadura.php b/src/Yasumi/Provider/Spain/Extremadura.php index ac15b26b5..b998dd5b9 100755 --- a/src/Yasumi/Provider/Spain/Extremadura.php +++ b/src/Yasumi/Provider/Spain/Extremadura.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Galicia.php b/src/Yasumi/Provider/Spain/Galicia.php index 334ef73d8..afff59956 100755 --- a/src/Yasumi/Provider/Spain/Galicia.php +++ b/src/Yasumi/Provider/Spain/Galicia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/LaRioja.php b/src/Yasumi/Provider/Spain/LaRioja.php index f2edff148..f6a792616 100755 --- a/src/Yasumi/Provider/Spain/LaRioja.php +++ b/src/Yasumi/Provider/Spain/LaRioja.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Melilla.php b/src/Yasumi/Provider/Spain/Melilla.php index 09daeb306..73a5396bd 100755 --- a/src/Yasumi/Provider/Spain/Melilla.php +++ b/src/Yasumi/Provider/Spain/Melilla.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/Navarre.php b/src/Yasumi/Provider/Spain/Navarre.php index f07814055..f189f664b 100755 --- a/src/Yasumi/Provider/Spain/Navarre.php +++ b/src/Yasumi/Provider/Spain/Navarre.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/RegionOfMurcia.php b/src/Yasumi/Provider/Spain/RegionOfMurcia.php index 25fd2d257..be2d54c1c 100755 --- a/src/Yasumi/Provider/Spain/RegionOfMurcia.php +++ b/src/Yasumi/Provider/Spain/RegionOfMurcia.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Spain/ValencianCommunity.php b/src/Yasumi/Provider/Spain/ValencianCommunity.php index 0761dc154..e195723a3 100755 --- a/src/Yasumi/Provider/Spain/ValencianCommunity.php +++ b/src/Yasumi/Provider/Spain/ValencianCommunity.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Spain; diff --git a/src/Yasumi/Provider/Sweden.php b/src/Yasumi/Provider/Sweden.php index 9040dfc93..01aaf02eb 100644 --- a/src/Yasumi/Provider/Sweden.php +++ b/src/Yasumi/Provider/Sweden.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Switzerland.php b/src/Yasumi/Provider/Switzerland.php index 3d7d6aeb7..0a548649f 100644 --- a/src/Yasumi/Provider/Switzerland.php +++ b/src/Yasumi/Provider/Switzerland.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Switzerland/Aargau.php b/src/Yasumi/Provider/Switzerland/Aargau.php index e57482ec0..cec6cdcb9 100644 --- a/src/Yasumi/Provider/Switzerland/Aargau.php +++ b/src/Yasumi/Provider/Switzerland/Aargau.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php index 7a5509f50..5e94ed585 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php index 7f9df09cb..668bccf5b 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php index 89fd9b33e..7ff91d2fe 100644 --- a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php +++ b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/BaselStadt.php b/src/Yasumi/Provider/Switzerland/BaselStadt.php index be3e4f45d..89b0218f1 100644 --- a/src/Yasumi/Provider/Switzerland/BaselStadt.php +++ b/src/Yasumi/Provider/Switzerland/BaselStadt.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Bern.php b/src/Yasumi/Provider/Switzerland/Bern.php index 22fe8db05..2b5a045ad 100644 --- a/src/Yasumi/Provider/Switzerland/Bern.php +++ b/src/Yasumi/Provider/Switzerland/Bern.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Fribourg.php b/src/Yasumi/Provider/Switzerland/Fribourg.php index 0b1105f9d..724fc4140 100644 --- a/src/Yasumi/Provider/Switzerland/Fribourg.php +++ b/src/Yasumi/Provider/Switzerland/Fribourg.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index 98f62bdd8..ce1e2bd10 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Glarus.php b/src/Yasumi/Provider/Switzerland/Glarus.php index a72da5285..982c7f0fb 100644 --- a/src/Yasumi/Provider/Switzerland/Glarus.php +++ b/src/Yasumi/Provider/Switzerland/Glarus.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Grisons.php b/src/Yasumi/Provider/Switzerland/Grisons.php index 80f76affe..2f6451e0a 100644 --- a/src/Yasumi/Provider/Switzerland/Grisons.php +++ b/src/Yasumi/Provider/Switzerland/Grisons.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index ece30014d..3ad900a55 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Lucerne.php b/src/Yasumi/Provider/Switzerland/Lucerne.php index 7309eed87..05e447738 100644 --- a/src/Yasumi/Provider/Switzerland/Lucerne.php +++ b/src/Yasumi/Provider/Switzerland/Lucerne.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Neuchatel.php b/src/Yasumi/Provider/Switzerland/Neuchatel.php index 98d1c0cb9..6a892e652 100644 --- a/src/Yasumi/Provider/Switzerland/Neuchatel.php +++ b/src/Yasumi/Provider/Switzerland/Neuchatel.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Nidwalden.php b/src/Yasumi/Provider/Switzerland/Nidwalden.php index 1ae08cb10..9be57b18c 100644 --- a/src/Yasumi/Provider/Switzerland/Nidwalden.php +++ b/src/Yasumi/Provider/Switzerland/Nidwalden.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Obwalden.php b/src/Yasumi/Provider/Switzerland/Obwalden.php index 4a0aafffc..16e5bcad9 100644 --- a/src/Yasumi/Provider/Switzerland/Obwalden.php +++ b/src/Yasumi/Provider/Switzerland/Obwalden.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Schaffhausen.php b/src/Yasumi/Provider/Switzerland/Schaffhausen.php index 1f1f87059..1a019aef2 100644 --- a/src/Yasumi/Provider/Switzerland/Schaffhausen.php +++ b/src/Yasumi/Provider/Switzerland/Schaffhausen.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Schwyz.php b/src/Yasumi/Provider/Switzerland/Schwyz.php index ad547b4c3..2ee444127 100644 --- a/src/Yasumi/Provider/Switzerland/Schwyz.php +++ b/src/Yasumi/Provider/Switzerland/Schwyz.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Solothurn.php b/src/Yasumi/Provider/Switzerland/Solothurn.php index 9505c495f..c32aa3462 100644 --- a/src/Yasumi/Provider/Switzerland/Solothurn.php +++ b/src/Yasumi/Provider/Switzerland/Solothurn.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/StGallen.php b/src/Yasumi/Provider/Switzerland/StGallen.php index 275093b9b..86f6bfecd 100644 --- a/src/Yasumi/Provider/Switzerland/StGallen.php +++ b/src/Yasumi/Provider/Switzerland/StGallen.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Thurgau.php b/src/Yasumi/Provider/Switzerland/Thurgau.php index 20327b934..7447d374c 100644 --- a/src/Yasumi/Provider/Switzerland/Thurgau.php +++ b/src/Yasumi/Provider/Switzerland/Thurgau.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index e07726242..657bedf06 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Uri.php b/src/Yasumi/Provider/Switzerland/Uri.php index 4d6fa3d83..f51144040 100644 --- a/src/Yasumi/Provider/Switzerland/Uri.php +++ b/src/Yasumi/Provider/Switzerland/Uri.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Valais.php b/src/Yasumi/Provider/Switzerland/Valais.php index 90f1d1eee..93f83044a 100644 --- a/src/Yasumi/Provider/Switzerland/Valais.php +++ b/src/Yasumi/Provider/Switzerland/Valais.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Vaud.php b/src/Yasumi/Provider/Switzerland/Vaud.php index 7fc0839e3..46f8360e5 100644 --- a/src/Yasumi/Provider/Switzerland/Vaud.php +++ b/src/Yasumi/Provider/Switzerland/Vaud.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Zug.php b/src/Yasumi/Provider/Switzerland/Zug.php index 70144ac27..e987b270f 100644 --- a/src/Yasumi/Provider/Switzerland/Zug.php +++ b/src/Yasumi/Provider/Switzerland/Zug.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/Switzerland/Zurich.php b/src/Yasumi/Provider/Switzerland/Zurich.php index bbb749cca..5f82ff841 100644 --- a/src/Yasumi/Provider/Switzerland/Zurich.php +++ b/src/Yasumi/Provider/Switzerland/Zurich.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider\Switzerland; diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index 9e74d7229..4022a6a63 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/Ukraine.php b/src/Yasumi/Provider/Ukraine.php index 02b006395..b590b9431 100644 --- a/src/Yasumi/Provider/Ukraine.php +++ b/src/Yasumi/Provider/Ukraine.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index 7c5d9dfb9..61dca42bb 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\Provider; diff --git a/src/Yasumi/ProviderInterface.php b/src/Yasumi/ProviderInterface.php index a75893faf..3cfd4625c 100755 --- a/src/Yasumi/ProviderInterface.php +++ b/src/Yasumi/ProviderInterface.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi; diff --git a/src/Yasumi/Translations.php b/src/Yasumi/Translations.php index 44c319469..78cf15cc8 100644 --- a/src/Yasumi/Translations.php +++ b/src/Yasumi/Translations.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi; diff --git a/src/Yasumi/TranslationsInterface.php b/src/Yasumi/TranslationsInterface.php index 3b78868bb..5e84d2447 100644 --- a/src/Yasumi/TranslationsInterface.php +++ b/src/Yasumi/TranslationsInterface.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi; diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index e95e7183f..fb2b17bc7 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi; diff --git a/src/Yasumi/data/locales.php b/src/Yasumi/data/locales.php index 2a3c780c4..b854f01e1 100644 --- a/src/Yasumi/data/locales.php +++ b/src/Yasumi/data/locales.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // List of possible locales. This list is used in case the 'intl' extension is not loaded/available. diff --git a/src/Yasumi/data/translations/allSaintsDay.php b/src/Yasumi/data/translations/allSaintsDay.php index 809177cbe..8ec5ec68a 100755 --- a/src/Yasumi/data/translations/allSaintsDay.php +++ b/src/Yasumi/data/translations/allSaintsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for All Saints' Day diff --git a/src/Yasumi/data/translations/annunciation.php b/src/Yasumi/data/translations/annunciation.php index bb5c95f30..eb2bb79b3 100644 --- a/src/Yasumi/data/translations/annunciation.php +++ b/src/Yasumi/data/translations/annunciation.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Annunciation diff --git a/src/Yasumi/data/translations/anzacDay.php b/src/Yasumi/data/translations/anzacDay.php index 273d25984..ecae451ef 100644 --- a/src/Yasumi/data/translations/anzacDay.php +++ b/src/Yasumi/data/translations/anzacDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for ANZAC Day diff --git a/src/Yasumi/data/translations/armisticeDay.php b/src/Yasumi/data/translations/armisticeDay.php index f85d87eb6..3649e008d 100644 --- a/src/Yasumi/data/translations/armisticeDay.php +++ b/src/Yasumi/data/translations/armisticeDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Armistice Day diff --git a/src/Yasumi/data/translations/ascensionDay.php b/src/Yasumi/data/translations/ascensionDay.php index 38f5f47a1..5ac109f69 100644 --- a/src/Yasumi/data/translations/ascensionDay.php +++ b/src/Yasumi/data/translations/ascensionDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Ascension Day diff --git a/src/Yasumi/data/translations/ashWednesday.php b/src/Yasumi/data/translations/ashWednesday.php index 5f9b985b3..ec9019b52 100644 --- a/src/Yasumi/data/translations/ashWednesday.php +++ b/src/Yasumi/data/translations/ashWednesday.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Ash Wednesday diff --git a/src/Yasumi/data/translations/assumptionOfMary.php b/src/Yasumi/data/translations/assumptionOfMary.php index da645662a..7b3c4e52d 100755 --- a/src/Yasumi/data/translations/assumptionOfMary.php +++ b/src/Yasumi/data/translations/assumptionOfMary.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Assumption of Mary diff --git a/src/Yasumi/data/translations/australiaDay.php b/src/Yasumi/data/translations/australiaDay.php index 6cfd5fcac..ee2b3640b 100644 --- a/src/Yasumi/data/translations/australiaDay.php +++ b/src/Yasumi/data/translations/australiaDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Australia Day diff --git a/src/Yasumi/data/translations/carnationRevolutionDay.php b/src/Yasumi/data/translations/carnationRevolutionDay.php index 1674cd2de..0943891e4 100644 --- a/src/Yasumi/data/translations/carnationRevolutionDay.php +++ b/src/Yasumi/data/translations/carnationRevolutionDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Freedom Day diff --git a/src/Yasumi/data/translations/christmasDay.php b/src/Yasumi/data/translations/christmasDay.php index e9fa51d02..db2c3c616 100755 --- a/src/Yasumi/data/translations/christmasDay.php +++ b/src/Yasumi/data/translations/christmasDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Christmas diff --git a/src/Yasumi/data/translations/christmasEve.php b/src/Yasumi/data/translations/christmasEve.php index d8f1e1aaa..4583a1143 100755 --- a/src/Yasumi/data/translations/christmasEve.php +++ b/src/Yasumi/data/translations/christmasEve.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Christmas Eve diff --git a/src/Yasumi/data/translations/corpusChristi.php b/src/Yasumi/data/translations/corpusChristi.php index eaca2d094..731842810 100644 --- a/src/Yasumi/data/translations/corpusChristi.php +++ b/src/Yasumi/data/translations/corpusChristi.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Corpus Christi diff --git a/src/Yasumi/data/translations/dayAfterNewYearsDay.php b/src/Yasumi/data/translations/dayAfterNewYearsDay.php index 59e841c2b..ece5d9031 100644 --- a/src/Yasumi/data/translations/dayAfterNewYearsDay.php +++ b/src/Yasumi/data/translations/dayAfterNewYearsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Day after New Year's Day diff --git a/src/Yasumi/data/translations/dayOfReformation.php b/src/Yasumi/data/translations/dayOfReformation.php index cf56d30bc..a0d17a2f3 100755 --- a/src/Yasumi/data/translations/dayOfReformation.php +++ b/src/Yasumi/data/translations/dayOfReformation.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Day of Reformation diff --git a/src/Yasumi/data/translations/easter.php b/src/Yasumi/data/translations/easter.php index 2af803936..1c1ba739a 100644 --- a/src/Yasumi/data/translations/easter.php +++ b/src/Yasumi/data/translations/easter.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Easter Sunday diff --git a/src/Yasumi/data/translations/easterMonday.php b/src/Yasumi/data/translations/easterMonday.php index acd607a91..45cf0e624 100644 --- a/src/Yasumi/data/translations/easterMonday.php +++ b/src/Yasumi/data/translations/easterMonday.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Easter Monday diff --git a/src/Yasumi/data/translations/epiphany.php b/src/Yasumi/data/translations/epiphany.php index 24cbf13a9..9e1bbb216 100644 --- a/src/Yasumi/data/translations/epiphany.php +++ b/src/Yasumi/data/translations/epiphany.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Epiphany diff --git a/src/Yasumi/data/translations/fathersDay.php b/src/Yasumi/data/translations/fathersDay.php index 5caaffd6c..0a87da240 100755 --- a/src/Yasumi/data/translations/fathersDay.php +++ b/src/Yasumi/data/translations/fathersDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Father's Day diff --git a/src/Yasumi/data/translations/goodFriday.php b/src/Yasumi/data/translations/goodFriday.php index b5c66f795..02823ca89 100644 --- a/src/Yasumi/data/translations/goodFriday.php +++ b/src/Yasumi/data/translations/goodFriday.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Good Friday diff --git a/src/Yasumi/data/translations/immaculateConception.php b/src/Yasumi/data/translations/immaculateConception.php index 5e9abda74..c7e677a4a 100644 --- a/src/Yasumi/data/translations/immaculateConception.php +++ b/src/Yasumi/data/translations/immaculateConception.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Immaculate Conception diff --git a/src/Yasumi/data/translations/internationalWorkersDay.php b/src/Yasumi/data/translations/internationalWorkersDay.php index d041a8b50..cea79b49d 100755 --- a/src/Yasumi/data/translations/internationalWorkersDay.php +++ b/src/Yasumi/data/translations/internationalWorkersDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for International Workers' Day diff --git a/src/Yasumi/data/translations/labourDay.php b/src/Yasumi/data/translations/labourDay.php index 8ffb140e2..50ebce393 100644 --- a/src/Yasumi/data/translations/labourDay.php +++ b/src/Yasumi/data/translations/labourDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Labour Day diff --git a/src/Yasumi/data/translations/maundyThursday.php b/src/Yasumi/data/translations/maundyThursday.php index 959dcebb6..f3ca528b1 100644 --- a/src/Yasumi/data/translations/maundyThursday.php +++ b/src/Yasumi/data/translations/maundyThursday.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Maundy Thursday diff --git a/src/Yasumi/data/translations/mothersDay.php b/src/Yasumi/data/translations/mothersDay.php index 48eb94d89..2680faac2 100755 --- a/src/Yasumi/data/translations/mothersDay.php +++ b/src/Yasumi/data/translations/mothersDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Mother's Day diff --git a/src/Yasumi/data/translations/newYearsDay.php b/src/Yasumi/data/translations/newYearsDay.php index c4ea87e01..77f3fbf7b 100755 --- a/src/Yasumi/data/translations/newYearsDay.php +++ b/src/Yasumi/data/translations/newYearsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for New Year's Day diff --git a/src/Yasumi/data/translations/newYearsEve.php b/src/Yasumi/data/translations/newYearsEve.php index c82f01a1e..d080aa58a 100755 --- a/src/Yasumi/data/translations/newYearsEve.php +++ b/src/Yasumi/data/translations/newYearsEve.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for New Year's Eve diff --git a/src/Yasumi/data/translations/pentecost.php b/src/Yasumi/data/translations/pentecost.php index a7158d224..630db0ed4 100755 --- a/src/Yasumi/data/translations/pentecost.php +++ b/src/Yasumi/data/translations/pentecost.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Whitsunday diff --git a/src/Yasumi/data/translations/pentecostMonday.php b/src/Yasumi/data/translations/pentecostMonday.php index 5962fb1c1..1390391db 100755 --- a/src/Yasumi/data/translations/pentecostMonday.php +++ b/src/Yasumi/data/translations/pentecostMonday.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Whitmonday diff --git a/src/Yasumi/data/translations/portugalDay.php b/src/Yasumi/data/translations/portugalDay.php index 3a0c4bc3e..d91a0a165 100644 --- a/src/Yasumi/data/translations/portugalDay.php +++ b/src/Yasumi/data/translations/portugalDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Portugal Day diff --git a/src/Yasumi/data/translations/portugueseRepublicDay.php b/src/Yasumi/data/translations/portugueseRepublicDay.php index 04e43e2c4..22d37b3fd 100644 --- a/src/Yasumi/data/translations/portugueseRepublicDay.php +++ b/src/Yasumi/data/translations/portugueseRepublicDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Implantation of the Portuguese Republic diff --git a/src/Yasumi/data/translations/reformationDay.php b/src/Yasumi/data/translations/reformationDay.php index 80af1060c..1e29c045a 100755 --- a/src/Yasumi/data/translations/reformationDay.php +++ b/src/Yasumi/data/translations/reformationDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Reformation Day diff --git a/src/Yasumi/data/translations/restorationOfIndepence.php b/src/Yasumi/data/translations/restorationOfIndepence.php index b10ba73d5..50dfdcfbf 100644 --- a/src/Yasumi/data/translations/restorationOfIndepence.php +++ b/src/Yasumi/data/translations/restorationOfIndepence.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Restoration of Independence diff --git a/src/Yasumi/data/translations/secondChristmasDay.php b/src/Yasumi/data/translations/secondChristmasDay.php index 9f0bcb112..d7c9af1b3 100755 --- a/src/Yasumi/data/translations/secondChristmasDay.php +++ b/src/Yasumi/data/translations/secondChristmasDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Second Christmas Day diff --git a/src/Yasumi/data/translations/stDavidsDay.php b/src/Yasumi/data/translations/stDavidsDay.php index 9fdbad676..b721ee90e 100644 --- a/src/Yasumi/data/translations/stDavidsDay.php +++ b/src/Yasumi/data/translations/stDavidsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for St. David's Day diff --git a/src/Yasumi/data/translations/stGeorgesDay.php b/src/Yasumi/data/translations/stGeorgesDay.php index c52798016..d43a97688 100644 --- a/src/Yasumi/data/translations/stGeorgesDay.php +++ b/src/Yasumi/data/translations/stGeorgesDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for St. George's Day diff --git a/src/Yasumi/data/translations/stJohnsDay.php b/src/Yasumi/data/translations/stJohnsDay.php index adeb2090c..3e2b272e6 100644 --- a/src/Yasumi/data/translations/stJohnsDay.php +++ b/src/Yasumi/data/translations/stJohnsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for St. John's Day diff --git a/src/Yasumi/data/translations/stJosephsDay.php b/src/Yasumi/data/translations/stJosephsDay.php index d160adbe1..9cf6ba0bd 100644 --- a/src/Yasumi/data/translations/stJosephsDay.php +++ b/src/Yasumi/data/translations/stJosephsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for St. Joseph's Day diff --git a/src/Yasumi/data/translations/stMartinsDay.php b/src/Yasumi/data/translations/stMartinsDay.php index 343267f02..c7472a78e 100644 --- a/src/Yasumi/data/translations/stMartinsDay.php +++ b/src/Yasumi/data/translations/stMartinsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for St. Martin's Day diff --git a/src/Yasumi/data/translations/stStephensDay.php b/src/Yasumi/data/translations/stStephensDay.php index 0dc57211c..b1b6a71a3 100644 --- a/src/Yasumi/data/translations/stStephensDay.php +++ b/src/Yasumi/data/translations/stStephensDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for St. Stephen's Day diff --git a/src/Yasumi/data/translations/summerTime.php b/src/Yasumi/data/translations/summerTime.php index 86b2d1c5b..4e7cf2428 100644 --- a/src/Yasumi/data/translations/summerTime.php +++ b/src/Yasumi/data/translations/summerTime.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Summertime diff --git a/src/Yasumi/data/translations/valentinesDay.php b/src/Yasumi/data/translations/valentinesDay.php index 837194d41..31abe86d9 100644 --- a/src/Yasumi/data/translations/valentinesDay.php +++ b/src/Yasumi/data/translations/valentinesDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Valentine's Day diff --git a/src/Yasumi/data/translations/victoryInEuropeDay.php b/src/Yasumi/data/translations/victoryInEuropeDay.php index 15418a468..b02aa3dc3 100644 --- a/src/Yasumi/data/translations/victoryInEuropeDay.php +++ b/src/Yasumi/data/translations/victoryInEuropeDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Victory in Europe Day diff --git a/src/Yasumi/data/translations/waitangiDay.php b/src/Yasumi/data/translations/waitangiDay.php index f70ca503a..a7d64b2c6 100644 --- a/src/Yasumi/data/translations/waitangiDay.php +++ b/src/Yasumi/data/translations/waitangiDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Waitangi Day diff --git a/src/Yasumi/data/translations/winterTime.php b/src/Yasumi/data/translations/winterTime.php index 4c366b816..06f5bdd19 100644 --- a/src/Yasumi/data/translations/winterTime.php +++ b/src/Yasumi/data/translations/winterTime.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for Wintertime diff --git a/src/Yasumi/data/translations/worldAnimalDay.php b/src/Yasumi/data/translations/worldAnimalDay.php index ec14f8858..cfb7f1da9 100644 --- a/src/Yasumi/data/translations/worldAnimalDay.php +++ b/src/Yasumi/data/translations/worldAnimalDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ // Translations for World Animal Day diff --git a/tests/Australia/ACT/ACTBaseTestCase.php b/tests/Australia/ACT/ACTBaseTestCase.php index 4fa27777d..b11f23907 100644 --- a/tests/Australia/ACT/ACTBaseTestCase.php +++ b/tests/Australia/ACT/ACTBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/ACTTest.php b/tests/Australia/ACT/ACTTest.php index 3b13e2cd7..4bc4ff0d6 100644 --- a/tests/Australia/ACT/ACTTest.php +++ b/tests/Australia/ACT/ACTTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/AnzacDayTest.php b/tests/Australia/ACT/AnzacDayTest.php index 677b596f8..39c85bb1d 100644 --- a/tests/Australia/ACT/AnzacDayTest.php +++ b/tests/Australia/ACT/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/AustraliaDayTest.php b/tests/Australia/ACT/AustraliaDayTest.php index 29f12de7c..e78a779ab 100644 --- a/tests/Australia/ACT/AustraliaDayTest.php +++ b/tests/Australia/ACT/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/BoxingDayTest.php b/tests/Australia/ACT/BoxingDayTest.php index 572f0af01..2fcd804bd 100644 --- a/tests/Australia/ACT/BoxingDayTest.php +++ b/tests/Australia/ACT/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/CanberraDayTest.php b/tests/Australia/ACT/CanberraDayTest.php index e8f7df3bd..b6cd40fc7 100644 --- a/tests/Australia/ACT/CanberraDayTest.php +++ b/tests/Australia/ACT/CanberraDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/ChristmasDayTest.php b/tests/Australia/ACT/ChristmasDayTest.php index b411a2c22..51c06af9e 100644 --- a/tests/Australia/ACT/ChristmasDayTest.php +++ b/tests/Australia/ACT/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/EasterMondayTest.php b/tests/Australia/ACT/EasterMondayTest.php index 7efe68a57..efc85fbe9 100644 --- a/tests/Australia/ACT/EasterMondayTest.php +++ b/tests/Australia/ACT/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/EasterSaturdayTest.php b/tests/Australia/ACT/EasterSaturdayTest.php index f615fcf2f..71507ddbe 100644 --- a/tests/Australia/ACT/EasterSaturdayTest.php +++ b/tests/Australia/ACT/EasterSaturdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php index 187dafc13..fcc5498dd 100644 --- a/tests/Australia/ACT/EasterSundayTest.php +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/GoodFridayTest.php b/tests/Australia/ACT/GoodFridayTest.php index 878a38ea4..ed63492d3 100644 --- a/tests/Australia/ACT/GoodFridayTest.php +++ b/tests/Australia/ACT/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/LabourDayTest.php b/tests/Australia/ACT/LabourDayTest.php index c188603d9..057e7c4a7 100644 --- a/tests/Australia/ACT/LabourDayTest.php +++ b/tests/Australia/ACT/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/NewYearsDayTest.php b/tests/Australia/ACT/NewYearsDayTest.php index 23dfbc55f..5a217b06d 100644 --- a/tests/Australia/ACT/NewYearsDayTest.php +++ b/tests/Australia/ACT/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/QueensBirthdayTest.php b/tests/Australia/ACT/QueensBirthdayTest.php index c2b78d657..b8af2782a 100644 --- a/tests/Australia/ACT/QueensBirthdayTest.php +++ b/tests/Australia/ACT/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/ACT/ReconciliationDayTest.php b/tests/Australia/ACT/ReconciliationDayTest.php index cd7510443..70f94a3f3 100644 --- a/tests/Australia/ACT/ReconciliationDayTest.php +++ b/tests/Australia/ACT/ReconciliationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\ACT; diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index 7df44a9bd..462e93ecf 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/AustraliaBaseTestCase.php b/tests/Australia/AustraliaBaseTestCase.php index 0e58beb09..77aed2af0 100644 --- a/tests/Australia/AustraliaBaseTestCase.php +++ b/tests/Australia/AustraliaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index ddf324f1d..7c64fcd6a 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/AustraliaTest.php b/tests/Australia/AustraliaTest.php index d03eaf204..90131a059 100644 --- a/tests/Australia/AustraliaTest.php +++ b/tests/Australia/AustraliaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index 588e8b4ca..e368afb74 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index e6fb4409f..3c62c014e 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index ba61f8814..d1c12a026 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index 35b0a86ca..c05229be3 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/NSW/AnzacDayTest.php b/tests/Australia/NSW/AnzacDayTest.php index 9c3c75757..8f0fc86f7 100644 --- a/tests/Australia/NSW/AnzacDayTest.php +++ b/tests/Australia/NSW/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/AustraliaDayTest.php b/tests/Australia/NSW/AustraliaDayTest.php index cb5a2d326..817635ae3 100644 --- a/tests/Australia/NSW/AustraliaDayTest.php +++ b/tests/Australia/NSW/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/BankHolidayTest.php b/tests/Australia/NSW/BankHolidayTest.php index 23a84b177..dfdf87484 100644 --- a/tests/Australia/NSW/BankHolidayTest.php +++ b/tests/Australia/NSW/BankHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/BoxingDayTest.php b/tests/Australia/NSW/BoxingDayTest.php index 80307068d..aee9e45cb 100644 --- a/tests/Australia/NSW/BoxingDayTest.php +++ b/tests/Australia/NSW/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/ChristmasDayTest.php b/tests/Australia/NSW/ChristmasDayTest.php index b867d6a11..0d026f482 100644 --- a/tests/Australia/NSW/ChristmasDayTest.php +++ b/tests/Australia/NSW/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/EasterMondayTest.php b/tests/Australia/NSW/EasterMondayTest.php index 0958da839..e90802d32 100644 --- a/tests/Australia/NSW/EasterMondayTest.php +++ b/tests/Australia/NSW/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/EasterSaturdayTest.php b/tests/Australia/NSW/EasterSaturdayTest.php index abb05ba0c..79b8dc3e6 100644 --- a/tests/Australia/NSW/EasterSaturdayTest.php +++ b/tests/Australia/NSW/EasterSaturdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php index 388ca9e23..dbad9bdff 100644 --- a/tests/Australia/NSW/EasterSundayTest.php +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/GoodFridayTest.php b/tests/Australia/NSW/GoodFridayTest.php index f2e2af20e..c00ee1c37 100644 --- a/tests/Australia/NSW/GoodFridayTest.php +++ b/tests/Australia/NSW/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/LabourDayTest.php b/tests/Australia/NSW/LabourDayTest.php index 4c1fd1eb4..e5ff36a25 100644 --- a/tests/Australia/NSW/LabourDayTest.php +++ b/tests/Australia/NSW/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/NSWBaseTestCase.php b/tests/Australia/NSW/NSWBaseTestCase.php index 0d6cb15a5..80150e9b8 100644 --- a/tests/Australia/NSW/NSWBaseTestCase.php +++ b/tests/Australia/NSW/NSWBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/NSWTest.php b/tests/Australia/NSW/NSWTest.php index e8de667ba..0e03ea425 100644 --- a/tests/Australia/NSW/NSWTest.php +++ b/tests/Australia/NSW/NSWTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/NewYearsDayTest.php b/tests/Australia/NSW/NewYearsDayTest.php index 46d2e1e08..d218e6e59 100644 --- a/tests/Australia/NSW/NewYearsDayTest.php +++ b/tests/Australia/NSW/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NSW/QueensBirthdayTest.php b/tests/Australia/NSW/QueensBirthdayTest.php index b6251ffe5..299a29a9e 100644 --- a/tests/Australia/NSW/QueensBirthdayTest.php +++ b/tests/Australia/NSW/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NSW; diff --git a/tests/Australia/NT/AnzacDayTest.php b/tests/Australia/NT/AnzacDayTest.php index e906ffdee..18bc01578 100644 --- a/tests/Australia/NT/AnzacDayTest.php +++ b/tests/Australia/NT/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/AustraliaDayTest.php b/tests/Australia/NT/AustraliaDayTest.php index 8f1d3a094..4a815f3e0 100644 --- a/tests/Australia/NT/AustraliaDayTest.php +++ b/tests/Australia/NT/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/BoxingDayTest.php b/tests/Australia/NT/BoxingDayTest.php index aac803890..4f4b44d06 100644 --- a/tests/Australia/NT/BoxingDayTest.php +++ b/tests/Australia/NT/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/ChristmasDayTest.php b/tests/Australia/NT/ChristmasDayTest.php index f4dbb5603..53c4a8117 100644 --- a/tests/Australia/NT/ChristmasDayTest.php +++ b/tests/Australia/NT/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/EasterMondayTest.php b/tests/Australia/NT/EasterMondayTest.php index 8f0209545..291006489 100644 --- a/tests/Australia/NT/EasterMondayTest.php +++ b/tests/Australia/NT/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/EasterSaturdayTest.php b/tests/Australia/NT/EasterSaturdayTest.php index 3c7ef7e81..c3777cf0e 100644 --- a/tests/Australia/NT/EasterSaturdayTest.php +++ b/tests/Australia/NT/EasterSaturdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/GoodFridayTest.php b/tests/Australia/NT/GoodFridayTest.php index d8b813cf5..ce7811b86 100644 --- a/tests/Australia/NT/GoodFridayTest.php +++ b/tests/Australia/NT/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/MayDayTest.php b/tests/Australia/NT/MayDayTest.php index a8c80ab54..04667df2b 100644 --- a/tests/Australia/NT/MayDayTest.php +++ b/tests/Australia/NT/MayDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/NTBaseTestCase.php b/tests/Australia/NT/NTBaseTestCase.php index d0c216961..78c59a549 100644 --- a/tests/Australia/NT/NTBaseTestCase.php +++ b/tests/Australia/NT/NTBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/NTTest.php b/tests/Australia/NT/NTTest.php index 059359fb7..729d3e795 100644 --- a/tests/Australia/NT/NTTest.php +++ b/tests/Australia/NT/NTTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/NewYearsDayTest.php b/tests/Australia/NT/NewYearsDayTest.php index 2b9c60ed9..16aa4cdf6 100644 --- a/tests/Australia/NT/NewYearsDayTest.php +++ b/tests/Australia/NT/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/PicnicDayTest.php b/tests/Australia/NT/PicnicDayTest.php index b153e4522..d75171944 100644 --- a/tests/Australia/NT/PicnicDayTest.php +++ b/tests/Australia/NT/PicnicDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NT/QueensBirthdayTest.php b/tests/Australia/NT/QueensBirthdayTest.php index fc62be90e..dea4a4a24 100644 --- a/tests/Australia/NT/QueensBirthdayTest.php +++ b/tests/Australia/NT/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\NT; diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index d30a05aa5..46113b6b1 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia; diff --git a/tests/Australia/Queensland/AnzacDayTest.php b/tests/Australia/Queensland/AnzacDayTest.php index f2a918358..61c58c4bb 100644 --- a/tests/Australia/Queensland/AnzacDayTest.php +++ b/tests/Australia/Queensland/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/AustraliaDayTest.php b/tests/Australia/Queensland/AustraliaDayTest.php index 8979ba7e8..7b54b9a35 100644 --- a/tests/Australia/Queensland/AustraliaDayTest.php +++ b/tests/Australia/Queensland/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/BoxingDayTest.php b/tests/Australia/Queensland/BoxingDayTest.php index ddc7afdb1..4e5fdd989 100644 --- a/tests/Australia/Queensland/BoxingDayTest.php +++ b/tests/Australia/Queensland/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/Brisbane/AnzacDayTest.php b/tests/Australia/Queensland/Brisbane/AnzacDayTest.php index e6250150c..2bb71dd5e 100644 --- a/tests/Australia/Queensland/Brisbane/AnzacDayTest.php +++ b/tests/Australia/Queensland/Brisbane/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php b/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php index 7d2a07fec..a0514fa9b 100644 --- a/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php +++ b/tests/Australia/Queensland/Brisbane/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/BoxingDayTest.php b/tests/Australia/Queensland/Brisbane/BoxingDayTest.php index 5af33b48a..2c0ec104a 100644 --- a/tests/Australia/Queensland/Brisbane/BoxingDayTest.php +++ b/tests/Australia/Queensland/Brisbane/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php b/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php index 627a8aee8..98abcf3a0 100644 --- a/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php +++ b/tests/Australia/Queensland/Brisbane/BrisbaneBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php index 0681ee0d9..f6b7109f9 100644 --- a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php +++ b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php b/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php index 57052e0f3..c998796c2 100644 --- a/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php +++ b/tests/Australia/Queensland/Brisbane/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/EasterMondayTest.php b/tests/Australia/Queensland/Brisbane/EasterMondayTest.php index 93cd67bf4..a16b31bb4 100644 --- a/tests/Australia/Queensland/Brisbane/EasterMondayTest.php +++ b/tests/Australia/Queensland/Brisbane/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/GoodFridayTest.php b/tests/Australia/Queensland/Brisbane/GoodFridayTest.php index e0585e4ef..35892c630 100644 --- a/tests/Australia/Queensland/Brisbane/GoodFridayTest.php +++ b/tests/Australia/Queensland/Brisbane/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/LabourDayTest.php b/tests/Australia/Queensland/Brisbane/LabourDayTest.php index 4f4d8cbc1..dec835440 100644 --- a/tests/Australia/Queensland/Brisbane/LabourDayTest.php +++ b/tests/Australia/Queensland/Brisbane/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php b/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php index e80debde7..afe4577d6 100644 --- a/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php +++ b/tests/Australia/Queensland/Brisbane/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php index bb8ac39aa..8b02d69d4 100644 --- a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php +++ b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php b/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php index 66613eb20..f6afc0b8a 100644 --- a/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php +++ b/tests/Australia/Queensland/Brisbane/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland\Brisbane; diff --git a/tests/Australia/Queensland/ChristmasDayTest.php b/tests/Australia/Queensland/ChristmasDayTest.php index 7837304a2..bbf67f363 100644 --- a/tests/Australia/Queensland/ChristmasDayTest.php +++ b/tests/Australia/Queensland/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/EasterMondayTest.php b/tests/Australia/Queensland/EasterMondayTest.php index 19dd89c85..8207d77dd 100644 --- a/tests/Australia/Queensland/EasterMondayTest.php +++ b/tests/Australia/Queensland/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/GoodFridayTest.php b/tests/Australia/Queensland/GoodFridayTest.php index 8c8a3dd75..c0df3ec6a 100644 --- a/tests/Australia/Queensland/GoodFridayTest.php +++ b/tests/Australia/Queensland/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/LabourDayTest.php b/tests/Australia/Queensland/LabourDayTest.php index e738d4bf3..16f444d7f 100644 --- a/tests/Australia/Queensland/LabourDayTest.php +++ b/tests/Australia/Queensland/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/NewYearsDayTest.php b/tests/Australia/Queensland/NewYearsDayTest.php index b6575893c..b3a624f08 100644 --- a/tests/Australia/Queensland/NewYearsDayTest.php +++ b/tests/Australia/Queensland/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/QueensBirthdayTest.php b/tests/Australia/Queensland/QueensBirthdayTest.php index 038e220e6..554e82b0f 100644 --- a/tests/Australia/Queensland/QueensBirthdayTest.php +++ b/tests/Australia/Queensland/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/QueenslandBaseTestCase.php b/tests/Australia/Queensland/QueenslandBaseTestCase.php index b8f42c834..64b581a65 100644 --- a/tests/Australia/Queensland/QueenslandBaseTestCase.php +++ b/tests/Australia/Queensland/QueenslandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/Queensland/QueenslandTest.php b/tests/Australia/Queensland/QueenslandTest.php index 4ffad8c4f..fa2f8a601 100644 --- a/tests/Australia/Queensland/QueenslandTest.php +++ b/tests/Australia/Queensland/QueenslandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Queensland; diff --git a/tests/Australia/SA/AdelaideCupDayTest.php b/tests/Australia/SA/AdelaideCupDayTest.php index 88af75875..f365898ae 100644 --- a/tests/Australia/SA/AdelaideCupDayTest.php +++ b/tests/Australia/SA/AdelaideCupDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/AnzacDayTest.php b/tests/Australia/SA/AnzacDayTest.php index 90310e572..a128e5a56 100644 --- a/tests/Australia/SA/AnzacDayTest.php +++ b/tests/Australia/SA/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/AustraliaDayTest.php b/tests/Australia/SA/AustraliaDayTest.php index d22fdfb91..7564e768f 100644 --- a/tests/Australia/SA/AustraliaDayTest.php +++ b/tests/Australia/SA/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/ChristmasDayTest.php b/tests/Australia/SA/ChristmasDayTest.php index b02907dc2..43fc1e5b2 100644 --- a/tests/Australia/SA/ChristmasDayTest.php +++ b/tests/Australia/SA/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/EasterMondayTest.php b/tests/Australia/SA/EasterMondayTest.php index 80ec51446..e6e43ca9b 100644 --- a/tests/Australia/SA/EasterMondayTest.php +++ b/tests/Australia/SA/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/EasterSaturdayTest.php b/tests/Australia/SA/EasterSaturdayTest.php index 89c31e8e3..59026d7d0 100644 --- a/tests/Australia/SA/EasterSaturdayTest.php +++ b/tests/Australia/SA/EasterSaturdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/GoodFridayTest.php b/tests/Australia/SA/GoodFridayTest.php index 6ea63648e..67a1f54c8 100644 --- a/tests/Australia/SA/GoodFridayTest.php +++ b/tests/Australia/SA/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/LabourDayTest.php b/tests/Australia/SA/LabourDayTest.php index a0599fab5..58374a8a2 100644 --- a/tests/Australia/SA/LabourDayTest.php +++ b/tests/Australia/SA/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/NewYearsDayTest.php b/tests/Australia/SA/NewYearsDayTest.php index 8c575036d..c5df3ba4d 100644 --- a/tests/Australia/SA/NewYearsDayTest.php +++ b/tests/Australia/SA/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/ProclamationDayTest.php b/tests/Australia/SA/ProclamationDayTest.php index 756d18c48..e28d3f354 100644 --- a/tests/Australia/SA/ProclamationDayTest.php +++ b/tests/Australia/SA/ProclamationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/QueensBirthdayTest.php b/tests/Australia/SA/QueensBirthdayTest.php index 1da095c0e..4f0b7b712 100644 --- a/tests/Australia/SA/QueensBirthdayTest.php +++ b/tests/Australia/SA/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/SABaseTestCase.php b/tests/Australia/SA/SABaseTestCase.php index 3ff9bea4f..b71aee408 100644 --- a/tests/Australia/SA/SABaseTestCase.php +++ b/tests/Australia/SA/SABaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/SA/SATest.php b/tests/Australia/SA/SATest.php index f33bf6a48..79314c519 100644 --- a/tests/Australia/SA/SATest.php +++ b/tests/Australia/SA/SATest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\SA; diff --git a/tests/Australia/Tasmania/AnzacDayTest.php b/tests/Australia/Tasmania/AnzacDayTest.php index cb574606a..b2dd07789 100644 --- a/tests/Australia/Tasmania/AnzacDayTest.php +++ b/tests/Australia/Tasmania/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/AustraliaDayTest.php b/tests/Australia/Tasmania/AustraliaDayTest.php index 276fea88f..c28c3d104 100644 --- a/tests/Australia/Tasmania/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/BoxingDayTest.php b/tests/Australia/Tasmania/BoxingDayTest.php index 1231dfdc5..ad0421687 100644 --- a/tests/Australia/Tasmania/BoxingDayTest.php +++ b/tests/Australia/Tasmania/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php b/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php index bcf9271d6..e27fb1b78 100644 --- a/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php b/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php index e7aafd6c0..977d97b45 100644 --- a/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php b/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php index 0f7644aec..867fe918c 100644 --- a/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php index 4169b7b30..8336d2f2a 100644 --- a/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php index 45efa53ac..d31d97b06 100644 --- a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php b/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php index 9aa038cd6..023e55c52 100644 --- a/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php index 88832dd1b..c76693c0e 100644 --- a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php +++ b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php b/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php index 8fccc8f0b..a730e6c02 100644 --- a/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php b/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php index 7cb2af850..cceb8ce7a 100644 --- a/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php b/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php index 7188e0d4e..58ab84376 100644 --- a/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php b/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php index 6ad76d2ab..501644b05 100644 --- a/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php b/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php index a7ca3b342..0795af672 100644 --- a/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php b/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php index 589e94fcb..15c901eb7 100644 --- a/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php +++ b/tests/Australia/Tasmania/CentralNorth/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\CentralNorth; diff --git a/tests/Australia/Tasmania/ChristmasDayTest.php b/tests/Australia/Tasmania/ChristmasDayTest.php index f67dc68bb..c4e41e496 100644 --- a/tests/Australia/Tasmania/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/EasterMondayTest.php b/tests/Australia/Tasmania/EasterMondayTest.php index 84f0a333c..52d4e67ce 100644 --- a/tests/Australia/Tasmania/EasterMondayTest.php +++ b/tests/Australia/Tasmania/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/EightHourDayTest.php b/tests/Australia/Tasmania/EightHourDayTest.php index 254ba60fc..31ed1b4c7 100644 --- a/tests/Australia/Tasmania/EightHourDayTest.php +++ b/tests/Australia/Tasmania/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php b/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php index ac452020e..cd0025998 100644 --- a/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php b/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php index dfbb00e90..553934567 100644 --- a/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php b/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php index b78990f00..9eeb201dd 100644 --- a/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php b/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php index 7d16683d8..0ef6a657b 100644 --- a/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php b/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php index ba72754e4..6ad4c0acb 100644 --- a/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php b/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php index 4a4098250..f16e44970 100644 --- a/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php index 380166338..f39c3bb8c 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php index ce5407fee..1730dfd35 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php index 7ccd4c60c..21bfa1c36 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php b/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php index 92d89e464..067967bd4 100644 --- a/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php b/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php index 8fbc7f482..65428ddcc 100644 --- a/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php b/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php index 8079f2d82..2a5be2f05 100644 --- a/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php b/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php index 42a356668..9b6e4aa17 100644 --- a/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\FlindersIsland; diff --git a/tests/Australia/Tasmania/GoodFridayTest.php b/tests/Australia/Tasmania/GoodFridayTest.php index bd172843e..2fd43d9ed 100644 --- a/tests/Australia/Tasmania/GoodFridayTest.php +++ b/tests/Australia/Tasmania/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php b/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php index 794c08925..49ff14db8 100644 --- a/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php b/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php index c7ed8283c..399db25d5 100644 --- a/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php b/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php index d3c87ef4c..7b61efe41 100644 --- a/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php b/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php index 074e52705..ce36f9d18 100644 --- a/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php b/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php index b330365a6..5c8fbf70a 100644 --- a/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php +++ b/tests/Australia/Tasmania/KingIsland/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php b/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php index 69ee5d8a1..03313451a 100644 --- a/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php b/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php index 590cfde73..b8206f19b 100644 --- a/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php +++ b/tests/Australia/Tasmania/KingIsland/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php b/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php index 7ac2730fd..5bdc84aeb 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php index 9f33686ac..44ecbb731 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php index 55f0a91e4..a66678b69 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php b/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php index 141ef531b..46b718343 100644 --- a/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php b/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php index 256e9a3a5..4a84a1a41 100644 --- a/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/KingIsland/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php b/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php index 751850045..aeac76ccd 100644 --- a/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php +++ b/tests/Australia/Tasmania/KingIsland/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\KingIsland; diff --git a/tests/Australia/Tasmania/NewYearsDayTest.php b/tests/Australia/Tasmania/NewYearsDayTest.php index 00d9cab45..5a147f7fe 100644 --- a/tests/Australia/Tasmania/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/Northeast/AnzacDayTest.php b/tests/Australia/Tasmania/Northeast/AnzacDayTest.php index 36e1a2171..2af01ec9e 100644 --- a/tests/Australia/Tasmania/Northeast/AnzacDayTest.php +++ b/tests/Australia/Tasmania/Northeast/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php b/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php index 451ae2a2a..5a77a9b7e 100644 --- a/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/Northeast/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/BoxingDayTest.php b/tests/Australia/Tasmania/Northeast/BoxingDayTest.php index 22f0b3e91..d974c0768 100644 --- a/tests/Australia/Tasmania/Northeast/BoxingDayTest.php +++ b/tests/Australia/Tasmania/Northeast/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php b/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php index 6c17429af..7e5b57825 100644 --- a/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/Northeast/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/EasterMondayTest.php b/tests/Australia/Tasmania/Northeast/EasterMondayTest.php index 6dcf12e62..3abf25766 100644 --- a/tests/Australia/Tasmania/Northeast/EasterMondayTest.php +++ b/tests/Australia/Tasmania/Northeast/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/EightHourDayTest.php b/tests/Australia/Tasmania/Northeast/EightHourDayTest.php index 016e3cb3a..8927ec3f9 100644 --- a/tests/Australia/Tasmania/Northeast/EightHourDayTest.php +++ b/tests/Australia/Tasmania/Northeast/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/GoodFridayTest.php b/tests/Australia/Tasmania/Northeast/GoodFridayTest.php index 10c40d643..928498765 100644 --- a/tests/Australia/Tasmania/Northeast/GoodFridayTest.php +++ b/tests/Australia/Tasmania/Northeast/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php index 29dd6b9a0..89c013772 100644 --- a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php +++ b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php b/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php index f48cc8d53..a331566db 100644 --- a/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/Northeast/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php b/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php index 969cc75ea..e81e475eb 100644 --- a/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php +++ b/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/NortheastTest.php b/tests/Australia/Tasmania/Northeast/NortheastTest.php index be4236e4c..6da19f6cb 100644 --- a/tests/Australia/Tasmania/Northeast/NortheastTest.php +++ b/tests/Australia/Tasmania/Northeast/NortheastTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php b/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php index 1e8aaea48..7802e766b 100644 --- a/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/Northeast/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northeast/RecreationDayTest.php b/tests/Australia/Tasmania/Northeast/RecreationDayTest.php index 41b31a96d..d52925b20 100644 --- a/tests/Australia/Tasmania/Northeast/RecreationDayTest.php +++ b/tests/Australia/Tasmania/Northeast/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northeast; diff --git a/tests/Australia/Tasmania/Northwest/AnzacDayTest.php b/tests/Australia/Tasmania/Northwest/AnzacDayTest.php index 18d87780d..afbafe71c 100644 --- a/tests/Australia/Tasmania/Northwest/AnzacDayTest.php +++ b/tests/Australia/Tasmania/Northwest/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php b/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php index 32878f1f6..52bc61bae 100644 --- a/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/Northwest/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/BoxingDayTest.php b/tests/Australia/Tasmania/Northwest/BoxingDayTest.php index a19e6cbaf..5f707f9cc 100644 --- a/tests/Australia/Tasmania/Northwest/BoxingDayTest.php +++ b/tests/Australia/Tasmania/Northwest/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php index 85fcba7ce..b0c1b8e1f 100644 --- a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php +++ b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php b/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php index d4b4f0c53..c540b93f4 100644 --- a/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/Northwest/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php index c17ae5a38..423246e5b 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php index cb5fd924b..fc18dc3ef 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php index 7050b0a12..cac6dafa2 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php index 8ee4fbfe9..a5cf2dee0 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php index ba33d241d..25b23a024 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/BurnieShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php index 74c9094b5..ec8c65ce6 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php index 9552c49d6..9ef83e18d 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php index 7a9ed6ecf..49e5f1bc6 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php index dd092a70a..79c4d2d1a 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php index 3401ba07e..66bb0c8ad 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php index a4fa651b9..99436a4f5 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php index 28a6fe63b..470d8b5b1 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php index 56e166062..5748fde16 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php index 12c093f7a..d0e0d5ffb 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest\CircularHead; diff --git a/tests/Australia/Tasmania/Northwest/EasterMondayTest.php b/tests/Australia/Tasmania/Northwest/EasterMondayTest.php index 45ef96d4f..627b8431d 100644 --- a/tests/Australia/Tasmania/Northwest/EasterMondayTest.php +++ b/tests/Australia/Tasmania/Northwest/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/EightHourDayTest.php b/tests/Australia/Tasmania/Northwest/EightHourDayTest.php index eb5412f52..c7b21e5ee 100644 --- a/tests/Australia/Tasmania/Northwest/EightHourDayTest.php +++ b/tests/Australia/Tasmania/Northwest/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/GoodFridayTest.php b/tests/Australia/Tasmania/Northwest/GoodFridayTest.php index d31a09eb6..9689bf640 100644 --- a/tests/Australia/Tasmania/Northwest/GoodFridayTest.php +++ b/tests/Australia/Tasmania/Northwest/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php b/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php index b6bc76327..190dd45ad 100644 --- a/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/Northwest/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php b/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php index 756e7ff63..4c59e3b97 100644 --- a/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php +++ b/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/NorthwestTest.php b/tests/Australia/Tasmania/Northwest/NorthwestTest.php index 7e0d8053a..3d6e58a6d 100644 --- a/tests/Australia/Tasmania/Northwest/NorthwestTest.php +++ b/tests/Australia/Tasmania/Northwest/NorthwestTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php b/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php index d0ccde46b..7cf5ba4e1 100644 --- a/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/Northwest/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/Northwest/RecreationDayTest.php b/tests/Australia/Tasmania/Northwest/RecreationDayTest.php index 6ad10d314..19ea420ba 100644 --- a/tests/Australia/Tasmania/Northwest/RecreationDayTest.php +++ b/tests/Australia/Tasmania/Northwest/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\Northwest; diff --git a/tests/Australia/Tasmania/QueensBirthdayTest.php b/tests/Australia/Tasmania/QueensBirthdayTest.php index 1f28d906b..6fc170596 100644 --- a/tests/Australia/Tasmania/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/RecreationDayTest.php b/tests/Australia/Tasmania/RecreationDayTest.php index 0f5b32cea..3e7e9a3f8 100644 --- a/tests/Australia/Tasmania/RecreationDayTest.php +++ b/tests/Australia/Tasmania/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/South/AnzacDayTest.php b/tests/Australia/Tasmania/South/AnzacDayTest.php index bfbc9d032..1eae5ad8e 100644 --- a/tests/Australia/Tasmania/South/AnzacDayTest.php +++ b/tests/Australia/Tasmania/South/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/AustraliaDayTest.php b/tests/Australia/Tasmania/South/AustraliaDayTest.php index 83752cd58..b1c646d10 100644 --- a/tests/Australia/Tasmania/South/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/South/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/BoxingDayTest.php b/tests/Australia/Tasmania/South/BoxingDayTest.php index 949c79ba5..865f22c6d 100644 --- a/tests/Australia/Tasmania/South/BoxingDayTest.php +++ b/tests/Australia/Tasmania/South/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/ChristmasDayTest.php b/tests/Australia/Tasmania/South/ChristmasDayTest.php index 33ad3a475..877f4ceb3 100644 --- a/tests/Australia/Tasmania/South/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/South/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/EasterMondayTest.php b/tests/Australia/Tasmania/South/EasterMondayTest.php index d7bbcdbd5..e81977465 100644 --- a/tests/Australia/Tasmania/South/EasterMondayTest.php +++ b/tests/Australia/Tasmania/South/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/EightHourDayTest.php b/tests/Australia/Tasmania/South/EightHourDayTest.php index 318a3bf58..b0baa1360 100644 --- a/tests/Australia/Tasmania/South/EightHourDayTest.php +++ b/tests/Australia/Tasmania/South/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/GoodFridayTest.php b/tests/Australia/Tasmania/South/GoodFridayTest.php index e04833709..5ca71f528 100644 --- a/tests/Australia/Tasmania/South/GoodFridayTest.php +++ b/tests/Australia/Tasmania/South/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/HobartShowTest.php b/tests/Australia/Tasmania/South/HobartShowTest.php index 29987b8ad..0abb32707 100644 --- a/tests/Australia/Tasmania/South/HobartShowTest.php +++ b/tests/Australia/Tasmania/South/HobartShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/NewYearsDayTest.php b/tests/Australia/Tasmania/South/NewYearsDayTest.php index 19dae7a00..99c06ad4f 100644 --- a/tests/Australia/Tasmania/South/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/South/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/QueensBirthdayTest.php b/tests/Australia/Tasmania/South/QueensBirthdayTest.php index 57a55b564..5c40f5b25 100644 --- a/tests/Australia/Tasmania/South/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/South/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/RecreationDayTest.php b/tests/Australia/Tasmania/South/RecreationDayTest.php index 54a3fddbf..6aa6affee 100644 --- a/tests/Australia/Tasmania/South/RecreationDayTest.php +++ b/tests/Australia/Tasmania/South/RecreationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/SouthBaseTestCase.php b/tests/Australia/Tasmania/South/SouthBaseTestCase.php index e2c7072f9..0b7853565 100644 --- a/tests/Australia/Tasmania/South/SouthBaseTestCase.php +++ b/tests/Australia/Tasmania/South/SouthBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/SouthTest.php b/tests/Australia/Tasmania/South/SouthTest.php index f5a9a209c..76a59174b 100644 --- a/tests/Australia/Tasmania/South/SouthTest.php +++ b/tests/Australia/Tasmania/South/SouthTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South; diff --git a/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php b/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php index d97bc5721..c39d68b6b 100644 --- a/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php b/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php index 295ea52fa..4aa64f9ea 100644 --- a/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php b/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php index 6f694bcbf..2d1a9a759 100644 --- a/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php b/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php index c9f4dfd0d..44686a5fe 100644 --- a/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php b/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php index 0d80cbf38..e29293fa1 100644 --- a/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php b/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php index d703618db..e9aabad70 100644 --- a/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/EightHourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php b/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php index 3aa509d60..6ea1e9235 100644 --- a/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php index 6a0989c4a..45b3ec06e 100644 --- a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php +++ b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php b/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php index f4b8a4f3f..cf4a2627c 100644 --- a/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php +++ b/tests/Australia/Tasmania/South/Southeast/HobartShowTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php b/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php index f0d7502c9..d5f1892b5 100644 --- a/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php b/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php index 87a6f5838..9adad28f0 100644 --- a/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/South/Southeast/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php b/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php index 10863e87b..6cb9fa56a 100644 --- a/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php index b0fd47109..6013d8a0f 100644 --- a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania\South\Southeast; diff --git a/tests/Australia/Tasmania/TasmaniaBaseTestCase.php b/tests/Australia/Tasmania/TasmaniaBaseTestCase.php index 62b184d0a..42628ec02 100644 --- a/tests/Australia/Tasmania/TasmaniaBaseTestCase.php +++ b/tests/Australia/Tasmania/TasmaniaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Tasmania/TasmaniaTest.php b/tests/Australia/Tasmania/TasmaniaTest.php index d292b961c..7116dd431 100644 --- a/tests/Australia/Tasmania/TasmaniaTest.php +++ b/tests/Australia/Tasmania/TasmaniaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Tasmania; diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index 5bf238e6c..4f26b8aa2 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/AnzacDayTest.php b/tests/Australia/Victoria/AnzacDayTest.php index 22443d4c0..f71aee4e7 100644 --- a/tests/Australia/Victoria/AnzacDayTest.php +++ b/tests/Australia/Victoria/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/AustraliaDayTest.php b/tests/Australia/Victoria/AustraliaDayTest.php index 61b987f4c..7f9f169b1 100644 --- a/tests/Australia/Victoria/AustraliaDayTest.php +++ b/tests/Australia/Victoria/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/BoxingDayTest.php b/tests/Australia/Victoria/BoxingDayTest.php index af09fed8e..7b3a2ea1f 100644 --- a/tests/Australia/Victoria/BoxingDayTest.php +++ b/tests/Australia/Victoria/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/ChristmasDayTest.php b/tests/Australia/Victoria/ChristmasDayTest.php index 65e969ca8..2f6dd4ac0 100644 --- a/tests/Australia/Victoria/ChristmasDayTest.php +++ b/tests/Australia/Victoria/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/EasterMondayTest.php b/tests/Australia/Victoria/EasterMondayTest.php index 79f2bf2ba..35cf5ac09 100644 --- a/tests/Australia/Victoria/EasterMondayTest.php +++ b/tests/Australia/Victoria/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/EasterSaturdayTest.php b/tests/Australia/Victoria/EasterSaturdayTest.php index 05f672c36..63e351ee9 100644 --- a/tests/Australia/Victoria/EasterSaturdayTest.php +++ b/tests/Australia/Victoria/EasterSaturdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php index e6905834f..66a27f603 100644 --- a/tests/Australia/Victoria/EasterSundayTest.php +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/GoodFridayTest.php b/tests/Australia/Victoria/GoodFridayTest.php index 99cb54c38..b16efaa80 100644 --- a/tests/Australia/Victoria/GoodFridayTest.php +++ b/tests/Australia/Victoria/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index 25dcc3a43..befb7bfbd 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/MelbourneCupDayTest.php b/tests/Australia/Victoria/MelbourneCupDayTest.php index 2b3f5bdd4..b69426c52 100644 --- a/tests/Australia/Victoria/MelbourneCupDayTest.php +++ b/tests/Australia/Victoria/MelbourneCupDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/NewYearsDayTest.php b/tests/Australia/Victoria/NewYearsDayTest.php index a49954397..2132010f0 100644 --- a/tests/Australia/Victoria/NewYearsDayTest.php +++ b/tests/Australia/Victoria/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/QueensBirthdayTest.php b/tests/Australia/Victoria/QueensBirthdayTest.php index 0c8753d57..19cbc30cb 100644 --- a/tests/Australia/Victoria/QueensBirthdayTest.php +++ b/tests/Australia/Victoria/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/VictoriaBaseTestCase.php b/tests/Australia/Victoria/VictoriaBaseTestCase.php index 588f2e637..1a19decf4 100644 --- a/tests/Australia/Victoria/VictoriaBaseTestCase.php +++ b/tests/Australia/Victoria/VictoriaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/Victoria/VictoriaTest.php b/tests/Australia/Victoria/VictoriaTest.php index 8442e8529..5f967046b 100644 --- a/tests/Australia/Victoria/VictoriaTest.php +++ b/tests/Australia/Victoria/VictoriaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\Victoria; diff --git a/tests/Australia/WA/AnzacDayTest.php b/tests/Australia/WA/AnzacDayTest.php index cea41c8d0..8399a86b7 100644 --- a/tests/Australia/WA/AnzacDayTest.php +++ b/tests/Australia/WA/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/AustraliaDayTest.php b/tests/Australia/WA/AustraliaDayTest.php index e1ea41541..6848d4740 100644 --- a/tests/Australia/WA/AustraliaDayTest.php +++ b/tests/Australia/WA/AustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/BoxingDayTest.php b/tests/Australia/WA/BoxingDayTest.php index ae2072bd3..bba0bffdf 100644 --- a/tests/Australia/WA/BoxingDayTest.php +++ b/tests/Australia/WA/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/ChristmasDayTest.php b/tests/Australia/WA/ChristmasDayTest.php index fa266a769..ccc9ce74e 100644 --- a/tests/Australia/WA/ChristmasDayTest.php +++ b/tests/Australia/WA/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/EasterMondayTest.php b/tests/Australia/WA/EasterMondayTest.php index 8b47a0c60..fc3dc7555 100644 --- a/tests/Australia/WA/EasterMondayTest.php +++ b/tests/Australia/WA/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/GoodFridayTest.php b/tests/Australia/WA/GoodFridayTest.php index 3caf2bc15..507410ca6 100644 --- a/tests/Australia/WA/GoodFridayTest.php +++ b/tests/Australia/WA/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/LabourDayTest.php b/tests/Australia/WA/LabourDayTest.php index ca2547b62..4cd8c23e6 100644 --- a/tests/Australia/WA/LabourDayTest.php +++ b/tests/Australia/WA/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/NewYearsDayTest.php b/tests/Australia/WA/NewYearsDayTest.php index 71020bd0d..f6a3c225f 100644 --- a/tests/Australia/WA/NewYearsDayTest.php +++ b/tests/Australia/WA/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/QueensBirthdayTest.php b/tests/Australia/WA/QueensBirthdayTest.php index 9d9af8164..3c213179d 100644 --- a/tests/Australia/WA/QueensBirthdayTest.php +++ b/tests/Australia/WA/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/WABaseTestCase.php b/tests/Australia/WA/WABaseTestCase.php index 375cf1048..88deff40b 100644 --- a/tests/Australia/WA/WABaseTestCase.php +++ b/tests/Australia/WA/WABaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/WATest.php b/tests/Australia/WA/WATest.php index bf7acf22c..343ecbc4d 100644 --- a/tests/Australia/WA/WATest.php +++ b/tests/Australia/WA/WATest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Australia/WA/WesternAustraliaDayTest.php b/tests/Australia/WA/WesternAustraliaDayTest.php index a3559475d..cb0062e5e 100644 --- a/tests/Australia/WA/WesternAustraliaDayTest.php +++ b/tests/Australia/WA/WesternAustraliaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Australia\WA; diff --git a/tests/Austria/AllSaintsDayTest.php b/tests/Austria/AllSaintsDayTest.php index 8b6be8e35..fd8385ca6 100644 --- a/tests/Austria/AllSaintsDayTest.php +++ b/tests/Austria/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/AscensionDayTest.php b/tests/Austria/AscensionDayTest.php index d34d13a54..7eb80b75a 100644 --- a/tests/Austria/AscensionDayTest.php +++ b/tests/Austria/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/AssumptionOfMaryTest.php b/tests/Austria/AssumptionOfMaryTest.php index dcbdf4966..b47cc0f90 100644 --- a/tests/Austria/AssumptionOfMaryTest.php +++ b/tests/Austria/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/AustriaBaseTestCase.php b/tests/Austria/AustriaBaseTestCase.php index 874a132a9..0d66287e1 100644 --- a/tests/Austria/AustriaBaseTestCase.php +++ b/tests/Austria/AustriaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/AustriaTest.php b/tests/Austria/AustriaTest.php index bb88159e7..53f71834b 100644 --- a/tests/Austria/AustriaTest.php +++ b/tests/Austria/AustriaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/ChristmasTest.php b/tests/Austria/ChristmasTest.php index 897504e9c..3faeee372 100644 --- a/tests/Austria/ChristmasTest.php +++ b/tests/Austria/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/CorpusChristiTest.php b/tests/Austria/CorpusChristiTest.php index 115aaf2de..ca834f81e 100644 --- a/tests/Austria/CorpusChristiTest.php +++ b/tests/Austria/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/EasterMondayTest.php b/tests/Austria/EasterMondayTest.php index 1a3a7efd0..a00ac4c01 100644 --- a/tests/Austria/EasterMondayTest.php +++ b/tests/Austria/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/EasterTest.php b/tests/Austria/EasterTest.php index 0f5abacd1..8060d736f 100644 --- a/tests/Austria/EasterTest.php +++ b/tests/Austria/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/EpiphanyTest.php b/tests/Austria/EpiphanyTest.php index 75c241abc..a896d69dc 100644 --- a/tests/Austria/EpiphanyTest.php +++ b/tests/Austria/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/ImmaculateConceptionTest.php b/tests/Austria/ImmaculateConceptionTest.php index 0a2509e02..04467a1d5 100644 --- a/tests/Austria/ImmaculateConceptionTest.php +++ b/tests/Austria/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/InternationalWorkersDayTest.php b/tests/Austria/InternationalWorkersDayTest.php index 1bc8e8718..067517a07 100644 --- a/tests/Austria/InternationalWorkersDayTest.php +++ b/tests/Austria/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/NationalDayTest.php b/tests/Austria/NationalDayTest.php index 46370fa53..e78a26639 100644 --- a/tests/Austria/NationalDayTest.php +++ b/tests/Austria/NationalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/NewYearsDayTest.php b/tests/Austria/NewYearsDayTest.php index d8ec2813f..bad75074f 100644 --- a/tests/Austria/NewYearsDayTest.php +++ b/tests/Austria/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/PentecostMondayTest.php b/tests/Austria/PentecostMondayTest.php index 6ad3f5c3a..e6370c3c4 100644 --- a/tests/Austria/PentecostMondayTest.php +++ b/tests/Austria/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/PentecostTest.php b/tests/Austria/PentecostTest.php index fc5291e23..eb0ce7ef3 100644 --- a/tests/Austria/PentecostTest.php +++ b/tests/Austria/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Austria/SecondChristmasDayTest.php b/tests/Austria/SecondChristmasDayTest.php index 9a8b2634f..e584e3051 100644 --- a/tests/Austria/SecondChristmasDayTest.php +++ b/tests/Austria/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Austria; diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index bbd366746..758dfbfe7 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/HolidayFiltersTest.php b/tests/Base/HolidayFiltersTest.php index 0b41c97fe..82c457fcc 100644 --- a/tests/Base/HolidayFiltersTest.php +++ b/tests/Base/HolidayFiltersTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/HolidayOnFilterTest.php b/tests/Base/HolidayOnFilterTest.php index 90a004484..2ff33043d 100644 --- a/tests/Base/HolidayOnFilterTest.php +++ b/tests/Base/HolidayOnFilterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index a5b8243e8..9bfbc5930 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index c6949ac35..5302304ac 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/YasumiExternalProvider.php b/tests/Base/YasumiExternalProvider.php index c2d03edba..e1bb3d6b6 100644 --- a/tests/Base/YasumiExternalProvider.php +++ b/tests/Base/YasumiExternalProvider.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 100d6f6ba..4809bfd23 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Base; diff --git a/tests/Base/YasumiWorkdayTest.php b/tests/Base/YasumiWorkdayTest.php index b50271977..07d5d7deb 100644 --- a/tests/Base/YasumiWorkdayTest.php +++ b/tests/Base/YasumiWorkdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests; diff --git a/tests/Belgium/AllSaintsDayTest.php b/tests/Belgium/AllSaintsDayTest.php index 76983187c..4302a69c4 100644 --- a/tests/Belgium/AllSaintsDayTest.php +++ b/tests/Belgium/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/ArmisticeDayTest.php b/tests/Belgium/ArmisticeDayTest.php index 9fdf01ef6..f79bded0a 100644 --- a/tests/Belgium/ArmisticeDayTest.php +++ b/tests/Belgium/ArmisticeDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/AscensionDayTest.php b/tests/Belgium/AscensionDayTest.php index 4760248cb..5e4528804 100644 --- a/tests/Belgium/AscensionDayTest.php +++ b/tests/Belgium/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/AssumptionOfMaryTest.php b/tests/Belgium/AssumptionOfMaryTest.php index 630d97484..63b60d740 100644 --- a/tests/Belgium/AssumptionOfMaryTest.php +++ b/tests/Belgium/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/BelgiumBaseTestCase.php b/tests/Belgium/BelgiumBaseTestCase.php index 272d7a5c5..5231353d8 100644 --- a/tests/Belgium/BelgiumBaseTestCase.php +++ b/tests/Belgium/BelgiumBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/BelgiumTest.php b/tests/Belgium/BelgiumTest.php index 1ddf62827..e5d76d58d 100644 --- a/tests/Belgium/BelgiumTest.php +++ b/tests/Belgium/BelgiumTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/ChristmasTest.php b/tests/Belgium/ChristmasTest.php index 08db0dfad..67962911e 100644 --- a/tests/Belgium/ChristmasTest.php +++ b/tests/Belgium/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/EasterMondayTest.php b/tests/Belgium/EasterMondayTest.php index c74b529c2..268128a24 100644 --- a/tests/Belgium/EasterMondayTest.php +++ b/tests/Belgium/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/EasterTest.php b/tests/Belgium/EasterTest.php index cd1eec9df..1b07e05d7 100644 --- a/tests/Belgium/EasterTest.php +++ b/tests/Belgium/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/InternationalWorkersDayTest.php b/tests/Belgium/InternationalWorkersDayTest.php index 0b60f464d..a06dd4159 100644 --- a/tests/Belgium/InternationalWorkersDayTest.php +++ b/tests/Belgium/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/NationalDayTest.php b/tests/Belgium/NationalDayTest.php index eac85c86a..9d394ba91 100644 --- a/tests/Belgium/NationalDayTest.php +++ b/tests/Belgium/NationalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/NewYearsDayTest.php b/tests/Belgium/NewYearsDayTest.php index 1a3b24d3d..466389a5e 100644 --- a/tests/Belgium/NewYearsDayTest.php +++ b/tests/Belgium/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/PentecostTest.php b/tests/Belgium/PentecostTest.php index d3a27d95e..fd90dfb89 100644 --- a/tests/Belgium/PentecostTest.php +++ b/tests/Belgium/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Belgium/pentecostMondayTest.php b/tests/Belgium/pentecostMondayTest.php index 475edd47b..43e8ff291 100644 --- a/tests/Belgium/pentecostMondayTest.php +++ b/tests/Belgium/pentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Belgium; diff --git a/tests/Bosnia/BosniaBaseTestCase.php b/tests/Bosnia/BosniaBaseTestCase.php index 6e9115b89..58c36ddb7 100644 --- a/tests/Bosnia/BosniaBaseTestCase.php +++ b/tests/Bosnia/BosniaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/BosniaTest.php b/tests/Bosnia/BosniaTest.php index 2273faf2a..348275a13 100644 --- a/tests/Bosnia/BosniaTest.php +++ b/tests/Bosnia/BosniaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/ChristmasDayTest.php b/tests/Bosnia/ChristmasDayTest.php index d9589c16f..64dc257a9 100644 --- a/tests/Bosnia/ChristmasDayTest.php +++ b/tests/Bosnia/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/DayAfterNewYearsDay.php b/tests/Bosnia/DayAfterNewYearsDay.php index 1352416bf..5af8b4a6f 100644 --- a/tests/Bosnia/DayAfterNewYearsDay.php +++ b/tests/Bosnia/DayAfterNewYearsDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/EasterTest.php b/tests/Bosnia/EasterTest.php index 2562b59ad..98668af7f 100644 --- a/tests/Bosnia/EasterTest.php +++ b/tests/Bosnia/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/IndependenceDayTest.php b/tests/Bosnia/IndependenceDayTest.php index eaf0fc8a8..ed45b410f 100644 --- a/tests/Bosnia/IndependenceDayTest.php +++ b/tests/Bosnia/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/InternationalWorkersDayTest.php b/tests/Bosnia/InternationalWorkersDayTest.php index 53d746183..cfe9f658e 100644 --- a/tests/Bosnia/InternationalWorkersDayTest.php +++ b/tests/Bosnia/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/NewYearsDayTest.php b/tests/Bosnia/NewYearsDayTest.php index 518d962a2..a75cf9407 100644 --- a/tests/Bosnia/NewYearsDayTest.php +++ b/tests/Bosnia/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php index 08f605cbe..3202d521c 100644 --- a/tests/Bosnia/OrthodoxChristmasDay.php +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/SecondLabourDay.php b/tests/Bosnia/SecondLabourDay.php index 36e07afb1..98797aa1f 100644 --- a/tests/Bosnia/SecondLabourDay.php +++ b/tests/Bosnia/SecondLabourDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Bosnia/StatehoodDayTest.php b/tests/Bosnia/StatehoodDayTest.php index b16a16da4..972b1b48c 100644 --- a/tests/Bosnia/StatehoodDayTest.php +++ b/tests/Bosnia/StatehoodDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Bosnia; diff --git a/tests/Brazil/AllSoulsDayTest.php b/tests/Brazil/AllSoulsDayTest.php index 1f4f286c5..a2f7f2fe1 100644 --- a/tests/Brazil/AllSoulsDayTest.php +++ b/tests/Brazil/AllSoulsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/AshWednesdayTest.php b/tests/Brazil/AshWednesdayTest.php index 957133752..06a7c66f3 100644 --- a/tests/Brazil/AshWednesdayTest.php +++ b/tests/Brazil/AshWednesdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/BrazilBaseTestCase.php b/tests/Brazil/BrazilBaseTestCase.php index 6f89af582..3180648de 100644 --- a/tests/Brazil/BrazilBaseTestCase.php +++ b/tests/Brazil/BrazilBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/BrazilTest.php b/tests/Brazil/BrazilTest.php index 2a34bbcce..d46d0357b 100644 --- a/tests/Brazil/BrazilTest.php +++ b/tests/Brazil/BrazilTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/CarnavalMondayTest.php b/tests/Brazil/CarnavalMondayTest.php index 1f18376a1..0136885c0 100644 --- a/tests/Brazil/CarnavalMondayTest.php +++ b/tests/Brazil/CarnavalMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/CarnavalTuesdayTest.php b/tests/Brazil/CarnavalTuesdayTest.php index 21ab3e8c9..d3c6dac0e 100644 --- a/tests/Brazil/CarnavalTuesdayTest.php +++ b/tests/Brazil/CarnavalTuesdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/ChristmasDayTest.php b/tests/Brazil/ChristmasDayTest.php index ef98329d5..07c03273b 100644 --- a/tests/Brazil/ChristmasDayTest.php +++ b/tests/Brazil/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/CorpusChristiTest.php b/tests/Brazil/CorpusChristiTest.php index 3cd03201b..fbfcff107 100644 --- a/tests/Brazil/CorpusChristiTest.php +++ b/tests/Brazil/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/EasterTest.php b/tests/Brazil/EasterTest.php index 97459a5f7..333d821b7 100644 --- a/tests/Brazil/EasterTest.php +++ b/tests/Brazil/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/GoodFridayTest.php b/tests/Brazil/GoodFridayTest.php index 6e5de5ab2..7a1625689 100644 --- a/tests/Brazil/GoodFridayTest.php +++ b/tests/Brazil/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/IndependenceDayTest.php b/tests/Brazil/IndependenceDayTest.php index 9201ffad7..a95b57461 100644 --- a/tests/Brazil/IndependenceDayTest.php +++ b/tests/Brazil/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/InternationalWorkersDayTest.php b/tests/Brazil/InternationalWorkersDayTest.php index 1f6caa984..72ce6767e 100644 --- a/tests/Brazil/InternationalWorkersDayTest.php +++ b/tests/Brazil/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/NewYearsDayTest.php b/tests/Brazil/NewYearsDayTest.php index 62bb8948d..b5c41b0dc 100644 --- a/tests/Brazil/NewYearsDayTest.php +++ b/tests/Brazil/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/OurLadyOfAparecidaDayTest.php b/tests/Brazil/OurLadyOfAparecidaDayTest.php index b248e4058..5f6a41db0 100644 --- a/tests/Brazil/OurLadyOfAparecidaDayTest.php +++ b/tests/Brazil/OurLadyOfAparecidaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/ProclamationOfRepublicDayTest.php b/tests/Brazil/ProclamationOfRepublicDayTest.php index 528febe6c..4bc486ad3 100644 --- a/tests/Brazil/ProclamationOfRepublicDayTest.php +++ b/tests/Brazil/ProclamationOfRepublicDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Brazil/TiradentesDayTest.php b/tests/Brazil/TiradentesDayTest.php index 43068697d..70692576d 100644 --- a/tests/Brazil/TiradentesDayTest.php +++ b/tests/Brazil/TiradentesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Brazil; diff --git a/tests/Croatia/AllSaintsDayTest.php b/tests/Croatia/AllSaintsDayTest.php index 5f5839a7a..512877c86 100644 --- a/tests/Croatia/AllSaintsDayTest.php +++ b/tests/Croatia/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/AntifascistStruggleDayTest.php b/tests/Croatia/AntifascistStruggleDayTest.php index 152fbc0c5..e5ad0da95 100644 --- a/tests/Croatia/AntifascistStruggleDayTest.php +++ b/tests/Croatia/AntifascistStruggleDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/AssumptionOfMaryTest.php b/tests/Croatia/AssumptionOfMaryTest.php index da616c65d..2d8efefd7 100644 --- a/tests/Croatia/AssumptionOfMaryTest.php +++ b/tests/Croatia/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/ChristmasDayTest.php b/tests/Croatia/ChristmasDayTest.php index bd5657a3a..56f3abb5f 100644 --- a/tests/Croatia/ChristmasDayTest.php +++ b/tests/Croatia/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/CorpusChristiTest.php b/tests/Croatia/CorpusChristiTest.php index 81fb5df80..e6b38b94e 100644 --- a/tests/Croatia/CorpusChristiTest.php +++ b/tests/Croatia/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/CroatiaBaseTestCase.php b/tests/Croatia/CroatiaBaseTestCase.php index 03e844df0..85909d4d9 100644 --- a/tests/Croatia/CroatiaBaseTestCase.php +++ b/tests/Croatia/CroatiaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/EasterMondayTest.php b/tests/Croatia/EasterMondayTest.php index 0318ae8e9..2a2df094a 100644 --- a/tests/Croatia/EasterMondayTest.php +++ b/tests/Croatia/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/EasterTest.php b/tests/Croatia/EasterTest.php index 4ee1e47d7..0a3f944f4 100644 --- a/tests/Croatia/EasterTest.php +++ b/tests/Croatia/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/EpiphanyTest.php b/tests/Croatia/EpiphanyTest.php index 78552d6ef..bc4d54acf 100644 --- a/tests/Croatia/EpiphanyTest.php +++ b/tests/Croatia/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/HomelandThanksgivingDayTest.php b/tests/Croatia/HomelandThanksgivingDayTest.php index d95eb9071..5b024312e 100644 --- a/tests/Croatia/HomelandThanksgivingDayTest.php +++ b/tests/Croatia/HomelandThanksgivingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/IndependenceDayTest.php b/tests/Croatia/IndependenceDayTest.php index 86f02218d..d78a2ee59 100644 --- a/tests/Croatia/IndependenceDayTest.php +++ b/tests/Croatia/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/InternationalWorkersDayTest.php b/tests/Croatia/InternationalWorkersDayTest.php index 6419284c9..b77c1e8c0 100644 --- a/tests/Croatia/InternationalWorkersDayTest.php +++ b/tests/Croatia/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/NewYearsDayTest.php b/tests/Croatia/NewYearsDayTest.php index c4cb1a90a..cb21cbed8 100644 --- a/tests/Croatia/NewYearsDayTest.php +++ b/tests/Croatia/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/StStephensDayTest.php b/tests/Croatia/StStephensDayTest.php index 9072a05c7..c1d61faee 100644 --- a/tests/Croatia/StStephensDayTest.php +++ b/tests/Croatia/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/Croatia/StatehoodDayTest.php b/tests/Croatia/StatehoodDayTest.php index 85ef5c696..e30801541 100644 --- a/tests/Croatia/StatehoodDayTest.php +++ b/tests/Croatia/StatehoodDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Croatia; diff --git a/tests/CzechRepublic/ChristmasDayTest.php b/tests/CzechRepublic/ChristmasDayTest.php index 1943fd6d7..b4b2737c5 100644 --- a/tests/CzechRepublic/ChristmasDayTest.php +++ b/tests/CzechRepublic/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/ChristmasEveTest.php b/tests/CzechRepublic/ChristmasEveTest.php index 4f2e98039..63efa0761 100644 --- a/tests/CzechRepublic/ChristmasEveTest.php +++ b/tests/CzechRepublic/ChristmasEveTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/CzechRepublicBaseTestCase.php b/tests/CzechRepublic/CzechRepublicBaseTestCase.php index e8a4273ef..4e6551700 100644 --- a/tests/CzechRepublic/CzechRepublicBaseTestCase.php +++ b/tests/CzechRepublic/CzechRepublicBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/CzechRepublicTest.php b/tests/CzechRepublic/CzechRepublicTest.php index 6850a0cf3..cf676b6c0 100644 --- a/tests/CzechRepublic/CzechRepublicTest.php +++ b/tests/CzechRepublic/CzechRepublicTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/CzechStateHoodDayTest.php b/tests/CzechRepublic/CzechStateHoodDayTest.php index 5e297c10f..0e1f3aa58 100644 --- a/tests/CzechRepublic/CzechStateHoodDayTest.php +++ b/tests/CzechRepublic/CzechStateHoodDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/EasterMondayTest.php b/tests/CzechRepublic/EasterMondayTest.php index d36836745..54a4223a3 100644 --- a/tests/CzechRepublic/EasterMondayTest.php +++ b/tests/CzechRepublic/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/GoodFridayTest.php b/tests/CzechRepublic/GoodFridayTest.php index 013ce4046..93fd6dd18 100644 --- a/tests/CzechRepublic/GoodFridayTest.php +++ b/tests/CzechRepublic/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php index b59861e4d..7ecfdd310 100644 --- a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php +++ b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/InternationalWorkersDayTest.php b/tests/CzechRepublic/InternationalWorkersDayTest.php index 95e5782aa..d35b6efba 100644 --- a/tests/CzechRepublic/InternationalWorkersDayTest.php +++ b/tests/CzechRepublic/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/JanHusDayTest.php b/tests/CzechRepublic/JanHusDayTest.php index 3220994b6..74fca5818 100644 --- a/tests/CzechRepublic/JanHusDayTest.php +++ b/tests/CzechRepublic/JanHusDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/NewYearsDayTest.php b/tests/CzechRepublic/NewYearsDayTest.php index 537fc0ad6..7956dd2e3 100644 --- a/tests/CzechRepublic/NewYearsDayTest.php +++ b/tests/CzechRepublic/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php index d4bbd9b83..d5c37f2f8 100644 --- a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/SecondChristmasDayTest.php b/tests/CzechRepublic/SecondChristmasDayTest.php index 52b28eeb3..dfeccb260 100644 --- a/tests/CzechRepublic/SecondChristmasDayTest.php +++ b/tests/CzechRepublic/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php index d30971fc2..b13b79705 100644 --- a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/CzechRepublic/VictoryInEuropeDayTest.php b/tests/CzechRepublic/VictoryInEuropeDayTest.php index 60054a190..5bb871a6c 100644 --- a/tests/CzechRepublic/VictoryInEuropeDayTest.php +++ b/tests/CzechRepublic/VictoryInEuropeDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\CzechRepublic; diff --git a/tests/Denmark/AscensionDayTest.php b/tests/Denmark/AscensionDayTest.php index 205345ea9..c841ffb79 100644 --- a/tests/Denmark/AscensionDayTest.php +++ b/tests/Denmark/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 26490a080..1f53ea257 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/ChristmasEveTest.php b/tests/Denmark/ChristmasEveTest.php index dc3f7e57d..8240e6fc7 100644 --- a/tests/Denmark/ChristmasEveTest.php +++ b/tests/Denmark/ChristmasEveTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/ConstitutionDayTest.php b/tests/Denmark/ConstitutionDayTest.php index 6c57b49d9..9e35e1243 100644 --- a/tests/Denmark/ConstitutionDayTest.php +++ b/tests/Denmark/ConstitutionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/DenmarkBaseTestCase.php b/tests/Denmark/DenmarkBaseTestCase.php index 4b89530f8..6cb32f869 100644 --- a/tests/Denmark/DenmarkBaseTestCase.php +++ b/tests/Denmark/DenmarkBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/DenmarkTest.php b/tests/Denmark/DenmarkTest.php index c0ff2e068..8ad12bf3c 100644 --- a/tests/Denmark/DenmarkTest.php +++ b/tests/Denmark/DenmarkTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/EasterMondayTest.php b/tests/Denmark/EasterMondayTest.php index 954db0098..3dda8309b 100644 --- a/tests/Denmark/EasterMondayTest.php +++ b/tests/Denmark/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/EasterTest.php b/tests/Denmark/EasterTest.php index ea1f5ea8e..a8b1317f1 100644 --- a/tests/Denmark/EasterTest.php +++ b/tests/Denmark/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/GoodFridayTest.php b/tests/Denmark/GoodFridayTest.php index 15e2e8870..eb0dfd61a 100644 --- a/tests/Denmark/GoodFridayTest.php +++ b/tests/Denmark/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/GreatPrayerDayTest.php b/tests/Denmark/GreatPrayerDayTest.php index f84ff5638..9bc4ee530 100644 --- a/tests/Denmark/GreatPrayerDayTest.php +++ b/tests/Denmark/GreatPrayerDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/InternationalWorkersDayTest.php b/tests/Denmark/InternationalWorkersDayTest.php index e07f7231c..d8513d750 100644 --- a/tests/Denmark/InternationalWorkersDayTest.php +++ b/tests/Denmark/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/MaundyThursdayTest.php b/tests/Denmark/MaundyThursdayTest.php index fec9292e3..d6f77870d 100644 --- a/tests/Denmark/MaundyThursdayTest.php +++ b/tests/Denmark/MaundyThursdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/NewYearsDayTest.php b/tests/Denmark/NewYearsDayTest.php index 279ef5467..9890701c1 100644 --- a/tests/Denmark/NewYearsDayTest.php +++ b/tests/Denmark/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/NewYearsEveTest.php b/tests/Denmark/NewYearsEveTest.php index 2258545f6..1354a2063 100644 --- a/tests/Denmark/NewYearsEveTest.php +++ b/tests/Denmark/NewYearsEveTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/PentecostMondayTest.php b/tests/Denmark/PentecostMondayTest.php index 69add3021..31437199e 100644 --- a/tests/Denmark/PentecostMondayTest.php +++ b/tests/Denmark/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/PentecostTest.php b/tests/Denmark/PentecostTest.php index 6451ceeb2..318f29178 100644 --- a/tests/Denmark/PentecostTest.php +++ b/tests/Denmark/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/SecondChristmasDayTest.php b/tests/Denmark/SecondChristmasDayTest.php index 3fd0198be..014d7d17c 100644 --- a/tests/Denmark/SecondChristmasDayTest.php +++ b/tests/Denmark/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php index bae9c58a3..266005a43 100644 --- a/tests/Denmark/SummerTimeTest.php +++ b/tests/Denmark/SummerTimeTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Denmark/WinterTimeTest.php b/tests/Denmark/WinterTimeTest.php index b0ae96f54..82addfb23 100644 --- a/tests/Denmark/WinterTimeTest.php +++ b/tests/Denmark/WinterTimeTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Denmark; diff --git a/tests/Estonia/ChristmasDayTest.php b/tests/Estonia/ChristmasDayTest.php index ffd65dccd..6ec7ceaaa 100644 --- a/tests/Estonia/ChristmasDayTest.php +++ b/tests/Estonia/ChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/ChristmasEveDayTest.php b/tests/Estonia/ChristmasEveDayTest.php index b928acdc4..baa3e9898 100644 --- a/tests/Estonia/ChristmasEveDayTest.php +++ b/tests/Estonia/ChristmasEveDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index d04e93a6e..b6b2740c9 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/EstoniaBaseTestCase.php b/tests/Estonia/EstoniaBaseTestCase.php index 107680c13..453ebd3c0 100644 --- a/tests/Estonia/EstoniaBaseTestCase.php +++ b/tests/Estonia/EstoniaBaseTestCase.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/EstoniaTest.php b/tests/Estonia/EstoniaTest.php index 20f643dc3..fcaa23c4e 100644 --- a/tests/Estonia/EstoniaTest.php +++ b/tests/Estonia/EstoniaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/GoodFridayDayTest.php b/tests/Estonia/GoodFridayDayTest.php index 23a3f5c44..ff026f07b 100644 --- a/tests/Estonia/GoodFridayDayTest.php +++ b/tests/Estonia/GoodFridayDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/IndependenceDayTest.php b/tests/Estonia/IndependenceDayTest.php index 907fd5cbd..0acdad607 100644 --- a/tests/Estonia/IndependenceDayTest.php +++ b/tests/Estonia/IndependenceDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/InternationalWorkersDayTest.php b/tests/Estonia/InternationalWorkersDayTest.php index 48a84ae2d..e0e8fc929 100644 --- a/tests/Estonia/InternationalWorkersDayTest.php +++ b/tests/Estonia/InternationalWorkersDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/NewYearsDayTest.php b/tests/Estonia/NewYearsDayTest.php index 02405b440..2d4eb171c 100644 --- a/tests/Estonia/NewYearsDayTest.php +++ b/tests/Estonia/NewYearsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/PentecostTest.php b/tests/Estonia/PentecostTest.php index db520f2ab..db963de11 100644 --- a/tests/Estonia/PentecostTest.php +++ b/tests/Estonia/PentecostTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/RestorationOfIndependenceDayTest.php b/tests/Estonia/RestorationOfIndependenceDayTest.php index 7323164f8..4eb5dda6a 100644 --- a/tests/Estonia/RestorationOfIndependenceDayTest.php +++ b/tests/Estonia/RestorationOfIndependenceDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/SecondChristmasDayTest.php b/tests/Estonia/SecondChristmasDayTest.php index dbc39aeb6..f16e0f815 100644 --- a/tests/Estonia/SecondChristmasDayTest.php +++ b/tests/Estonia/SecondChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/StJohnsDayTest.php b/tests/Estonia/StJohnsDayTest.php index 6911b0d28..08519f33b 100644 --- a/tests/Estonia/StJohnsDayTest.php +++ b/tests/Estonia/StJohnsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Estonia/VictoryDayTest.php b/tests/Estonia/VictoryDayTest.php index 95a1e508a..06f4c1dfb 100644 --- a/tests/Estonia/VictoryDayTest.php +++ b/tests/Estonia/VictoryDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Estonia; diff --git a/tests/Finland/AllSaintsDayTest.php b/tests/Finland/AllSaintsDayTest.php index d9a1829e7..33f1acc24 100644 --- a/tests/Finland/AllSaintsDayTest.php +++ b/tests/Finland/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/AscensionDayTest.php b/tests/Finland/AscensionDayTest.php index 831ea5ae8..0aa4f837b 100644 --- a/tests/Finland/AscensionDayTest.php +++ b/tests/Finland/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/ChristmasDayTest.php b/tests/Finland/ChristmasDayTest.php index 23c062ac8..791644adb 100644 --- a/tests/Finland/ChristmasDayTest.php +++ b/tests/Finland/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/EasterMondayTest.php b/tests/Finland/EasterMondayTest.php index 43a684702..99c3c5fcb 100644 --- a/tests/Finland/EasterMondayTest.php +++ b/tests/Finland/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/EasterTest.php b/tests/Finland/EasterTest.php index 1398b12ec..89c595baa 100644 --- a/tests/Finland/EasterTest.php +++ b/tests/Finland/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/EpiphanyTest.php b/tests/Finland/EpiphanyTest.php index aa64d6705..1c70f49fe 100644 --- a/tests/Finland/EpiphanyTest.php +++ b/tests/Finland/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/FinlandBaseTestCase.php b/tests/Finland/FinlandBaseTestCase.php index 72f4395ba..dcac8aab5 100644 --- a/tests/Finland/FinlandBaseTestCase.php +++ b/tests/Finland/FinlandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/FinlandTest.php b/tests/Finland/FinlandTest.php index e4eeb3960..e48a60c6f 100644 --- a/tests/Finland/FinlandTest.php +++ b/tests/Finland/FinlandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/GoodFridayTest.php b/tests/Finland/GoodFridayTest.php index 8a1641029..1e27765e1 100644 --- a/tests/Finland/GoodFridayTest.php +++ b/tests/Finland/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/IndependenceDayTest.php b/tests/Finland/IndependenceDayTest.php index 72a93f5e0..17d1e30ee 100644 --- a/tests/Finland/IndependenceDayTest.php +++ b/tests/Finland/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/InternationalWorkersDayTest.php b/tests/Finland/InternationalWorkersDayTest.php index c3bb122a2..fc34df14e 100644 --- a/tests/Finland/InternationalWorkersDayTest.php +++ b/tests/Finland/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/NewYearsDayTest.php b/tests/Finland/NewYearsDayTest.php index 641a8e40d..da0fe5dde 100644 --- a/tests/Finland/NewYearsDayTest.php +++ b/tests/Finland/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/PentecostTest.php b/tests/Finland/PentecostTest.php index 91e119667..a86851e9b 100644 --- a/tests/Finland/PentecostTest.php +++ b/tests/Finland/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/SecondChristmasDayTest.php b/tests/Finland/SecondChristmasDayTest.php index 04f5411b3..be7f6d90c 100644 --- a/tests/Finland/SecondChristmasDayTest.php +++ b/tests/Finland/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/Finland/stJohnsDayTest.php b/tests/Finland/stJohnsDayTest.php index 7828430d3..cc5452cff 100644 --- a/tests/Finland/stJohnsDayTest.php +++ b/tests/Finland/stJohnsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Finland; diff --git a/tests/France/AllSaintsDayTest.php b/tests/France/AllSaintsDayTest.php index cbb2a698f..adcfe3093 100644 --- a/tests/France/AllSaintsDayTest.php +++ b/tests/France/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/ArmisticeDayTest.php b/tests/France/ArmisticeDayTest.php index 6ccd285d8..a9f45cf73 100644 --- a/tests/France/ArmisticeDayTest.php +++ b/tests/France/ArmisticeDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/AscensionDayTest.php b/tests/France/AscensionDayTest.php index 024e0a112..44c5757c2 100644 --- a/tests/France/AscensionDayTest.php +++ b/tests/France/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/AssumptionOfMaryTest.php b/tests/France/AssumptionOfMaryTest.php index 123171f02..b5d0454cc 100644 --- a/tests/France/AssumptionOfMaryTest.php +++ b/tests/France/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/BasRhin/BasRhinBaseTestCase.php b/tests/France/BasRhin/BasRhinBaseTestCase.php index 31057e2f8..cfae88e66 100644 --- a/tests/France/BasRhin/BasRhinBaseTestCase.php +++ b/tests/France/BasRhin/BasRhinBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\BasRhin; diff --git a/tests/France/BasRhin/BasRhinTest.php b/tests/France/BasRhin/BasRhinTest.php index 80433c397..14ed3f17e 100644 --- a/tests/France/BasRhin/BasRhinTest.php +++ b/tests/France/BasRhin/BasRhinTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\BasRhin; diff --git a/tests/France/BasRhin/GoodFridayTest.php b/tests/France/BasRhin/GoodFridayTest.php index df8115f03..f0988ef49 100644 --- a/tests/France/BasRhin/GoodFridayTest.php +++ b/tests/France/BasRhin/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\BasRhin; diff --git a/tests/France/BasRhin/stStephensDayTest.php b/tests/France/BasRhin/stStephensDayTest.php index fc349b959..d8188d423 100644 --- a/tests/France/BasRhin/stStephensDayTest.php +++ b/tests/France/BasRhin/stStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\BasRhin; diff --git a/tests/France/BastilleDayTest.php b/tests/France/BastilleDayTest.php index 76b11a019..8818e607e 100644 --- a/tests/France/BastilleDayTest.php +++ b/tests/France/BastilleDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/ChristmasDayTest.php b/tests/France/ChristmasDayTest.php index 42139d67e..ed9443669 100644 --- a/tests/France/ChristmasDayTest.php +++ b/tests/France/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/EasterMondayTest.php b/tests/France/EasterMondayTest.php index 2bd170334..f24074d7b 100644 --- a/tests/France/EasterMondayTest.php +++ b/tests/France/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/FranceBaseTestCase.php b/tests/France/FranceBaseTestCase.php index 30150f01f..d97d81a06 100644 --- a/tests/France/FranceBaseTestCase.php +++ b/tests/France/FranceBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/FranceTest.php b/tests/France/FranceTest.php index cc141c589..eb22d8031 100644 --- a/tests/France/FranceTest.php +++ b/tests/France/FranceTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/HautRhin/GoodFridayTest.php b/tests/France/HautRhin/GoodFridayTest.php index a4041f99a..d713f8283 100644 --- a/tests/France/HautRhin/GoodFridayTest.php +++ b/tests/France/HautRhin/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\HautRhin; diff --git a/tests/France/HautRhin/HautRhinBaseTestCase.php b/tests/France/HautRhin/HautRhinBaseTestCase.php index e2d778f7a..cab14849f 100644 --- a/tests/France/HautRhin/HautRhinBaseTestCase.php +++ b/tests/France/HautRhin/HautRhinBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\HautRhin; diff --git a/tests/France/HautRhin/HautRhinTest.php b/tests/France/HautRhin/HautRhinTest.php index aecb21e12..5d1326294 100644 --- a/tests/France/HautRhin/HautRhinTest.php +++ b/tests/France/HautRhin/HautRhinTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\HautRhin; diff --git a/tests/France/HautRhin/stStephensDayTest.php b/tests/France/HautRhin/stStephensDayTest.php index eb7a03f6d..1d7e3f42d 100644 --- a/tests/France/HautRhin/stStephensDayTest.php +++ b/tests/France/HautRhin/stStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\HautRhin; diff --git a/tests/France/InternationalWorkersDayTest.php b/tests/France/InternationalWorkersDayTest.php index 13fbe9bdf..e3c0368d9 100644 --- a/tests/France/InternationalWorkersDayTest.php +++ b/tests/France/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/Moselle/GoodFridayTest.php b/tests/France/Moselle/GoodFridayTest.php index c7072fd17..d462d090f 100644 --- a/tests/France/Moselle/GoodFridayTest.php +++ b/tests/France/Moselle/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\Moselle; diff --git a/tests/France/Moselle/MoselleBaseTestCase.php b/tests/France/Moselle/MoselleBaseTestCase.php index c36f68781..a7f213ba9 100644 --- a/tests/France/Moselle/MoselleBaseTestCase.php +++ b/tests/France/Moselle/MoselleBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\Moselle; diff --git a/tests/France/Moselle/MoselleTest.php b/tests/France/Moselle/MoselleTest.php index 7c3aafffc..58a7ef937 100644 --- a/tests/France/Moselle/MoselleTest.php +++ b/tests/France/Moselle/MoselleTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\Moselle; diff --git a/tests/France/Moselle/stStephensDayTest.php b/tests/France/Moselle/stStephensDayTest.php index a50084585..370005171 100644 --- a/tests/France/Moselle/stStephensDayTest.php +++ b/tests/France/Moselle/stStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France\Moselle; diff --git a/tests/France/NewYearsDayTest.php b/tests/France/NewYearsDayTest.php index 325d2bc07..6e740a140 100644 --- a/tests/France/NewYearsDayTest.php +++ b/tests/France/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/PentecostMondayTest.php b/tests/France/PentecostMondayTest.php index eae572545..6a1036790 100644 --- a/tests/France/PentecostMondayTest.php +++ b/tests/France/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/France/VictoryInEuropeDayTest.php b/tests/France/VictoryInEuropeDayTest.php index d15c864b1..ebfc5212c 100644 --- a/tests/France/VictoryInEuropeDayTest.php +++ b/tests/France/VictoryInEuropeDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\France; diff --git a/tests/Germany/AscensionDayTest.php b/tests/Germany/AscensionDayTest.php index c7f8bac29..85339ed2b 100644 --- a/tests/Germany/AscensionDayTest.php +++ b/tests/Germany/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php index b3c112b6a..0219d260f 100644 --- a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php +++ b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php b/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php index ef06c15a3..b2d138b4d 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php index 9475232c6..a81203c9c 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php index 22427bb6b..96df7253c 100644 --- a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php +++ b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/BadenWurttemberg/EpiphanyTest.php b/tests/Germany/BadenWurttemberg/EpiphanyTest.php index b035981a2..eced86da4 100644 --- a/tests/Germany/BadenWurttemberg/EpiphanyTest.php +++ b/tests/Germany/BadenWurttemberg/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/BadenWurttemberg/GermanUnityDayTest.php b/tests/Germany/BadenWurttemberg/GermanUnityDayTest.php index a6e8dd990..7d6871cdd 100644 --- a/tests/Germany/BadenWurttemberg/GermanUnityDayTest.php +++ b/tests/Germany/BadenWurttemberg/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/BadenWurttemberg/ReformationDay2017Test.php b/tests/Germany/BadenWurttemberg/ReformationDay2017Test.php index 3d5b7a3a2..f940065e9 100644 --- a/tests/Germany/BadenWurttemberg/ReformationDay2017Test.php +++ b/tests/Germany/BadenWurttemberg/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\BadenWurttemberg; diff --git a/tests/Germany/Bavaria/AllSaintsDayTest.php b/tests/Germany/Bavaria/AllSaintsDayTest.php index 4ab3aa2ae..8925f21be 100644 --- a/tests/Germany/Bavaria/AllSaintsDayTest.php +++ b/tests/Germany/Bavaria/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Bavaria/BavariaBaseTestCase.php b/tests/Germany/Bavaria/BavariaBaseTestCase.php index fe2ddc30b..9b8f90b3c 100644 --- a/tests/Germany/Bavaria/BavariaBaseTestCase.php +++ b/tests/Germany/Bavaria/BavariaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Bavaria/BavariaTest.php b/tests/Germany/Bavaria/BavariaTest.php index 8f2ea225e..20e502290 100644 --- a/tests/Germany/Bavaria/BavariaTest.php +++ b/tests/Germany/Bavaria/BavariaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Bavaria/CorpusChristiTest.php b/tests/Germany/Bavaria/CorpusChristiTest.php index 4cecb64d5..05ef659ef 100644 --- a/tests/Germany/Bavaria/CorpusChristiTest.php +++ b/tests/Germany/Bavaria/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Bavaria/EpiphanyTest.php b/tests/Germany/Bavaria/EpiphanyTest.php index 1dda12825..f2de9bb7f 100644 --- a/tests/Germany/Bavaria/EpiphanyTest.php +++ b/tests/Germany/Bavaria/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Bavaria/GermanUnityDayTest.php b/tests/Germany/Bavaria/GermanUnityDayTest.php index 6ee111182..7c1f7b9df 100644 --- a/tests/Germany/Bavaria/GermanUnityDayTest.php +++ b/tests/Germany/Bavaria/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Bavaria/ReformationDay2017Test.php b/tests/Germany/Bavaria/ReformationDay2017Test.php index 6972d7444..8071a4934 100644 --- a/tests/Germany/Bavaria/ReformationDay2017Test.php +++ b/tests/Germany/Bavaria/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bavaria; diff --git a/tests/Germany/Berlin/BerlinBaseTestCase.php b/tests/Germany/Berlin/BerlinBaseTestCase.php index 0b68c325f..83e35560d 100644 --- a/tests/Germany/Berlin/BerlinBaseTestCase.php +++ b/tests/Germany/Berlin/BerlinBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Berlin; diff --git a/tests/Germany/Berlin/BerlinTest.php b/tests/Germany/Berlin/BerlinTest.php index 4692466f2..8d61a07c2 100644 --- a/tests/Germany/Berlin/BerlinTest.php +++ b/tests/Germany/Berlin/BerlinTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Berlin; diff --git a/tests/Germany/Berlin/GermanUnityDayTest.php b/tests/Germany/Berlin/GermanUnityDayTest.php index 2f1574a3d..9e80f50d3 100644 --- a/tests/Germany/Berlin/GermanUnityDayTest.php +++ b/tests/Germany/Berlin/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Berlin; diff --git a/tests/Germany/Berlin/ReformationDay2017Test.php b/tests/Germany/Berlin/ReformationDay2017Test.php index 85e3a1914..b178bd47a 100644 --- a/tests/Germany/Berlin/ReformationDay2017Test.php +++ b/tests/Germany/Berlin/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Berlin; diff --git a/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php b/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php index 488388826..5df1a1d46 100644 --- a/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php +++ b/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Brandenburg; diff --git a/tests/Germany/Brandenburg/BrandenburgTest.php b/tests/Germany/Brandenburg/BrandenburgTest.php index bebdefc2f..b010041d7 100644 --- a/tests/Germany/Brandenburg/BrandenburgTest.php +++ b/tests/Germany/Brandenburg/BrandenburgTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Brandenburg; diff --git a/tests/Germany/Brandenburg/GermanUnityDayTest.php b/tests/Germany/Brandenburg/GermanUnityDayTest.php index 70e0a2918..3dbec6fa4 100644 --- a/tests/Germany/Brandenburg/GermanUnityDayTest.php +++ b/tests/Germany/Brandenburg/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Brandenburg; diff --git a/tests/Germany/Brandenburg/ReformationDayTest.php b/tests/Germany/Brandenburg/ReformationDayTest.php index 2023bf41b..fa7d2ffaf 100644 --- a/tests/Germany/Brandenburg/ReformationDayTest.php +++ b/tests/Germany/Brandenburg/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Brandenburg; diff --git a/tests/Germany/Bremen/BremenBaseTestCase.php b/tests/Germany/Bremen/BremenBaseTestCase.php index 2a91cab08..abb6b6527 100644 --- a/tests/Germany/Bremen/BremenBaseTestCase.php +++ b/tests/Germany/Bremen/BremenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bremen; diff --git a/tests/Germany/Bremen/BremenTest.php b/tests/Germany/Bremen/BremenTest.php index 842c74cbb..51f807484 100644 --- a/tests/Germany/Bremen/BremenTest.php +++ b/tests/Germany/Bremen/BremenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bremen; diff --git a/tests/Germany/Bremen/GermanUnityDayTest.php b/tests/Germany/Bremen/GermanUnityDayTest.php index 5011022a3..48826be70 100644 --- a/tests/Germany/Bremen/GermanUnityDayTest.php +++ b/tests/Germany/Bremen/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bremen; diff --git a/tests/Germany/Bremen/ReformationDay2017Test.php b/tests/Germany/Bremen/ReformationDay2017Test.php index a420f0164..c1c13bfc0 100644 --- a/tests/Germany/Bremen/ReformationDay2017Test.php +++ b/tests/Germany/Bremen/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bremen; diff --git a/tests/Germany/Bremen/ReformationDayTest.php b/tests/Germany/Bremen/ReformationDayTest.php index c6ec863bc..82e672e32 100644 --- a/tests/Germany/Bremen/ReformationDayTest.php +++ b/tests/Germany/Bremen/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Bremen; diff --git a/tests/Germany/ChristmasTest.php b/tests/Germany/ChristmasTest.php index 15f626fca..7cfd8ff8d 100644 --- a/tests/Germany/ChristmasTest.php +++ b/tests/Germany/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/EasterMondayTest.php b/tests/Germany/EasterMondayTest.php index 7f59cf2bc..651b3f518 100644 --- a/tests/Germany/EasterMondayTest.php +++ b/tests/Germany/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/GermanUnityDayTest.php b/tests/Germany/GermanUnityDayTest.php index 91b3a343b..866688f0e 100644 --- a/tests/Germany/GermanUnityDayTest.php +++ b/tests/Germany/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/GermanyBaseTestCase.php b/tests/Germany/GermanyBaseTestCase.php index 44c535492..667be2289 100644 --- a/tests/Germany/GermanyBaseTestCase.php +++ b/tests/Germany/GermanyBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/GermanyTest.php b/tests/Germany/GermanyTest.php index 1d9076066..a22574b84 100644 --- a/tests/Germany/GermanyTest.php +++ b/tests/Germany/GermanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/GoodFridayTest.php b/tests/Germany/GoodFridayTest.php index 19df8ec79..2b9e9b5ab 100644 --- a/tests/Germany/GoodFridayTest.php +++ b/tests/Germany/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index fb636c483..2e4cca270 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hamburg; diff --git a/tests/Germany/Hamburg/GermanUnityDay.php b/tests/Germany/Hamburg/GermanUnityDay.php index 9deb07135..35b039d00 100644 --- a/tests/Germany/Hamburg/GermanUnityDay.php +++ b/tests/Germany/Hamburg/GermanUnityDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hamburg; diff --git a/tests/Germany/Hamburg/HamburgBaseTestCase.php b/tests/Germany/Hamburg/HamburgBaseTestCase.php index 9c56a9fb3..3e6d05c8c 100644 --- a/tests/Germany/Hamburg/HamburgBaseTestCase.php +++ b/tests/Germany/Hamburg/HamburgBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hamburg; diff --git a/tests/Germany/Hamburg/HamburgTest.php b/tests/Germany/Hamburg/HamburgTest.php index 610284960..b4244967c 100644 --- a/tests/Germany/Hamburg/HamburgTest.php +++ b/tests/Germany/Hamburg/HamburgTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hamburg; diff --git a/tests/Germany/Hamburg/ReformationDay2017Test.php b/tests/Germany/Hamburg/ReformationDay2017Test.php index f63982569..c1df5becc 100644 --- a/tests/Germany/Hamburg/ReformationDay2017Test.php +++ b/tests/Germany/Hamburg/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hamburg; diff --git a/tests/Germany/Hesse/CorpusChristiTest.php b/tests/Germany/Hesse/CorpusChristiTest.php index 8e04062ec..f44557068 100644 --- a/tests/Germany/Hesse/CorpusChristiTest.php +++ b/tests/Germany/Hesse/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hesse; diff --git a/tests/Germany/Hesse/GermanUnityDayTest.php b/tests/Germany/Hesse/GermanUnityDayTest.php index ed9990b39..367dc9374 100644 --- a/tests/Germany/Hesse/GermanUnityDayTest.php +++ b/tests/Germany/Hesse/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hesse; diff --git a/tests/Germany/Hesse/HesseBaseTestCase.php b/tests/Germany/Hesse/HesseBaseTestCase.php index 1e4fc97ba..db7ed9407 100644 --- a/tests/Germany/Hesse/HesseBaseTestCase.php +++ b/tests/Germany/Hesse/HesseBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hesse; diff --git a/tests/Germany/Hesse/HesseTest.php b/tests/Germany/Hesse/HesseTest.php index cd78e7668..a1d80f7ca 100644 --- a/tests/Germany/Hesse/HesseTest.php +++ b/tests/Germany/Hesse/HesseTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hesse; diff --git a/tests/Germany/Hesse/ReformationDay2017Test.php b/tests/Germany/Hesse/ReformationDay2017Test.php index 6f7d49a40..2c56cd7d2 100644 --- a/tests/Germany/Hesse/ReformationDay2017Test.php +++ b/tests/Germany/Hesse/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Hesse; diff --git a/tests/Germany/InternationalWorkersDayTest.php b/tests/Germany/InternationalWorkersDayTest.php index b31b2cde2..5c5aed749 100644 --- a/tests/Germany/InternationalWorkersDayTest.php +++ b/tests/Germany/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/LowerSaxony/GermanUnityDayTest.php b/tests/Germany/LowerSaxony/GermanUnityDayTest.php index c3a60a0f3..41e28b4bd 100644 --- a/tests/Germany/LowerSaxony/GermanUnityDayTest.php +++ b/tests/Germany/LowerSaxony/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\LowerSaxony; diff --git a/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php b/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php index 0825c554f..6035a5b1e 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\LowerSaxony; diff --git a/tests/Germany/LowerSaxony/LowerSaxonyTest.php b/tests/Germany/LowerSaxony/LowerSaxonyTest.php index f77b1b00b..50e667b70 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyTest.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\LowerSaxony; diff --git a/tests/Germany/LowerSaxony/ReformationDay2017Test.php b/tests/Germany/LowerSaxony/ReformationDay2017Test.php index 03567f532..143e4f3fb 100644 --- a/tests/Germany/LowerSaxony/ReformationDay2017Test.php +++ b/tests/Germany/LowerSaxony/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\LowerSaxony; diff --git a/tests/Germany/LowerSaxony/ReformationDayTest.php b/tests/Germany/LowerSaxony/ReformationDayTest.php index e2aab0d1a..98271c3e8 100644 --- a/tests/Germany/LowerSaxony/ReformationDayTest.php +++ b/tests/Germany/LowerSaxony/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\LowerSaxony; diff --git a/tests/Germany/MecklenburgWesternPomerania/GermanUnityDayTest.php b/tests/Germany/MecklenburgWesternPomerania/GermanUnityDayTest.php index f826fb316..95d0c5c1c 100644 --- a/tests/Germany/MecklenburgWesternPomerania/GermanUnityDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\MecklenburgWesternPomerania; diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php index 47dda7168..6ca8b95ed 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\MecklenburgWesternPomerania; diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php index 5afd947df..b82299f36 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\MecklenburgWesternPomerania; diff --git a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php index f12c42070..8e27cb89c 100644 --- a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\MecklenburgWesternPomerania; diff --git a/tests/Germany/NewYearsDayTest.php b/tests/Germany/NewYearsDayTest.php index 8bb9b6fc7..54476d9db 100644 --- a/tests/Germany/NewYearsDayTest.php +++ b/tests/Germany/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php index f7ab50c3b..7b97171b4 100644 --- a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\NorthRhineWestphalia; diff --git a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php index c1d955abd..1b381199e 100644 --- a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php +++ b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\NorthRhineWestphalia; diff --git a/tests/Germany/NorthRhineWestphalia/GermanUnityDayTest.php b/tests/Germany/NorthRhineWestphalia/GermanUnityDayTest.php index e0d16de90..f8caa2ebf 100644 --- a/tests/Germany/NorthRhineWestphalia/GermanUnityDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\NorthRhineWestphalia; diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php index 608a8ee8f..7f6e9dd58 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\NorthRhineWestphalia; diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php index 297c26dfc..b6afc1334 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\NorthRhineWestphalia; diff --git a/tests/Germany/NorthRhineWestphalia/ReformationDay2017Test.php b/tests/Germany/NorthRhineWestphalia/ReformationDay2017Test.php index 2716b0aba..4c9fffdc5 100644 --- a/tests/Germany/NorthRhineWestphalia/ReformationDay2017Test.php +++ b/tests/Germany/NorthRhineWestphalia/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\NorthRhineWestphalia; diff --git a/tests/Germany/PentecostMondayTest.php b/tests/Germany/PentecostMondayTest.php index 0bc10c132..2b60ed091 100644 --- a/tests/Germany/PentecostMondayTest.php +++ b/tests/Germany/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/ReformationDay2017Test.php b/tests/Germany/ReformationDay2017Test.php index 7bc8007cc..b361b98ea 100644 --- a/tests/Germany/ReformationDay2017Test.php +++ b/tests/Germany/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php index 79b3b27e8..e8f3bf661 100644 --- a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php +++ b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\RhinelandPalatinate; diff --git a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php index d5b6fafd5..c6860352d 100644 --- a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php +++ b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\RhinelandPalatinate; diff --git a/tests/Germany/RhinelandPalatinate/GermanUnityDayTest.php b/tests/Germany/RhinelandPalatinate/GermanUnityDayTest.php index 3065c5701..d45c8c9dd 100644 --- a/tests/Germany/RhinelandPalatinate/GermanUnityDayTest.php +++ b/tests/Germany/RhinelandPalatinate/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\RhinelandPalatinate; diff --git a/tests/Germany/RhinelandPalatinate/ReformationDay2017Test.php b/tests/Germany/RhinelandPalatinate/ReformationDay2017Test.php index cba9699f7..620352673 100644 --- a/tests/Germany/RhinelandPalatinate/ReformationDay2017Test.php +++ b/tests/Germany/RhinelandPalatinate/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\RhinelandPalatinate; diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php index bb164113c..aff5a392d 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\RhinelandPalatinate; diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php index f2d9f7bfb..3aa98a78a 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\RhinelandPalatinate; diff --git a/tests/Germany/Saarland/AllSaintsDayTest.php b/tests/Germany/Saarland/AllSaintsDayTest.php index 0c4605e7c..bf5569427 100644 --- a/tests/Germany/Saarland/AllSaintsDayTest.php +++ b/tests/Germany/Saarland/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saarland/AssumptionOfMaryTest.php b/tests/Germany/Saarland/AssumptionOfMaryTest.php index 8f66f0b10..430761681 100644 --- a/tests/Germany/Saarland/AssumptionOfMaryTest.php +++ b/tests/Germany/Saarland/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saarland/CorpusChristiTest.php b/tests/Germany/Saarland/CorpusChristiTest.php index e9b8ca937..f80bf4dae 100644 --- a/tests/Germany/Saarland/CorpusChristiTest.php +++ b/tests/Germany/Saarland/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saarland/GermanUnityDayTest.php b/tests/Germany/Saarland/GermanUnityDayTest.php index bd4634348..ab2d184e0 100644 --- a/tests/Germany/Saarland/GermanUnityDayTest.php +++ b/tests/Germany/Saarland/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saarland/ReformationDay2017Test.php b/tests/Germany/Saarland/ReformationDay2017Test.php index 9e099cf8a..f3ad74089 100644 --- a/tests/Germany/Saarland/ReformationDay2017Test.php +++ b/tests/Germany/Saarland/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saarland/SaarlandBaseTestCase.php b/tests/Germany/Saarland/SaarlandBaseTestCase.php index cb57c7a93..3cba439ed 100644 --- a/tests/Germany/Saarland/SaarlandBaseTestCase.php +++ b/tests/Germany/Saarland/SaarlandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saarland/SaarlandTest.php b/tests/Germany/Saarland/SaarlandTest.php index fd7b2f1ad..a8abbace4 100644 --- a/tests/Germany/Saarland/SaarlandTest.php +++ b/tests/Germany/Saarland/SaarlandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saarland; diff --git a/tests/Germany/Saxony/GermanUnityDayTest.php b/tests/Germany/Saxony/GermanUnityDayTest.php index f524f48c7..9ba811cc5 100644 --- a/tests/Germany/Saxony/GermanUnityDayTest.php +++ b/tests/Germany/Saxony/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saxony; diff --git a/tests/Germany/Saxony/ReformationDayTest.php b/tests/Germany/Saxony/ReformationDayTest.php index 1e33123f3..b8dc0ed85 100644 --- a/tests/Germany/Saxony/ReformationDayTest.php +++ b/tests/Germany/Saxony/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saxony; diff --git a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php index 6f930a079..60c1a53de 100644 --- a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php +++ b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saxony; diff --git a/tests/Germany/Saxony/SaxonyBaseTestCase.php b/tests/Germany/Saxony/SaxonyBaseTestCase.php index 031add28a..9f0d5d6dc 100644 --- a/tests/Germany/Saxony/SaxonyBaseTestCase.php +++ b/tests/Germany/Saxony/SaxonyBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saxony; diff --git a/tests/Germany/Saxony/SaxonyTest.php b/tests/Germany/Saxony/SaxonyTest.php index bad7fab0d..bc0ec85c9 100644 --- a/tests/Germany/Saxony/SaxonyTest.php +++ b/tests/Germany/Saxony/SaxonyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Saxony; diff --git a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php index 26c109e15..aaaf6b1f1 100644 --- a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php +++ b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SaxonyAnhalt; diff --git a/tests/Germany/SaxonyAnhalt/GermanUnityDayTest.php b/tests/Germany/SaxonyAnhalt/GermanUnityDayTest.php index 544063576..c3eac7ac3 100644 --- a/tests/Germany/SaxonyAnhalt/GermanUnityDayTest.php +++ b/tests/Germany/SaxonyAnhalt/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SaxonyAnhalt; diff --git a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php index 3c29d338a..d283f9d17 100644 --- a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php +++ b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SaxonyAnhalt; diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php index d805b029f..b1f35d4a9 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SaxonyAnhalt; diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php index b5516d4bd..46fe9e798 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SaxonyAnhalt; diff --git a/tests/Germany/SchleswigHolstein/GermanUnityDayTest.php b/tests/Germany/SchleswigHolstein/GermanUnityDayTest.php index 1d61e3e6d..656b55fb0 100644 --- a/tests/Germany/SchleswigHolstein/GermanUnityDayTest.php +++ b/tests/Germany/SchleswigHolstein/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SchleswigHolstein; diff --git a/tests/Germany/SchleswigHolstein/ReformationDay2017Test.php b/tests/Germany/SchleswigHolstein/ReformationDay2017Test.php index 687420e36..77238cd9a 100644 --- a/tests/Germany/SchleswigHolstein/ReformationDay2017Test.php +++ b/tests/Germany/SchleswigHolstein/ReformationDay2017Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SchleswigHolstein; diff --git a/tests/Germany/SchleswigHolstein/ReformationDayTest.php b/tests/Germany/SchleswigHolstein/ReformationDayTest.php index 192efaab0..3005fd835 100644 --- a/tests/Germany/SchleswigHolstein/ReformationDayTest.php +++ b/tests/Germany/SchleswigHolstein/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SchleswigHolstein; diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php index 3278d0059..80ece2339 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SchleswigHolstein; diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php index a9458bfcb..a13e28c8a 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\SchleswigHolstein; diff --git a/tests/Germany/SecondChristmasDayTest.php b/tests/Germany/SecondChristmasDayTest.php index 189c275ff..166281e3d 100644 --- a/tests/Germany/SecondChristmasDayTest.php +++ b/tests/Germany/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany; diff --git a/tests/Germany/Thuringia/GermanUnityDayTest.php b/tests/Germany/Thuringia/GermanUnityDayTest.php index 88746dedd..b1531926c 100644 --- a/tests/Germany/Thuringia/GermanUnityDayTest.php +++ b/tests/Germany/Thuringia/GermanUnityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Thuringia; diff --git a/tests/Germany/Thuringia/ReformationDayTest.php b/tests/Germany/Thuringia/ReformationDayTest.php index 98e57331f..712d1a7ac 100644 --- a/tests/Germany/Thuringia/ReformationDayTest.php +++ b/tests/Germany/Thuringia/ReformationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Thuringia; diff --git a/tests/Germany/Thuringia/ThuringiaBaseTestCase.php b/tests/Germany/Thuringia/ThuringiaBaseTestCase.php index f47cf92d8..442c379f2 100644 --- a/tests/Germany/Thuringia/ThuringiaBaseTestCase.php +++ b/tests/Germany/Thuringia/ThuringiaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Thuringia; diff --git a/tests/Germany/Thuringia/ThuringiaTest.php b/tests/Germany/Thuringia/ThuringiaTest.php index 75b56ef0b..7baed4490 100644 --- a/tests/Germany/Thuringia/ThuringiaTest.php +++ b/tests/Germany/Thuringia/ThuringiaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Germany\Thuringia; diff --git a/tests/Greece/AnnunciationTest.php b/tests/Greece/AnnunciationTest.php index 05962f180..243020387 100644 --- a/tests/Greece/AnnunciationTest.php +++ b/tests/Greece/AnnunciationTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/AscensionDayTest.php b/tests/Greece/AscensionDayTest.php index 6c0840f09..6c701de3f 100644 --- a/tests/Greece/AscensionDayTest.php +++ b/tests/Greece/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/AssumptionOfMaryTest.php b/tests/Greece/AssumptionOfMaryTest.php index a6f888b6e..c0efba2e9 100644 --- a/tests/Greece/AssumptionOfMaryTest.php +++ b/tests/Greece/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/ChristmasDayTest.php b/tests/Greece/ChristmasDayTest.php index 788577ebe..137df76f8 100644 --- a/tests/Greece/ChristmasDayTest.php +++ b/tests/Greece/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/CleanMondayTest.php b/tests/Greece/CleanMondayTest.php index 016b8df79..aec8d9724 100644 --- a/tests/Greece/CleanMondayTest.php +++ b/tests/Greece/CleanMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/EasterMondayTest.php b/tests/Greece/EasterMondayTest.php index 7e1589042..4ad98900c 100644 --- a/tests/Greece/EasterMondayTest.php +++ b/tests/Greece/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/EasterTest.php b/tests/Greece/EasterTest.php index 58a01a7a1..9de92788c 100644 --- a/tests/Greece/EasterTest.php +++ b/tests/Greece/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/EpiphanyTest.php b/tests/Greece/EpiphanyTest.php index adbbef42e..c71c82194 100644 --- a/tests/Greece/EpiphanyTest.php +++ b/tests/Greece/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/GreeceBaseTestCase.php b/tests/Greece/GreeceBaseTestCase.php index 89f2d1bdd..b93d4b411 100644 --- a/tests/Greece/GreeceBaseTestCase.php +++ b/tests/Greece/GreeceBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/GreeceTest.php b/tests/Greece/GreeceTest.php index 7c1a6aead..08e604154 100644 --- a/tests/Greece/GreeceTest.php +++ b/tests/Greece/GreeceTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/IndepencenceDayTest.php b/tests/Greece/IndepencenceDayTest.php index 9d9d4f765..a74492980 100644 --- a/tests/Greece/IndepencenceDayTest.php +++ b/tests/Greece/IndepencenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/InternationalWorkersDayTest.php b/tests/Greece/InternationalWorkersDayTest.php index a4de41d9c..a2dc2bd15 100644 --- a/tests/Greece/InternationalWorkersDayTest.php +++ b/tests/Greece/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/NewYearsDayTest.php b/tests/Greece/NewYearsDayTest.php index a1261f64b..c74c847b3 100644 --- a/tests/Greece/NewYearsDayTest.php +++ b/tests/Greece/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/OhiDayTest.php b/tests/Greece/OhiDayTest.php index eb28e0b0a..386b2e0bc 100644 --- a/tests/Greece/OhiDayTest.php +++ b/tests/Greece/OhiDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/PentecostMondayTest.php b/tests/Greece/PentecostMondayTest.php index d036473ca..13d67d186 100644 --- a/tests/Greece/PentecostMondayTest.php +++ b/tests/Greece/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/PentecostTest.php b/tests/Greece/PentecostTest.php index 33050e5b1..ee9cf8719 100644 --- a/tests/Greece/PentecostTest.php +++ b/tests/Greece/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/PolytechnioTest.php b/tests/Greece/PolytechnioTest.php index ded37d588..4dea9d41a 100644 --- a/tests/Greece/PolytechnioTest.php +++ b/tests/Greece/PolytechnioTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/ThreeHolyHierarchsTest.php b/tests/Greece/ThreeHolyHierarchsTest.php index 44a54c02f..e07a593a1 100644 --- a/tests/Greece/ThreeHolyHierarchsTest.php +++ b/tests/Greece/ThreeHolyHierarchsTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Greece/goodFridayTest.php b/tests/Greece/goodFridayTest.php index 16a109799..f5e15ce1f 100644 --- a/tests/Greece/goodFridayTest.php +++ b/tests/Greece/goodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Greece; diff --git a/tests/Hungary/AllSaintsDayTest.php b/tests/Hungary/AllSaintsDayTest.php index 98aaee3ad..d16605d17 100644 --- a/tests/Hungary/AllSaintsDayTest.php +++ b/tests/Hungary/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/ChristmasTest.php b/tests/Hungary/ChristmasTest.php index 9f47e12a3..9bd2940c6 100644 --- a/tests/Hungary/ChristmasTest.php +++ b/tests/Hungary/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/EasterMondayTest.php b/tests/Hungary/EasterMondayTest.php index 19ad809b6..d53db3690 100644 --- a/tests/Hungary/EasterMondayTest.php +++ b/tests/Hungary/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/EasterTest.php b/tests/Hungary/EasterTest.php index f3074063b..a52a7bfc2 100644 --- a/tests/Hungary/EasterTest.php +++ b/tests/Hungary/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/HungaryBaseTestCase.php b/tests/Hungary/HungaryBaseTestCase.php index a5f5cf9eb..a20d965f6 100644 --- a/tests/Hungary/HungaryBaseTestCase.php +++ b/tests/Hungary/HungaryBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/HungaryTest.php b/tests/Hungary/HungaryTest.php index ef914bca8..8a09a75c4 100644 --- a/tests/Hungary/HungaryTest.php +++ b/tests/Hungary/HungaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/InternationalWorkersDayTest.php b/tests/Hungary/InternationalWorkersDayTest.php index 3be78fdac..c193f7178 100644 --- a/tests/Hungary/InternationalWorkersDayTest.php +++ b/tests/Hungary/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/MemorialDay1848Test.php b/tests/Hungary/MemorialDay1848Test.php index 33f16f810..6415d197b 100644 --- a/tests/Hungary/MemorialDay1848Test.php +++ b/tests/Hungary/MemorialDay1848Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/MemorialDay1956Test.php b/tests/Hungary/MemorialDay1956Test.php index 75f5b4a07..cec92e802 100644 --- a/tests/Hungary/MemorialDay1956Test.php +++ b/tests/Hungary/MemorialDay1956Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/NewYearsDayTest.php b/tests/Hungary/NewYearsDayTest.php index 1b5fb613a..0e81b4e40 100644 --- a/tests/Hungary/NewYearsDayTest.php +++ b/tests/Hungary/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/PentecostMondayTest.php b/tests/Hungary/PentecostMondayTest.php index 102103163..2809bc68b 100644 --- a/tests/Hungary/PentecostMondayTest.php +++ b/tests/Hungary/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/PentecostTest.php b/tests/Hungary/PentecostTest.php index 26ea500f9..22c77eaf4 100644 --- a/tests/Hungary/PentecostTest.php +++ b/tests/Hungary/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/SecondChristmasDayTest.php b/tests/Hungary/SecondChristmasDayTest.php index aac18dbbb..fa286f28d 100644 --- a/tests/Hungary/SecondChristmasDayTest.php +++ b/tests/Hungary/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Hungary/StateFoundationDayTest.php b/tests/Hungary/StateFoundationDayTest.php index 653982232..d95060225 100644 --- a/tests/Hungary/StateFoundationDayTest.php +++ b/tests/Hungary/StateFoundationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Hungary; diff --git a/tests/Ireland/AugustHolidayTest.php b/tests/Ireland/AugustHolidayTest.php index 7f95ef3b6..7f53a792b 100644 --- a/tests/Ireland/AugustHolidayTest.php +++ b/tests/Ireland/AugustHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index c70edeaaa..2b3a49334 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index e4ceac617..b569c812d 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index 83732c0d2..c98526fe5 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index b3142defb..555e06295 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/IrelandBaseTestCase.php b/tests/Ireland/IrelandBaseTestCase.php index a95da43de..9d9f6ea36 100644 --- a/tests/Ireland/IrelandBaseTestCase.php +++ b/tests/Ireland/IrelandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/IrelandTest.php b/tests/Ireland/IrelandTest.php index dfd597a72..fbafc13e6 100644 --- a/tests/Ireland/IrelandTest.php +++ b/tests/Ireland/IrelandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/JuneHolidayTest.php b/tests/Ireland/JuneHolidayTest.php index a8509c63a..c5073731b 100644 --- a/tests/Ireland/JuneHolidayTest.php +++ b/tests/Ireland/JuneHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/MayDayTest.php b/tests/Ireland/MayDayTest.php index d70185e18..1411a490e 100644 --- a/tests/Ireland/MayDayTest.php +++ b/tests/Ireland/MayDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index dcd436b83..c110075fe 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/OctoberHolidayTest.php b/tests/Ireland/OctoberHolidayTest.php index df490d941..bbeb468ca 100644 --- a/tests/Ireland/OctoberHolidayTest.php +++ b/tests/Ireland/OctoberHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index 4ccefe2e3..3eb9496f5 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index ae7026d25..173b7e4b0 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index c2afa492b..9b05b1a7c 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index 4e20ee38f..77ddbc0e8 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ireland; diff --git a/tests/Italy/AllSaintsDayTest.php b/tests/Italy/AllSaintsDayTest.php index 67754e9a0..95e363ffa 100644 --- a/tests/Italy/AllSaintsDayTest.php +++ b/tests/Italy/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/AssumptionOfMaryTest.php b/tests/Italy/AssumptionOfMaryTest.php index 7638d9389..d8d4c8940 100644 --- a/tests/Italy/AssumptionOfMaryTest.php +++ b/tests/Italy/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/ChristmasTest.php b/tests/Italy/ChristmasTest.php index aaa93a5c4..2a54756f4 100644 --- a/tests/Italy/ChristmasTest.php +++ b/tests/Italy/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/EasterMondayTest.php b/tests/Italy/EasterMondayTest.php index d90db539d..17db3dab3 100644 --- a/tests/Italy/EasterMondayTest.php +++ b/tests/Italy/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/EasterTest.php b/tests/Italy/EasterTest.php index b6aa22bff..95c39580c 100644 --- a/tests/Italy/EasterTest.php +++ b/tests/Italy/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/EpiphanyTest.php b/tests/Italy/EpiphanyTest.php index 5f97f767d..cf565a9d8 100644 --- a/tests/Italy/EpiphanyTest.php +++ b/tests/Italy/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/ImmaculateConceptionTest.php b/tests/Italy/ImmaculateConceptionTest.php index 4a6ad9f39..7acadcb86 100644 --- a/tests/Italy/ImmaculateConceptionTest.php +++ b/tests/Italy/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/InternationalWorkersDayTest.php b/tests/Italy/InternationalWorkersDayTest.php index cb0291224..04a8bad55 100644 --- a/tests/Italy/InternationalWorkersDayTest.php +++ b/tests/Italy/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/ItalyBaseTestCase.php b/tests/Italy/ItalyBaseTestCase.php index 14cf8c6d3..08d860459 100644 --- a/tests/Italy/ItalyBaseTestCase.php +++ b/tests/Italy/ItalyBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/ItalyTest.php b/tests/Italy/ItalyTest.php index e98647dd6..c1f6d6864 100644 --- a/tests/Italy/ItalyTest.php +++ b/tests/Italy/ItalyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/LiberationDayTest.php b/tests/Italy/LiberationDayTest.php index e793f8721..0f08f1dba 100644 --- a/tests/Italy/LiberationDayTest.php +++ b/tests/Italy/LiberationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/NewYearsDayTest.php b/tests/Italy/NewYearsDayTest.php index 8d506a8db..103c8d4d0 100644 --- a/tests/Italy/NewYearsDayTest.php +++ b/tests/Italy/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/RepublicDayTest.php b/tests/Italy/RepublicDayTest.php index e7f871622..222b057a1 100644 --- a/tests/Italy/RepublicDayTest.php +++ b/tests/Italy/RepublicDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Italy/stStephensDayTest.php b/tests/Italy/stStephensDayTest.php index c4018a46e..2effa75f9 100644 --- a/tests/Italy/stStephensDayTest.php +++ b/tests/Italy/stStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Italy; diff --git a/tests/Japan/AutumnalEquinoxDayTest.php b/tests/Japan/AutumnalEquinoxDayTest.php index d51ecdc56..47682f53b 100644 --- a/tests/Japan/AutumnalEquinoxDayTest.php +++ b/tests/Japan/AutumnalEquinoxDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/ChildrensDayTest.php b/tests/Japan/ChildrensDayTest.php index ef36b5314..d1a548a04 100644 --- a/tests/Japan/ChildrensDayTest.php +++ b/tests/Japan/ChildrensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/ComingOfAgeDayTest.php b/tests/Japan/ComingOfAgeDayTest.php index a52e84874..71d27ae40 100644 --- a/tests/Japan/ComingOfAgeDayTest.php +++ b/tests/Japan/ComingOfAgeDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/ConstitutionMemorialDayTest.php b/tests/Japan/ConstitutionMemorialDayTest.php index 4b02c2458..f2054ca1c 100644 --- a/tests/Japan/ConstitutionMemorialDayTest.php +++ b/tests/Japan/ConstitutionMemorialDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/CultureDayTest.php b/tests/Japan/CultureDayTest.php index d5564c6d8..e05f0a0fe 100644 --- a/tests/Japan/CultureDayTest.php +++ b/tests/Japan/CultureDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/EmperorsBirthdayTest.php b/tests/Japan/EmperorsBirthdayTest.php index 02fa18e3d..baa7c7991 100644 --- a/tests/Japan/EmperorsBirthdayTest.php +++ b/tests/Japan/EmperorsBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/GreeneryDayTest.php b/tests/Japan/GreeneryDayTest.php index d18f96101..cae974530 100644 --- a/tests/Japan/GreeneryDayTest.php +++ b/tests/Japan/GreeneryDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/HealthAndSportsDayTest.php b/tests/Japan/HealthAndSportsDayTest.php index b308d4466..2f26b9dff 100644 --- a/tests/Japan/HealthAndSportsDayTest.php +++ b/tests/Japan/HealthAndSportsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/JapanBaseTestCase.php b/tests/Japan/JapanBaseTestCase.php index 76159e653..0595a3157 100644 --- a/tests/Japan/JapanBaseTestCase.php +++ b/tests/Japan/JapanBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/JapanTest.php b/tests/Japan/JapanTest.php index 6e8fd069b..be47afda3 100644 --- a/tests/Japan/JapanTest.php +++ b/tests/Japan/JapanTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/LabourThanksgivingDayTest.php b/tests/Japan/LabourThanksgivingDayTest.php index 5cb9a374f..a7d6d75d9 100644 --- a/tests/Japan/LabourThanksgivingDayTest.php +++ b/tests/Japan/LabourThanksgivingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/MarineDayTest.php b/tests/Japan/MarineDayTest.php index 44984c59d..acc40d602 100644 --- a/tests/Japan/MarineDayTest.php +++ b/tests/Japan/MarineDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/MountainDayTest.php b/tests/Japan/MountainDayTest.php index 0d087c83f..d93e807f2 100644 --- a/tests/Japan/MountainDayTest.php +++ b/tests/Japan/MountainDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/NationalFoundationDayTest.php b/tests/Japan/NationalFoundationDayTest.php index 9489f274a..8f4fb5e4e 100644 --- a/tests/Japan/NationalFoundationDayTest.php +++ b/tests/Japan/NationalFoundationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/NewYearsDayTest.php b/tests/Japan/NewYearsDayTest.php index 82860cc42..6f33263f4 100644 --- a/tests/Japan/NewYearsDayTest.php +++ b/tests/Japan/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/PublicBridgeDayTest.php b/tests/Japan/PublicBridgeDayTest.php index a702f4810..2c91a0d09 100644 --- a/tests/Japan/PublicBridgeDayTest.php +++ b/tests/Japan/PublicBridgeDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/RespectForTheAgedDayTest.php b/tests/Japan/RespectForTheAgedDayTest.php index 97f3e936a..ad300fb5e 100644 --- a/tests/Japan/RespectForTheAgedDayTest.php +++ b/tests/Japan/RespectForTheAgedDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/ShowaDayTest.php b/tests/Japan/ShowaDayTest.php index 1cc59a96a..69972a6fa 100644 --- a/tests/Japan/ShowaDayTest.php +++ b/tests/Japan/ShowaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Japan/VernalEquinoxDayTest.php b/tests/Japan/VernalEquinoxDayTest.php index dbd18b411..8a5dd640e 100644 --- a/tests/Japan/VernalEquinoxDayTest.php +++ b/tests/Japan/VernalEquinoxDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Japan; diff --git a/tests/Latvia/ChristmasDayTest.php b/tests/Latvia/ChristmasDayTest.php index b865a16fc..749b53a41 100644 --- a/tests/Latvia/ChristmasDayTest.php +++ b/tests/Latvia/ChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/ChristmasEveDayTest.php b/tests/Latvia/ChristmasEveDayTest.php index dc2ae63e4..b33b7a73a 100644 --- a/tests/Latvia/ChristmasEveDayTest.php +++ b/tests/Latvia/ChristmasEveDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index 3200d49c2..5d91bde4e 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index abde9db29..018c2cce8 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index ff733bf14..abe6dbf80 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/InternationalWorkersDayTest.php b/tests/Latvia/InternationalWorkersDayTest.php index 301601b9d..ee97c8879 100644 --- a/tests/Latvia/InternationalWorkersDayTest.php +++ b/tests/Latvia/InternationalWorkersDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/LatviaBaseTestCase.php b/tests/Latvia/LatviaBaseTestCase.php index 01a69e7db..2360502d4 100644 --- a/tests/Latvia/LatviaBaseTestCase.php +++ b/tests/Latvia/LatviaBaseTestCase.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/LatviaTest.php b/tests/Latvia/LatviaTest.php index 9b00f65aa..589f2addf 100644 --- a/tests/Latvia/LatviaTest.php +++ b/tests/Latvia/LatviaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/MidsummerEveDayTest.php b/tests/Latvia/MidsummerEveDayTest.php index 87dbdc3e6..aaefd21ad 100644 --- a/tests/Latvia/MidsummerEveDayTest.php +++ b/tests/Latvia/MidsummerEveDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/NewYearsDayTest.php b/tests/Latvia/NewYearsDayTest.php index f489ccc42..217621b49 100644 --- a/tests/Latvia/NewYearsDayTest.php +++ b/tests/Latvia/NewYearsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/NewYearsEveDayTest.php b/tests/Latvia/NewYearsEveDayTest.php index 5281af706..796043f4e 100644 --- a/tests/Latvia/NewYearsEveDayTest.php +++ b/tests/Latvia/NewYearsEveDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index 5cc12ab75..9b9dcfcd9 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index 6f8f4de7d..d87ef41fb 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/SecondChristmasDayTest.php b/tests/Latvia/SecondChristmasDayTest.php index 8abb9be09..028449dd6 100644 --- a/tests/Latvia/SecondChristmasDayTest.php +++ b/tests/Latvia/SecondChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Latvia/StJohnsDayTest.php b/tests/Latvia/StJohnsDayTest.php index 48138dd2f..3dc6c4498 100644 --- a/tests/Latvia/StJohnsDayTest.php +++ b/tests/Latvia/StJohnsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Latvia; diff --git a/tests/Lithuania/AllSaintsDayTest.php b/tests/Lithuania/AllSaintsDayTest.php index 18b4665b0..62658f953 100644 --- a/tests/Lithuania/AllSaintsDayTest.php +++ b/tests/Lithuania/AllSaintsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/AssumptionOfMaryDayTest.php b/tests/Lithuania/AssumptionOfMaryDayTest.php index 9c5a098f1..3a45c435e 100644 --- a/tests/Lithuania/AssumptionOfMaryDayTest.php +++ b/tests/Lithuania/AssumptionOfMaryDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/ChristmasDayTest.php b/tests/Lithuania/ChristmasDayTest.php index 5a5c1117d..2fc9c6361 100644 --- a/tests/Lithuania/ChristmasDayTest.php +++ b/tests/Lithuania/ChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/ChristmasEveDayTest.php b/tests/Lithuania/ChristmasEveDayTest.php index 3f26a34b1..bea5d72f3 100644 --- a/tests/Lithuania/ChristmasEveDayTest.php +++ b/tests/Lithuania/ChristmasEveDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index 071c17047..733e8b297 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index b7752ca19..99fafbe79 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/InternationalWorkersDayTest.php b/tests/Lithuania/InternationalWorkersDayTest.php index 1dce5af4f..9bd38a0ae 100644 --- a/tests/Lithuania/InternationalWorkersDayTest.php +++ b/tests/Lithuania/InternationalWorkersDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/LithuaniaBaseTestCase.php b/tests/Lithuania/LithuaniaBaseTestCase.php index 9d237a88e..58d233949 100644 --- a/tests/Lithuania/LithuaniaBaseTestCase.php +++ b/tests/Lithuania/LithuaniaBaseTestCase.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/LithuaniaTest.php b/tests/Lithuania/LithuaniaTest.php index 5fe86e21c..a2b83cbe5 100644 --- a/tests/Lithuania/LithuaniaTest.php +++ b/tests/Lithuania/LithuaniaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/NewYearsDayTest.php b/tests/Lithuania/NewYearsDayTest.php index 38f6f643e..bb987132e 100644 --- a/tests/Lithuania/NewYearsDayTest.php +++ b/tests/Lithuania/NewYearsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php index cc7529916..8676bc0c1 100644 --- a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php index 27e3719b4..838a0d030 100644 --- a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/SecondChristmasDayTest.php b/tests/Lithuania/SecondChristmasDayTest.php index 34514fe45..4192f6eed 100644 --- a/tests/Lithuania/SecondChristmasDayTest.php +++ b/tests/Lithuania/SecondChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/StJohnsDayTest.php b/tests/Lithuania/StJohnsDayTest.php index b2a75d837..afebf60f1 100644 --- a/tests/Lithuania/StJohnsDayTest.php +++ b/tests/Lithuania/StJohnsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Lithuania/StatehoodDayTest.php b/tests/Lithuania/StatehoodDayTest.php index 1d6e18002..bb41afc25 100644 --- a/tests/Lithuania/StatehoodDayTest.php +++ b/tests/Lithuania/StatehoodDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Lithuania; diff --git a/tests/Netherlands/AscensionDayTest.php b/tests/Netherlands/AscensionDayTest.php index 215bdab2b..ba1510566 100644 --- a/tests/Netherlands/AscensionDayTest.php +++ b/tests/Netherlands/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/AshWednesdayTest.php b/tests/Netherlands/AshWednesdayTest.php index 3f5b2352a..8b6e12026 100644 --- a/tests/Netherlands/AshWednesdayTest.php +++ b/tests/Netherlands/AshWednesdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/ChristmasDayTest.php b/tests/Netherlands/ChristmasDayTest.php index ac89cf9f3..fdf2ae3e2 100644 --- a/tests/Netherlands/ChristmasDayTest.php +++ b/tests/Netherlands/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/CommemorationDayTest.php b/tests/Netherlands/CommemorationDayTest.php index b0b37e74b..dcc9c70e3 100644 --- a/tests/Netherlands/CommemorationDayTest.php +++ b/tests/Netherlands/CommemorationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/EasterMondayTest.php b/tests/Netherlands/EasterMondayTest.php index 877e5c494..9a839fe30 100644 --- a/tests/Netherlands/EasterMondayTest.php +++ b/tests/Netherlands/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/EasterTest.php b/tests/Netherlands/EasterTest.php index 4c3665078..9c0fc87e9 100644 --- a/tests/Netherlands/EasterTest.php +++ b/tests/Netherlands/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/EpiphanyTest.php b/tests/Netherlands/EpiphanyTest.php index aaee36f51..ea3e41c4e 100644 --- a/tests/Netherlands/EpiphanyTest.php +++ b/tests/Netherlands/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/FathersDayTest.php b/tests/Netherlands/FathersDayTest.php index 62edf0d59..2c8f2d222 100644 --- a/tests/Netherlands/FathersDayTest.php +++ b/tests/Netherlands/FathersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/GoodFridayTest.php b/tests/Netherlands/GoodFridayTest.php index 63c5353b2..bf617f88d 100644 --- a/tests/Netherlands/GoodFridayTest.php +++ b/tests/Netherlands/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/HalloweenTest.php b/tests/Netherlands/HalloweenTest.php index 38aae95d8..c7b6ac2da 100644 --- a/tests/Netherlands/HalloweenTest.php +++ b/tests/Netherlands/HalloweenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/InternationalWorkersDayTest.php b/tests/Netherlands/InternationalWorkersDayTest.php index cd991d66b..b04cd44be 100644 --- a/tests/Netherlands/InternationalWorkersDayTest.php +++ b/tests/Netherlands/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/KingsDayTest.php b/tests/Netherlands/KingsDayTest.php index 94faef76b..a2301ca23 100644 --- a/tests/Netherlands/KingsDayTest.php +++ b/tests/Netherlands/KingsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/LiberationDayTest.php b/tests/Netherlands/LiberationDayTest.php index 1e2afe573..4d2a7a79d 100644 --- a/tests/Netherlands/LiberationDayTest.php +++ b/tests/Netherlands/LiberationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/MothersDayTest.php b/tests/Netherlands/MothersDayTest.php index 8d92a58be..05e8a3f4a 100644 --- a/tests/Netherlands/MothersDayTest.php +++ b/tests/Netherlands/MothersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/NetherlandsBaseTestCase.php b/tests/Netherlands/NetherlandsBaseTestCase.php index 90c783b9b..f9cb4eac2 100644 --- a/tests/Netherlands/NetherlandsBaseTestCase.php +++ b/tests/Netherlands/NetherlandsBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/NetherlandsTest.php b/tests/Netherlands/NetherlandsTest.php index 3e28cbcd0..7129343d5 100644 --- a/tests/Netherlands/NetherlandsTest.php +++ b/tests/Netherlands/NetherlandsTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/NewYearsDayTest.php b/tests/Netherlands/NewYearsDayTest.php index cc3b50560..8041dc63c 100644 --- a/tests/Netherlands/NewYearsDayTest.php +++ b/tests/Netherlands/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/PentecostTest.php b/tests/Netherlands/PentecostTest.php index c2d52215c..8ef7cc6cd 100644 --- a/tests/Netherlands/PentecostTest.php +++ b/tests/Netherlands/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/QueensDayTest.php b/tests/Netherlands/QueensDayTest.php index 06aa56656..8b2e5e83d 100644 --- a/tests/Netherlands/QueensDayTest.php +++ b/tests/Netherlands/QueensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/SummertimeTest.php b/tests/Netherlands/SummertimeTest.php index ef7e28539..6f4d62366 100644 --- a/tests/Netherlands/SummertimeTest.php +++ b/tests/Netherlands/SummertimeTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/ValentinesDayTest.php b/tests/Netherlands/ValentinesDayTest.php index 5f08b3af9..00fc3d6f8 100644 --- a/tests/Netherlands/ValentinesDayTest.php +++ b/tests/Netherlands/ValentinesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/WintertimeTest.php b/tests/Netherlands/WintertimeTest.php index 3e5384f65..ab11ae630 100644 --- a/tests/Netherlands/WintertimeTest.php +++ b/tests/Netherlands/WintertimeTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/WorldAnimalDayTest.php b/tests/Netherlands/WorldAnimalDayTest.php index a7fb3bd56..6f62bf111 100644 --- a/tests/Netherlands/WorldAnimalDayTest.php +++ b/tests/Netherlands/WorldAnimalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/carnivalDayTest.php b/tests/Netherlands/carnivalDayTest.php index 9efbc93cf..21b9276de 100644 --- a/tests/Netherlands/carnivalDayTest.php +++ b/tests/Netherlands/carnivalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/pentecostMondayTest.php b/tests/Netherlands/pentecostMondayTest.php index 686354ce8..540129055 100644 --- a/tests/Netherlands/pentecostMondayTest.php +++ b/tests/Netherlands/pentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/princesDayTest.php b/tests/Netherlands/princesDayTest.php index 53091520b..7b5dc27bb 100644 --- a/tests/Netherlands/princesDayTest.php +++ b/tests/Netherlands/princesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/secondCarnivalDay.php b/tests/Netherlands/secondCarnivalDay.php index 5f8657893..6073de0e8 100644 --- a/tests/Netherlands/secondCarnivalDay.php +++ b/tests/Netherlands/secondCarnivalDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/secondChristmasdayTest.php b/tests/Netherlands/secondChristmasdayTest.php index 42789679c..c39539add 100644 --- a/tests/Netherlands/secondChristmasdayTest.php +++ b/tests/Netherlands/secondChristmasdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/stMartinsDayTest.php b/tests/Netherlands/stMartinsDayTest.php index 5dce8a12d..592afea54 100644 --- a/tests/Netherlands/stMartinsDayTest.php +++ b/tests/Netherlands/stMartinsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/stNicholasDayTest.php b/tests/Netherlands/stNicholasDayTest.php index 95a1b27cc..19a7c92be 100644 --- a/tests/Netherlands/stNicholasDayTest.php +++ b/tests/Netherlands/stNicholasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/Netherlands/thirdCarnivalDay.php b/tests/Netherlands/thirdCarnivalDay.php index 2686a6146..d1ec8884b 100644 --- a/tests/Netherlands/thirdCarnivalDay.php +++ b/tests/Netherlands/thirdCarnivalDay.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Netherlands; diff --git a/tests/NewZealand/AnzacDayTest.php b/tests/NewZealand/AnzacDayTest.php index 7dd837933..1bc6ef4f5 100644 --- a/tests/NewZealand/AnzacDayTest.php +++ b/tests/NewZealand/AnzacDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index 4d18a04be..4027709ce 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index d59f5eb6d..d2e12293a 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/DayAfterNewYearsDayTest.php b/tests/NewZealand/DayAfterNewYearsDayTest.php index 2d953b174..043b60db0 100644 --- a/tests/NewZealand/DayAfterNewYearsDayTest.php +++ b/tests/NewZealand/DayAfterNewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/EasterMondayTest.php b/tests/NewZealand/EasterMondayTest.php index 5979a21b8..1cfb1526f 100644 --- a/tests/NewZealand/EasterMondayTest.php +++ b/tests/NewZealand/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/GoodFridayTest.php b/tests/NewZealand/GoodFridayTest.php index dcfa0f8a7..2bb57559e 100644 --- a/tests/NewZealand/GoodFridayTest.php +++ b/tests/NewZealand/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/LabourDayTest.php b/tests/NewZealand/LabourDayTest.php index 318733e4b..0e4bc1951 100644 --- a/tests/NewZealand/LabourDayTest.php +++ b/tests/NewZealand/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/NewYearsDayTest.php b/tests/NewZealand/NewYearsDayTest.php index d24b1ce46..c7e1f1525 100644 --- a/tests/NewZealand/NewYearsDayTest.php +++ b/tests/NewZealand/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/NewZealandBaseTestCase.php b/tests/NewZealand/NewZealandBaseTestCase.php index 4dacaa385..113891277 100644 --- a/tests/NewZealand/NewZealandBaseTestCase.php +++ b/tests/NewZealand/NewZealandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/NewZealandTest.php b/tests/NewZealand/NewZealandTest.php index c0138aa48..9cc6e8e72 100644 --- a/tests/NewZealand/NewZealandTest.php +++ b/tests/NewZealand/NewZealandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/QueensBirthdayTest.php b/tests/NewZealand/QueensBirthdayTest.php index d7d113c5f..185ca4a35 100644 --- a/tests/NewZealand/QueensBirthdayTest.php +++ b/tests/NewZealand/QueensBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/NewZealand/WaitangiDayTest.php b/tests/NewZealand/WaitangiDayTest.php index 0888a7f09..4b2fd1a7c 100644 --- a/tests/NewZealand/WaitangiDayTest.php +++ b/tests/NewZealand/WaitangiDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\NewZealand; diff --git a/tests/Norway/AscensionDayTest.php b/tests/Norway/AscensionDayTest.php index 2ca024b4a..88ad979c5 100644 --- a/tests/Norway/AscensionDayTest.php +++ b/tests/Norway/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/ChristmasDayTest.php b/tests/Norway/ChristmasDayTest.php index f618d8834..0c2eb90ec 100644 --- a/tests/Norway/ChristmasDayTest.php +++ b/tests/Norway/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/ConstitutionDayTest.php b/tests/Norway/ConstitutionDayTest.php index 3e192cd0a..89fa43eeb 100644 --- a/tests/Norway/ConstitutionDayTest.php +++ b/tests/Norway/ConstitutionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/EasterMondayTest.php b/tests/Norway/EasterMondayTest.php index 014bcdd01..9ff1504f1 100644 --- a/tests/Norway/EasterMondayTest.php +++ b/tests/Norway/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/EasterTest.php b/tests/Norway/EasterTest.php index 82306a543..567277d9d 100644 --- a/tests/Norway/EasterTest.php +++ b/tests/Norway/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/GoodFridayTest.php b/tests/Norway/GoodFridayTest.php index d7fe5f04b..0685b42bf 100644 --- a/tests/Norway/GoodFridayTest.php +++ b/tests/Norway/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/InternationalWorkersDayTest.php b/tests/Norway/InternationalWorkersDayTest.php index a5d6ff7bf..0ae3a0092 100644 --- a/tests/Norway/InternationalWorkersDayTest.php +++ b/tests/Norway/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/MaundyThursdayTest.php b/tests/Norway/MaundyThursdayTest.php index 9176f2a26..bd76f7561 100644 --- a/tests/Norway/MaundyThursdayTest.php +++ b/tests/Norway/MaundyThursdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/NewYearsDayTest.php b/tests/Norway/NewYearsDayTest.php index f92e11bf6..94830ef1d 100644 --- a/tests/Norway/NewYearsDayTest.php +++ b/tests/Norway/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/NorwayBaseTestCase.php b/tests/Norway/NorwayBaseTestCase.php index cd6487558..c5875bd93 100644 --- a/tests/Norway/NorwayBaseTestCase.php +++ b/tests/Norway/NorwayBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/NorwayTest.php b/tests/Norway/NorwayTest.php index dfa7f6a6d..548bca15b 100644 --- a/tests/Norway/NorwayTest.php +++ b/tests/Norway/NorwayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/PentecostMondayTest.php b/tests/Norway/PentecostMondayTest.php index dc6d29be0..c260cfd73 100644 --- a/tests/Norway/PentecostMondayTest.php +++ b/tests/Norway/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/PentecostTest.php b/tests/Norway/PentecostTest.php index 945576eb6..c36b3f58d 100644 --- a/tests/Norway/PentecostTest.php +++ b/tests/Norway/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Norway/SecondChristmasDayTest.php b/tests/Norway/SecondChristmasDayTest.php index 98d3e09cf..a66776aac 100644 --- a/tests/Norway/SecondChristmasDayTest.php +++ b/tests/Norway/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Norway; diff --git a/tests/Poland/AllSaintsDayTest.php b/tests/Poland/AllSaintsDayTest.php index 219faedb7..07f97cb34 100644 --- a/tests/Poland/AllSaintsDayTest.php +++ b/tests/Poland/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/AssumptionOfMaryTest.php b/tests/Poland/AssumptionOfMaryTest.php index 3dbe36218..b133bf720 100644 --- a/tests/Poland/AssumptionOfMaryTest.php +++ b/tests/Poland/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/ChristmasTest.php b/tests/Poland/ChristmasTest.php index 8feca9493..93342e873 100644 --- a/tests/Poland/ChristmasTest.php +++ b/tests/Poland/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/ConstitutionDayTest.php b/tests/Poland/ConstitutionDayTest.php index c6b8bf701..ea7dd544d 100644 --- a/tests/Poland/ConstitutionDayTest.php +++ b/tests/Poland/ConstitutionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/CorpusChristiTest.php b/tests/Poland/CorpusChristiTest.php index 6f69b1422..707bb71da 100644 --- a/tests/Poland/CorpusChristiTest.php +++ b/tests/Poland/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/EasterMondayTest.php b/tests/Poland/EasterMondayTest.php index c0e980fb0..5f08cce02 100644 --- a/tests/Poland/EasterMondayTest.php +++ b/tests/Poland/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/EasterTest.php b/tests/Poland/EasterTest.php index f6589a27d..3bd6dc89b 100644 --- a/tests/Poland/EasterTest.php +++ b/tests/Poland/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/EpiphanyTest.php b/tests/Poland/EpiphanyTest.php index 0b926b0a9..861c9a13e 100644 --- a/tests/Poland/EpiphanyTest.php +++ b/tests/Poland/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/IndependenceDayTest.php b/tests/Poland/IndependenceDayTest.php index 47e2e4ab7..624515cf4 100644 --- a/tests/Poland/IndependenceDayTest.php +++ b/tests/Poland/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/InternationalWorkersDayTest.php b/tests/Poland/InternationalWorkersDayTest.php index baa3af949..ed9e226bc 100644 --- a/tests/Poland/InternationalWorkersDayTest.php +++ b/tests/Poland/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/NewYearsDayTest.php b/tests/Poland/NewYearsDayTest.php index b9fa09f68..b5c68411d 100644 --- a/tests/Poland/NewYearsDayTest.php +++ b/tests/Poland/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/PentecostTest.php b/tests/Poland/PentecostTest.php index ce5c82f40..687d4e85f 100644 --- a/tests/Poland/PentecostTest.php +++ b/tests/Poland/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/PolandBaseTestCase.php b/tests/Poland/PolandBaseTestCase.php index 3e6afe582..8583e7e2f 100644 --- a/tests/Poland/PolandBaseTestCase.php +++ b/tests/Poland/PolandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/PolandTest.php b/tests/Poland/PolandTest.php index d71b6232d..3bc393f5d 100644 --- a/tests/Poland/PolandTest.php +++ b/tests/Poland/PolandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Poland/SecondChristmasDayTest.php b/tests/Poland/SecondChristmasDayTest.php index b6780eacb..8089c87b4 100644 --- a/tests/Poland/SecondChristmasDayTest.php +++ b/tests/Poland/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Poland; diff --git a/tests/Portugal/AllSaintsDayTest.php b/tests/Portugal/AllSaintsDayTest.php index f91a8966e..853110f23 100644 --- a/tests/Portugal/AllSaintsDayTest.php +++ b/tests/Portugal/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/AssumptionOfMaryTest.php b/tests/Portugal/AssumptionOfMaryTest.php index 01bebff4a..ea21ad5e1 100644 --- a/tests/Portugal/AssumptionOfMaryTest.php +++ b/tests/Portugal/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/CarnationRevolutionDayTest.php b/tests/Portugal/CarnationRevolutionDayTest.php index df23132a5..b562dd1b0 100644 --- a/tests/Portugal/CarnationRevolutionDayTest.php +++ b/tests/Portugal/CarnationRevolutionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/ChristmasTest.php b/tests/Portugal/ChristmasTest.php index a328556b2..3b339d7b9 100644 --- a/tests/Portugal/ChristmasTest.php +++ b/tests/Portugal/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/CorpusChristiTest.php b/tests/Portugal/CorpusChristiTest.php index afd1d6712..c75d8f8b4 100644 --- a/tests/Portugal/CorpusChristiTest.php +++ b/tests/Portugal/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/EasterTest.php b/tests/Portugal/EasterTest.php index ca9abc974..1d4224d03 100644 --- a/tests/Portugal/EasterTest.php +++ b/tests/Portugal/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/GoodFridayTest.php b/tests/Portugal/GoodFridayTest.php index a4e5b12e2..ece1e24eb 100644 --- a/tests/Portugal/GoodFridayTest.php +++ b/tests/Portugal/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/ImmaculateConceptionTest.php b/tests/Portugal/ImmaculateConceptionTest.php index 82dfe061e..5e308f4ef 100644 --- a/tests/Portugal/ImmaculateConceptionTest.php +++ b/tests/Portugal/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/InternationalWorkersDayTest.php b/tests/Portugal/InternationalWorkersDayTest.php index 5bb1bb4e7..2d13e636f 100644 --- a/tests/Portugal/InternationalWorkersDayTest.php +++ b/tests/Portugal/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/NewYearsDayTest.php b/tests/Portugal/NewYearsDayTest.php index a34f6964c..e73f00799 100644 --- a/tests/Portugal/NewYearsDayTest.php +++ b/tests/Portugal/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/PortugalBaseTestCase.php b/tests/Portugal/PortugalBaseTestCase.php index 679d7a548..b02cd78b9 100644 --- a/tests/Portugal/PortugalBaseTestCase.php +++ b/tests/Portugal/PortugalBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/PortugalDayTest.php b/tests/Portugal/PortugalDayTest.php index b742f913d..556a41ca9 100644 --- a/tests/Portugal/PortugalDayTest.php +++ b/tests/Portugal/PortugalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index 28af5f266..da0f00108 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/PortugueseRepublicDayTest.php b/tests/Portugal/PortugueseRepublicDayTest.php index b306f2494..55676eb45 100644 --- a/tests/Portugal/PortugueseRepublicDayTest.php +++ b/tests/Portugal/PortugueseRepublicDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Portugal/RestorationOfIndependenceTest.php b/tests/Portugal/RestorationOfIndependenceTest.php index d03075ab2..36e894db7 100644 --- a/tests/Portugal/RestorationOfIndependenceTest.php +++ b/tests/Portugal/RestorationOfIndependenceTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Portugal; diff --git a/tests/Romania/AssumptionOfMaryTest.php b/tests/Romania/AssumptionOfMaryTest.php index b1a827e23..47ecc1a1e 100644 --- a/tests/Romania/AssumptionOfMaryTest.php +++ b/tests/Romania/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/ChildrensDayTest.php b/tests/Romania/ChildrensDayTest.php index e3fc26f40..8328eae58 100644 --- a/tests/Romania/ChildrensDayTest.php +++ b/tests/Romania/ChildrensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/ChristmasDayTest.php b/tests/Romania/ChristmasDayTest.php index dab859f6d..8fdf6f482 100644 --- a/tests/Romania/ChristmasDayTest.php +++ b/tests/Romania/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/ConstantinBrancusiDayTest.php b/tests/Romania/ConstantinBrancusiDayTest.php index 2f0b5ce4d..401659445 100644 --- a/tests/Romania/ConstantinBrancusiDayTest.php +++ b/tests/Romania/ConstantinBrancusiDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/DayAfterNewYearsDayTest.php b/tests/Romania/DayAfterNewYearsDayTest.php index d5d541bcd..7e7872475 100644 --- a/tests/Romania/DayAfterNewYearsDayTest.php +++ b/tests/Romania/DayAfterNewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/EasterMondayTest.php b/tests/Romania/EasterMondayTest.php index 3a165bf62..3359946f5 100755 --- a/tests/Romania/EasterMondayTest.php +++ b/tests/Romania/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/EasterTest.php b/tests/Romania/EasterTest.php index 3c03f9db0..4b87bf13f 100755 --- a/tests/Romania/EasterTest.php +++ b/tests/Romania/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/InternationalWorkersDayTest.php b/tests/Romania/InternationalWorkersDayTest.php index 0059f0199..b26fd718b 100755 --- a/tests/Romania/InternationalWorkersDayTest.php +++ b/tests/Romania/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/NationalDayTest.php b/tests/Romania/NationalDayTest.php index 31d44dfa4..ea4350723 100644 --- a/tests/Romania/NationalDayTest.php +++ b/tests/Romania/NationalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/NewYearsDayTest.php b/tests/Romania/NewYearsDayTest.php index d3533b142..f6347771d 100644 --- a/tests/Romania/NewYearsDayTest.php +++ b/tests/Romania/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/PentecostMondayTest.php b/tests/Romania/PentecostMondayTest.php index 38d0b6560..a89090329 100644 --- a/tests/Romania/PentecostMondayTest.php +++ b/tests/Romania/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/PentecostTest.php b/tests/Romania/PentecostTest.php index 0676e4a81..0be003bdc 100644 --- a/tests/Romania/PentecostTest.php +++ b/tests/Romania/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/RomaniaBaseTestCase.php b/tests/Romania/RomaniaBaseTestCase.php index 563987fed..0d1bc4b30 100755 --- a/tests/Romania/RomaniaBaseTestCase.php +++ b/tests/Romania/RomaniaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/RomaniaTest.php b/tests/Romania/RomaniaTest.php index 2785715e6..9725eb61b 100755 --- a/tests/Romania/RomaniaTest.php +++ b/tests/Romania/RomaniaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/SecondChristmasDayTest.php b/tests/Romania/SecondChristmasDayTest.php index ad1846bdf..d36b09072 100644 --- a/tests/Romania/SecondChristmasDayTest.php +++ b/tests/Romania/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/StAndrewDayTest.php b/tests/Romania/StAndrewDayTest.php index 2cdec82df..20ef72bbc 100644 --- a/tests/Romania/StAndrewDayTest.php +++ b/tests/Romania/StAndrewDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Romania/UnitedPrincipalitiesDayTest.php b/tests/Romania/UnitedPrincipalitiesDayTest.php index 480e24983..7798b19e4 100644 --- a/tests/Romania/UnitedPrincipalitiesDayTest.php +++ b/tests/Romania/UnitedPrincipalitiesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Romania; diff --git a/tests/Russia/DefenceOfTheFatherlandDayTest.php b/tests/Russia/DefenceOfTheFatherlandDayTest.php index 31c4768bf..f340e5d5e 100644 --- a/tests/Russia/DefenceOfTheFatherlandDayTest.php +++ b/tests/Russia/DefenceOfTheFatherlandDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/InternationalWomensDayTest.php b/tests/Russia/InternationalWomensDayTest.php index a26ede11c..73c2a3cce 100644 --- a/tests/Russia/InternationalWomensDayTest.php +++ b/tests/Russia/InternationalWomensDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearHolidaysDay2Test.php b/tests/Russia/NewYearHolidaysDay2Test.php index e2fcd7380..8ca50acd3 100644 --- a/tests/Russia/NewYearHolidaysDay2Test.php +++ b/tests/Russia/NewYearHolidaysDay2Test.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearHolidaysDay3Test.php b/tests/Russia/NewYearHolidaysDay3Test.php index 15b414289..8d5a43522 100644 --- a/tests/Russia/NewYearHolidaysDay3Test.php +++ b/tests/Russia/NewYearHolidaysDay3Test.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearHolidaysDay4Test.php b/tests/Russia/NewYearHolidaysDay4Test.php index b6443b7eb..cd26c317f 100644 --- a/tests/Russia/NewYearHolidaysDay4Test.php +++ b/tests/Russia/NewYearHolidaysDay4Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearHolidaysDay5Test.php b/tests/Russia/NewYearHolidaysDay5Test.php index 0a4730126..5d0b49a06 100644 --- a/tests/Russia/NewYearHolidaysDay5Test.php +++ b/tests/Russia/NewYearHolidaysDay5Test.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearHolidaysDay6Test.php b/tests/Russia/NewYearHolidaysDay6Test.php index 99b65e64b..dd7874e46 100644 --- a/tests/Russia/NewYearHolidaysDay6Test.php +++ b/tests/Russia/NewYearHolidaysDay6Test.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearHolidaysDay8Test.php b/tests/Russia/NewYearHolidaysDay8Test.php index 33ac75a98..48b5df0fb 100644 --- a/tests/Russia/NewYearHolidaysDay8Test.php +++ b/tests/Russia/NewYearHolidaysDay8Test.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/NewYearsDayTest.php b/tests/Russia/NewYearsDayTest.php index 3472502e9..4fc630595 100644 --- a/tests/Russia/NewYearsDayTest.php +++ b/tests/Russia/NewYearsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/OrthodoxChristmasDayTest.php b/tests/Russia/OrthodoxChristmasDayTest.php index d826b1853..edf902209 100644 --- a/tests/Russia/OrthodoxChristmasDayTest.php +++ b/tests/Russia/OrthodoxChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/RussiaBaseTestCase.php b/tests/Russia/RussiaBaseTestCase.php index e61c57d85..d5c12af55 100644 --- a/tests/Russia/RussiaBaseTestCase.php +++ b/tests/Russia/RussiaBaseTestCase.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/RussiaDayTest.php b/tests/Russia/RussiaDayTest.php index 6e6176961..8189e7192 100644 --- a/tests/Russia/RussiaDayTest.php +++ b/tests/Russia/RussiaDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/RussiaTest.php b/tests/Russia/RussiaTest.php index 7bd3b5271..fe4dec904 100644 --- a/tests/Russia/RussiaTest.php +++ b/tests/Russia/RussiaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/SpringAndLabourDayTest.php b/tests/Russia/SpringAndLabourDayTest.php index 0285f3409..acd25f37b 100644 --- a/tests/Russia/SpringAndLabourDayTest.php +++ b/tests/Russia/SpringAndLabourDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/UnityDayTest.php b/tests/Russia/UnityDayTest.php index 2fa9df553..5a42cce27 100644 --- a/tests/Russia/UnityDayTest.php +++ b/tests/Russia/UnityDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Russia/VictoryDayTest.php b/tests/Russia/VictoryDayTest.php index 3c7a14127..eddd40abf 100644 --- a/tests/Russia/VictoryDayTest.php +++ b/tests/Russia/VictoryDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Russia; diff --git a/tests/Slovakia/AllSaintsDayTest.php b/tests/Slovakia/AllSaintsDayTest.php index 39c1df97b..4509095e4 100644 --- a/tests/Slovakia/AllSaintsDayTest.php +++ b/tests/Slovakia/AllSaintsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/ChristmasDayTest.php b/tests/Slovakia/ChristmasDayTest.php index 1725e5165..4c6a2c5a5 100644 --- a/tests/Slovakia/ChristmasDayTest.php +++ b/tests/Slovakia/ChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/ChristmasEveTest.php b/tests/Slovakia/ChristmasEveTest.php index 02ea8c538..3cd8e9bd0 100644 --- a/tests/Slovakia/ChristmasEveTest.php +++ b/tests/Slovakia/ChristmasEveTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/EasterMondayTest.php b/tests/Slovakia/EasterMondayTest.php index 608940fc2..56b885c3f 100644 --- a/tests/Slovakia/EasterMondayTest.php +++ b/tests/Slovakia/EasterMondayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/EpiphanyTest.php b/tests/Slovakia/EpiphanyTest.php index 1eccafca7..8bcd8cfe8 100644 --- a/tests/Slovakia/EpiphanyTest.php +++ b/tests/Slovakia/EpiphanyTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/GoodFridayTest.php b/tests/Slovakia/GoodFridayTest.php index a781058e5..3c7604a93 100644 --- a/tests/Slovakia/GoodFridayTest.php +++ b/tests/Slovakia/GoodFridayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/InternationalWorkersDayTest.php b/tests/Slovakia/InternationalWorkersDayTest.php index 3082c8f17..04e77087d 100644 --- a/tests/Slovakia/InternationalWorkersDayTest.php +++ b/tests/Slovakia/InternationalWorkersDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/NewYearsDayTest.php b/tests/Slovakia/NewYearsDayTest.php index 31d165f7f..ddfb6c53e 100644 --- a/tests/Slovakia/NewYearsDayTest.php +++ b/tests/Slovakia/NewYearsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/OurLadyOfSorrowsDayTest.php b/tests/Slovakia/OurLadyOfSorrowsDayTest.php index 5a1525160..94f93e55f 100644 --- a/tests/Slovakia/OurLadyOfSorrowsDayTest.php +++ b/tests/Slovakia/OurLadyOfSorrowsDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php index 0c56f1287..931fa67e0 100644 --- a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/SecondChristmasDayTest.php b/tests/Slovakia/SecondChristmasDayTest.php index 7c144288e..2da761c76 100644 --- a/tests/Slovakia/SecondChristmasDayTest.php +++ b/tests/Slovakia/SecondChristmasDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/SlovakConstitutionDayTest.php b/tests/Slovakia/SlovakConstitutionDayTest.php index 73417d230..c83844ce6 100644 --- a/tests/Slovakia/SlovakConstitutionDayTest.php +++ b/tests/Slovakia/SlovakConstitutionDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/SlovakNationalUprisingDayTest.php b/tests/Slovakia/SlovakNationalUprisingDayTest.php index e8886deca..9813888c3 100644 --- a/tests/Slovakia/SlovakNationalUprisingDayTest.php +++ b/tests/Slovakia/SlovakNationalUprisingDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/SlovakiaBaseTestCase.php b/tests/Slovakia/SlovakiaBaseTestCase.php index fac6717f7..3c312dd7e 100644 --- a/tests/Slovakia/SlovakiaBaseTestCase.php +++ b/tests/Slovakia/SlovakiaBaseTestCase.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/SlovakiaTest.php b/tests/Slovakia/SlovakiaTest.php index 9e9c6e899..8516daf8b 100644 --- a/tests/Slovakia/SlovakiaTest.php +++ b/tests/Slovakia/SlovakiaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php index 78ea81a2f..2ba1a36b0 100644 --- a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/Slovakia/VictoryInEuropeDayTest.php b/tests/Slovakia/VictoryInEuropeDayTest.php index 80be21c34..fe07a1374 100644 --- a/tests/Slovakia/VictoryInEuropeDayTest.php +++ b/tests/Slovakia/VictoryInEuropeDayTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index d7a4e39a5..f02b523d6 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index 39c511faf..396a957f8 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index 4fdf082c4..c11c19f39 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index 561483b38..5f1803a23 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index 23bdfd248..dea904148 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index d8f068201..95880fa3d 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/MunicipalElections2016DayTest.php b/tests/SouthAfrica/MunicipalElections2016DayTest.php index 0df1cf36d..467aa1c92 100644 --- a/tests/SouthAfrica/MunicipalElections2016DayTest.php +++ b/tests/SouthAfrica/MunicipalElections2016DayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index 6eb8af145..d1c4dffe1 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index f0abd3571..94559af38 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index 513059de2..f5e435253 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index 383184c52..2686a020f 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/SouthAfricaBaseTestCase.php b/tests/SouthAfrica/SouthAfricaBaseTestCase.php index bd107cfa8..a941edaa7 100644 --- a/tests/SouthAfrica/SouthAfricaBaseTestCase.php +++ b/tests/SouthAfrica/SouthAfricaBaseTestCase.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; @@ -20,7 +20,7 @@ * Base class for test cases of the South Africa holiday provider. * * @package Yasumi\tests\SouthAfrica - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ abstract class SouthAfricaBaseTestCase extends TestCase { diff --git a/tests/SouthAfrica/SouthAfricaTest.php b/tests/SouthAfrica/SouthAfricaTest.php index 2f3f9f573..a42547df9 100644 --- a/tests/SouthAfrica/SouthAfricaTest.php +++ b/tests/SouthAfrica/SouthAfricaTest.php @@ -8,7 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; @@ -19,7 +19,7 @@ * Class for testing holidays in South Africa. * * @package Yasumi\tests\SouthAfrica - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ class SouthAfricaTest extends SouthAfricaBaseTestCase { diff --git a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php index 9f2240967..56e68db03 100644 --- a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php +++ b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index ef5fff342..a225aac2f 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index 9c6efb194..381cf8ca0 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\SouthAfrica; diff --git a/tests/Spain/AllSaintsDayTest.php b/tests/Spain/AllSaintsDayTest.php index 4d3b94aed..76a7efe9d 100644 --- a/tests/Spain/AllSaintsDayTest.php +++ b/tests/Spain/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/Andalusia/AndalusiaBaseTestCase.php b/tests/Spain/Andalusia/AndalusiaBaseTestCase.php index 6db59a55a..cae633285 100644 --- a/tests/Spain/Andalusia/AndalusiaBaseTestCase.php +++ b/tests/Spain/Andalusia/AndalusiaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Andalusia; diff --git a/tests/Spain/Andalusia/AndalusiaDayTest.php b/tests/Spain/Andalusia/AndalusiaDayTest.php index 1e2df2fa7..c4c222c37 100644 --- a/tests/Spain/Andalusia/AndalusiaDayTest.php +++ b/tests/Spain/Andalusia/AndalusiaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Andalusia; diff --git a/tests/Spain/Andalusia/AndalusiaTest.php b/tests/Spain/Andalusia/AndalusiaTest.php index 2a4ffc67f..bc887dea4 100644 --- a/tests/Spain/Andalusia/AndalusiaTest.php +++ b/tests/Spain/Andalusia/AndalusiaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Andalusia; diff --git a/tests/Spain/Aragon/AragonBaseTestCase.php b/tests/Spain/Aragon/AragonBaseTestCase.php index 93c6141f0..32518283a 100644 --- a/tests/Spain/Aragon/AragonBaseTestCase.php +++ b/tests/Spain/Aragon/AragonBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Aragon; diff --git a/tests/Spain/Aragon/AragonTest.php b/tests/Spain/Aragon/AragonTest.php index 129fbcb0b..c26307d8e 100644 --- a/tests/Spain/Aragon/AragonTest.php +++ b/tests/Spain/Aragon/AragonTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Aragon; diff --git a/tests/Spain/Aragon/StGeorgesDayTest.php b/tests/Spain/Aragon/StGeorgesDayTest.php index 2b03453a2..8eb9447d0 100644 --- a/tests/Spain/Aragon/StGeorgesDayTest.php +++ b/tests/Spain/Aragon/StGeorgesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Aragon; diff --git a/tests/Spain/AssumptionOfMaryTest.php b/tests/Spain/AssumptionOfMaryTest.php index 04a15c441..be87f9ee7 100644 --- a/tests/Spain/AssumptionOfMaryTest.php +++ b/tests/Spain/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/Asturias/AsturiasBaseTestCase.php b/tests/Spain/Asturias/AsturiasBaseTestCase.php index 3efa83764..dc3da4ee9 100644 --- a/tests/Spain/Asturias/AsturiasBaseTestCase.php +++ b/tests/Spain/Asturias/AsturiasBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Asturias; diff --git a/tests/Spain/Asturias/AsturiasDayTest.php b/tests/Spain/Asturias/AsturiasDayTest.php index 46b3cc9be..3a206e1ef 100644 --- a/tests/Spain/Asturias/AsturiasDayTest.php +++ b/tests/Spain/Asturias/AsturiasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Asturias; diff --git a/tests/Spain/Asturias/AsturiasTest.php b/tests/Spain/Asturias/AsturiasTest.php index 0bbf656e8..fcf33828e 100644 --- a/tests/Spain/Asturias/AsturiasTest.php +++ b/tests/Spain/Asturias/AsturiasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Asturias; diff --git a/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php b/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php index 9a081b247..0911519bf 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\BalearicIslands; diff --git a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php index 164112e08..f019d69d3 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\BalearicIslands; diff --git a/tests/Spain/BalearicIslands/BalearicIslandsTest.php b/tests/Spain/BalearicIslands/BalearicIslandsTest.php index 77cf81e68..9a2b4e8ea 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\BalearicIslands; diff --git a/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php b/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php index 210ae13ed..82485e89b 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php +++ b/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\BasqueCountry; diff --git a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php index 21ead89eb..188a5c6ed 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\BasqueCountry; diff --git a/tests/Spain/BasqueCountry/BasqueCountryTest.php b/tests/Spain/BasqueCountry/BasqueCountryTest.php index d8658cffd..f45a01d28 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\BasqueCountry; diff --git a/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php b/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php index 6ca0b70ec..8785590ea 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CanaryIslands; diff --git a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php index 1664ab0c8..3173aac14 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CanaryIslands; diff --git a/tests/Spain/CanaryIslands/CanaryIslandsTest.php b/tests/Spain/CanaryIslands/CanaryIslandsTest.php index 5059ac385..531ed56bd 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CanaryIslands; diff --git a/tests/Spain/Cantabria/CantabriaBaseTestCase.php b/tests/Spain/Cantabria/CantabriaBaseTestCase.php index 82f1a6ad9..477513279 100644 --- a/tests/Spain/Cantabria/CantabriaBaseTestCase.php +++ b/tests/Spain/Cantabria/CantabriaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Cantabria; diff --git a/tests/Spain/Cantabria/CantabriaDayTest.php b/tests/Spain/Cantabria/CantabriaDayTest.php index 814081eab..5fbc18d25 100644 --- a/tests/Spain/Cantabria/CantabriaDayTest.php +++ b/tests/Spain/Cantabria/CantabriaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Cantabria; diff --git a/tests/Spain/Cantabria/CantabriaTest.php b/tests/Spain/Cantabria/CantabriaTest.php index fde726452..0de10666b 100644 --- a/tests/Spain/Cantabria/CantabriaTest.php +++ b/tests/Spain/Cantabria/CantabriaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Cantabria; diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php b/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php index 2196ec86f..c15aaedd0 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CastileAndLeon; diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php index af41a9588..440398ea3 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CastileAndLeon; diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php index a37792676..13a24f508 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CastileAndLeon; diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php index 3f1d7cc49..65103c83d 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CastillaLaMancha; diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php index dfdce201c..df9e85db3 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CastillaLaMancha; diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php index b3daf00b1..e497920e2 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CastillaLaMancha; diff --git a/tests/Spain/Catalonia/CataloniaBaseTestCase.php b/tests/Spain/Catalonia/CataloniaBaseTestCase.php index a62114936..b2c52ec60 100644 --- a/tests/Spain/Catalonia/CataloniaBaseTestCase.php +++ b/tests/Spain/Catalonia/CataloniaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Catalonia; diff --git a/tests/Spain/Catalonia/CataloniaTest.php b/tests/Spain/Catalonia/CataloniaTest.php index 260ad807b..9cd3fd43c 100644 --- a/tests/Spain/Catalonia/CataloniaTest.php +++ b/tests/Spain/Catalonia/CataloniaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Catalonia; diff --git a/tests/Spain/Catalonia/nationalCataloniaDayTest.php b/tests/Spain/Catalonia/nationalCataloniaDayTest.php index 3d4ab76f1..1322d1ffb 100644 --- a/tests/Spain/Catalonia/nationalCataloniaDayTest.php +++ b/tests/Spain/Catalonia/nationalCataloniaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Catalonia; diff --git a/tests/Spain/Catalonia/stJohnsDayTest.php b/tests/Spain/Catalonia/stJohnsDayTest.php index cb9bd470e..83d12e918 100644 --- a/tests/Spain/Catalonia/stJohnsDayTest.php +++ b/tests/Spain/Catalonia/stJohnsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Catalonia; diff --git a/tests/Spain/Ceuta/CeutaBaseTestCase.php b/tests/Spain/Ceuta/CeutaBaseTestCase.php index 248b6f277..58566f068 100644 --- a/tests/Spain/Ceuta/CeutaBaseTestCase.php +++ b/tests/Spain/Ceuta/CeutaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Ceuta; diff --git a/tests/Spain/Ceuta/CeutaTest.php b/tests/Spain/Ceuta/CeutaTest.php index 7be0d79c5..b01746cd2 100644 --- a/tests/Spain/Ceuta/CeutaTest.php +++ b/tests/Spain/Ceuta/CeutaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Ceuta; diff --git a/tests/Spain/Ceuta/ceutaDayTest.php b/tests/Spain/Ceuta/ceutaDayTest.php index 3e2bf9f10..d4780b7ba 100644 --- a/tests/Spain/Ceuta/ceutaDayTest.php +++ b/tests/Spain/Ceuta/ceutaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Ceuta; diff --git a/tests/Spain/ChristmasTest.php b/tests/Spain/ChristmasTest.php index 071644e02..911d913a3 100644 --- a/tests/Spain/ChristmasTest.php +++ b/tests/Spain/ChristmasTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php b/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php index 26fa2a955..3ca76563a 100644 --- a/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php +++ b/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CommunityOfMadrid; diff --git a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php index c67c77a77..1b9b5b84b 100644 --- a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php +++ b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CommunityOfMadrid; diff --git a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php index 4fe5af2d9..000e9c50b 100644 --- a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php +++ b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\CommunityOfMadrid; diff --git a/tests/Spain/ConstitutionDayTest.php b/tests/Spain/ConstitutionDayTest.php index e8e63ed9e..cd8555fd7 100644 --- a/tests/Spain/ConstitutionDayTest.php +++ b/tests/Spain/ConstitutionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/EasterMondayTest.php b/tests/Spain/EasterMondayTest.php index 0193e7e1f..ed524cf06 100644 --- a/tests/Spain/EasterMondayTest.php +++ b/tests/Spain/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/EpiphanyTest.php b/tests/Spain/EpiphanyTest.php index bb9236447..857b55f80 100644 --- a/tests/Spain/EpiphanyTest.php +++ b/tests/Spain/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php b/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php index a12d27e5a..4cb264ef1 100644 --- a/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php +++ b/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Extremadura; diff --git a/tests/Spain/Extremadura/ExtremaduraDayTest.php b/tests/Spain/Extremadura/ExtremaduraDayTest.php index 2f8d03235..69b36deee 100644 --- a/tests/Spain/Extremadura/ExtremaduraDayTest.php +++ b/tests/Spain/Extremadura/ExtremaduraDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Extremadura; diff --git a/tests/Spain/Extremadura/ExtremaduraTest.php b/tests/Spain/Extremadura/ExtremaduraTest.php index cf63a2e53..4c8e2fd8c 100644 --- a/tests/Spain/Extremadura/ExtremaduraTest.php +++ b/tests/Spain/Extremadura/ExtremaduraTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Extremadura; diff --git a/tests/Spain/Galicia/GaliciaBaseTestCase.php b/tests/Spain/Galicia/GaliciaBaseTestCase.php index f69cdc450..da8c883c1 100644 --- a/tests/Spain/Galicia/GaliciaBaseTestCase.php +++ b/tests/Spain/Galicia/GaliciaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Galicia; diff --git a/tests/Spain/Galicia/GaliciaTest.php b/tests/Spain/Galicia/GaliciaTest.php index c779f0786..287e50426 100644 --- a/tests/Spain/Galicia/GaliciaTest.php +++ b/tests/Spain/Galicia/GaliciaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Galicia; diff --git a/tests/Spain/Galicia/GalicianLiteratureDayTest.php b/tests/Spain/Galicia/GalicianLiteratureDayTest.php index 02403685f..5b6d250a5 100644 --- a/tests/Spain/Galicia/GalicianLiteratureDayTest.php +++ b/tests/Spain/Galicia/GalicianLiteratureDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Galicia; diff --git a/tests/Spain/Galicia/stJamesDayTest.php b/tests/Spain/Galicia/stJamesDayTest.php index 58417b018..612cf48c1 100644 --- a/tests/Spain/Galicia/stJamesDayTest.php +++ b/tests/Spain/Galicia/stJamesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Galicia; diff --git a/tests/Spain/GoodFridayTest.php b/tests/Spain/GoodFridayTest.php index 580f92d50..26e937249 100644 --- a/tests/Spain/GoodFridayTest.php +++ b/tests/Spain/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/ImmaculateConceptionTest.php b/tests/Spain/ImmaculateConceptionTest.php index aadbc7840..e2218ce14 100644 --- a/tests/Spain/ImmaculateConceptionTest.php +++ b/tests/Spain/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/InternationalWorkersDayTest.php b/tests/Spain/InternationalWorkersDayTest.php index aa74090bf..69c1406d7 100644 --- a/tests/Spain/InternationalWorkersDayTest.php +++ b/tests/Spain/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/LaRioja/LaRiojaBaseTestCase.php b/tests/Spain/LaRioja/LaRiojaBaseTestCase.php index 90d1de7e5..0c7b5afef 100644 --- a/tests/Spain/LaRioja/LaRiojaBaseTestCase.php +++ b/tests/Spain/LaRioja/LaRiojaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\LaRioja; diff --git a/tests/Spain/LaRioja/LaRiojaDayTest.php b/tests/Spain/LaRioja/LaRiojaDayTest.php index 2412f8bb6..6b489ac68 100644 --- a/tests/Spain/LaRioja/LaRiojaDayTest.php +++ b/tests/Spain/LaRioja/LaRiojaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\LaRioja; diff --git a/tests/Spain/LaRioja/LaRiojaTest.php b/tests/Spain/LaRioja/LaRiojaTest.php index 27e6a4605..8f0f877fe 100644 --- a/tests/Spain/LaRioja/LaRiojaTest.php +++ b/tests/Spain/LaRioja/LaRiojaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\LaRioja; diff --git a/tests/Spain/MaundyThursdayTest.php b/tests/Spain/MaundyThursdayTest.php index d39b00a87..ca89b0b93 100644 --- a/tests/Spain/MaundyThursdayTest.php +++ b/tests/Spain/MaundyThursdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/Melilla/MelillaBaseTestCase.php b/tests/Spain/Melilla/MelillaBaseTestCase.php index 7924862fd..59bfb1836 100644 --- a/tests/Spain/Melilla/MelillaBaseTestCase.php +++ b/tests/Spain/Melilla/MelillaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Melilla; diff --git a/tests/Spain/Melilla/MelillaTest.php b/tests/Spain/Melilla/MelillaTest.php index 9cc65334f..5b08210e6 100644 --- a/tests/Spain/Melilla/MelillaTest.php +++ b/tests/Spain/Melilla/MelillaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Melilla; diff --git a/tests/Spain/NationalDayTest.php b/tests/Spain/NationalDayTest.php index a630cd419..a5b52d615 100644 --- a/tests/Spain/NationalDayTest.php +++ b/tests/Spain/NationalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/Navarre/NavarreBaseTestCase.php b/tests/Spain/Navarre/NavarreBaseTestCase.php index 2cbd1bcd7..9193a2424 100644 --- a/tests/Spain/Navarre/NavarreBaseTestCase.php +++ b/tests/Spain/Navarre/NavarreBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Navarre; diff --git a/tests/Spain/Navarre/NavarreTest.php b/tests/Spain/Navarre/NavarreTest.php index 77c18e5b1..80ac65b68 100644 --- a/tests/Spain/Navarre/NavarreTest.php +++ b/tests/Spain/Navarre/NavarreTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\Navarre; diff --git a/tests/Spain/NewYearsDayTest.php b/tests/Spain/NewYearsDayTest.php index 5afc021d1..71cbf13e4 100644 --- a/tests/Spain/NewYearsDayTest.php +++ b/tests/Spain/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php index 952d05acb..ca4aef5d4 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\RegionOfMurcia; diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php index 32ebf1a7e..2a9222cf5 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\RegionOfMurcia; diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php index 88f951f52..3d16d902a 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\RegionOfMurcia; diff --git a/tests/Spain/SpainBaseTestCase.php b/tests/Spain/SpainBaseTestCase.php index 1df6c16c9..3102f3907 100644 --- a/tests/Spain/SpainBaseTestCase.php +++ b/tests/Spain/SpainBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/SpainTest.php b/tests/Spain/SpainTest.php index d8856218e..8bc913a45 100644 --- a/tests/Spain/SpainTest.php +++ b/tests/Spain/SpainTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php b/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php index b7df1307f..128045815 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\ValencianCommunity; diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php index 29fc59b9b..edd92ce0c 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\ValencianCommunity; diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php index d68b89ce1..e597f141d 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain\ValencianCommunity; diff --git a/tests/Spain/ValentinesDayTest.php b/tests/Spain/ValentinesDayTest.php index 9c7ba2c46..ecf248ce2 100644 --- a/tests/Spain/ValentinesDayTest.php +++ b/tests/Spain/ValentinesDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Spain/stJosephsDayTest.php b/tests/Spain/stJosephsDayTest.php index 71a62d24e..df8c9135c 100644 --- a/tests/Spain/stJosephsDayTest.php +++ b/tests/Spain/stJosephsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Spain; diff --git a/tests/Sweden/AllSaintsDayTest.php b/tests/Sweden/AllSaintsDayTest.php index 0c0a9a221..8a2f49e88 100644 --- a/tests/Sweden/AllSaintsDayTest.php +++ b/tests/Sweden/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/AscensionDayTest.php b/tests/Sweden/AscensionDayTest.php index 0d3143096..e94091464 100644 --- a/tests/Sweden/AscensionDayTest.php +++ b/tests/Sweden/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/ChristmasDayTest.php b/tests/Sweden/ChristmasDayTest.php index b6f71e5d0..4987424a3 100644 --- a/tests/Sweden/ChristmasDayTest.php +++ b/tests/Sweden/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/ChristmasEveTest.php b/tests/Sweden/ChristmasEveTest.php index 7a06b670f..06e18e8c3 100644 --- a/tests/Sweden/ChristmasEveTest.php +++ b/tests/Sweden/ChristmasEveTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/EasterMondayTest.php b/tests/Sweden/EasterMondayTest.php index e9385d300..04a543f50 100644 --- a/tests/Sweden/EasterMondayTest.php +++ b/tests/Sweden/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/EasterTest.php b/tests/Sweden/EasterTest.php index a66faf009..be3d73877 100644 --- a/tests/Sweden/EasterTest.php +++ b/tests/Sweden/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/EpiphanyTest.php b/tests/Sweden/EpiphanyTest.php index df87db067..d21f66b4c 100644 --- a/tests/Sweden/EpiphanyTest.php +++ b/tests/Sweden/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/GoodFridayTest.php b/tests/Sweden/GoodFridayTest.php index efd454152..b6ecdb119 100644 --- a/tests/Sweden/GoodFridayTest.php +++ b/tests/Sweden/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/InternationalWorkersDayTest.php b/tests/Sweden/InternationalWorkersDayTest.php index 5d378e8c8..d34bb21ff 100644 --- a/tests/Sweden/InternationalWorkersDayTest.php +++ b/tests/Sweden/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/NationalDayTest.php b/tests/Sweden/NationalDayTest.php index efdd9952f..04a0818ef 100644 --- a/tests/Sweden/NationalDayTest.php +++ b/tests/Sweden/NationalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/NewYearsDayTest.php b/tests/Sweden/NewYearsDayTest.php index ac52c4a32..9060f9b77 100644 --- a/tests/Sweden/NewYearsDayTest.php +++ b/tests/Sweden/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/PentecostTest.php b/tests/Sweden/PentecostTest.php index 7f1585c58..50ee3d1ed 100644 --- a/tests/Sweden/PentecostTest.php +++ b/tests/Sweden/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/SecondChristmasDayTest.php b/tests/Sweden/SecondChristmasDayTest.php index caf0db014..4ed917657 100644 --- a/tests/Sweden/SecondChristmasDayTest.php +++ b/tests/Sweden/SecondChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/SwedenBaseTestCase.php b/tests/Sweden/SwedenBaseTestCase.php index b8df838a5..a4380e553 100644 --- a/tests/Sweden/SwedenBaseTestCase.php +++ b/tests/Sweden/SwedenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/SwedenTest.php b/tests/Sweden/SwedenTest.php index 495f87199..9024e015e 100644 --- a/tests/Sweden/SwedenTest.php +++ b/tests/Sweden/SwedenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Sweden/stJohnsDayTest.php b/tests/Sweden/stJohnsDayTest.php index 50e00f4ea..0446622f9 100644 --- a/tests/Sweden/stJohnsDayTest.php +++ b/tests/Sweden/stJohnsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Sweden; diff --git a/tests/Switzerland/Aargau/AargauBaseTestCase.php b/tests/Switzerland/Aargau/AargauBaseTestCase.php index 522493c36..ed9af9959 100644 --- a/tests/Switzerland/Aargau/AargauBaseTestCase.php +++ b/tests/Switzerland/Aargau/AargauBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Aargau; diff --git a/tests/Switzerland/Aargau/AargauTest.php b/tests/Switzerland/Aargau/AargauTest.php index f1cf1f7ea..32ab43099 100644 --- a/tests/Switzerland/Aargau/AargauTest.php +++ b/tests/Switzerland/Aargau/AargauTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Aargau; diff --git a/tests/Switzerland/Aargau/AscensionDayTest.php b/tests/Switzerland/Aargau/AscensionDayTest.php index 51c8ef587..2fa9b916c 100644 --- a/tests/Switzerland/Aargau/AscensionDayTest.php +++ b/tests/Switzerland/Aargau/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Aargau; diff --git a/tests/Switzerland/Aargau/ChristmasDayTest.php b/tests/Switzerland/Aargau/ChristmasDayTest.php index e846d88ee..c72e3f49d 100644 --- a/tests/Switzerland/Aargau/ChristmasDayTest.php +++ b/tests/Switzerland/Aargau/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Aargau; diff --git a/tests/Switzerland/Aargau/GoodFridayTest.php b/tests/Switzerland/Aargau/GoodFridayTest.php index 3b3b44ab9..99bef711e 100644 --- a/tests/Switzerland/Aargau/GoodFridayTest.php +++ b/tests/Switzerland/Aargau/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Aargau; diff --git a/tests/Switzerland/Aargau/NewYearsDayTest.php b/tests/Switzerland/Aargau/NewYearsDayTest.php index 06f3efb6f..1ef1c65f2 100644 --- a/tests/Switzerland/Aargau/NewYearsDayTest.php +++ b/tests/Switzerland/Aargau/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Aargau; diff --git a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php index 69b047ff5..ea15e8d1d 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php index ec862fa29..fcfb48344 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php index eaa86db95..965a8234a 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php index ed265ef58..23ce29e3d 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php index 2e7cb43b2..4daace988 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php index 4b3478e8e..1f8b2de3c 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php index 3e3c947f2..61a6be5ca 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php index 45d79b3ca..3cc4696cd 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php index 008731426..4adc48213 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellAusserrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php index 686bdbbba..405bda07b 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php index 4c888db8a..44c31e45a 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php index 7fd98d500..c3889f50d 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php index c7690b527..3fa0b12d1 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php index 8d373390e..17c53f738 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php index e34295321..9a6fdb8d9 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php index ccf5de1c8..cd00f69a6 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php index 45c819953..ed1296d72 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php index 05bc590b6..0c03e7ffa 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php index 1882943a2..71c51583d 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php index 84e5118c8..2ecaca4e2 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php index 026bf65a8..d07e3e955 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php index 32f8f26f9..f079a1ed5 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\AppenzellInnerrhoden; diff --git a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php index 7a595324b..777309034 100644 --- a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php +++ b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php b/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php index cba1a170e..eb399def5 100644 --- a/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php +++ b/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php index 277139c3a..9713ad2c7 100644 --- a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php +++ b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php index c5cff7c73..477bf2f37 100644 --- a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php +++ b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php index b48bb868e..5ad8132e4 100644 --- a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php index 703a40b1c..4852d34d0 100644 --- a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php +++ b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php index 6d747ae86..23fb75876 100644 --- a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php +++ b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php index 4ac51bcf2..c3d838ff7 100644 --- a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php index 422d125b3..7abb91ab1 100644 --- a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php +++ b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index a21f99f93..11902995c 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselLandschaft; diff --git a/tests/Switzerland/BaselStadt/AscensionDayTest.php b/tests/Switzerland/BaselStadt/AscensionDayTest.php index 18d549525..2a286d6e5 100644 --- a/tests/Switzerland/BaselStadt/AscensionDayTest.php +++ b/tests/Switzerland/BaselStadt/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php b/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php index 43de1c1bf..e46223bf3 100644 --- a/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php +++ b/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/BaselStadtTest.php b/tests/Switzerland/BaselStadt/BaselStadtTest.php index 292a7478a..8e399feec 100644 --- a/tests/Switzerland/BaselStadt/BaselStadtTest.php +++ b/tests/Switzerland/BaselStadt/BaselStadtTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/ChristmasDayTest.php b/tests/Switzerland/BaselStadt/ChristmasDayTest.php index f5e60ef80..1d9d245df 100644 --- a/tests/Switzerland/BaselStadt/ChristmasDayTest.php +++ b/tests/Switzerland/BaselStadt/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/EasterMondayTest.php b/tests/Switzerland/BaselStadt/EasterMondayTest.php index 56c4043bb..792ce51dd 100644 --- a/tests/Switzerland/BaselStadt/EasterMondayTest.php +++ b/tests/Switzerland/BaselStadt/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/GoodFridayTest.php b/tests/Switzerland/BaselStadt/GoodFridayTest.php index 52ae1e87f..6e4ed7567 100644 --- a/tests/Switzerland/BaselStadt/GoodFridayTest.php +++ b/tests/Switzerland/BaselStadt/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/NewYearsDayTest.php b/tests/Switzerland/BaselStadt/NewYearsDayTest.php index ebe1500f3..593dce8e3 100644 --- a/tests/Switzerland/BaselStadt/NewYearsDayTest.php +++ b/tests/Switzerland/BaselStadt/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/PentecostMondayTest.php b/tests/Switzerland/BaselStadt/PentecostMondayTest.php index 4badbdc95..2355b5c4f 100644 --- a/tests/Switzerland/BaselStadt/PentecostMondayTest.php +++ b/tests/Switzerland/BaselStadt/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/StStephensDayTest.php b/tests/Switzerland/BaselStadt/StStephensDayTest.php index e4b4ea7f3..10b1e09a5 100644 --- a/tests/Switzerland/BaselStadt/StStephensDayTest.php +++ b/tests/Switzerland/BaselStadt/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index 7ae34f41a..43a9cd1e1 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\BaselStadt; diff --git a/tests/Switzerland/Bern/AscensionDayTest.php b/tests/Switzerland/Bern/AscensionDayTest.php index 24ef2dbc2..e7a6511ef 100644 --- a/tests/Switzerland/Bern/AscensionDayTest.php +++ b/tests/Switzerland/Bern/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/BerchtoldsTagTest.php b/tests/Switzerland/Bern/BerchtoldsTagTest.php index 6c5c18b4c..b3702b34b 100644 --- a/tests/Switzerland/Bern/BerchtoldsTagTest.php +++ b/tests/Switzerland/Bern/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/BernBaseTestCase.php b/tests/Switzerland/Bern/BernBaseTestCase.php index 3d96c32ca..68d87890d 100644 --- a/tests/Switzerland/Bern/BernBaseTestCase.php +++ b/tests/Switzerland/Bern/BernBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/BernTest.php b/tests/Switzerland/Bern/BernTest.php index 090454b68..5af751489 100644 --- a/tests/Switzerland/Bern/BernTest.php +++ b/tests/Switzerland/Bern/BernTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/ChristmasDayTest.php b/tests/Switzerland/Bern/ChristmasDayTest.php index fa4603958..248a1a0b0 100644 --- a/tests/Switzerland/Bern/ChristmasDayTest.php +++ b/tests/Switzerland/Bern/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/EasterMondayTest.php b/tests/Switzerland/Bern/EasterMondayTest.php index e8e5a5b83..f97bff87c 100644 --- a/tests/Switzerland/Bern/EasterMondayTest.php +++ b/tests/Switzerland/Bern/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/GoodFridayTest.php b/tests/Switzerland/Bern/GoodFridayTest.php index 875f11863..a857036f0 100644 --- a/tests/Switzerland/Bern/GoodFridayTest.php +++ b/tests/Switzerland/Bern/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/NewYearsDayTest.php b/tests/Switzerland/Bern/NewYearsDayTest.php index 572bc17d6..5bdd10331 100644 --- a/tests/Switzerland/Bern/NewYearsDayTest.php +++ b/tests/Switzerland/Bern/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/PentecostMondayTest.php b/tests/Switzerland/Bern/PentecostMondayTest.php index 369b7f2f9..dfd5bdaae 100644 --- a/tests/Switzerland/Bern/PentecostMondayTest.php +++ b/tests/Switzerland/Bern/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Bern/StStephensDayTest.php b/tests/Switzerland/Bern/StStephensDayTest.php index 14ac7375c..796b83390 100644 --- a/tests/Switzerland/Bern/StStephensDayTest.php +++ b/tests/Switzerland/Bern/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Bern; diff --git a/tests/Switzerland/Fribourg/AscensionDayTest.php b/tests/Switzerland/Fribourg/AscensionDayTest.php index 4965fea03..dd5f202c3 100644 --- a/tests/Switzerland/Fribourg/AscensionDayTest.php +++ b/tests/Switzerland/Fribourg/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/ChristmasDayTest.php b/tests/Switzerland/Fribourg/ChristmasDayTest.php index 6fd85065c..3f5b1c48b 100644 --- a/tests/Switzerland/Fribourg/ChristmasDayTest.php +++ b/tests/Switzerland/Fribourg/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/EasterMondayTest.php b/tests/Switzerland/Fribourg/EasterMondayTest.php index fb7b9d014..92a49088e 100644 --- a/tests/Switzerland/Fribourg/EasterMondayTest.php +++ b/tests/Switzerland/Fribourg/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/FribourgBaseTestCase.php b/tests/Switzerland/Fribourg/FribourgBaseTestCase.php index 004c8ced0..7715169a5 100644 --- a/tests/Switzerland/Fribourg/FribourgBaseTestCase.php +++ b/tests/Switzerland/Fribourg/FribourgBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/FribourgTest.php b/tests/Switzerland/Fribourg/FribourgTest.php index 7fde96365..9afd156a8 100644 --- a/tests/Switzerland/Fribourg/FribourgTest.php +++ b/tests/Switzerland/Fribourg/FribourgTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/GoodFridayTest.php b/tests/Switzerland/Fribourg/GoodFridayTest.php index cfa2a2053..329c7d916 100644 --- a/tests/Switzerland/Fribourg/GoodFridayTest.php +++ b/tests/Switzerland/Fribourg/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/NewYearsDayTest.php b/tests/Switzerland/Fribourg/NewYearsDayTest.php index 0d75443c0..6e7eeae6c 100644 --- a/tests/Switzerland/Fribourg/NewYearsDayTest.php +++ b/tests/Switzerland/Fribourg/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Fribourg/PentecostMondayTest.php b/tests/Switzerland/Fribourg/PentecostMondayTest.php index 66faaadef..d883dcb8b 100644 --- a/tests/Switzerland/Fribourg/PentecostMondayTest.php +++ b/tests/Switzerland/Fribourg/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Fribourg; diff --git a/tests/Switzerland/Geneva/AscensionDayTest.php b/tests/Switzerland/Geneva/AscensionDayTest.php index 179b9ce0a..2cfd3f293 100644 --- a/tests/Switzerland/Geneva/AscensionDayTest.php +++ b/tests/Switzerland/Geneva/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/ChristmasDayTest.php b/tests/Switzerland/Geneva/ChristmasDayTest.php index 9d7c7740c..f4412390d 100644 --- a/tests/Switzerland/Geneva/ChristmasDayTest.php +++ b/tests/Switzerland/Geneva/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/EasterMondayTest.php b/tests/Switzerland/Geneva/EasterMondayTest.php index dc12a5d73..e04b15255 100644 --- a/tests/Switzerland/Geneva/EasterMondayTest.php +++ b/tests/Switzerland/Geneva/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/GenevaBaseTestCase.php b/tests/Switzerland/Geneva/GenevaBaseTestCase.php index a8de3ee2b..4bedd7221 100644 --- a/tests/Switzerland/Geneva/GenevaBaseTestCase.php +++ b/tests/Switzerland/Geneva/GenevaBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/GenevaTest.php b/tests/Switzerland/Geneva/GenevaTest.php index 1d0ef3b13..6de4ff92a 100644 --- a/tests/Switzerland/Geneva/GenevaTest.php +++ b/tests/Switzerland/Geneva/GenevaTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/GoodFridayTest.php b/tests/Switzerland/Geneva/GoodFridayTest.php index 1f1825984..60fc5cfdb 100644 --- a/tests/Switzerland/Geneva/GoodFridayTest.php +++ b/tests/Switzerland/Geneva/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/JeuneGenevoisTest.php b/tests/Switzerland/Geneva/JeuneGenevoisTest.php index b883107c8..dba296136 100644 --- a/tests/Switzerland/Geneva/JeuneGenevoisTest.php +++ b/tests/Switzerland/Geneva/JeuneGenevoisTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/NewYearsDayTest.php b/tests/Switzerland/Geneva/NewYearsDayTest.php index c63e020b4..51993add3 100644 --- a/tests/Switzerland/Geneva/NewYearsDayTest.php +++ b/tests/Switzerland/Geneva/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/PentecostMondayTest.php b/tests/Switzerland/Geneva/PentecostMondayTest.php index 5e80d4e36..daf5a7169 100644 --- a/tests/Switzerland/Geneva/PentecostMondayTest.php +++ b/tests/Switzerland/Geneva/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php index 21343c8e3..0df9349d7 100644 --- a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php +++ b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Geneva; diff --git a/tests/Switzerland/Glarus/AllSaintsDayTest.php b/tests/Switzerland/Glarus/AllSaintsDayTest.php index e773db538..771f764e8 100644 --- a/tests/Switzerland/Glarus/AllSaintsDayTest.php +++ b/tests/Switzerland/Glarus/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/AscensionDayTest.php b/tests/Switzerland/Glarus/AscensionDayTest.php index bd6e54957..519ae8ac2 100644 --- a/tests/Switzerland/Glarus/AscensionDayTest.php +++ b/tests/Switzerland/Glarus/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/BerchtoldsTagTest.php b/tests/Switzerland/Glarus/BerchtoldsTagTest.php index c53284bc3..f64592b97 100644 --- a/tests/Switzerland/Glarus/BerchtoldsTagTest.php +++ b/tests/Switzerland/Glarus/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/ChristmasDayTest.php b/tests/Switzerland/Glarus/ChristmasDayTest.php index 0916b433f..971b65a04 100644 --- a/tests/Switzerland/Glarus/ChristmasDayTest.php +++ b/tests/Switzerland/Glarus/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/EasterMondayTest.php b/tests/Switzerland/Glarus/EasterMondayTest.php index a791574b0..35c8c77a6 100644 --- a/tests/Switzerland/Glarus/EasterMondayTest.php +++ b/tests/Switzerland/Glarus/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/GlarusBaseTestCase.php b/tests/Switzerland/Glarus/GlarusBaseTestCase.php index 810132f13..2e45d161d 100644 --- a/tests/Switzerland/Glarus/GlarusBaseTestCase.php +++ b/tests/Switzerland/Glarus/GlarusBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/GlarusTest.php b/tests/Switzerland/Glarus/GlarusTest.php index e3eb477a7..f31e66218 100644 --- a/tests/Switzerland/Glarus/GlarusTest.php +++ b/tests/Switzerland/Glarus/GlarusTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/GoodFridayTest.php b/tests/Switzerland/Glarus/GoodFridayTest.php index dd8cad0ac..a77b3647a 100644 --- a/tests/Switzerland/Glarus/GoodFridayTest.php +++ b/tests/Switzerland/Glarus/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/NafelserFahrtTest.php b/tests/Switzerland/Glarus/NafelserFahrtTest.php index d61ffde46..f692f5fe0 100644 --- a/tests/Switzerland/Glarus/NafelserFahrtTest.php +++ b/tests/Switzerland/Glarus/NafelserFahrtTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/NewYearsDayTest.php b/tests/Switzerland/Glarus/NewYearsDayTest.php index 6e075f6ee..621d3dccd 100644 --- a/tests/Switzerland/Glarus/NewYearsDayTest.php +++ b/tests/Switzerland/Glarus/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/PentecostMondayTest.php b/tests/Switzerland/Glarus/PentecostMondayTest.php index 158aceeb4..da8502102 100644 --- a/tests/Switzerland/Glarus/PentecostMondayTest.php +++ b/tests/Switzerland/Glarus/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Glarus/StStephensDayTest.php b/tests/Switzerland/Glarus/StStephensDayTest.php index d598adda3..816cf8a26 100644 --- a/tests/Switzerland/Glarus/StStephensDayTest.php +++ b/tests/Switzerland/Glarus/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Glarus; diff --git a/tests/Switzerland/Grisons/AscensionDayTest.php b/tests/Switzerland/Grisons/AscensionDayTest.php index bc3817be0..a15a7d790 100644 --- a/tests/Switzerland/Grisons/AscensionDayTest.php +++ b/tests/Switzerland/Grisons/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/ChristmasDayTest.php b/tests/Switzerland/Grisons/ChristmasDayTest.php index 9886cc391..9282b447b 100644 --- a/tests/Switzerland/Grisons/ChristmasDayTest.php +++ b/tests/Switzerland/Grisons/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/EasterMondayTest.php b/tests/Switzerland/Grisons/EasterMondayTest.php index a9a413a5b..042395dc6 100644 --- a/tests/Switzerland/Grisons/EasterMondayTest.php +++ b/tests/Switzerland/Grisons/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/GoodFridayTest.php b/tests/Switzerland/Grisons/GoodFridayTest.php index 503129b59..5959a410d 100644 --- a/tests/Switzerland/Grisons/GoodFridayTest.php +++ b/tests/Switzerland/Grisons/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/GrisonsBaseTestCase.php b/tests/Switzerland/Grisons/GrisonsBaseTestCase.php index 0de4230c9..a3dd6170b 100644 --- a/tests/Switzerland/Grisons/GrisonsBaseTestCase.php +++ b/tests/Switzerland/Grisons/GrisonsBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/GrisonsTest.php b/tests/Switzerland/Grisons/GrisonsTest.php index 0c1f2b013..2fdc77d82 100644 --- a/tests/Switzerland/Grisons/GrisonsTest.php +++ b/tests/Switzerland/Grisons/GrisonsTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/NewYearsDayTest.php b/tests/Switzerland/Grisons/NewYearsDayTest.php index f7c1b11cd..bd4463192 100644 --- a/tests/Switzerland/Grisons/NewYearsDayTest.php +++ b/tests/Switzerland/Grisons/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/PentecostMondayTest.php b/tests/Switzerland/Grisons/PentecostMondayTest.php index c77ddef2f..67fbe4088 100644 --- a/tests/Switzerland/Grisons/PentecostMondayTest.php +++ b/tests/Switzerland/Grisons/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Grisons/StStephensDayTest.php b/tests/Switzerland/Grisons/StStephensDayTest.php index 9ace0ac51..8c5eb57e0 100644 --- a/tests/Switzerland/Grisons/StStephensDayTest.php +++ b/tests/Switzerland/Grisons/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Grisons; diff --git a/tests/Switzerland/Jura/AllSaintsDayTest.php b/tests/Switzerland/Jura/AllSaintsDayTest.php index c8b279c26..71d8a1e43 100644 --- a/tests/Switzerland/Jura/AllSaintsDayTest.php +++ b/tests/Switzerland/Jura/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/AscensionDayTest.php b/tests/Switzerland/Jura/AscensionDayTest.php index a3c0ff6c7..dbb7dd2a8 100644 --- a/tests/Switzerland/Jura/AscensionDayTest.php +++ b/tests/Switzerland/Jura/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/AssumptionOfMaryTest.php b/tests/Switzerland/Jura/AssumptionOfMaryTest.php index a0d1be148..53f0e5f21 100644 --- a/tests/Switzerland/Jura/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Jura/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/BerchtoldsTagTest.php b/tests/Switzerland/Jura/BerchtoldsTagTest.php index d3f7b42d8..2e9a395ac 100644 --- a/tests/Switzerland/Jura/BerchtoldsTagTest.php +++ b/tests/Switzerland/Jura/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/ChristmasDayTest.php b/tests/Switzerland/Jura/ChristmasDayTest.php index b655602ac..15296504c 100644 --- a/tests/Switzerland/Jura/ChristmasDayTest.php +++ b/tests/Switzerland/Jura/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/CorpusChristiTest.php b/tests/Switzerland/Jura/CorpusChristiTest.php index be3bc504c..fbb530786 100644 --- a/tests/Switzerland/Jura/CorpusChristiTest.php +++ b/tests/Switzerland/Jura/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/EasterMondayTest.php b/tests/Switzerland/Jura/EasterMondayTest.php index af313a4ef..d0893ded5 100644 --- a/tests/Switzerland/Jura/EasterMondayTest.php +++ b/tests/Switzerland/Jura/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/GoodFridayTest.php b/tests/Switzerland/Jura/GoodFridayTest.php index 61070a233..51e06fee9 100644 --- a/tests/Switzerland/Jura/GoodFridayTest.php +++ b/tests/Switzerland/Jura/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/JuraBaseTestCase.php b/tests/Switzerland/Jura/JuraBaseTestCase.php index d27f402ab..48a6ee432 100644 --- a/tests/Switzerland/Jura/JuraBaseTestCase.php +++ b/tests/Switzerland/Jura/JuraBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/JuraTest.php b/tests/Switzerland/Jura/JuraTest.php index 01deb933e..f13b60706 100644 --- a/tests/Switzerland/Jura/JuraTest.php +++ b/tests/Switzerland/Jura/JuraTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/NewYearsDayTest.php b/tests/Switzerland/Jura/NewYearsDayTest.php index ea52835db..adcdf52f0 100644 --- a/tests/Switzerland/Jura/NewYearsDayTest.php +++ b/tests/Switzerland/Jura/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/PentecostMondayTest.php b/tests/Switzerland/Jura/PentecostMondayTest.php index 97155e2da..85dc2f766 100644 --- a/tests/Switzerland/Jura/PentecostMondayTest.php +++ b/tests/Switzerland/Jura/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/PlebisciteJurassienTest.php b/tests/Switzerland/Jura/PlebisciteJurassienTest.php index 06ec98502..98b8ca972 100644 --- a/tests/Switzerland/Jura/PlebisciteJurassienTest.php +++ b/tests/Switzerland/Jura/PlebisciteJurassienTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index 99abaef29..8f8fb5725 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Jura; diff --git a/tests/Switzerland/Lucerne/AllSaintsDayTest.php b/tests/Switzerland/Lucerne/AllSaintsDayTest.php index 8b1ea3f36..4bd9160bb 100644 --- a/tests/Switzerland/Lucerne/AllSaintsDayTest.php +++ b/tests/Switzerland/Lucerne/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/AscensionDayTest.php b/tests/Switzerland/Lucerne/AscensionDayTest.php index 729481be4..947233550 100644 --- a/tests/Switzerland/Lucerne/AscensionDayTest.php +++ b/tests/Switzerland/Lucerne/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php index 330118a55..a3a9829e3 100644 --- a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php index 58bcc7147..8d2245c97 100644 --- a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php +++ b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/ChristmasDayTest.php b/tests/Switzerland/Lucerne/ChristmasDayTest.php index 5888296bd..745b580ce 100644 --- a/tests/Switzerland/Lucerne/ChristmasDayTest.php +++ b/tests/Switzerland/Lucerne/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/CorpusChristiTest.php b/tests/Switzerland/Lucerne/CorpusChristiTest.php index 1e6f66cce..567e1ebbd 100644 --- a/tests/Switzerland/Lucerne/CorpusChristiTest.php +++ b/tests/Switzerland/Lucerne/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/EasterMondayTest.php b/tests/Switzerland/Lucerne/EasterMondayTest.php index f537c0ac7..024901f16 100644 --- a/tests/Switzerland/Lucerne/EasterMondayTest.php +++ b/tests/Switzerland/Lucerne/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/GoodFridayTest.php b/tests/Switzerland/Lucerne/GoodFridayTest.php index 2a313282f..11f468121 100644 --- a/tests/Switzerland/Lucerne/GoodFridayTest.php +++ b/tests/Switzerland/Lucerne/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php index 528261b0d..c79580381 100644 --- a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/LucerneBaseTestCase.php b/tests/Switzerland/Lucerne/LucerneBaseTestCase.php index c48f9603d..ebf512e15 100644 --- a/tests/Switzerland/Lucerne/LucerneBaseTestCase.php +++ b/tests/Switzerland/Lucerne/LucerneBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/LucerneTest.php b/tests/Switzerland/Lucerne/LucerneTest.php index 459c7cbe0..e140dbda4 100644 --- a/tests/Switzerland/Lucerne/LucerneTest.php +++ b/tests/Switzerland/Lucerne/LucerneTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/NewYearsDayTest.php b/tests/Switzerland/Lucerne/NewYearsDayTest.php index 497f70397..d54702723 100644 --- a/tests/Switzerland/Lucerne/NewYearsDayTest.php +++ b/tests/Switzerland/Lucerne/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/PentecostMondayTest.php b/tests/Switzerland/Lucerne/PentecostMondayTest.php index cec168fea..98a35ff12 100644 --- a/tests/Switzerland/Lucerne/PentecostMondayTest.php +++ b/tests/Switzerland/Lucerne/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Lucerne/StStephensDayTest.php b/tests/Switzerland/Lucerne/StStephensDayTest.php index b13e9ccea..51c479bed 100644 --- a/tests/Switzerland/Lucerne/StStephensDayTest.php +++ b/tests/Switzerland/Lucerne/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Lucerne; diff --git a/tests/Switzerland/Neuchatel/AscensionDayTest.php b/tests/Switzerland/Neuchatel/AscensionDayTest.php index 8c8e0836a..c4d5f1f4e 100644 --- a/tests/Switzerland/Neuchatel/AscensionDayTest.php +++ b/tests/Switzerland/Neuchatel/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php index 8043c0929..69b552f5f 100644 --- a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php +++ b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/BettagsMontagTest.php b/tests/Switzerland/Neuchatel/BettagsMontagTest.php index 2830221f9..4d56e5ad4 100644 --- a/tests/Switzerland/Neuchatel/BettagsMontagTest.php +++ b/tests/Switzerland/Neuchatel/BettagsMontagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/ChristmasDayTest.php b/tests/Switzerland/Neuchatel/ChristmasDayTest.php index b21bc92ab..d0005aeeb 100644 --- a/tests/Switzerland/Neuchatel/ChristmasDayTest.php +++ b/tests/Switzerland/Neuchatel/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/EasterMondayTest.php b/tests/Switzerland/Neuchatel/EasterMondayTest.php index 76d047c38..c27fd45af 100644 --- a/tests/Switzerland/Neuchatel/EasterMondayTest.php +++ b/tests/Switzerland/Neuchatel/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/GoodFridayTest.php b/tests/Switzerland/Neuchatel/GoodFridayTest.php index f2e66720f..a8e9a148f 100644 --- a/tests/Switzerland/Neuchatel/GoodFridayTest.php +++ b/tests/Switzerland/Neuchatel/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php index 512feb593..48ddbc295 100644 --- a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php +++ b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php b/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php index a156dfae5..1f253e50c 100644 --- a/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php +++ b/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/NeuchatelTest.php b/tests/Switzerland/Neuchatel/NeuchatelTest.php index 1ac2cb674..119139bef 100644 --- a/tests/Switzerland/Neuchatel/NeuchatelTest.php +++ b/tests/Switzerland/Neuchatel/NeuchatelTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/NewYearsDayTest.php b/tests/Switzerland/Neuchatel/NewYearsDayTest.php index 8e9a1e9f0..487c57de6 100644 --- a/tests/Switzerland/Neuchatel/NewYearsDayTest.php +++ b/tests/Switzerland/Neuchatel/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/PentecostMondayTest.php b/tests/Switzerland/Neuchatel/PentecostMondayTest.php index 88ca25f97..f702de377 100644 --- a/tests/Switzerland/Neuchatel/PentecostMondayTest.php +++ b/tests/Switzerland/Neuchatel/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index 5dfa0ea7e..5e039501b 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Neuchatel; diff --git a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php index 3eeb5e412..9efc19dfa 100644 --- a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/AscensionDayTest.php b/tests/Switzerland/Nidwalden/AscensionDayTest.php index fb69b00e6..1dbd1e71f 100644 --- a/tests/Switzerland/Nidwalden/AscensionDayTest.php +++ b/tests/Switzerland/Nidwalden/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php index 644806d56..dfaa8136d 100644 --- a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/ChristmasDayTest.php b/tests/Switzerland/Nidwalden/ChristmasDayTest.php index 7ab53d6b9..f8f0f7999 100644 --- a/tests/Switzerland/Nidwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Nidwalden/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/CorpusChristiTest.php b/tests/Switzerland/Nidwalden/CorpusChristiTest.php index d95182a52..36a44435c 100644 --- a/tests/Switzerland/Nidwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Nidwalden/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/EasterMondayTest.php b/tests/Switzerland/Nidwalden/EasterMondayTest.php index 7b4cb63b4..6a0908ab3 100644 --- a/tests/Switzerland/Nidwalden/EasterMondayTest.php +++ b/tests/Switzerland/Nidwalden/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/GoodFridayTest.php b/tests/Switzerland/Nidwalden/GoodFridayTest.php index 9168f847b..4f564ba0a 100644 --- a/tests/Switzerland/Nidwalden/GoodFridayTest.php +++ b/tests/Switzerland/Nidwalden/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php index 6d9d83acd..1c7826f88 100644 --- a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/NewYearsDayTest.php b/tests/Switzerland/Nidwalden/NewYearsDayTest.php index f998070a0..62b83acf2 100644 --- a/tests/Switzerland/Nidwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Nidwalden/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php b/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php index 66f098756..299f52306 100644 --- a/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php +++ b/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/NidwaldenTest.php b/tests/Switzerland/Nidwalden/NidwaldenTest.php index 1d23f346e..c18642c57 100644 --- a/tests/Switzerland/Nidwalden/NidwaldenTest.php +++ b/tests/Switzerland/Nidwalden/NidwaldenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/PentecostMondayTest.php b/tests/Switzerland/Nidwalden/PentecostMondayTest.php index 35ec50c08..587e2bbd8 100644 --- a/tests/Switzerland/Nidwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Nidwalden/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index e27c2a29d..26487fb4f 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Nidwalden/StStephensDayTest.php b/tests/Switzerland/Nidwalden/StStephensDayTest.php index 91b882aea..b1f4053b3 100644 --- a/tests/Switzerland/Nidwalden/StStephensDayTest.php +++ b/tests/Switzerland/Nidwalden/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Nidwalden; diff --git a/tests/Switzerland/Obwalden/AllSaintsDayTest.php b/tests/Switzerland/Obwalden/AllSaintsDayTest.php index 0cf216ffb..1754bb334 100644 --- a/tests/Switzerland/Obwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Obwalden/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/AscensionDayTest.php b/tests/Switzerland/Obwalden/AscensionDayTest.php index 4342bb8f1..1d75a822b 100644 --- a/tests/Switzerland/Obwalden/AscensionDayTest.php +++ b/tests/Switzerland/Obwalden/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php index cc38fa68d..c3dbb1756 100644 --- a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php index 833561de6..f2c7927ad 100644 --- a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php +++ b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php index 19b60c91b..7fda4ff07 100644 --- a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php +++ b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/ChristmasDayTest.php b/tests/Switzerland/Obwalden/ChristmasDayTest.php index 0d09ae127..0a8102e16 100644 --- a/tests/Switzerland/Obwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Obwalden/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/CorpusChristiTest.php b/tests/Switzerland/Obwalden/CorpusChristiTest.php index 01404832a..167a82fca 100644 --- a/tests/Switzerland/Obwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Obwalden/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/EasterMondayTest.php b/tests/Switzerland/Obwalden/EasterMondayTest.php index 453c18230..0a50a1a54 100644 --- a/tests/Switzerland/Obwalden/EasterMondayTest.php +++ b/tests/Switzerland/Obwalden/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/GoodFridayTest.php b/tests/Switzerland/Obwalden/GoodFridayTest.php index a4cd38626..8708e82e5 100644 --- a/tests/Switzerland/Obwalden/GoodFridayTest.php +++ b/tests/Switzerland/Obwalden/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php index 7e3da0866..5fa596a55 100644 --- a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/NewYearsDayTest.php b/tests/Switzerland/Obwalden/NewYearsDayTest.php index 485116a22..cdc4cc151 100644 --- a/tests/Switzerland/Obwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Obwalden/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php b/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php index 5fbb07995..cb64065f2 100644 --- a/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php +++ b/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/ObwaldenTest.php b/tests/Switzerland/Obwalden/ObwaldenTest.php index 28d51858b..e1861f520 100644 --- a/tests/Switzerland/Obwalden/ObwaldenTest.php +++ b/tests/Switzerland/Obwalden/ObwaldenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/PentecostMondayTest.php b/tests/Switzerland/Obwalden/PentecostMondayTest.php index 074e34ee7..4f4ee9fa5 100644 --- a/tests/Switzerland/Obwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Obwalden/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Obwalden/StStephensDayTest.php b/tests/Switzerland/Obwalden/StStephensDayTest.php index 6269efa37..61ded5fdd 100644 --- a/tests/Switzerland/Obwalden/StStephensDayTest.php +++ b/tests/Switzerland/Obwalden/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Obwalden; diff --git a/tests/Switzerland/Schaffhausen/AscensionDayTest.php b/tests/Switzerland/Schaffhausen/AscensionDayTest.php index 56f6e4c30..fd833b323 100644 --- a/tests/Switzerland/Schaffhausen/AscensionDayTest.php +++ b/tests/Switzerland/Schaffhausen/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php index a63f7d938..7dac46d95 100644 --- a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php +++ b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php index da201a936..4a6b403b9 100644 --- a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php +++ b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/EasterMondayTest.php b/tests/Switzerland/Schaffhausen/EasterMondayTest.php index 71557e4b6..7811b7eae 100644 --- a/tests/Switzerland/Schaffhausen/EasterMondayTest.php +++ b/tests/Switzerland/Schaffhausen/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/GoodFridayTest.php b/tests/Switzerland/Schaffhausen/GoodFridayTest.php index 55ccd53ea..cfddb42c2 100644 --- a/tests/Switzerland/Schaffhausen/GoodFridayTest.php +++ b/tests/Switzerland/Schaffhausen/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php index 64d223149..afca590eb 100644 --- a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php +++ b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php index fea06320e..9790e8aa3 100644 --- a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php +++ b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php b/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php index 143371fbc..80e4b2ed8 100644 --- a/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php +++ b/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php index 9c8eb799c..ec3b78729 100644 --- a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php +++ b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/StStephensDayTest.php b/tests/Switzerland/Schaffhausen/StStephensDayTest.php index f45d44bbd..862ff7def 100644 --- a/tests/Switzerland/Schaffhausen/StStephensDayTest.php +++ b/tests/Switzerland/Schaffhausen/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index 808b3c628..32b1ea663 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schaffhausen; diff --git a/tests/Switzerland/Schwyz/AllSaintsDayTest.php b/tests/Switzerland/Schwyz/AllSaintsDayTest.php index 714af8a9d..05eda21f8 100644 --- a/tests/Switzerland/Schwyz/AllSaintsDayTest.php +++ b/tests/Switzerland/Schwyz/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/AscensionDayTest.php b/tests/Switzerland/Schwyz/AscensionDayTest.php index 6abe97f80..abd64a127 100644 --- a/tests/Switzerland/Schwyz/AscensionDayTest.php +++ b/tests/Switzerland/Schwyz/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php index af59da539..2bcaea379 100644 --- a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/ChristmasDayTest.php b/tests/Switzerland/Schwyz/ChristmasDayTest.php index df514ffce..e97204c4f 100644 --- a/tests/Switzerland/Schwyz/ChristmasDayTest.php +++ b/tests/Switzerland/Schwyz/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/CorpusChristiTest.php b/tests/Switzerland/Schwyz/CorpusChristiTest.php index cb2351305..1dce481a0 100644 --- a/tests/Switzerland/Schwyz/CorpusChristiTest.php +++ b/tests/Switzerland/Schwyz/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/EasterMondayTest.php b/tests/Switzerland/Schwyz/EasterMondayTest.php index a0ae90ce7..f1ed46684 100644 --- a/tests/Switzerland/Schwyz/EasterMondayTest.php +++ b/tests/Switzerland/Schwyz/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/EpiphanyTest.php b/tests/Switzerland/Schwyz/EpiphanyTest.php index 290c1725a..1ae1822b9 100644 --- a/tests/Switzerland/Schwyz/EpiphanyTest.php +++ b/tests/Switzerland/Schwyz/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/GoodFridayTest.php b/tests/Switzerland/Schwyz/GoodFridayTest.php index a65b12888..34b8beef1 100644 --- a/tests/Switzerland/Schwyz/GoodFridayTest.php +++ b/tests/Switzerland/Schwyz/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php index a0579f473..6e10bb6db 100644 --- a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/NewYearsDayTest.php b/tests/Switzerland/Schwyz/NewYearsDayTest.php index eb05e6bba..c8be4b478 100644 --- a/tests/Switzerland/Schwyz/NewYearsDayTest.php +++ b/tests/Switzerland/Schwyz/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/PentecostMondayTest.php b/tests/Switzerland/Schwyz/PentecostMondayTest.php index 4c25e116b..2d62095ba 100644 --- a/tests/Switzerland/Schwyz/PentecostMondayTest.php +++ b/tests/Switzerland/Schwyz/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php b/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php index 9e5eefc05..34e53ca91 100644 --- a/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php +++ b/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/SchwyzTest.php b/tests/Switzerland/Schwyz/SchwyzTest.php index 287a76a21..bb4ac58eb 100644 --- a/tests/Switzerland/Schwyz/SchwyzTest.php +++ b/tests/Switzerland/Schwyz/SchwyzTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index 813149993..3f31fa2ce 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Schwyz/StStephensDayTest.php b/tests/Switzerland/Schwyz/StStephensDayTest.php index dbd2003f5..8ec5a3984 100644 --- a/tests/Switzerland/Schwyz/StStephensDayTest.php +++ b/tests/Switzerland/Schwyz/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Schwyz; diff --git a/tests/Switzerland/Solothurn/AscensionDayTest.php b/tests/Switzerland/Solothurn/AscensionDayTest.php index bb19d89af..51a42ab07 100644 --- a/tests/Switzerland/Solothurn/AscensionDayTest.php +++ b/tests/Switzerland/Solothurn/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php index 39cc844c7..2193c3cfc 100644 --- a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php +++ b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/Solothurn/ChristmasDayTest.php b/tests/Switzerland/Solothurn/ChristmasDayTest.php index e084b4858..52389048b 100644 --- a/tests/Switzerland/Solothurn/ChristmasDayTest.php +++ b/tests/Switzerland/Solothurn/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/Solothurn/GoodFridayTest.php b/tests/Switzerland/Solothurn/GoodFridayTest.php index ac9ee39b4..3649151cb 100644 --- a/tests/Switzerland/Solothurn/GoodFridayTest.php +++ b/tests/Switzerland/Solothurn/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/Solothurn/NewYearsDayTest.php b/tests/Switzerland/Solothurn/NewYearsDayTest.php index 027c3b414..e0aa48e84 100644 --- a/tests/Switzerland/Solothurn/NewYearsDayTest.php +++ b/tests/Switzerland/Solothurn/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php b/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php index 26d95aede..d7936e5b7 100644 --- a/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php +++ b/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/Solothurn/SolothurnTest.php b/tests/Switzerland/Solothurn/SolothurnTest.php index 4d37f4884..ce51b0026 100644 --- a/tests/Switzerland/Solothurn/SolothurnTest.php +++ b/tests/Switzerland/Solothurn/SolothurnTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Solothurn; diff --git a/tests/Switzerland/StGallen/AllSaintsDayTest.php b/tests/Switzerland/StGallen/AllSaintsDayTest.php index d9435c91e..4ca5129cc 100644 --- a/tests/Switzerland/StGallen/AllSaintsDayTest.php +++ b/tests/Switzerland/StGallen/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/AscensionDayTest.php b/tests/Switzerland/StGallen/AscensionDayTest.php index 16d29a5fa..6fe965fa9 100644 --- a/tests/Switzerland/StGallen/AscensionDayTest.php +++ b/tests/Switzerland/StGallen/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/ChristmasDayTest.php b/tests/Switzerland/StGallen/ChristmasDayTest.php index cd2be9bfe..f5e78586f 100644 --- a/tests/Switzerland/StGallen/ChristmasDayTest.php +++ b/tests/Switzerland/StGallen/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/EasterMondayTest.php b/tests/Switzerland/StGallen/EasterMondayTest.php index 1587b165b..fb00ede2d 100644 --- a/tests/Switzerland/StGallen/EasterMondayTest.php +++ b/tests/Switzerland/StGallen/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/GoodFridayTest.php b/tests/Switzerland/StGallen/GoodFridayTest.php index e0182fdb0..acabcba45 100644 --- a/tests/Switzerland/StGallen/GoodFridayTest.php +++ b/tests/Switzerland/StGallen/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/NewYearsDayTest.php b/tests/Switzerland/StGallen/NewYearsDayTest.php index 2d06646c5..f946cebcc 100644 --- a/tests/Switzerland/StGallen/NewYearsDayTest.php +++ b/tests/Switzerland/StGallen/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/PentecostMondayTest.php b/tests/Switzerland/StGallen/PentecostMondayTest.php index 3f9811043..bdbcc2a91 100644 --- a/tests/Switzerland/StGallen/PentecostMondayTest.php +++ b/tests/Switzerland/StGallen/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/StGallenBaseTestCase.php b/tests/Switzerland/StGallen/StGallenBaseTestCase.php index b6c5be4cc..6dbd9eaf0 100644 --- a/tests/Switzerland/StGallen/StGallenBaseTestCase.php +++ b/tests/Switzerland/StGallen/StGallenBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/StGallenTest.php b/tests/Switzerland/StGallen/StGallenTest.php index b9d1cb6e4..08874cea9 100644 --- a/tests/Switzerland/StGallen/StGallenTest.php +++ b/tests/Switzerland/StGallen/StGallenTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/StGallen/StStephensDayTest.php b/tests/Switzerland/StGallen/StStephensDayTest.php index 7a1c71e30..e5051f8e1 100644 --- a/tests/Switzerland/StGallen/StStephensDayTest.php +++ b/tests/Switzerland/StGallen/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\StGallen; diff --git a/tests/Switzerland/SwissNationalDayTest.php b/tests/Switzerland/SwissNationalDayTest.php index 4b8fef265..d1139b4b7 100644 --- a/tests/Switzerland/SwissNationalDayTest.php +++ b/tests/Switzerland/SwissNationalDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland; diff --git a/tests/Switzerland/SwitzerlandBaseTestCase.php b/tests/Switzerland/SwitzerlandBaseTestCase.php index 3641684cc..2c9bc7b66 100644 --- a/tests/Switzerland/SwitzerlandBaseTestCase.php +++ b/tests/Switzerland/SwitzerlandBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland; diff --git a/tests/Switzerland/SwitzerlandTest.php b/tests/Switzerland/SwitzerlandTest.php index b2a4abe74..b649d5c0e 100644 --- a/tests/Switzerland/SwitzerlandTest.php +++ b/tests/Switzerland/SwitzerlandTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland; diff --git a/tests/Switzerland/Thurgau/AscensionDayTest.php b/tests/Switzerland/Thurgau/AscensionDayTest.php index 6c347c784..f43f40a95 100644 --- a/tests/Switzerland/Thurgau/AscensionDayTest.php +++ b/tests/Switzerland/Thurgau/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php index 714f8996e..fea82717b 100644 --- a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php +++ b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/ChristmasDayTest.php b/tests/Switzerland/Thurgau/ChristmasDayTest.php index cc6a35e19..2a9b86f05 100644 --- a/tests/Switzerland/Thurgau/ChristmasDayTest.php +++ b/tests/Switzerland/Thurgau/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/EasterMondayTest.php b/tests/Switzerland/Thurgau/EasterMondayTest.php index c5a5c8fc6..79b1d242d 100644 --- a/tests/Switzerland/Thurgau/EasterMondayTest.php +++ b/tests/Switzerland/Thurgau/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/GoodFridayTest.php b/tests/Switzerland/Thurgau/GoodFridayTest.php index c0e1df506..3e08720f2 100644 --- a/tests/Switzerland/Thurgau/GoodFridayTest.php +++ b/tests/Switzerland/Thurgau/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/NewYearsDayTest.php b/tests/Switzerland/Thurgau/NewYearsDayTest.php index 62be944f4..1612dab4c 100644 --- a/tests/Switzerland/Thurgau/NewYearsDayTest.php +++ b/tests/Switzerland/Thurgau/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/PentecostMondayTest.php b/tests/Switzerland/Thurgau/PentecostMondayTest.php index 8a9445634..b9b34e3aa 100644 --- a/tests/Switzerland/Thurgau/PentecostMondayTest.php +++ b/tests/Switzerland/Thurgau/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/StStephensDayTest.php b/tests/Switzerland/Thurgau/StStephensDayTest.php index 6483c52a0..f550dd660 100644 --- a/tests/Switzerland/Thurgau/StStephensDayTest.php +++ b/tests/Switzerland/Thurgau/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php b/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php index a174320fd..d8d457c9d 100644 --- a/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php +++ b/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/ThurgauTest.php b/tests/Switzerland/Thurgau/ThurgauTest.php index b78ae7034..f39743a19 100644 --- a/tests/Switzerland/Thurgau/ThurgauTest.php +++ b/tests/Switzerland/Thurgau/ThurgauTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index aa2283adb..efa74dbe2 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Thurgau; diff --git a/tests/Switzerland/Ticino/AllSaintsDayTest.php b/tests/Switzerland/Ticino/AllSaintsDayTest.php index eea918067..5fd07f50a 100644 --- a/tests/Switzerland/Ticino/AllSaintsDayTest.php +++ b/tests/Switzerland/Ticino/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/AscensionDayTest.php b/tests/Switzerland/Ticino/AscensionDayTest.php index 700c2582b..005277a92 100644 --- a/tests/Switzerland/Ticino/AscensionDayTest.php +++ b/tests/Switzerland/Ticino/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php index 500f522e1..587be65ac 100644 --- a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/ChristmasDayTest.php b/tests/Switzerland/Ticino/ChristmasDayTest.php index eac9107f0..6a39f3a73 100644 --- a/tests/Switzerland/Ticino/ChristmasDayTest.php +++ b/tests/Switzerland/Ticino/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/CorpusChristiTest.php b/tests/Switzerland/Ticino/CorpusChristiTest.php index 730c530a6..3b4b735d9 100644 --- a/tests/Switzerland/Ticino/CorpusChristiTest.php +++ b/tests/Switzerland/Ticino/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/EasterMondayTest.php b/tests/Switzerland/Ticino/EasterMondayTest.php index b87c3f7d3..576071008 100644 --- a/tests/Switzerland/Ticino/EasterMondayTest.php +++ b/tests/Switzerland/Ticino/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/EpiphanyTest.php b/tests/Switzerland/Ticino/EpiphanyTest.php index 623bb8589..29fd62fa3 100644 --- a/tests/Switzerland/Ticino/EpiphanyTest.php +++ b/tests/Switzerland/Ticino/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php index 542e15e5b..1ec82dfcd 100644 --- a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/NewYearsDayTest.php b/tests/Switzerland/Ticino/NewYearsDayTest.php index 17007fdb0..8a30c1383 100644 --- a/tests/Switzerland/Ticino/NewYearsDayTest.php +++ b/tests/Switzerland/Ticino/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/PentecostMondayTest.php b/tests/Switzerland/Ticino/PentecostMondayTest.php index 1432b223a..d967e090e 100644 --- a/tests/Switzerland/Ticino/PentecostMondayTest.php +++ b/tests/Switzerland/Ticino/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index b74c8dda6..223bb43be 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index 0e116dccd..975a6d131 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/StStephensDayTest.php b/tests/Switzerland/Ticino/StStephensDayTest.php index f8858b529..484b326ee 100644 --- a/tests/Switzerland/Ticino/StStephensDayTest.php +++ b/tests/Switzerland/Ticino/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/TicinoBaseTestCase.php b/tests/Switzerland/Ticino/TicinoBaseTestCase.php index 8519b430c..c09e6ffed 100644 --- a/tests/Switzerland/Ticino/TicinoBaseTestCase.php +++ b/tests/Switzerland/Ticino/TicinoBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/TicinoTest.php b/tests/Switzerland/Ticino/TicinoTest.php index 10a059a4b..e4e208f27 100644 --- a/tests/Switzerland/Ticino/TicinoTest.php +++ b/tests/Switzerland/Ticino/TicinoTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index a35472011..34619138a 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Ticino; diff --git a/tests/Switzerland/Uri/AllSaintsDayTest.php b/tests/Switzerland/Uri/AllSaintsDayTest.php index c485bd243..847c19f6b 100644 --- a/tests/Switzerland/Uri/AllSaintsDayTest.php +++ b/tests/Switzerland/Uri/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/AscensionDayTest.php b/tests/Switzerland/Uri/AscensionDayTest.php index a0c3373a4..6634479c5 100644 --- a/tests/Switzerland/Uri/AscensionDayTest.php +++ b/tests/Switzerland/Uri/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/AssumptionOfMaryTest.php b/tests/Switzerland/Uri/AssumptionOfMaryTest.php index a5e844027..2e0086513 100644 --- a/tests/Switzerland/Uri/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Uri/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/ChristmasDayTest.php b/tests/Switzerland/Uri/ChristmasDayTest.php index ff04e119d..5f4b1dfde 100644 --- a/tests/Switzerland/Uri/ChristmasDayTest.php +++ b/tests/Switzerland/Uri/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/CorpusChristiTest.php b/tests/Switzerland/Uri/CorpusChristiTest.php index 686c850fa..6e6473712 100644 --- a/tests/Switzerland/Uri/CorpusChristiTest.php +++ b/tests/Switzerland/Uri/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/EasterMondayTest.php b/tests/Switzerland/Uri/EasterMondayTest.php index a7ae4c479..25f096a77 100644 --- a/tests/Switzerland/Uri/EasterMondayTest.php +++ b/tests/Switzerland/Uri/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/EpiphanyTest.php b/tests/Switzerland/Uri/EpiphanyTest.php index 3dd5bfea4..4d33cec0b 100644 --- a/tests/Switzerland/Uri/EpiphanyTest.php +++ b/tests/Switzerland/Uri/EpiphanyTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/GoodFridayTest.php b/tests/Switzerland/Uri/GoodFridayTest.php index ec660dc81..acfa00cfa 100644 --- a/tests/Switzerland/Uri/GoodFridayTest.php +++ b/tests/Switzerland/Uri/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/ImmaculateConceptionTest.php b/tests/Switzerland/Uri/ImmaculateConceptionTest.php index 157de9439..174bbdfb0 100644 --- a/tests/Switzerland/Uri/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Uri/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/NewYearsDayTest.php b/tests/Switzerland/Uri/NewYearsDayTest.php index b218db2f2..e1b2a48e8 100644 --- a/tests/Switzerland/Uri/NewYearsDayTest.php +++ b/tests/Switzerland/Uri/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/PentecostMondayTest.php b/tests/Switzerland/Uri/PentecostMondayTest.php index 114e35ed2..1bee16e17 100644 --- a/tests/Switzerland/Uri/PentecostMondayTest.php +++ b/tests/Switzerland/Uri/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index 92e8aa21d..ae9d95bc5 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/StStephensDayTest.php b/tests/Switzerland/Uri/StStephensDayTest.php index affbf7e27..f64049d4d 100644 --- a/tests/Switzerland/Uri/StStephensDayTest.php +++ b/tests/Switzerland/Uri/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/UriBaseTestCase.php b/tests/Switzerland/Uri/UriBaseTestCase.php index f3fdef076..203aac20d 100644 --- a/tests/Switzerland/Uri/UriBaseTestCase.php +++ b/tests/Switzerland/Uri/UriBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Uri/UriTest.php b/tests/Switzerland/Uri/UriTest.php index ae2d8b435..f5b26a4f3 100644 --- a/tests/Switzerland/Uri/UriTest.php +++ b/tests/Switzerland/Uri/UriTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Uri; diff --git a/tests/Switzerland/Valais/AllSaintsDayTest.php b/tests/Switzerland/Valais/AllSaintsDayTest.php index 26ff303ba..09320492c 100644 --- a/tests/Switzerland/Valais/AllSaintsDayTest.php +++ b/tests/Switzerland/Valais/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/AscensionDayTest.php b/tests/Switzerland/Valais/AscensionDayTest.php index 1aa69abde..66b0c2924 100644 --- a/tests/Switzerland/Valais/AscensionDayTest.php +++ b/tests/Switzerland/Valais/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/AssumptionOfMaryTest.php b/tests/Switzerland/Valais/AssumptionOfMaryTest.php index 781322dc6..63d80b7bb 100644 --- a/tests/Switzerland/Valais/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Valais/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/ChristmasDayTest.php b/tests/Switzerland/Valais/ChristmasDayTest.php index ea6197300..b906d9b70 100644 --- a/tests/Switzerland/Valais/ChristmasDayTest.php +++ b/tests/Switzerland/Valais/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/CorpusChristiTest.php b/tests/Switzerland/Valais/CorpusChristiTest.php index ae182062a..8ed688702 100644 --- a/tests/Switzerland/Valais/CorpusChristiTest.php +++ b/tests/Switzerland/Valais/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/ImmaculateConceptionTest.php b/tests/Switzerland/Valais/ImmaculateConceptionTest.php index 95079a831..e2863849c 100644 --- a/tests/Switzerland/Valais/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Valais/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/NewYearsDayTest.php b/tests/Switzerland/Valais/NewYearsDayTest.php index d171d741f..ab7ca1f5e 100644 --- a/tests/Switzerland/Valais/NewYearsDayTest.php +++ b/tests/Switzerland/Valais/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index 2588cb480..a045b2d0d 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/ValaisBaseTestCase.php b/tests/Switzerland/Valais/ValaisBaseTestCase.php index 2b78c1b4d..1fe8a5830 100644 --- a/tests/Switzerland/Valais/ValaisBaseTestCase.php +++ b/tests/Switzerland/Valais/ValaisBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Valais/ValaisTest.php b/tests/Switzerland/Valais/ValaisTest.php index c965f2569..a438ef04b 100644 --- a/tests/Switzerland/Valais/ValaisTest.php +++ b/tests/Switzerland/Valais/ValaisTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Valais; diff --git a/tests/Switzerland/Vaud/AscensionDayTest.php b/tests/Switzerland/Vaud/AscensionDayTest.php index 63b00e22d..7e57f5434 100644 --- a/tests/Switzerland/Vaud/AscensionDayTest.php +++ b/tests/Switzerland/Vaud/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/BerchtoldsTagTest.php b/tests/Switzerland/Vaud/BerchtoldsTagTest.php index 02d54dc22..490e9b72e 100644 --- a/tests/Switzerland/Vaud/BerchtoldsTagTest.php +++ b/tests/Switzerland/Vaud/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/BettagsMontagTest.php b/tests/Switzerland/Vaud/BettagsMontagTest.php index c7e104a1a..58a9f36e1 100644 --- a/tests/Switzerland/Vaud/BettagsMontagTest.php +++ b/tests/Switzerland/Vaud/BettagsMontagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/ChristmasDayTest.php b/tests/Switzerland/Vaud/ChristmasDayTest.php index 34e4cfd54..822e0a3db 100644 --- a/tests/Switzerland/Vaud/ChristmasDayTest.php +++ b/tests/Switzerland/Vaud/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/EasterMondayTest.php b/tests/Switzerland/Vaud/EasterMondayTest.php index 2ed6bff90..980e842c5 100644 --- a/tests/Switzerland/Vaud/EasterMondayTest.php +++ b/tests/Switzerland/Vaud/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/GoodFridayTest.php b/tests/Switzerland/Vaud/GoodFridayTest.php index 68e76a3cd..5bfdd10a9 100644 --- a/tests/Switzerland/Vaud/GoodFridayTest.php +++ b/tests/Switzerland/Vaud/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/NewYearsDayTest.php b/tests/Switzerland/Vaud/NewYearsDayTest.php index 7018bbf8c..50c3ad6c4 100644 --- a/tests/Switzerland/Vaud/NewYearsDayTest.php +++ b/tests/Switzerland/Vaud/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/PentecostMondayTest.php b/tests/Switzerland/Vaud/PentecostMondayTest.php index d79ebb8aa..bd04e71d5 100644 --- a/tests/Switzerland/Vaud/PentecostMondayTest.php +++ b/tests/Switzerland/Vaud/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/VaudBaseTestCase.php b/tests/Switzerland/Vaud/VaudBaseTestCase.php index 6e5be75de..9cd015ccf 100644 --- a/tests/Switzerland/Vaud/VaudBaseTestCase.php +++ b/tests/Switzerland/Vaud/VaudBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Vaud/VaudTest.php b/tests/Switzerland/Vaud/VaudTest.php index 01baeb87a..ad69463a8 100644 --- a/tests/Switzerland/Vaud/VaudTest.php +++ b/tests/Switzerland/Vaud/VaudTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Vaud; diff --git a/tests/Switzerland/Zug/AllSaintsDayTest.php b/tests/Switzerland/Zug/AllSaintsDayTest.php index 9bc625ce6..1caef5288 100644 --- a/tests/Switzerland/Zug/AllSaintsDayTest.php +++ b/tests/Switzerland/Zug/AllSaintsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/AscensionDayTest.php b/tests/Switzerland/Zug/AscensionDayTest.php index b5df5ea08..26c56445f 100644 --- a/tests/Switzerland/Zug/AscensionDayTest.php +++ b/tests/Switzerland/Zug/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/AssumptionOfMaryTest.php b/tests/Switzerland/Zug/AssumptionOfMaryTest.php index 11439d4ea..b8effabf2 100644 --- a/tests/Switzerland/Zug/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Zug/AssumptionOfMaryTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/BerchtoldsTagTest.php b/tests/Switzerland/Zug/BerchtoldsTagTest.php index b26654a03..bc8f62f3d 100644 --- a/tests/Switzerland/Zug/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zug/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/ChristmasDayTest.php b/tests/Switzerland/Zug/ChristmasDayTest.php index 484659aa4..7d95d1deb 100644 --- a/tests/Switzerland/Zug/ChristmasDayTest.php +++ b/tests/Switzerland/Zug/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/CorpusChristiTest.php b/tests/Switzerland/Zug/CorpusChristiTest.php index c91640c3a..095ce61a5 100644 --- a/tests/Switzerland/Zug/CorpusChristiTest.php +++ b/tests/Switzerland/Zug/CorpusChristiTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/EasterMondayTest.php b/tests/Switzerland/Zug/EasterMondayTest.php index 891f66004..ee7050c31 100644 --- a/tests/Switzerland/Zug/EasterMondayTest.php +++ b/tests/Switzerland/Zug/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/GoodFridayTest.php b/tests/Switzerland/Zug/GoodFridayTest.php index cdb9831d2..fd82419bd 100644 --- a/tests/Switzerland/Zug/GoodFridayTest.php +++ b/tests/Switzerland/Zug/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/ImmaculateConceptionTest.php b/tests/Switzerland/Zug/ImmaculateConceptionTest.php index 91e6bf029..28c172ae9 100644 --- a/tests/Switzerland/Zug/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Zug/ImmaculateConceptionTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/NewYearsDayTest.php b/tests/Switzerland/Zug/NewYearsDayTest.php index ffaa6f1d4..515ab93e0 100644 --- a/tests/Switzerland/Zug/NewYearsDayTest.php +++ b/tests/Switzerland/Zug/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/PentecostMondayTest.php b/tests/Switzerland/Zug/PentecostMondayTest.php index 4e9b5d2b2..5aea7a482 100644 --- a/tests/Switzerland/Zug/PentecostMondayTest.php +++ b/tests/Switzerland/Zug/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/StStephensDayTest.php b/tests/Switzerland/Zug/StStephensDayTest.php index 9e553034f..7cff5306e 100644 --- a/tests/Switzerland/Zug/StStephensDayTest.php +++ b/tests/Switzerland/Zug/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/ZugBaseTestCase.php b/tests/Switzerland/Zug/ZugBaseTestCase.php index 1a01ec863..ba3fc5e2a 100644 --- a/tests/Switzerland/Zug/ZugBaseTestCase.php +++ b/tests/Switzerland/Zug/ZugBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zug/ZugTest.php b/tests/Switzerland/Zug/ZugTest.php index 676d7e64a..f12fa4c45 100644 --- a/tests/Switzerland/Zug/ZugTest.php +++ b/tests/Switzerland/Zug/ZugTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zug; diff --git a/tests/Switzerland/Zurich/AscensionDayTest.php b/tests/Switzerland/Zurich/AscensionDayTest.php index d6a6834bb..1dd6763f4 100644 --- a/tests/Switzerland/Zurich/AscensionDayTest.php +++ b/tests/Switzerland/Zurich/AscensionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/BerchtoldsTagTest.php b/tests/Switzerland/Zurich/BerchtoldsTagTest.php index cf120077a..33e2d02ed 100644 --- a/tests/Switzerland/Zurich/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zurich/BerchtoldsTagTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/ChristmasDayTest.php b/tests/Switzerland/Zurich/ChristmasDayTest.php index b6db00615..52a6d9a24 100644 --- a/tests/Switzerland/Zurich/ChristmasDayTest.php +++ b/tests/Switzerland/Zurich/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/EasterMondayTest.php b/tests/Switzerland/Zurich/EasterMondayTest.php index f4f32a965..5e3db262b 100644 --- a/tests/Switzerland/Zurich/EasterMondayTest.php +++ b/tests/Switzerland/Zurich/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/GoodFridayTest.php b/tests/Switzerland/Zurich/GoodFridayTest.php index 46170aab5..26b081e78 100644 --- a/tests/Switzerland/Zurich/GoodFridayTest.php +++ b/tests/Switzerland/Zurich/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/NewYearsDayTest.php b/tests/Switzerland/Zurich/NewYearsDayTest.php index aa411516a..0d9025932 100644 --- a/tests/Switzerland/Zurich/NewYearsDayTest.php +++ b/tests/Switzerland/Zurich/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/PentecostMondayTest.php b/tests/Switzerland/Zurich/PentecostMondayTest.php index 42851a958..72e010c3d 100644 --- a/tests/Switzerland/Zurich/PentecostMondayTest.php +++ b/tests/Switzerland/Zurich/PentecostMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/StStephensDayTest.php b/tests/Switzerland/Zurich/StStephensDayTest.php index 8bc459d4a..75ffbdf16 100644 --- a/tests/Switzerland/Zurich/StStephensDayTest.php +++ b/tests/Switzerland/Zurich/StStephensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index 805e953e4..d31e773ec 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/ZurichBaseTestCase.php b/tests/Switzerland/Zurich/ZurichBaseTestCase.php index cba33d7f9..f750de30c 100644 --- a/tests/Switzerland/Zurich/ZurichBaseTestCase.php +++ b/tests/Switzerland/Zurich/ZurichBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/Switzerland/Zurich/ZurichTest.php b/tests/Switzerland/Zurich/ZurichTest.php index b1c8cc785..7635189a5 100644 --- a/tests/Switzerland/Zurich/ZurichTest.php +++ b/tests/Switzerland/Zurich/ZurichTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Switzerland\Zurich; diff --git a/tests/USA/ChristmasDayTest.php b/tests/USA/ChristmasDayTest.php index 1c14e5406..3bdc64c28 100644 --- a/tests/USA/ChristmasDayTest.php +++ b/tests/USA/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/ColumbusDayTest.php b/tests/USA/ColumbusDayTest.php index cabd8f681..c2d197597 100644 --- a/tests/USA/ColumbusDayTest.php +++ b/tests/USA/ColumbusDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/IndependenceDayTest.php b/tests/USA/IndependenceDayTest.php index 1c0e9b5ac..c397daab7 100644 --- a/tests/USA/IndependenceDayTest.php +++ b/tests/USA/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/LabourDayTest.php b/tests/USA/LabourDayTest.php index 455f9ebc7..bc1104ef1 100644 --- a/tests/USA/LabourDayTest.php +++ b/tests/USA/LabourDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/MartinLutherKingDayTest.php b/tests/USA/MartinLutherKingDayTest.php index e4f36527c..1469a80aa 100644 --- a/tests/USA/MartinLutherKingDayTest.php +++ b/tests/USA/MartinLutherKingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/MemorialDayTest.php b/tests/USA/MemorialDayTest.php index c7c61a86e..de7fabdc3 100644 --- a/tests/USA/MemorialDayTest.php +++ b/tests/USA/MemorialDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/NewYearsDayTest.php b/tests/USA/NewYearsDayTest.php index e0664a289..ed56aead0 100644 --- a/tests/USA/NewYearsDayTest.php +++ b/tests/USA/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/ThanksgivingDayTest.php b/tests/USA/ThanksgivingDayTest.php index 29fed1cc5..8674770bb 100644 --- a/tests/USA/ThanksgivingDayTest.php +++ b/tests/USA/ThanksgivingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/USABaseTestCase.php b/tests/USA/USABaseTestCase.php index 2e496a29b..d95ea782f 100644 --- a/tests/USA/USABaseTestCase.php +++ b/tests/USA/USABaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/USATest.php b/tests/USA/USATest.php index 5bf7e490c..74f53f3b5 100644 --- a/tests/USA/USATest.php +++ b/tests/USA/USATest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/VeteransDayTest.php b/tests/USA/VeteransDayTest.php index f7fbb3fd0..6d405bf41 100644 --- a/tests/USA/VeteransDayTest.php +++ b/tests/USA/VeteransDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/USA/WashingtonsBirthdayTest.php b/tests/USA/WashingtonsBirthdayTest.php index 204831aeb..21013ddbc 100644 --- a/tests/USA/WashingtonsBirthdayTest.php +++ b/tests/USA/WashingtonsBirthdayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\USA; diff --git a/tests/Ukraine/ChristmasDayTest.php b/tests/Ukraine/ChristmasDayTest.php index 8057a1951..4c29561c7 100644 --- a/tests/Ukraine/ChristmasDayTest.php +++ b/tests/Ukraine/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/ConstitutionDayTest.php b/tests/Ukraine/ConstitutionDayTest.php index 9d0747c76..2e30100f3 100644 --- a/tests/Ukraine/ConstitutionDayTest.php +++ b/tests/Ukraine/ConstitutionDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/DefenderOfUkraineDayTest.php b/tests/Ukraine/DefenderOfUkraineDayTest.php index 800e0bcee..4bac7cdd5 100644 --- a/tests/Ukraine/DefenderOfUkraineDayTest.php +++ b/tests/Ukraine/DefenderOfUkraineDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/EasterTest.php b/tests/Ukraine/EasterTest.php index 48eaef953..c1f7138e6 100644 --- a/tests/Ukraine/EasterTest.php +++ b/tests/Ukraine/EasterTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/IndependenceDayTest.php b/tests/Ukraine/IndependenceDayTest.php index a40a99e82..a5fb847ef 100644 --- a/tests/Ukraine/IndependenceDayTest.php +++ b/tests/Ukraine/IndependenceDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/InternationalWomensDayTest.php b/tests/Ukraine/InternationalWomensDayTest.php index 765512c4d..9cc029089 100644 --- a/tests/Ukraine/InternationalWomensDayTest.php +++ b/tests/Ukraine/InternationalWomensDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/InternationalWorkersDayTest.php b/tests/Ukraine/InternationalWorkersDayTest.php index 8b9dbaec2..8e4850a39 100644 --- a/tests/Ukraine/InternationalWorkersDayTest.php +++ b/tests/Ukraine/InternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/NewYearsDayTest.php b/tests/Ukraine/NewYearsDayTest.php index 508ea3370..a699f9d1a 100644 --- a/tests/Ukraine/NewYearsDayTest.php +++ b/tests/Ukraine/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/PentecostTest.php b/tests/Ukraine/PentecostTest.php index 7ee155976..ac6345ebf 100644 --- a/tests/Ukraine/PentecostTest.php +++ b/tests/Ukraine/PentecostTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/SecondInternationalWorkersDayTest.php b/tests/Ukraine/SecondInternationalWorkersDayTest.php index 00d8ef2ee..f6014f6c5 100644 --- a/tests/Ukraine/SecondInternationalWorkersDayTest.php +++ b/tests/Ukraine/SecondInternationalWorkersDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/UkraineBaseTestCase.php b/tests/Ukraine/UkraineBaseTestCase.php index ebf1cf563..d3aa2da61 100644 --- a/tests/Ukraine/UkraineBaseTestCase.php +++ b/tests/Ukraine/UkraineBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/UkraineTest.php b/tests/Ukraine/UkraineTest.php index 7b2358bdc..1e0c85032 100644 --- a/tests/Ukraine/UkraineTest.php +++ b/tests/Ukraine/UkraineTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/Ukraine/VictoryDayTest.php b/tests/Ukraine/VictoryDayTest.php index fdef8f44e..45c405f5d 100644 --- a/tests/Ukraine/VictoryDayTest.php +++ b/tests/Ukraine/VictoryDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\Ukraine; diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index b1d85cfb4..f74f105b9 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index 2c876a053..579cf4f03 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index 9e26206ce..c142d3ef1 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/GoodFridayTest.php b/tests/UnitedKingdom/GoodFridayTest.php index 151962f93..6ffe6336c 100644 --- a/tests/UnitedKingdom/GoodFridayTest.php +++ b/tests/UnitedKingdom/GoodFridayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/MayDayBankHolidayTest.php b/tests/UnitedKingdom/MayDayBankHolidayTest.php index ac3aea173..d75c895db 100644 --- a/tests/UnitedKingdom/MayDayBankHolidayTest.php +++ b/tests/UnitedKingdom/MayDayBankHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 36ccfb8a2..95122e3b6 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/SpringBankHolidayTest.php b/tests/UnitedKingdom/SpringBankHolidayTest.php index db9810c66..95f75f76f 100644 --- a/tests/UnitedKingdom/SpringBankHolidayTest.php +++ b/tests/UnitedKingdom/SpringBankHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/SummerBankHolidayTest.php b/tests/UnitedKingdom/SummerBankHolidayTest.php index 91cfdc299..99b14a136 100644 --- a/tests/UnitedKingdom/SummerBankHolidayTest.php +++ b/tests/UnitedKingdom/SummerBankHolidayTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php b/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php index e4912ce5f..c074ccbbc 100644 --- a/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php +++ b/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/UnitedKingdom/UnitedKingdomTest.php b/tests/UnitedKingdom/UnitedKingdomTest.php index 11e99e23a..762ffdf02 100644 --- a/tests/UnitedKingdom/UnitedKingdomTest.php +++ b/tests/UnitedKingdom/UnitedKingdomTest.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests\UnitedKingdom; diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 404522cc0..077871b5f 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests; diff --git a/tests/YasumiTestCaseInterface.php b/tests/YasumiTestCaseInterface.php index 384dd7be2..e98bb8835 100644 --- a/tests/YasumiTestCaseInterface.php +++ b/tests/YasumiTestCaseInterface.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @author Sacha Telgenhof + * @author Sacha Telgenhof */ namespace Yasumi\tests; From 2ea6992f5d4eb53f26521c34bf0696951409ecd9 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 12:26:36 +0900 Subject: [PATCH 098/132] Updated locales list (based on CLDR v34). Signed-off-by: Sacha Telgenhof --- src/Yasumi/data/locales.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Yasumi/data/locales.php b/src/Yasumi/data/locales.php index b854f01e1..9b8a65476 100644 --- a/src/Yasumi/data/locales.php +++ b/src/Yasumi/data/locales.php @@ -238,6 +238,19 @@ 'fa_IR', 'ff_CM', 'ff_GN', + 'ff_Latn', + 'ff_Latn_BF', + 'ff_Latn_CM', + 'ff_Latn_GH', + 'ff_Latn_GM', + 'ff_Latn_GN', + 'ff_Latn_GW', + 'ff_Latn_LR', + 'ff_Latn_MR', + 'ff_Latn_NE', + 'ff_Latn_NG', + 'ff_Latn_SL', + 'ff_Latn_SN', 'ff_MR', 'ff_SN', 'fi_FI', @@ -312,6 +325,7 @@ 'hsb_DE', 'hu_HU', 'hy_AM', + 'ia_001', 'id_ID', 'ig_NG', 'ii_CN', @@ -323,6 +337,7 @@ 'ja_JP', 'jgo_CM', 'jmc_TZ', + 'jv_ID', 'ka_GE', 'kab_DZ', 'kam_KE', @@ -343,6 +358,7 @@ 'ksb_TZ', 'ksf_CM', 'ksh_DE', + 'ku_TR', 'kw_GB', 'ky_KG', 'lag_TZ', @@ -368,6 +384,7 @@ 'mg_MG', 'mgh_MZ', 'mgo_CM', + 'mi_NZ', 'mk_MK', 'ml_IN', 'mn_MN', @@ -517,6 +534,7 @@ 'vun_TZ', 'wae_CH', 'wo_SN', + 'xh_ZA', 'xog_UG', 'yav_CM', 'yo_BJ', From 1c31e7c3af517b9e6eb225980c7455a323a0ef5c Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 12:30:01 +0900 Subject: [PATCH 099/132] Added PHP 7.3 Signed-off-by: Sacha Telgenhof --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 51d24d72e..bcae4d677 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: php php: - 7.1 - 7.2 + - 7.3 - nightly dist: trusty @@ -36,5 +37,7 @@ matrix: env: PHPSTAN=1 - php: 7.2 env: PHPSTAN=1 + - php: 7.3 + env: PHPSTAN=1 - php: hhvm env: HHVM=true From 374bfc4d18fef0d9395e069eb786dbed455c290b Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 12:44:24 +0900 Subject: [PATCH 100/132] Bumped PHPStan version. Signed-off-by: Sacha Telgenhof --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bcae4d677..8797c29a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ before_script: - composer install --no-interaction script: - - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.9 && vendor/bin/phpstan analyse -l 7 src; fi + - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.10 && vendor/bin/phpstan analyse -l 7 src; fi - ./vendor/bin/phpunit - phpenv config-rm xdebug.ini || return 0 - ./vendor/bin/php-cs-fixer --diff --dry-run -v fix From a6b6c8fe22897a3c455e879ccf4587a077701ba1 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 16:04:29 +0900 Subject: [PATCH 101/132] Corrected second parameter for the preg_quote function as it expects a string value. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Yasumi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index fb2b17bc7..86ee9fa89 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -235,7 +235,7 @@ public static function getProviders(): array continue; } - $quotedDs = \preg_quote(DIRECTORY_SEPARATOR, null); + $quotedDs = \preg_quote(DIRECTORY_SEPARATOR, ''); $provider = \preg_replace("#^.+{$quotedDs}Provider{$quotedDs}(.+)\\.php$#", '$1', $file->getPathName()); $class = new ReflectionClass(\sprintf('Yasumi\Provider\%s', \str_replace('/', '\\', $provider))); From f86652526b7e204e214cc4905fb7343c686e8798 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 16:06:13 +0900 Subject: [PATCH 102/132] Dropped (temporarily) PHPStan's analyse level to 5 for CI as it caused false negatives (need further investigation). Signed-off-by: Sacha Telgenhof --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8797c29a6..c206d55c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ before_script: - composer install --no-interaction script: - - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.10 && vendor/bin/phpstan analyse -l 7 src; fi + - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.10 && vendor/bin/phpstan analyse -l 5 src; fi - ./vendor/bin/phpunit - phpenv config-rm xdebug.ini || return 0 - ./vendor/bin/php-cs-fixer --diff --dry-run -v fix From 6928d67f52d102affb77e9ba4ced70068cad7779 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 16:53:36 +0900 Subject: [PATCH 103/132] Added access modifier for the ID constant. Visibility defaults to public access however always better to show the intention. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Holiday.php | 12 ++++++------ src/Yasumi/Provider/AbstractProvider.php | 4 ++-- src/Yasumi/Provider/Australia.php | 2 +- src/Yasumi/Provider/Australia/ACT.php | 2 +- src/Yasumi/Provider/Australia/NSW.php | 2 +- src/Yasumi/Provider/Australia/NT.php | 2 +- src/Yasumi/Provider/Australia/Queensland.php | 2 +- .../Provider/Australia/Queensland/Brisbane.php | 2 +- src/Yasumi/Provider/Australia/SA.php | 2 +- src/Yasumi/Provider/Australia/Tasmania.php | 2 +- .../Australia/Tasmania/CentralNorth.php | 2 +- .../Australia/Tasmania/FlindersIsland.php | 2 +- .../Provider/Australia/Tasmania/KingIsland.php | 2 +- .../Provider/Australia/Tasmania/Northeast.php | 2 +- .../Provider/Australia/Tasmania/Northwest.php | 2 +- .../Tasmania/Northwest/CircularHead.php | 2 +- .../Provider/Australia/Tasmania/South.php | 2 +- .../Australia/Tasmania/South/Southeast.php | 2 +- src/Yasumi/Provider/Australia/Victoria.php | 2 +- src/Yasumi/Provider/Australia/WA.php | 2 +- src/Yasumi/Provider/Austria.php | 2 +- src/Yasumi/Provider/Belgium.php | 2 +- src/Yasumi/Provider/Bosnia.php | 2 +- src/Yasumi/Provider/Brazil.php | 2 +- src/Yasumi/Provider/Croatia.php | 2 +- src/Yasumi/Provider/CzechRepublic.php | 2 +- src/Yasumi/Provider/Denmark.php | 2 +- src/Yasumi/Provider/Estonia.php | 8 ++++---- src/Yasumi/Provider/Finland.php | 2 +- src/Yasumi/Provider/France.php | 2 +- src/Yasumi/Provider/France/BasRhin.php | 2 +- src/Yasumi/Provider/France/HautRhin.php | 2 +- src/Yasumi/Provider/France/Moselle.php | 2 +- src/Yasumi/Provider/Germany.php | 2 +- .../Provider/Germany/BadenWurttemberg.php | 2 +- src/Yasumi/Provider/Germany/Bavaria.php | 2 +- src/Yasumi/Provider/Germany/Berlin.php | 2 +- src/Yasumi/Provider/Germany/Brandenburg.php | 2 +- src/Yasumi/Provider/Germany/Bremen.php | 2 +- src/Yasumi/Provider/Germany/Hamburg.php | 2 +- src/Yasumi/Provider/Germany/Hesse.php | 2 +- src/Yasumi/Provider/Germany/LowerSaxony.php | 2 +- .../Germany/MecklenburgWesternPomerania.php | 2 +- .../Provider/Germany/NorthRhineWestphalia.php | 2 +- .../Provider/Germany/RhinelandPalatinate.php | 2 +- src/Yasumi/Provider/Germany/Saarland.php | 2 +- src/Yasumi/Provider/Germany/Saxony.php | 2 +- src/Yasumi/Provider/Germany/SaxonyAnhalt.php | 2 +- .../Provider/Germany/SchleswigHolstein.php | 2 +- src/Yasumi/Provider/Germany/Thuringia.php | 2 +- src/Yasumi/Provider/Greece.php | 2 +- src/Yasumi/Provider/Hungary.php | 2 +- src/Yasumi/Provider/Ireland.php | 2 +- src/Yasumi/Provider/Italy.php | 2 +- src/Yasumi/Provider/Japan.php | 18 +++++++++--------- src/Yasumi/Provider/Latvia.php | 6 +++--- src/Yasumi/Provider/Lithuania.php | 8 ++++---- src/Yasumi/Provider/Netherlands.php | 2 +- src/Yasumi/Provider/NewZealand.php | 2 +- src/Yasumi/Provider/Norway.php | 2 +- src/Yasumi/Provider/Poland.php | 2 +- src/Yasumi/Provider/Portugal.php | 2 +- src/Yasumi/Provider/Romania.php | 2 +- src/Yasumi/Provider/Russia.php | 8 ++++---- src/Yasumi/Provider/Slovakia.php | 2 +- src/Yasumi/Provider/SouthAfrica.php | 2 +- src/Yasumi/Provider/Spain.php | 2 +- src/Yasumi/Provider/Spain/Andalusia.php | 2 +- src/Yasumi/Provider/Spain/Aragon.php | 2 +- src/Yasumi/Provider/Spain/Asturias.php | 2 +- src/Yasumi/Provider/Spain/BalearicIslands.php | 2 +- src/Yasumi/Provider/Spain/BasqueCountry.php | 2 +- src/Yasumi/Provider/Spain/CanaryIslands.php | 2 +- src/Yasumi/Provider/Spain/Cantabria.php | 2 +- src/Yasumi/Provider/Spain/CastileAndLeon.php | 2 +- src/Yasumi/Provider/Spain/CastillaLaMancha.php | 2 +- src/Yasumi/Provider/Spain/Catalonia.php | 2 +- src/Yasumi/Provider/Spain/Ceuta.php | 2 +- .../Provider/Spain/CommunityOfMadrid.php | 2 +- src/Yasumi/Provider/Spain/Extremadura.php | 2 +- src/Yasumi/Provider/Spain/Galicia.php | 2 +- src/Yasumi/Provider/Spain/LaRioja.php | 2 +- src/Yasumi/Provider/Spain/Melilla.php | 2 +- src/Yasumi/Provider/Spain/Navarre.php | 2 +- src/Yasumi/Provider/Spain/RegionOfMurcia.php | 2 +- .../Provider/Spain/ValencianCommunity.php | 2 +- src/Yasumi/Provider/Sweden.php | 2 +- src/Yasumi/Provider/Switzerland.php | 2 +- src/Yasumi/Provider/Switzerland/Aargau.php | 2 +- .../Switzerland/AppenzellAusserrhoden.php | 2 +- .../Switzerland/AppenzellInnerrhoden.php | 2 +- .../Provider/Switzerland/BaselLandschaft.php | 2 +- src/Yasumi/Provider/Switzerland/BaselStadt.php | 2 +- src/Yasumi/Provider/Switzerland/Bern.php | 2 +- src/Yasumi/Provider/Switzerland/Fribourg.php | 2 +- src/Yasumi/Provider/Switzerland/Geneva.php | 2 +- src/Yasumi/Provider/Switzerland/Glarus.php | 2 +- src/Yasumi/Provider/Switzerland/Grisons.php | 2 +- src/Yasumi/Provider/Switzerland/Jura.php | 2 +- src/Yasumi/Provider/Switzerland/Lucerne.php | 2 +- src/Yasumi/Provider/Switzerland/Neuchatel.php | 2 +- src/Yasumi/Provider/Switzerland/Nidwalden.php | 2 +- src/Yasumi/Provider/Switzerland/Obwalden.php | 2 +- .../Provider/Switzerland/Schaffhausen.php | 2 +- src/Yasumi/Provider/Switzerland/Schwyz.php | 2 +- src/Yasumi/Provider/Switzerland/Solothurn.php | 2 +- src/Yasumi/Provider/Switzerland/StGallen.php | 2 +- src/Yasumi/Provider/Switzerland/Thurgau.php | 2 +- src/Yasumi/Provider/Switzerland/Ticino.php | 2 +- src/Yasumi/Provider/Switzerland/Uri.php | 2 +- src/Yasumi/Provider/Switzerland/Valais.php | 2 +- src/Yasumi/Provider/Switzerland/Vaud.php | 2 +- src/Yasumi/Provider/Switzerland/Zug.php | 2 +- src/Yasumi/Provider/Switzerland/Zurich.php | 2 +- src/Yasumi/Provider/USA.php | 2 +- src/Yasumi/Provider/Ukraine.php | 2 +- src/Yasumi/Provider/UnitedKingdom.php | 2 +- src/Yasumi/Yasumi.php | 2 +- 118 files changed, 143 insertions(+), 143 deletions(-) diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index 51948d013..1a72e145e 100755 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -25,32 +25,32 @@ class Holiday extends DateTime implements JsonSerializable /** * Type definition for Official (i.e. National/Federal) holidays. */ - const TYPE_OFFICIAL = 'official'; + public const TYPE_OFFICIAL = 'official'; /** * Type definition for Observance holidays. */ - const TYPE_OBSERVANCE = 'observance'; + public const TYPE_OBSERVANCE = 'observance'; /** * Type definition for seasonal holidays. */ - const TYPE_SEASON = 'season'; + public const TYPE_SEASON = 'season'; /** * Type definition for Bank holidays. */ - const TYPE_BANK = 'bank'; + public const TYPE_BANK = 'bank'; /** * Type definition for other type of holidays. */ - const TYPE_OTHER = 'other'; + public const TYPE_OTHER = 'other'; /** * The default locale. Used for translations of holiday names and other text strings. */ - const DEFAULT_LOCALE = 'en_US'; + public const DEFAULT_LOCALE = 'en_US'; /** * @var array list of all defined locales diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index 5b69c6b22..e7b138caa 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -32,13 +32,13 @@ abstract class AbstractProvider implements ProviderInterface, Countable, Iterato * Code to identify the Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'US'; + public const ID = 'US'; /** * @var array list of the days of the week (the index of the weekdays) that are considered weekend days. * This list only concerns those countries that deviate from the global common definition, * where the weekend starts on Saturday and ends on Sunday (0 = Sunday, 1 = Monday, etc.). */ - const WEEKEND_DATA = [ + public const WEEKEND_DATA = [ // Thursday and Friday 'AF' => [4, 5], // Afghanistan diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index f2e7bae16..7fe7a4c24 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -28,7 +28,7 @@ class Australia extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU'; + public const ID = 'AU'; public $timezone = 'Australia/Melbourne'; diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index 895444842..008ee3fba 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -28,7 +28,7 @@ class ACT extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-ACT'; + public const ID = 'AU-ACT'; public $timezone = 'Australia/ACT'; diff --git a/src/Yasumi/Provider/Australia/NSW.php b/src/Yasumi/Provider/Australia/NSW.php index 0ee5b8e45..f814aa39d 100644 --- a/src/Yasumi/Provider/Australia/NSW.php +++ b/src/Yasumi/Provider/Australia/NSW.php @@ -28,7 +28,7 @@ class NSW extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-NSW'; + public const ID = 'AU-NSW'; public $timezone = 'Australia/NSW'; diff --git a/src/Yasumi/Provider/Australia/NT.php b/src/Yasumi/Provider/Australia/NT.php index abf907c14..af7da2b28 100644 --- a/src/Yasumi/Provider/Australia/NT.php +++ b/src/Yasumi/Provider/Australia/NT.php @@ -28,7 +28,7 @@ class NT extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-NT'; + public const ID = 'AU-NT'; public $timezone = 'Australia/North'; diff --git a/src/Yasumi/Provider/Australia/Queensland.php b/src/Yasumi/Provider/Australia/Queensland.php index 6c74693e1..270494b5c 100644 --- a/src/Yasumi/Provider/Australia/Queensland.php +++ b/src/Yasumi/Provider/Australia/Queensland.php @@ -27,7 +27,7 @@ class Queensland extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-QLD'; + public const ID = 'AU-QLD'; public $timezone = 'Australia/Queensland'; diff --git a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php index 3b4b488d3..5379e5889 100644 --- a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php +++ b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php @@ -29,7 +29,7 @@ class Brisbane extends Queensland * country or sub-region. This one is not a proper ISO3166 code, but there isn't one specifically for Brisbane, * and I believe this is a logical extension. */ - const ID = 'AU-QLD-BRI'; + public const ID = 'AU-QLD-BRI'; public $timezone = 'Australia/Brisbane'; diff --git a/src/Yasumi/Provider/Australia/SA.php b/src/Yasumi/Provider/Australia/SA.php index 2d652fe43..6ead599e4 100644 --- a/src/Yasumi/Provider/Australia/SA.php +++ b/src/Yasumi/Provider/Australia/SA.php @@ -28,7 +28,7 @@ class SA extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-SA'; + public const ID = 'AU-SA'; public $timezone = 'Australia/South'; diff --git a/src/Yasumi/Provider/Australia/Tasmania.php b/src/Yasumi/Provider/Australia/Tasmania.php index 223543815..cc0b40b0e 100644 --- a/src/Yasumi/Provider/Australia/Tasmania.php +++ b/src/Yasumi/Provider/Australia/Tasmania.php @@ -27,7 +27,7 @@ class Tasmania extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-TAS'; + public const ID = 'AU-TAS'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php index 96d38d207..ae8ae15fe 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -28,7 +28,7 @@ class CentralNorth extends Tasmania * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-CN'; + public const ID = 'AU-TAS-CN'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php index bbde12c95..61c6b8ac2 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php @@ -29,7 +29,7 @@ class FlindersIsland extends Tasmania * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-FI'; + public const ID = 'AU-TAS-FI'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php index 337c4d537..0d2b85c22 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -27,7 +27,7 @@ class KingIsland extends Tasmania * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-KI'; + public const ID = 'AU-TAS-KI'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php index d3fa5c178..4e5934951 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php @@ -29,7 +29,7 @@ class Northeast extends Tasmania * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-NE'; + public const ID = 'AU-TAS-NE'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php index cf034029c..a7c7f8f78 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php @@ -29,7 +29,7 @@ class Northwest extends Tasmania * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-NW'; + public const ID = 'AU-TAS-NW'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php index d4e9e5edf..da18bf330 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php @@ -29,7 +29,7 @@ class CircularHead extends Northwest * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-NW-CH'; + public const ID = 'AU-TAS-NW-CH'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/South.php b/src/Yasumi/Provider/Australia/Tasmania/South.php index 0025cfcf1..c0ab55c38 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South.php @@ -29,7 +29,7 @@ class South extends Tasmania * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-SOU'; + public const ID = 'AU-TAS-SOU'; public $timezone = 'Australia/Tasmania'; diff --git a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php index 97a46630f..0faceab3f 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php @@ -27,7 +27,7 @@ class Southeast extends South * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, * and I believe it to be a logical extension. */ - const ID = 'AU-TAS-SOU-SE'; + public const ID = 'AU-TAS-SOU-SE'; public $timezone = 'Australia/Hobart'; diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index 921487eb1..7e906d444 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -28,7 +28,7 @@ class Victoria extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-VIC'; + public const ID = 'AU-VIC'; public $timezone = 'Australia/Victoria'; diff --git a/src/Yasumi/Provider/Australia/WA.php b/src/Yasumi/Provider/Australia/WA.php index 032012103..e4e223385 100644 --- a/src/Yasumi/Provider/Australia/WA.php +++ b/src/Yasumi/Provider/Australia/WA.php @@ -27,7 +27,7 @@ class WA extends Australia * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AU-WA'; + public const ID = 'AU-WA'; public $timezone = 'Australia/West'; diff --git a/src/Yasumi/Provider/Austria.php b/src/Yasumi/Provider/Austria.php index 558da8841..e837e83ba 100644 --- a/src/Yasumi/Provider/Austria.php +++ b/src/Yasumi/Provider/Austria.php @@ -27,7 +27,7 @@ class Austria extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'AT'; + public const ID = 'AT'; /** * Initialize holidays for Austria. diff --git a/src/Yasumi/Provider/Belgium.php b/src/Yasumi/Provider/Belgium.php index 821f0fa12..f24b25e8d 100755 --- a/src/Yasumi/Provider/Belgium.php +++ b/src/Yasumi/Provider/Belgium.php @@ -27,7 +27,7 @@ class Belgium extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'BE'; + public const ID = 'BE'; /** * Initialize holidays for Belgium. diff --git a/src/Yasumi/Provider/Bosnia.php b/src/Yasumi/Provider/Bosnia.php index fb2f24173..ed0c7f4b6 100644 --- a/src/Yasumi/Provider/Bosnia.php +++ b/src/Yasumi/Provider/Bosnia.php @@ -29,7 +29,7 @@ class Bosnia extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'BA'; + public const ID = 'BA'; /** * Initialize holidays for Bosnia. diff --git a/src/Yasumi/Provider/Brazil.php b/src/Yasumi/Provider/Brazil.php index 67aab9c0e..02a954a3d 100644 --- a/src/Yasumi/Provider/Brazil.php +++ b/src/Yasumi/Provider/Brazil.php @@ -28,7 +28,7 @@ class Brazil extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'BR'; + public const ID = 'BR'; /** * Initialize holidays for Brazil. diff --git a/src/Yasumi/Provider/Croatia.php b/src/Yasumi/Provider/Croatia.php index fe75a08f3..19c3186bf 100644 --- a/src/Yasumi/Provider/Croatia.php +++ b/src/Yasumi/Provider/Croatia.php @@ -29,7 +29,7 @@ class Croatia extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'HR'; + public const ID = 'HR'; /** * Initialize holidays for Croatia. diff --git a/src/Yasumi/Provider/CzechRepublic.php b/src/Yasumi/Provider/CzechRepublic.php index 6d1df3afd..d70e85cb6 100644 --- a/src/Yasumi/Provider/CzechRepublic.php +++ b/src/Yasumi/Provider/CzechRepublic.php @@ -30,7 +30,7 @@ class CzechRepublic extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CZ'; + public const ID = 'CZ'; /** * Initialize holidays for the Czech Republic. diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index 9f3b92a7a..97df9f10d 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -28,7 +28,7 @@ class Denmark extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DK'; + public const ID = 'DK'; /** * Initialize holidays for Denmark. diff --git a/src/Yasumi/Provider/Estonia.php b/src/Yasumi/Provider/Estonia.php index baae1bb24..3c37a6495 100644 --- a/src/Yasumi/Provider/Estonia.php +++ b/src/Yasumi/Provider/Estonia.php @@ -24,17 +24,17 @@ class Estonia extends AbstractProvider { use CommonHolidays, ChristianHolidays; - const DECLARATION_OF_INDEPENDENCE_YEAR = 1918; + public const DECLARATION_OF_INDEPENDENCE_YEAR = 1918; - const VICTORY_DAY_START_YEAR = 1934; + public const VICTORY_DAY_START_YEAR = 1934; - const RESTORATION_OF_INDEPENDENCE_YEAR = 1991; + public const RESTORATION_OF_INDEPENDENCE_YEAR = 1991; /** * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'EE'; + public const ID = 'EE'; /** * Initialize holidays for Estonia. diff --git a/src/Yasumi/Provider/Finland.php b/src/Yasumi/Provider/Finland.php index 429767b91..c26c8467a 100644 --- a/src/Yasumi/Provider/Finland.php +++ b/src/Yasumi/Provider/Finland.php @@ -28,7 +28,7 @@ class Finland extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'FI'; + public const ID = 'FI'; /** * Initialize holidays for Finland. diff --git a/src/Yasumi/Provider/France.php b/src/Yasumi/Provider/France.php index 01971ed16..a0b307ba1 100755 --- a/src/Yasumi/Provider/France.php +++ b/src/Yasumi/Provider/France.php @@ -27,7 +27,7 @@ class France extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'FR'; + public const ID = 'FR'; /** * Initialize holidays for France. diff --git a/src/Yasumi/Provider/France/BasRhin.php b/src/Yasumi/Provider/France/BasRhin.php index 2d51b02a6..e940e79b1 100755 --- a/src/Yasumi/Provider/France/BasRhin.php +++ b/src/Yasumi/Provider/France/BasRhin.php @@ -32,7 +32,7 @@ class BasRhin extends France * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'FR-67'; + public const ID = 'FR-67'; /** * Initialize holidays for Bas-Rhin (France). diff --git a/src/Yasumi/Provider/France/HautRhin.php b/src/Yasumi/Provider/France/HautRhin.php index ea486d6d8..911153c0c 100755 --- a/src/Yasumi/Provider/France/HautRhin.php +++ b/src/Yasumi/Provider/France/HautRhin.php @@ -32,7 +32,7 @@ class HautRhin extends France * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'FR-68'; + public const ID = 'FR-68'; /** * Initialize holidays for Haut-Rhin (France). diff --git a/src/Yasumi/Provider/France/Moselle.php b/src/Yasumi/Provider/France/Moselle.php index 43f83d92a..bd9052793 100755 --- a/src/Yasumi/Provider/France/Moselle.php +++ b/src/Yasumi/Provider/France/Moselle.php @@ -33,7 +33,7 @@ class Moselle extends France * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'FR-57'; + public const ID = 'FR-57'; /** * Initialize holidays for Moselle (France). diff --git a/src/Yasumi/Provider/Germany.php b/src/Yasumi/Provider/Germany.php index 218fba504..53474abef 100644 --- a/src/Yasumi/Provider/Germany.php +++ b/src/Yasumi/Provider/Germany.php @@ -27,7 +27,7 @@ class Germany extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE'; + public const ID = 'DE'; /** * Initialize holidays for Germany. diff --git a/src/Yasumi/Provider/Germany/BadenWurttemberg.php b/src/Yasumi/Provider/Germany/BadenWurttemberg.php index 2f945cb2f..272e2871d 100755 --- a/src/Yasumi/Provider/Germany/BadenWurttemberg.php +++ b/src/Yasumi/Provider/Germany/BadenWurttemberg.php @@ -30,7 +30,7 @@ class BadenWurttemberg extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-BW'; + public const ID = 'DE-BW'; /** * Initialize holidays for Baden-Württemberg (Germany). diff --git a/src/Yasumi/Provider/Germany/Bavaria.php b/src/Yasumi/Provider/Germany/Bavaria.php index 5cd0ab022..ae1351933 100755 --- a/src/Yasumi/Provider/Germany/Bavaria.php +++ b/src/Yasumi/Provider/Germany/Bavaria.php @@ -31,7 +31,7 @@ class Bavaria extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-BY'; + public const ID = 'DE-BY'; /** * Initialize holidays for Bavaria (Germany). diff --git a/src/Yasumi/Provider/Germany/Berlin.php b/src/Yasumi/Provider/Germany/Berlin.php index 48443a21d..f0f5f8e60 100755 --- a/src/Yasumi/Provider/Germany/Berlin.php +++ b/src/Yasumi/Provider/Germany/Berlin.php @@ -30,5 +30,5 @@ class Berlin extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-BE'; + public const ID = 'DE-BE'; } diff --git a/src/Yasumi/Provider/Germany/Brandenburg.php b/src/Yasumi/Provider/Germany/Brandenburg.php index 8d1175211..b86471bb0 100755 --- a/src/Yasumi/Provider/Germany/Brandenburg.php +++ b/src/Yasumi/Provider/Germany/Brandenburg.php @@ -29,7 +29,7 @@ class Brandenburg extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-BB'; + public const ID = 'DE-BB'; /** * Initialize holidays for Brandenburg (Germany). diff --git a/src/Yasumi/Provider/Germany/Bremen.php b/src/Yasumi/Provider/Germany/Bremen.php index d70fde98a..88f8fc62e 100755 --- a/src/Yasumi/Provider/Germany/Bremen.php +++ b/src/Yasumi/Provider/Germany/Bremen.php @@ -29,7 +29,7 @@ class Bremen extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-HB'; + public const ID = 'DE-HB'; /** * Initialize holidays for Bremen (Germany). diff --git a/src/Yasumi/Provider/Germany/Hamburg.php b/src/Yasumi/Provider/Germany/Hamburg.php index e47b93492..3a17fcb3e 100755 --- a/src/Yasumi/Provider/Germany/Hamburg.php +++ b/src/Yasumi/Provider/Germany/Hamburg.php @@ -31,7 +31,7 @@ class Hamburg extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-HH'; + public const ID = 'DE-HH'; /** * Initialize holidays for Schleswig-Holstein (Germany). diff --git a/src/Yasumi/Provider/Germany/Hesse.php b/src/Yasumi/Provider/Germany/Hesse.php index 1d3bffbbc..5a5159683 100755 --- a/src/Yasumi/Provider/Germany/Hesse.php +++ b/src/Yasumi/Provider/Germany/Hesse.php @@ -31,7 +31,7 @@ class Hesse extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-HE'; + public const ID = 'DE-HE'; /** * Initialize holidays for Hesse (Germany). diff --git a/src/Yasumi/Provider/Germany/LowerSaxony.php b/src/Yasumi/Provider/Germany/LowerSaxony.php index 4bbaa58c5..66b68a0c8 100755 --- a/src/Yasumi/Provider/Germany/LowerSaxony.php +++ b/src/Yasumi/Provider/Germany/LowerSaxony.php @@ -30,7 +30,7 @@ class LowerSaxony extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-NI'; + public const ID = 'DE-NI'; /** * Initialize holidays for Lower Saxony (Germany). diff --git a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php index a648506ba..60bffd239 100755 --- a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php +++ b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php @@ -30,7 +30,7 @@ class MecklenburgWesternPomerania extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-MV'; + public const ID = 'DE-MV'; /** * Initialize holidays for Mecklenburg-Western Pomerania (Germany). diff --git a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php index 238a4644b..93c10ddef 100755 --- a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php +++ b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php @@ -31,7 +31,7 @@ class NorthRhineWestphalia extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-NW'; + public const ID = 'DE-NW'; /** * Initialize holidays for North Rhine-Westphalia (Germany). diff --git a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php index ef6c252d0..b1dd888c1 100755 --- a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php +++ b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php @@ -30,7 +30,7 @@ class RhinelandPalatinate extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-RP'; + public const ID = 'DE-RP'; /** * Initialize holidays for Rhineland Palatinate (Germany). diff --git a/src/Yasumi/Provider/Germany/Saarland.php b/src/Yasumi/Provider/Germany/Saarland.php index 4184864b7..9b5affca2 100755 --- a/src/Yasumi/Provider/Germany/Saarland.php +++ b/src/Yasumi/Provider/Germany/Saarland.php @@ -31,7 +31,7 @@ class Saarland extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-SL'; + public const ID = 'DE-SL'; /** * Initialize holidays for Saarland (Germany). diff --git a/src/Yasumi/Provider/Germany/Saxony.php b/src/Yasumi/Provider/Germany/Saxony.php index 55da27ecd..6d05c3173 100755 --- a/src/Yasumi/Provider/Germany/Saxony.php +++ b/src/Yasumi/Provider/Germany/Saxony.php @@ -32,7 +32,7 @@ class Saxony extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-SN'; + public const ID = 'DE-SN'; /** * Initialize holidays for Saxony (Germany). diff --git a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php index 5483552bd..86340d98c 100755 --- a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php +++ b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php @@ -30,7 +30,7 @@ class SaxonyAnhalt extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-ST'; + public const ID = 'DE-ST'; /** * Initialize holidays for Saxony-Anhalt (Germany). diff --git a/src/Yasumi/Provider/Germany/SchleswigHolstein.php b/src/Yasumi/Provider/Germany/SchleswigHolstein.php index 406e306eb..e70af6025 100755 --- a/src/Yasumi/Provider/Germany/SchleswigHolstein.php +++ b/src/Yasumi/Provider/Germany/SchleswigHolstein.php @@ -29,7 +29,7 @@ class SchleswigHolstein extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-SH'; + public const ID = 'DE-SH'; /** * Initialize holidays for Schleswig-Holstein (Germany). diff --git a/src/Yasumi/Provider/Germany/Thuringia.php b/src/Yasumi/Provider/Germany/Thuringia.php index ded7ed679..fac908291 100755 --- a/src/Yasumi/Provider/Germany/Thuringia.php +++ b/src/Yasumi/Provider/Germany/Thuringia.php @@ -30,7 +30,7 @@ class Thuringia extends Germany * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'DE-TH'; + public const ID = 'DE-TH'; /** * Initialize holidays for Thuringia (Germany). diff --git a/src/Yasumi/Provider/Greece.php b/src/Yasumi/Provider/Greece.php index e6af79ef7..bfa698401 100644 --- a/src/Yasumi/Provider/Greece.php +++ b/src/Yasumi/Provider/Greece.php @@ -28,7 +28,7 @@ class Greece extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'GR'; + public const ID = 'GR'; /** * Initialize holidays for Greece. diff --git a/src/Yasumi/Provider/Hungary.php b/src/Yasumi/Provider/Hungary.php index ed86b3f39..368cd4aca 100644 --- a/src/Yasumi/Provider/Hungary.php +++ b/src/Yasumi/Provider/Hungary.php @@ -29,7 +29,7 @@ class Hungary extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'HU'; + public const ID = 'HU'; /** * Initialize holidays for Hungary. diff --git a/src/Yasumi/Provider/Ireland.php b/src/Yasumi/Provider/Ireland.php index a046fa6ea..5e869842a 100644 --- a/src/Yasumi/Provider/Ireland.php +++ b/src/Yasumi/Provider/Ireland.php @@ -33,7 +33,7 @@ class Ireland extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'IE'; + public const ID = 'IE'; /** * Initialize holidays for Ireland. diff --git a/src/Yasumi/Provider/Italy.php b/src/Yasumi/Provider/Italy.php index 4d2940649..b7b93128f 100755 --- a/src/Yasumi/Provider/Italy.php +++ b/src/Yasumi/Provider/Italy.php @@ -27,7 +27,7 @@ class Italy extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'IT'; + public const ID = 'IT'; /** * Initialize holidays for Italy. diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index bb57eebab..ca899925a 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -29,47 +29,47 @@ class Japan extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'JP'; + public const ID = 'JP'; /** * The gradient parameter of the approximate expression to calculate equinox day. */ - const EQUINOX_GRADIENT = 0.242194; + public const EQUINOX_GRADIENT = 0.242194; /** * The initial parameter of the approximate expression to calculate vernal equinox day from 1900 to 1979. */ - const VERNAL_EQUINOX_PARAM_1979 = 20.8357; + public const VERNAL_EQUINOX_PARAM_1979 = 20.8357; /** * The initial parameter of the approximate expression to calculate vernal equinox day from 1980 to 2099. */ - const VERNAL_EQUINOX_PARAM_2099 = 20.8431; + public const VERNAL_EQUINOX_PARAM_2099 = 20.8431; /** * The initial parameter of the approximate expression to calculate vernal equinox day from 2100 to 2150. */ - const VERNAL_EQUINOX_PARAM_2150 = 21.8510; + public const VERNAL_EQUINOX_PARAM_2150 = 21.8510; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 1851 to 1899. */ - const AUTUMNAL_EQUINOX_PARAM_1899 = 22.2588; + public const AUTUMNAL_EQUINOX_PARAM_1899 = 22.2588; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 1900 to 1979. */ - const AUTUMNAL_EQUINOX_PARAM_1979 = 23.2588; + public const AUTUMNAL_EQUINOX_PARAM_1979 = 23.2588; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 1980 to 2099. */ - const AUTUMNAL_EQUINOX_PARAM_2099 = 23.2488; + public const AUTUMNAL_EQUINOX_PARAM_2099 = 23.2488; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 2100 to 2150. */ - const AUTUMNAL_EQUINOX_PARAM_2150 = 24.2488; + public const AUTUMNAL_EQUINOX_PARAM_2150 = 24.2488; /** * Initialize holidays for Japan. diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 236b43cfd..47f57273c 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -24,15 +24,15 @@ class Latvia extends AbstractProvider { use CommonHolidays, ChristianHolidays; - const RESTORATION_OF_INDEPENDENCE_YEAR = 1990; + public const RESTORATION_OF_INDEPENDENCE_YEAR = 1990; - const PROCLAMATION_OF_INDEPENDENCE_YEAR = 1918; + public const PROCLAMATION_OF_INDEPENDENCE_YEAR = 1918; /** * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'LV'; + public const ID = 'LV'; /** * Initialize holidays for Latvia. diff --git a/src/Yasumi/Provider/Lithuania.php b/src/Yasumi/Provider/Lithuania.php index a6f959783..22002c6bf 100644 --- a/src/Yasumi/Provider/Lithuania.php +++ b/src/Yasumi/Provider/Lithuania.php @@ -28,22 +28,22 @@ class Lithuania extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'LT'; + public const ID = 'LT'; /** * The year when The Act of Reinstating Independence of Lithuania was signed. */ - const RESTORATION_OF_THE_STATE_YEAR = 1918; + public const RESTORATION_OF_THE_STATE_YEAR = 1918; /** * The year when The Act of the Re-Establishment of the State of Lithuania was signed. */ - const RESTORATION_OF_INDEPENDENCE_YEAR = 1990; + public const RESTORATION_OF_INDEPENDENCE_YEAR = 1990; /** * A year when Mindaugas was crowned as the only King of Lithuania. */ - const STATEHOOD_YEAR = 1253; + public const STATEHOOD_YEAR = 1253; /** * Initialize holidays for Lithuania. diff --git a/src/Yasumi/Provider/Netherlands.php b/src/Yasumi/Provider/Netherlands.php index 0cb66cdbf..6b9d7cd39 100755 --- a/src/Yasumi/Provider/Netherlands.php +++ b/src/Yasumi/Provider/Netherlands.php @@ -28,7 +28,7 @@ class Netherlands extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'NL'; + public const ID = 'NL'; /** * Initialize holidays for the Netherlands. diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index ffc4d5213..4d646d4f5 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -28,7 +28,7 @@ class NewZealand extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'NZ'; + public const ID = 'NZ'; /** * Initialize holidays for New Zealand. diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index 86355109f..ec5d227d1 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -27,7 +27,7 @@ class Norway extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'NO'; + public const ID = 'NO'; /** * Initialize holidays for Norway. diff --git a/src/Yasumi/Provider/Poland.php b/src/Yasumi/Provider/Poland.php index a41fed8eb..91e7b1eaf 100755 --- a/src/Yasumi/Provider/Poland.php +++ b/src/Yasumi/Provider/Poland.php @@ -27,7 +27,7 @@ class Poland extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'PL'; + public const ID = 'PL'; /** * Initialize holidays for Poland. diff --git a/src/Yasumi/Provider/Portugal.php b/src/Yasumi/Provider/Portugal.php index a4c33da19..3779b045a 100644 --- a/src/Yasumi/Provider/Portugal.php +++ b/src/Yasumi/Provider/Portugal.php @@ -31,7 +31,7 @@ class Portugal extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'PT'; + public const ID = 'PT'; /** * Initialize holidays for Portugal. diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index 416335038..6afea0d5a 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -32,7 +32,7 @@ class Romania extends AbstractProvider * Code to identify this Holiday Provider. * Typically this is the ISO3166 code corresponding to the respective country or sub-region. */ - const ID = 'RO'; + public const ID = 'RO'; /** * Initialize holidays for Romania. diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index 0cf47d0bf..f0f646e81 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -23,17 +23,17 @@ class Russia extends AbstractProvider { use CommonHolidays; - const DEFENCE_OF_THE_FATHERLAND_START_YEAR = 1919; + public const DEFENCE_OF_THE_FATHERLAND_START_YEAR = 1919; - const RUSSIA_DAY_START_YEAR = 1990; + public const RUSSIA_DAY_START_YEAR = 1990; - const UNITY_DAY_START_YEAR = 2005; + public const UNITY_DAY_START_YEAR = 2005; /** * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'RU'; + public const ID = 'RU'; /** * Initialize holidays for Russia. diff --git a/src/Yasumi/Provider/Slovakia.php b/src/Yasumi/Provider/Slovakia.php index f17cbe712..887202c5f 100644 --- a/src/Yasumi/Provider/Slovakia.php +++ b/src/Yasumi/Provider/Slovakia.php @@ -53,7 +53,7 @@ class Slovakia extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'SK'; + public const ID = 'SK'; /** * Initialize holidays for Slovakia. diff --git a/src/Yasumi/Provider/SouthAfrica.php b/src/Yasumi/Provider/SouthAfrica.php index d87f40eed..3325d8856 100644 --- a/src/Yasumi/Provider/SouthAfrica.php +++ b/src/Yasumi/Provider/SouthAfrica.php @@ -33,7 +33,7 @@ class SouthAfrica extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ZA'; + public const ID = 'ZA'; /** * Initialize holidays for South Africa. diff --git a/src/Yasumi/Provider/Spain.php b/src/Yasumi/Provider/Spain.php index 3201e0d4b..ff67ce033 100755 --- a/src/Yasumi/Provider/Spain.php +++ b/src/Yasumi/Provider/Spain.php @@ -27,7 +27,7 @@ class Spain extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES'; + public const ID = 'ES'; /** * Initialize holidays for Spain. diff --git a/src/Yasumi/Provider/Spain/Andalusia.php b/src/Yasumi/Provider/Spain/Andalusia.php index e36e2519c..949a55c67 100755 --- a/src/Yasumi/Provider/Spain/Andalusia.php +++ b/src/Yasumi/Provider/Spain/Andalusia.php @@ -35,7 +35,7 @@ class Andalusia extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-AN'; + public const ID = 'ES-AN'; /** * Initialize holidays for Andalusia (Spain). diff --git a/src/Yasumi/Provider/Spain/Aragon.php b/src/Yasumi/Provider/Spain/Aragon.php index 66eb4fdf2..9a562fa0d 100755 --- a/src/Yasumi/Provider/Spain/Aragon.php +++ b/src/Yasumi/Provider/Spain/Aragon.php @@ -34,7 +34,7 @@ class Aragon extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-AR'; + public const ID = 'ES-AR'; /** * Initialize holidays for Aragon (Spain). diff --git a/src/Yasumi/Provider/Spain/Asturias.php b/src/Yasumi/Provider/Spain/Asturias.php index f3c7a740f..e547f80a0 100755 --- a/src/Yasumi/Provider/Spain/Asturias.php +++ b/src/Yasumi/Provider/Spain/Asturias.php @@ -36,7 +36,7 @@ class Asturias extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-AS'; + public const ID = 'ES-AS'; /** * Initialize holidays for Asturias (Spain). diff --git a/src/Yasumi/Provider/Spain/BalearicIslands.php b/src/Yasumi/Provider/Spain/BalearicIslands.php index 70ea65320..a8a0f821d 100755 --- a/src/Yasumi/Provider/Spain/BalearicIslands.php +++ b/src/Yasumi/Provider/Spain/BalearicIslands.php @@ -35,7 +35,7 @@ class BalearicIslands extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-IB'; + public const ID = 'ES-IB'; /** * Initialize holidays for Balearic Islands (Spain). diff --git a/src/Yasumi/Provider/Spain/BasqueCountry.php b/src/Yasumi/Provider/Spain/BasqueCountry.php index 0e6a5d715..736334460 100755 --- a/src/Yasumi/Provider/Spain/BasqueCountry.php +++ b/src/Yasumi/Provider/Spain/BasqueCountry.php @@ -34,7 +34,7 @@ class BasqueCountry extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-PV'; + public const ID = 'ES-PV'; /** * Initialize holidays for Basque Country (Spain). diff --git a/src/Yasumi/Provider/Spain/CanaryIslands.php b/src/Yasumi/Provider/Spain/CanaryIslands.php index 0e3023bc4..3bc75ca1a 100755 --- a/src/Yasumi/Provider/Spain/CanaryIslands.php +++ b/src/Yasumi/Provider/Spain/CanaryIslands.php @@ -36,7 +36,7 @@ class CanaryIslands extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-CN'; + public const ID = 'ES-CN'; /** * Initialize holidays for Canary Islands (Spain). diff --git a/src/Yasumi/Provider/Spain/Cantabria.php b/src/Yasumi/Provider/Spain/Cantabria.php index bdec9c1b5..d121b57ef 100755 --- a/src/Yasumi/Provider/Spain/Cantabria.php +++ b/src/Yasumi/Provider/Spain/Cantabria.php @@ -36,7 +36,7 @@ class Cantabria extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-CB'; + public const ID = 'ES-CB'; /** * Initialize holidays for Cantabria (Spain). diff --git a/src/Yasumi/Provider/Spain/CastileAndLeon.php b/src/Yasumi/Provider/Spain/CastileAndLeon.php index 4210bae29..f2bb18b30 100755 --- a/src/Yasumi/Provider/Spain/CastileAndLeon.php +++ b/src/Yasumi/Provider/Spain/CastileAndLeon.php @@ -37,7 +37,7 @@ class CastileAndLeon extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-CL'; + public const ID = 'ES-CL'; /** * Initialize holidays for Castile and León (Spain). diff --git a/src/Yasumi/Provider/Spain/CastillaLaMancha.php b/src/Yasumi/Provider/Spain/CastillaLaMancha.php index 722fa3fa7..a5165aa6e 100755 --- a/src/Yasumi/Provider/Spain/CastillaLaMancha.php +++ b/src/Yasumi/Provider/Spain/CastillaLaMancha.php @@ -37,7 +37,7 @@ class CastillaLaMancha extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-CM'; + public const ID = 'ES-CM'; /** * Initialize holidays for Castilla-La Mancha (Spain). diff --git a/src/Yasumi/Provider/Spain/Catalonia.php b/src/Yasumi/Provider/Spain/Catalonia.php index 1abca0c6b..0b2487e65 100755 --- a/src/Yasumi/Provider/Spain/Catalonia.php +++ b/src/Yasumi/Provider/Spain/Catalonia.php @@ -38,7 +38,7 @@ class Catalonia extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-CT'; + public const ID = 'ES-CT'; /** * Initialize holidays for Catalonia (Spain). diff --git a/src/Yasumi/Provider/Spain/Ceuta.php b/src/Yasumi/Provider/Spain/Ceuta.php index ac8aa472e..9a51713e9 100755 --- a/src/Yasumi/Provider/Spain/Ceuta.php +++ b/src/Yasumi/Provider/Spain/Ceuta.php @@ -35,7 +35,7 @@ class Ceuta extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-CE'; + public const ID = 'ES-CE'; /** * Initialize holidays for Ceuta (Spain). diff --git a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php index effdb6145..880cc88ca 100755 --- a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php +++ b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php @@ -37,7 +37,7 @@ class CommunityOfMadrid extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-MD'; + public const ID = 'ES-MD'; /** * Initialize holidays for the Community Of Madrid (Spain). diff --git a/src/Yasumi/Provider/Spain/Extremadura.php b/src/Yasumi/Provider/Spain/Extremadura.php index b998dd5b9..d8e3f0719 100755 --- a/src/Yasumi/Provider/Spain/Extremadura.php +++ b/src/Yasumi/Provider/Spain/Extremadura.php @@ -36,7 +36,7 @@ class Extremadura extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-EX'; + public const ID = 'ES-EX'; /** * Initialize holidays for Extremadura (Spain). diff --git a/src/Yasumi/Provider/Spain/Galicia.php b/src/Yasumi/Provider/Spain/Galicia.php index afff59956..c7aa73f4e 100755 --- a/src/Yasumi/Provider/Spain/Galicia.php +++ b/src/Yasumi/Provider/Spain/Galicia.php @@ -36,7 +36,7 @@ class Galicia extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-GA'; + public const ID = 'ES-GA'; /** * Initialize holidays for Galicia (Spain). diff --git a/src/Yasumi/Provider/Spain/LaRioja.php b/src/Yasumi/Provider/Spain/LaRioja.php index f6a792616..80a7aa554 100755 --- a/src/Yasumi/Provider/Spain/LaRioja.php +++ b/src/Yasumi/Provider/Spain/LaRioja.php @@ -35,7 +35,7 @@ class LaRioja extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-RI'; + public const ID = 'ES-RI'; /** * Initialize holidays for La Rioja (Spain). diff --git a/src/Yasumi/Provider/Spain/Melilla.php b/src/Yasumi/Provider/Spain/Melilla.php index 73a5396bd..2881e3ca1 100755 --- a/src/Yasumi/Provider/Spain/Melilla.php +++ b/src/Yasumi/Provider/Spain/Melilla.php @@ -33,7 +33,7 @@ class Melilla extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-ML'; + public const ID = 'ES-ML'; /** * Initialize holidays for Melilla (Spain). diff --git a/src/Yasumi/Provider/Spain/Navarre.php b/src/Yasumi/Provider/Spain/Navarre.php index f189f664b..865222b1d 100755 --- a/src/Yasumi/Provider/Spain/Navarre.php +++ b/src/Yasumi/Provider/Spain/Navarre.php @@ -33,7 +33,7 @@ class Navarre extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-NC'; + public const ID = 'ES-NC'; /** * Initialize holidays for Navarre (Spain). diff --git a/src/Yasumi/Provider/Spain/RegionOfMurcia.php b/src/Yasumi/Provider/Spain/RegionOfMurcia.php index be2d54c1c..f94dc9163 100755 --- a/src/Yasumi/Provider/Spain/RegionOfMurcia.php +++ b/src/Yasumi/Provider/Spain/RegionOfMurcia.php @@ -35,7 +35,7 @@ class RegionOfMurcia extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-MC'; + public const ID = 'ES-MC'; /** * Initialize holidays for the Region of Murcia (Spain). diff --git a/src/Yasumi/Provider/Spain/ValencianCommunity.php b/src/Yasumi/Provider/Spain/ValencianCommunity.php index e195723a3..534ea5106 100755 --- a/src/Yasumi/Provider/Spain/ValencianCommunity.php +++ b/src/Yasumi/Provider/Spain/ValencianCommunity.php @@ -38,7 +38,7 @@ class ValencianCommunity extends Spain * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'ES-VC'; + public const ID = 'ES-VC'; /** * Initialize holidays for the Valencian Community (Spain). diff --git a/src/Yasumi/Provider/Sweden.php b/src/Yasumi/Provider/Sweden.php index 01aaf02eb..a5f02c8fd 100644 --- a/src/Yasumi/Provider/Sweden.php +++ b/src/Yasumi/Provider/Sweden.php @@ -28,7 +28,7 @@ class Sweden extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'SE'; + public const ID = 'SE'; /** * Initialize holidays for Sweden. diff --git a/src/Yasumi/Provider/Switzerland.php b/src/Yasumi/Provider/Switzerland.php index 0a548649f..d7249037c 100644 --- a/src/Yasumi/Provider/Switzerland.php +++ b/src/Yasumi/Provider/Switzerland.php @@ -28,7 +28,7 @@ class Switzerland extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH'; + public const ID = 'CH'; /** * Initialize holidays for Switzerland. diff --git a/src/Yasumi/Provider/Switzerland/Aargau.php b/src/Yasumi/Provider/Switzerland/Aargau.php index cec6cdcb9..4652d0103 100644 --- a/src/Yasumi/Provider/Switzerland/Aargau.php +++ b/src/Yasumi/Provider/Switzerland/Aargau.php @@ -29,7 +29,7 @@ class Aargau extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-AG'; + public const ID = 'CH-AG'; /** * Initialize holidays for Aargau (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php index 5e94ed585..1ab550f9d 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php @@ -29,7 +29,7 @@ class AppenzellAusserrhoden extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-AR'; + public const ID = 'CH-AR'; /** * Initialize holidays for Appenzell Ausserrhoden (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php index 668bccf5b..aba9bc17c 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php @@ -29,7 +29,7 @@ class AppenzellInnerrhoden extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-AI'; + public const ID = 'CH-AI'; /** * Initialize holidays for Appenzell Innerrhoden (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php index 7ff91d2fe..8d112e5a4 100644 --- a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php +++ b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php @@ -29,7 +29,7 @@ class BaselLandschaft extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-BL'; + public const ID = 'CH-BL'; /** * Initialize holidays for Basel-Landschaft (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/BaselStadt.php b/src/Yasumi/Provider/Switzerland/BaselStadt.php index 89b0218f1..ce3f9c36d 100644 --- a/src/Yasumi/Provider/Switzerland/BaselStadt.php +++ b/src/Yasumi/Provider/Switzerland/BaselStadt.php @@ -29,7 +29,7 @@ class BaselStadt extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-BS'; + public const ID = 'CH-BS'; /** * Initialize holidays for Basel-Stadt (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Bern.php b/src/Yasumi/Provider/Switzerland/Bern.php index 2b5a045ad..22969478a 100644 --- a/src/Yasumi/Provider/Switzerland/Bern.php +++ b/src/Yasumi/Provider/Switzerland/Bern.php @@ -29,7 +29,7 @@ class Bern extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-BE'; + public const ID = 'CH-BE'; /** * Initialize holidays for Bern (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Fribourg.php b/src/Yasumi/Provider/Switzerland/Fribourg.php index 724fc4140..06a01a28b 100644 --- a/src/Yasumi/Provider/Switzerland/Fribourg.php +++ b/src/Yasumi/Provider/Switzerland/Fribourg.php @@ -29,7 +29,7 @@ class Fribourg extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-FR'; + public const ID = 'CH-FR'; /** * Initialize holidays for Fribourg (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index ce1e2bd10..c876f884e 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -32,7 +32,7 @@ class Geneva extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-GE'; + public const ID = 'CH-GE'; /** * Initialize holidays for Geneva (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Glarus.php b/src/Yasumi/Provider/Switzerland/Glarus.php index 982c7f0fb..62a54d20f 100644 --- a/src/Yasumi/Provider/Switzerland/Glarus.php +++ b/src/Yasumi/Provider/Switzerland/Glarus.php @@ -31,7 +31,7 @@ class Glarus extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-GL'; + public const ID = 'CH-GL'; /** * Initialize holidays for Glarus (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Grisons.php b/src/Yasumi/Provider/Switzerland/Grisons.php index 2f6451e0a..09974fac3 100644 --- a/src/Yasumi/Provider/Switzerland/Grisons.php +++ b/src/Yasumi/Provider/Switzerland/Grisons.php @@ -29,7 +29,7 @@ class Grisons extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-GR'; + public const ID = 'CH-GR'; /** * Initialize holidays for Grisons (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index 3ad900a55..9558c9805 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -31,7 +31,7 @@ class Jura extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-JU'; + public const ID = 'CH-JU'; /** * Initialize holidays for Jura (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Lucerne.php b/src/Yasumi/Provider/Switzerland/Lucerne.php index 05e447738..618bbec71 100644 --- a/src/Yasumi/Provider/Switzerland/Lucerne.php +++ b/src/Yasumi/Provider/Switzerland/Lucerne.php @@ -29,7 +29,7 @@ class Lucerne extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-LU'; + public const ID = 'CH-LU'; /** * Initialize holidays for Lucerne (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Neuchatel.php b/src/Yasumi/Provider/Switzerland/Neuchatel.php index 6a892e652..c41bc452c 100644 --- a/src/Yasumi/Provider/Switzerland/Neuchatel.php +++ b/src/Yasumi/Provider/Switzerland/Neuchatel.php @@ -31,7 +31,7 @@ class Neuchatel extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-NE'; + public const ID = 'CH-NE'; /** * Initialize holidays for Neuchâtel (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Nidwalden.php b/src/Yasumi/Provider/Switzerland/Nidwalden.php index 9be57b18c..342ab4dc3 100644 --- a/src/Yasumi/Provider/Switzerland/Nidwalden.php +++ b/src/Yasumi/Provider/Switzerland/Nidwalden.php @@ -29,7 +29,7 @@ class Nidwalden extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-NW'; + public const ID = 'CH-NW'; /** * Initialize holidays for Nidwalden (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Obwalden.php b/src/Yasumi/Provider/Switzerland/Obwalden.php index 16e5bcad9..6fe70c0b6 100644 --- a/src/Yasumi/Provider/Switzerland/Obwalden.php +++ b/src/Yasumi/Provider/Switzerland/Obwalden.php @@ -31,7 +31,7 @@ class Obwalden extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-OW'; + public const ID = 'CH-OW'; /** * Initialize holidays for Obwalden (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Schaffhausen.php b/src/Yasumi/Provider/Switzerland/Schaffhausen.php index 1a019aef2..a7499d1dd 100644 --- a/src/Yasumi/Provider/Switzerland/Schaffhausen.php +++ b/src/Yasumi/Provider/Switzerland/Schaffhausen.php @@ -29,7 +29,7 @@ class Schaffhausen extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-SH'; + public const ID = 'CH-SH'; /** * Initialize holidays for Schaffhausen (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Schwyz.php b/src/Yasumi/Provider/Switzerland/Schwyz.php index 2ee444127..8ff0ff709 100644 --- a/src/Yasumi/Provider/Switzerland/Schwyz.php +++ b/src/Yasumi/Provider/Switzerland/Schwyz.php @@ -29,7 +29,7 @@ class Schwyz extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-SZ'; + public const ID = 'CH-SZ'; /** * Initialize holidays for Schwyz (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Solothurn.php b/src/Yasumi/Provider/Switzerland/Solothurn.php index c32aa3462..3f6e50679 100644 --- a/src/Yasumi/Provider/Switzerland/Solothurn.php +++ b/src/Yasumi/Provider/Switzerland/Solothurn.php @@ -29,7 +29,7 @@ class Solothurn extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-SO'; + public const ID = 'CH-SO'; /** * Initialize holidays for Solothurn (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/StGallen.php b/src/Yasumi/Provider/Switzerland/StGallen.php index 86f6bfecd..19ce3a1f0 100644 --- a/src/Yasumi/Provider/Switzerland/StGallen.php +++ b/src/Yasumi/Provider/Switzerland/StGallen.php @@ -29,7 +29,7 @@ class StGallen extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-SG'; + public const ID = 'CH-SG'; /** * Initialize holidays for St. Gallen (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Thurgau.php b/src/Yasumi/Provider/Switzerland/Thurgau.php index 7447d374c..33ff3e088 100644 --- a/src/Yasumi/Provider/Switzerland/Thurgau.php +++ b/src/Yasumi/Provider/Switzerland/Thurgau.php @@ -29,7 +29,7 @@ class Thurgau extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-TG'; + public const ID = 'CH-TG'; /** * Initialize holidays for Thurgau (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index 657bedf06..c068b1109 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -31,7 +31,7 @@ class Ticino extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-TI'; + public const ID = 'CH-TI'; /** * Initialize holidays for Ticino (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Uri.php b/src/Yasumi/Provider/Switzerland/Uri.php index f51144040..ebf2985d4 100644 --- a/src/Yasumi/Provider/Switzerland/Uri.php +++ b/src/Yasumi/Provider/Switzerland/Uri.php @@ -29,7 +29,7 @@ class Uri extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-UR'; + public const ID = 'CH-UR'; /** * Initialize holidays for Uri (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Valais.php b/src/Yasumi/Provider/Switzerland/Valais.php index 93f83044a..2d43b8d9e 100644 --- a/src/Yasumi/Provider/Switzerland/Valais.php +++ b/src/Yasumi/Provider/Switzerland/Valais.php @@ -29,7 +29,7 @@ class Valais extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-VS'; + public const ID = 'CH-VS'; /** * Initialize holidays for Valais (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Vaud.php b/src/Yasumi/Provider/Switzerland/Vaud.php index 46f8360e5..f19227d69 100644 --- a/src/Yasumi/Provider/Switzerland/Vaud.php +++ b/src/Yasumi/Provider/Switzerland/Vaud.php @@ -29,7 +29,7 @@ class Vaud extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-VD'; + public const ID = 'CH-VD'; /** * Initialize holidays for Vaud (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Zug.php b/src/Yasumi/Provider/Switzerland/Zug.php index e987b270f..17a9c0e96 100644 --- a/src/Yasumi/Provider/Switzerland/Zug.php +++ b/src/Yasumi/Provider/Switzerland/Zug.php @@ -29,7 +29,7 @@ class Zug extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-ZG'; + public const ID = 'CH-ZG'; /** * Initialize holidays for Zug (Switzerland). diff --git a/src/Yasumi/Provider/Switzerland/Zurich.php b/src/Yasumi/Provider/Switzerland/Zurich.php index 5f82ff841..b9501369f 100644 --- a/src/Yasumi/Provider/Switzerland/Zurich.php +++ b/src/Yasumi/Provider/Switzerland/Zurich.php @@ -29,7 +29,7 @@ class Zurich extends Switzerland * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'CH-ZH'; + public const ID = 'CH-ZH'; /** * Initialize holidays for Zürich (Switzerland). diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index 4022a6a63..f60975e69 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -28,7 +28,7 @@ class USA extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'US'; + public const ID = 'US'; /** * Initialize holidays for the USA. diff --git a/src/Yasumi/Provider/Ukraine.php b/src/Yasumi/Provider/Ukraine.php index b590b9431..ccb234aa3 100644 --- a/src/Yasumi/Provider/Ukraine.php +++ b/src/Yasumi/Provider/Ukraine.php @@ -30,7 +30,7 @@ class Ukraine extends AbstractProvider * Code to identify this Holiday Provider. * Typically this is the ISO3166 code corresponding to the respective country or sub-region. */ - const ID = 'UA'; + public const ID = 'UA'; /** * Initialize holidays for Ukraine. diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index 61dca42bb..db305b347 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -29,7 +29,7 @@ class UnitedKingdom extends AbstractProvider * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective * country or sub-region. */ - const ID = 'GB'; + public const ID = 'GB'; /** * Initialize holidays for the United Kingdom. diff --git a/src/Yasumi/Yasumi.php b/src/Yasumi/Yasumi.php index 86ee9fa89..a9f9b9955 100755 --- a/src/Yasumi/Yasumi.php +++ b/src/Yasumi/Yasumi.php @@ -29,7 +29,7 @@ class Yasumi /** * Default locale. */ - const DEFAULT_LOCALE = 'en_US'; + public const DEFAULT_LOCALE = 'en_US'; /** * @var array list of all defined locales From 68f6c33510b310a70c6ac0baf765fac477a49af9 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 16:59:06 +0900 Subject: [PATCH 104/132] Removed unnecessary timezone variable as it is the same as the parent class. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php | 2 -- src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php | 2 -- src/Yasumi/Provider/Australia/Tasmania/KingIsland.php | 2 -- src/Yasumi/Provider/Australia/Tasmania/Northeast.php | 2 -- src/Yasumi/Provider/Australia/Tasmania/Northwest.php | 2 -- .../Provider/Australia/Tasmania/Northwest/CircularHead.php | 2 -- src/Yasumi/Provider/Australia/Tasmania/South.php | 2 -- 7 files changed, 14 deletions(-) diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php index ae8ae15fe..ff37b7f03 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -30,8 +30,6 @@ class CentralNorth extends Tasmania */ public const ID = 'AU-TAS-CN'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for northeastern Tasmania (Australia). * diff --git a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php index 61c6b8ac2..1266f6a12 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php @@ -31,8 +31,6 @@ class FlindersIsland extends Tasmania */ public const ID = 'AU-TAS-FI'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for Flinders Island (Australia). * diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php index 0d2b85c22..3e252f4ff 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -29,8 +29,6 @@ class KingIsland extends Tasmania */ public const ID = 'AU-TAS-KI'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for King Island (Australia). * diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php index 4e5934951..83be41e92 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php @@ -31,8 +31,6 @@ class Northeast extends Tasmania */ public const ID = 'AU-TAS-NE'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for northeastern Tasmania (Australia). * diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php index a7c7f8f78..6f307f15f 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php @@ -31,8 +31,6 @@ class Northwest extends Tasmania */ public const ID = 'AU-TAS-NW'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for northwestern Tasmania (Australia). * diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php index da18bf330..1c0daf0dc 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php @@ -31,8 +31,6 @@ class CircularHead extends Northwest */ public const ID = 'AU-TAS-NW-CH'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for Circular Head (Australia). * diff --git a/src/Yasumi/Provider/Australia/Tasmania/South.php b/src/Yasumi/Provider/Australia/Tasmania/South.php index c0ab55c38..bd50b983c 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South.php @@ -31,8 +31,6 @@ class South extends Tasmania */ public const ID = 'AU-TAS-SOU'; - public $timezone = 'Australia/Tasmania'; - /** * Initialize holidays for southern Tasmania (Australia). * From 95d2d433d4ff421c8b5d9a05852f368c1166f1f2 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 17:11:30 +0900 Subject: [PATCH 105/132] Applied strict (type) comparison. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Filters/OnFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Filters/OnFilter.php b/src/Yasumi/Filters/OnFilter.php index ed722c9ef..41fc4053f 100644 --- a/src/Yasumi/Filters/OnFilter.php +++ b/src/Yasumi/Filters/OnFilter.php @@ -55,7 +55,7 @@ public function __construct( public function accept(): bool { $holiday = $this->getInnerIterator()->current()->format('Y-m-d'); - return $holiday == $this->date; + return $holiday === $this->date; } /** From ec8b4d3d031b886dad7932f35e30b21e77a725f2 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 17:15:12 +0900 Subject: [PATCH 106/132] Applied strict (type) comparison. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Japan.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index ca899925a..d732aa6bc 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -301,7 +301,7 @@ private function calculateGreeneryDay() private function calculateMarineDay() { $date = null; - if ($this->year == 2020) { + if ($this->year === 2020) { $date = new DateTime("$this->year-7-23", new DateTimeZone($this->timezone)); } elseif ($this->year >= 2003) { $date = new DateTime("third monday of july $this->year", new DateTimeZone($this->timezone)); @@ -332,7 +332,7 @@ private function calculateMarineDay() private function caluclateMountainDay() { $date = null; - if ($this->year == 2020) { + if ($this->year === 2020) { $date = new DateTime("$this->year-8-10", new DateTimeZone($this->timezone)); } elseif ($this->year >= 2016) { $date = new DateTime("$this->year-8-11", new DateTimeZone($this->timezone)); @@ -395,7 +395,7 @@ private function calculateRespectForTheAgeDay() private function calculateHealthAndSportsDay() { $date = null; - if ($this->year == 2020) { + if ($this->year === 2020) { $date = new DateTime("$this->year-7-24", new DateTimeZone($this->timezone)); } elseif ($this->year >= 2000) { $date = new DateTime("second monday of october $this->year", new DateTimeZone($this->timezone)); From 53ec2f9e405ea7043d68f6d681ddd1fd0cd82408 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 20:08:32 +0900 Subject: [PATCH 107/132] Return type hint added. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/AbstractProvider.php | 26 +++++++++++-------- src/Yasumi/Provider/Australia.php | 12 ++++----- src/Yasumi/Provider/Australia/ACT.php | 10 +++---- src/Yasumi/Provider/Australia/NSW.php | 8 +++--- src/Yasumi/Provider/Australia/NT.php | 8 +++--- src/Yasumi/Provider/Australia/Queensland.php | 6 ++--- .../Australia/Queensland/Brisbane.php | 4 +-- src/Yasumi/Provider/Australia/SA.php | 10 +++---- src/Yasumi/Provider/Australia/Tasmania.php | 8 +++--- .../Australia/Tasmania/CentralNorth.php | 4 +-- .../Australia/Tasmania/FlindersIsland.php | 4 +-- .../Australia/Tasmania/KingIsland.php | 4 +-- .../Provider/Australia/Tasmania/Northeast.php | 4 +-- .../Provider/Australia/Tasmania/Northwest.php | 4 +-- .../Tasmania/Northwest/CircularHead.php | 4 +-- .../Provider/Australia/Tasmania/South.php | 4 +-- .../Australia/Tasmania/South/Southeast.php | 4 +-- src/Yasumi/Provider/Australia/Victoria.php | 10 +++---- src/Yasumi/Provider/Australia/WA.php | 8 +++--- src/Yasumi/Provider/Spain/Andalusia.php | 4 +-- src/Yasumi/Provider/Spain/Aragon.php | 2 +- src/Yasumi/Provider/Spain/Asturias.php | 4 +-- src/Yasumi/Provider/Switzerland.php | 8 +++--- src/Yasumi/Provider/Switzerland/Aargau.php | 2 +- .../Switzerland/AppenzellAusserrhoden.php | 2 +- .../Switzerland/AppenzellInnerrhoden.php | 2 +- .../Provider/Switzerland/BaselLandschaft.php | 2 +- .../Provider/Switzerland/BaselStadt.php | 2 +- src/Yasumi/Provider/Switzerland/Bern.php | 2 +- src/Yasumi/Provider/Switzerland/Fribourg.php | 2 +- src/Yasumi/Provider/Switzerland/Geneva.php | 2 +- src/Yasumi/Provider/Switzerland/Glarus.php | 2 +- src/Yasumi/Provider/Switzerland/Grisons.php | 2 +- src/Yasumi/Provider/Switzerland/Jura.php | 2 +- src/Yasumi/Provider/Switzerland/Lucerne.php | 2 +- src/Yasumi/Provider/Switzerland/Neuchatel.php | 4 +-- src/Yasumi/Provider/Switzerland/Nidwalden.php | 2 +- src/Yasumi/Provider/Switzerland/Obwalden.php | 4 +-- .../Provider/Switzerland/Schaffhausen.php | 2 +- src/Yasumi/Provider/Switzerland/Schwyz.php | 2 +- src/Yasumi/Provider/Switzerland/Solothurn.php | 2 +- src/Yasumi/Provider/Switzerland/StGallen.php | 2 +- src/Yasumi/Provider/Switzerland/Thurgau.php | 2 +- src/Yasumi/Provider/Switzerland/Ticino.php | 2 +- src/Yasumi/Provider/Switzerland/Uri.php | 2 +- src/Yasumi/Provider/Switzerland/Valais.php | 2 +- src/Yasumi/Provider/Switzerland/Vaud.php | 2 +- src/Yasumi/Provider/Switzerland/Zug.php | 2 +- src/Yasumi/Provider/Switzerland/Zurich.php | 2 +- src/Yasumi/Translations.php | 6 ++--- src/Yasumi/TranslationsInterface.php | 2 +- 51 files changed, 114 insertions(+), 110 deletions(-) diff --git a/src/Yasumi/Provider/AbstractProvider.php b/src/Yasumi/Provider/AbstractProvider.php index e7b138caa..8ac7e3305 100755 --- a/src/Yasumi/Provider/AbstractProvider.php +++ b/src/Yasumi/Provider/AbstractProvider.php @@ -33,6 +33,7 @@ abstract class AbstractProvider implements ProviderInterface, Countable, Iterato * country or sub-region. */ public const ID = 'US'; + /** * @var array list of the days of the week (the index of the weekdays) that are considered weekend days. * This list only concerns those countries that deviate from the global common definition, @@ -68,18 +69,22 @@ abstract class AbstractProvider implements ProviderInterface, Countable, Iterato // Friday 'IN' => [0], // India ]; + /** * @var int the object's current year */ protected $year; + /** * @var string the object's current timezone */ protected $timezone; + /** * @var string the object's current locale */ protected $locale; + /** * @var Holiday[] list of dates of the available holidays */ @@ -162,7 +167,7 @@ public function addHoliday(Holiday $holiday) * * @return void */ - public function removeHoliday($shortName) + public function removeHoliday($shortName): void { unset($this->holidays[$shortName]); } @@ -327,7 +332,7 @@ public function getYear(): int * * @param string $shortName the name of the holiday for which the next occurrence need to be retrieved. * - * @return Holiday|null a Holiday instance for the given holiday + * @return \Yasumi\Holiday|null a Holiday instance for the given holiday * * @throws \ReflectionException * @throws \Yasumi\Exception\UnknownLocaleException @@ -336,7 +341,7 @@ public function getYear(): int * * @covers AbstractProvider::anotherTime */ - public function next($shortName) + public function next($shortName): ?Holiday { return $this->anotherTime($this->year + 1, $shortName); } @@ -347,14 +352,14 @@ public function next($shortName) * @param int $year the year to get the holiday date for * @param string $shortName the name of the holiday for which the date needs to be fetched * - * @return Holiday|null a Holiday instance for the given holiday and year + * @return \Yasumi\Holiday|null a Holiday instance for the given holiday and year * * @throws \ReflectionException * @throws InvalidArgumentException when the given name is blank or empty. * @throws \Yasumi\Exception\UnknownLocaleException * @throws \RuntimeException */ - private function anotherTime($year, $shortName) + private function anotherTime($year, $shortName): ?Holiday { $this->isHolidayNameNotEmpty($shortName); // Validate if short name is not empty @@ -371,9 +376,9 @@ private function anotherTime($year, $shortName) * * @throws InvalidArgumentException when the given name is blank or empty. * - * @return Holiday|null a Holiday instance for the given holiday + * @return \Yasumi\Holiday|null a Holiday instance for the given holiday */ - public function getHoliday($shortName) + public function getHoliday($shortName): ?Holiday { $this->isHolidayNameNotEmpty($shortName); // Validate if short name is not empty @@ -385,7 +390,7 @@ public function getHoliday($shortName) /** * Gets all of the holidays defined by this holiday provider (for the given year). * - * @return Holiday[] list of all holidays defined for the given year + * @return \Yasumi\Holiday[] list of all holidays defined for the given year */ public function getHolidays(): array { @@ -397,7 +402,7 @@ public function getHolidays(): array * * @param string $shortName the name of the holiday for which the previous occurrence need to be retrieved. * - * @return Holiday|null a Holiday instance for the given holiday + * @return \Yasumi\Holiday|null a Holiday instance for the given holiday * * @throws \ReflectionException * @throws \Yasumi\Exception\UnknownLocaleException @@ -406,7 +411,7 @@ public function getHolidays(): array * * @covers AbstractProvider::anotherTime */ - public function previous($shortName) + public function previous($shortName): ?Holiday { return $this->anotherTime($this->year - 1, $shortName); } @@ -442,7 +447,6 @@ public function between(\DateTimeInterface $start_date, \DateTimeInterface $end_ return new BetweenFilter($this->getIterator(), $start_date, $end_date, $equals); } - /** * Retrieves a list of all holidays that happen on the given date. * diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index 7fe7a4c24..ca132d115 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -39,7 +39,7 @@ class Australia extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { // Official Holidays $this->calculateNewYearHolidays(); @@ -70,7 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAustraliaDay() + public function calculateAustraliaDay(): void { $date = new DateTime("$this->year-01-26", new DateTimeZone($this->timezone)); @@ -99,7 +99,7 @@ public function calculateHoliday( $moveFromSaturday = true, $moveFromSunday = true, $type = Holiday::TYPE_OFFICIAL - ) { + ): void { $day = (int)$date->format('w'); if (($day === 0 && $moveFromSunday) || ($day === 6 && $moveFromSaturday)) { $date = $date->add($day === 0 ? new DateInterval('P1D') : new DateInterval('P2D')); @@ -122,7 +122,7 @@ public function calculateHoliday( * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNewYearHolidays() + public function calculateNewYearHolidays(): void { $newyearsday = new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)); $this->calculateHoliday('newYearsDay', ['en_AU' => 'New Year\'s Day'], $newyearsday, false, false); @@ -154,7 +154,7 @@ public function calculateNewYearHolidays() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAnzacDay() + public function calculateAnzacDay(): void { if ($this->year < 1921) { return; @@ -183,7 +183,7 @@ public function calculateAnzacDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateChristmasDay() + public function calculateChristmasDay(): void { $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); $boxingDay = new DateTime("$this->year-12-26", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Australia/ACT.php b/src/Yasumi/Provider/Australia/ACT.php index 008ee3fba..bd50aa21b 100644 --- a/src/Yasumi/Provider/Australia/ACT.php +++ b/src/Yasumi/Provider/Australia/ACT.php @@ -39,7 +39,7 @@ class ACT extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -56,7 +56,7 @@ public function initialize() * * @throws \Exception */ - public function calculateCanberraDay() + public function calculateCanberraDay(): void { if ($this->year < 2007) { $date = new DateTime("third monday of march $this->year", new DateTimeZone($this->timezone)); @@ -71,7 +71,7 @@ public function calculateCanberraDay() * * @throws \Exception */ - public function calculateReconciliationDay() + public function calculateReconciliationDay(): void { if ($this->year < 2018) { return; @@ -90,7 +90,7 @@ public function calculateReconciliationDay() * * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); @@ -176,7 +176,7 @@ public function easterSunday($year, $timezone, $locale, $type = Holiday::TYPE_OF * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { $this->calculateHoliday( 'queensBirthday', diff --git a/src/Yasumi/Provider/Australia/NSW.php b/src/Yasumi/Provider/Australia/NSW.php index f814aa39d..73c7efedd 100644 --- a/src/Yasumi/Provider/Australia/NSW.php +++ b/src/Yasumi/Provider/Australia/NSW.php @@ -39,7 +39,7 @@ class NSW extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -55,7 +55,7 @@ public function initialize() * * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); @@ -109,7 +109,7 @@ public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { $this->calculateHoliday( 'queensBirthday', @@ -126,7 +126,7 @@ public function calculateQueensBirthday() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateBankHoliday() + public function calculateBankHoliday(): void { $this->calculateHoliday( 'bankHoliday', diff --git a/src/Yasumi/Provider/Australia/NT.php b/src/Yasumi/Provider/Australia/NT.php index af7da2b28..effa3dc97 100644 --- a/src/Yasumi/Provider/Australia/NT.php +++ b/src/Yasumi/Provider/Australia/NT.php @@ -39,7 +39,7 @@ class NT extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -54,7 +54,7 @@ public function initialize() * * @throws \Exception */ - public function calculateMayDay() + public function calculateMayDay(): void { $date = new DateTime("first monday of may $this->year", new DateTimeZone($this->timezone)); @@ -69,7 +69,7 @@ public function calculateMayDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculatePicnicDay() + public function calculatePicnicDay(): void { $this->calculateHoliday( 'picnicDay', @@ -127,7 +127,7 @@ public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { $this->calculateHoliday( 'queensBirthday', diff --git a/src/Yasumi/Provider/Australia/Queensland.php b/src/Yasumi/Provider/Australia/Queensland.php index 270494b5c..713dddfa5 100644 --- a/src/Yasumi/Provider/Australia/Queensland.php +++ b/src/Yasumi/Provider/Australia/Queensland.php @@ -38,7 +38,7 @@ class Queensland extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -51,7 +51,7 @@ public function initialize() * * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { if ($this->year === 2013 || $this->year === 2014 || $this->year === 2015) { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); @@ -77,7 +77,7 @@ public function calculateLabourDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { if ($this->year < 2012 || $this->year === 2013 || $this->year === 2014 || $this->year === 2015) { $this->calculateHoliday( diff --git a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php index 5379e5889..de0cb863c 100644 --- a/src/Yasumi/Provider/Australia/Queensland/Brisbane.php +++ b/src/Yasumi/Provider/Australia/Queensland/Brisbane.php @@ -40,7 +40,7 @@ class Brisbane extends Queensland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -64,7 +64,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculatePeoplesDay() + public function calculatePeoplesDay(): void { $date = new DateTime('first friday of august ' . $this->year, new DateTimeZone($this->timezone)); if ($date->format('d') < 5) { diff --git a/src/Yasumi/Provider/Australia/SA.php b/src/Yasumi/Provider/Australia/SA.php index 6ead599e4..1cdabcb34 100644 --- a/src/Yasumi/Provider/Australia/SA.php +++ b/src/Yasumi/Provider/Australia/SA.php @@ -39,7 +39,7 @@ class SA extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -62,7 +62,7 @@ public function initialize() * * @throws \Exception */ - public function calculateProclamationDay() + public function calculateProclamationDay(): void { $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); $this->calculateHoliday('christmasDay', ['en_AU' => 'Christmas Day'], $christmasDay, false, false); @@ -95,7 +95,7 @@ public function calculateProclamationDay() * * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { $date = new DateTime("first monday of october $this->year", new DateTimeZone($this->timezone)); @@ -110,7 +110,7 @@ public function calculateLabourDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateAdelaideCupDay() + public function calculateAdelaideCupDay(): void { if ($this->year >= 1973) { if ($this->year < 2006) { @@ -180,7 +180,7 @@ public function easterSaturday($year, $timezone, $locale, $type = Holiday::TYPE_ * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { $this->calculateHoliday( 'queensBirthday', diff --git a/src/Yasumi/Provider/Australia/Tasmania.php b/src/Yasumi/Provider/Australia/Tasmania.php index cc0b40b0e..6e055a598 100644 --- a/src/Yasumi/Provider/Australia/Tasmania.php +++ b/src/Yasumi/Provider/Australia/Tasmania.php @@ -38,7 +38,7 @@ class Tasmania extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -52,7 +52,7 @@ public function initialize() * * @throws \Exception */ - public function calculateEightHoursDay() + public function calculateEightHoursDay(): void { $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); @@ -74,7 +74,7 @@ public function calculateEightHoursDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { $this->calculateHoliday( 'queensBirthday', @@ -93,7 +93,7 @@ public function calculateQueensBirthday() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateRecreationDay() + public function calculateRecreationDay(): void { $this->calculateHoliday( 'recreationDay', diff --git a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php index ff37b7f03..a060a16c9 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php +++ b/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php @@ -37,7 +37,7 @@ class CentralNorth extends Tasmania * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -49,7 +49,7 @@ public function initialize() * * @throws \Exception */ - public function calculateDevonportShow() + public function calculateDevonportShow(): void { $date = new DateTime($this->year . '-12-02', new DateTimeZone($this->timezone)); $date = $date->modify('previous friday'); diff --git a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php index 1266f6a12..5bcf55cbe 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php @@ -38,7 +38,7 @@ class FlindersIsland extends Tasmania * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -50,7 +50,7 @@ public function initialize() * * @throws \Exception */ - public function calculateFlindersIslandShow() + public function calculateFlindersIslandShow(): void { $date = new DateTime('third saturday of october ' . $this->year, new DateTimeZone($this->timezone)); $date = $date->sub(new DateInterval('P1D')); diff --git a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php index 3e252f4ff..040ad4625 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php +++ b/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php @@ -36,7 +36,7 @@ class KingIsland extends Tasmania * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -48,7 +48,7 @@ public function initialize() * * @throws \Exception */ - public function calculateKingIslandShow() + public function calculateKingIslandShow(): void { $this->calculateHoliday( 'kingIslandShow', diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php index 83be41e92..354c9b372 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northeast.php @@ -38,7 +38,7 @@ class Northeast extends Tasmania * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -50,7 +50,7 @@ public function initialize() * * @throws \Exception */ - public function calculateLauncestonShow() + public function calculateLauncestonShow(): void { $date = new DateTime('second saturday of october ' . $this->year, new DateTimeZone($this->timezone)); $date = $date->sub(new DateInterval('P2D')); diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php index 6f307f15f..893576365 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest.php @@ -38,7 +38,7 @@ class Northwest extends Tasmania * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -50,7 +50,7 @@ public function initialize() * * @throws \Exception */ - public function calculateBurnieShow() + public function calculateBurnieShow(): void { $date = new DateTime('first saturday of october ' . $this->year, new DateTimeZone($this->timezone)); $date = $date->sub(new DateInterval('P1D')); diff --git a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php index 1c0daf0dc..6f36f8ab7 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php +++ b/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php @@ -38,7 +38,7 @@ class CircularHead extends Northwest * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -50,7 +50,7 @@ public function initialize() * * @throws \Exception */ - public function calculateAGFEST() + public function calculateAGFEST(): void { $date = new DateTime('first thursday of may ' . $this->year, new DateTimeZone($this->timezone)); $date = $date->add(new DateInterval('P1D')); diff --git a/src/Yasumi/Provider/Australia/Tasmania/South.php b/src/Yasumi/Provider/Australia/Tasmania/South.php index bd50b983c..cbf1977b4 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South.php @@ -38,7 +38,7 @@ class South extends Tasmania * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -50,7 +50,7 @@ public function initialize() * * @throws \Exception */ - public function calculateHobartShow() + public function calculateHobartShow(): void { $date = new DateTime('fourth saturday of october ' . $this->year, new DateTimeZone($this->timezone)); $date = $date->sub(new DateInterval('P2D')); diff --git a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php index 0faceab3f..9f2014159 100644 --- a/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php +++ b/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php @@ -38,7 +38,7 @@ class Southeast extends South * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -51,7 +51,7 @@ public function initialize() * * @throws \Exception */ - public function calculateHobartRegatta() + public function calculateHobartRegatta(): void { $this->calculateHoliday( 'hobartRegatta', diff --git a/src/Yasumi/Provider/Australia/Victoria.php b/src/Yasumi/Provider/Australia/Victoria.php index 7e906d444..7c2a87af1 100644 --- a/src/Yasumi/Provider/Australia/Victoria.php +++ b/src/Yasumi/Provider/Australia/Victoria.php @@ -39,7 +39,7 @@ class Victoria extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -56,7 +56,7 @@ public function initialize() * * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { $date = new DateTime("second monday of march $this->year", new DateTimeZone($this->timezone)); @@ -68,7 +68,7 @@ public function calculateLabourDay() * * @throws \Exception */ - public function calculateMelbourneCupDay() + public function calculateMelbourneCupDay(): void { $date = new DateTime('first Tuesday of November' . " $this->year", new DateTimeZone($this->timezone)); @@ -80,7 +80,7 @@ public function calculateMelbourneCupDay() * * @throws \Exception */ - public function calculateAFLGrandFinalDay() + public function calculateAFLGrandFinalDay(): void { switch ($this->year) { case 2015: @@ -124,7 +124,7 @@ public function calculateAFLGrandFinalDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { $this->calculateHoliday( 'queensBirthday', diff --git a/src/Yasumi/Provider/Australia/WA.php b/src/Yasumi/Provider/Australia/WA.php index e4e223385..de7dd89b6 100644 --- a/src/Yasumi/Provider/Australia/WA.php +++ b/src/Yasumi/Provider/Australia/WA.php @@ -38,7 +38,7 @@ class WA extends Australia * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -52,7 +52,7 @@ public function initialize() * * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { $date = new DateTime("first monday of march $this->year", new DateTimeZone($this->timezone)); @@ -67,7 +67,7 @@ public function calculateLabourDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateWesternAustraliaDay() + public function calculateWesternAustraliaDay(): void { $this->calculateHoliday( 'westernAustraliaDay', @@ -93,7 +93,7 @@ public function calculateWesternAustraliaDay() * @throws \InvalidArgumentException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { if ($this->year === 2011) { $this->calculateHoliday( diff --git a/src/Yasumi/Provider/Spain/Andalusia.php b/src/Yasumi/Provider/Spain/Andalusia.php index 949a55c67..393d06d95 100755 --- a/src/Yasumi/Provider/Spain/Andalusia.php +++ b/src/Yasumi/Provider/Spain/Andalusia.php @@ -45,7 +45,7 @@ class Andalusia extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -71,7 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAndalusiaDay() + public function calculateAndalusiaDay(): void { if ($this->year >= 1980) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/Aragon.php b/src/Yasumi/Provider/Spain/Aragon.php index 9a562fa0d..0ba419e3b 100755 --- a/src/Yasumi/Provider/Spain/Aragon.php +++ b/src/Yasumi/Provider/Spain/Aragon.php @@ -44,7 +44,7 @@ class Aragon extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Spain/Asturias.php b/src/Yasumi/Provider/Spain/Asturias.php index e547f80a0..51d93e1ec 100755 --- a/src/Yasumi/Provider/Spain/Asturias.php +++ b/src/Yasumi/Provider/Spain/Asturias.php @@ -46,7 +46,7 @@ class Asturias extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -73,7 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAsturiasDay() + public function calculateAsturiasDay(): void { if ($this->year >= 1984) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Switzerland.php b/src/Yasumi/Provider/Switzerland.php index d7249037c..ba43389c1 100644 --- a/src/Yasumi/Provider/Switzerland.php +++ b/src/Yasumi/Provider/Switzerland.php @@ -38,7 +38,7 @@ class Switzerland extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Zurich'; @@ -60,7 +60,7 @@ public function initialize() * @throws \Exception * @throws \Exception */ - public function calculateNationalDay() + public function calculateNationalDay(): void { $translations = [ 'en_US' => 'National Day', @@ -105,7 +105,7 @@ public function calculateNationalDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateBerchtoldsTag() + public function calculateBerchtoldsTag(): void { $this->addHoliday(new Holiday( 'berchtoldsTag', @@ -137,7 +137,7 @@ public function calculateBerchtoldsTag() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateBettagsMontag() + public function calculateBettagsMontag(): void { if ($this->year >= 1832) { // Find third Sunday of September diff --git a/src/Yasumi/Provider/Switzerland/Aargau.php b/src/Yasumi/Provider/Switzerland/Aargau.php index 4652d0103..7d47ff712 100644 --- a/src/Yasumi/Provider/Switzerland/Aargau.php +++ b/src/Yasumi/Provider/Switzerland/Aargau.php @@ -39,7 +39,7 @@ class Aargau extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php index 1ab550f9d..65bf4a492 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php @@ -39,7 +39,7 @@ class AppenzellAusserrhoden extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php index aba9bc17c..c466071b7 100644 --- a/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php +++ b/src/Yasumi/Provider/Switzerland/AppenzellInnerrhoden.php @@ -39,7 +39,7 @@ class AppenzellInnerrhoden extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php index 8d112e5a4..9757483eb 100644 --- a/src/Yasumi/Provider/Switzerland/BaselLandschaft.php +++ b/src/Yasumi/Provider/Switzerland/BaselLandschaft.php @@ -39,7 +39,7 @@ class BaselLandschaft extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/BaselStadt.php b/src/Yasumi/Provider/Switzerland/BaselStadt.php index ce3f9c36d..00bbb1970 100644 --- a/src/Yasumi/Provider/Switzerland/BaselStadt.php +++ b/src/Yasumi/Provider/Switzerland/BaselStadt.php @@ -39,7 +39,7 @@ class BaselStadt extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Bern.php b/src/Yasumi/Provider/Switzerland/Bern.php index 22969478a..65515f457 100644 --- a/src/Yasumi/Provider/Switzerland/Bern.php +++ b/src/Yasumi/Provider/Switzerland/Bern.php @@ -39,7 +39,7 @@ class Bern extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Fribourg.php b/src/Yasumi/Provider/Switzerland/Fribourg.php index 06a01a28b..bdf5f25fa 100644 --- a/src/Yasumi/Provider/Switzerland/Fribourg.php +++ b/src/Yasumi/Provider/Switzerland/Fribourg.php @@ -39,7 +39,7 @@ class Fribourg extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index c876f884e..92907a00b 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -42,7 +42,7 @@ class Geneva extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Glarus.php b/src/Yasumi/Provider/Switzerland/Glarus.php index 62a54d20f..735e0a5fd 100644 --- a/src/Yasumi/Provider/Switzerland/Glarus.php +++ b/src/Yasumi/Provider/Switzerland/Glarus.php @@ -41,7 +41,7 @@ class Glarus extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Grisons.php b/src/Yasumi/Provider/Switzerland/Grisons.php index 09974fac3..80fcdc279 100644 --- a/src/Yasumi/Provider/Switzerland/Grisons.php +++ b/src/Yasumi/Provider/Switzerland/Grisons.php @@ -39,7 +39,7 @@ class Grisons extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index 9558c9805..48f77fd6e 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -41,7 +41,7 @@ class Jura extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Lucerne.php b/src/Yasumi/Provider/Switzerland/Lucerne.php index 618bbec71..89115995d 100644 --- a/src/Yasumi/Provider/Switzerland/Lucerne.php +++ b/src/Yasumi/Provider/Switzerland/Lucerne.php @@ -39,7 +39,7 @@ class Lucerne extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Neuchatel.php b/src/Yasumi/Provider/Switzerland/Neuchatel.php index c41bc452c..51e0fd2d8 100644 --- a/src/Yasumi/Provider/Switzerland/Neuchatel.php +++ b/src/Yasumi/Provider/Switzerland/Neuchatel.php @@ -41,7 +41,7 @@ class Neuchatel extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -73,7 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateInstaurationRepublique() + public function calculateInstaurationRepublique(): void { if ($this->year > 1848) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Switzerland/Nidwalden.php b/src/Yasumi/Provider/Switzerland/Nidwalden.php index 342ab4dc3..98276f72e 100644 --- a/src/Yasumi/Provider/Switzerland/Nidwalden.php +++ b/src/Yasumi/Provider/Switzerland/Nidwalden.php @@ -39,7 +39,7 @@ class Nidwalden extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Obwalden.php b/src/Yasumi/Provider/Switzerland/Obwalden.php index 6fe70c0b6..b6c4423e8 100644 --- a/src/Yasumi/Provider/Switzerland/Obwalden.php +++ b/src/Yasumi/Provider/Switzerland/Obwalden.php @@ -41,7 +41,7 @@ class Obwalden extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -77,7 +77,7 @@ public function initialize() * @throws \Exception * @throws \Exception */ - public function calculateBruderKlausenFest() + public function calculateBruderKlausenFest(): void { if ($this->year >= 1947) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Switzerland/Schaffhausen.php b/src/Yasumi/Provider/Switzerland/Schaffhausen.php index a7499d1dd..b36b48f82 100644 --- a/src/Yasumi/Provider/Switzerland/Schaffhausen.php +++ b/src/Yasumi/Provider/Switzerland/Schaffhausen.php @@ -39,7 +39,7 @@ class Schaffhausen extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Schwyz.php b/src/Yasumi/Provider/Switzerland/Schwyz.php index 8ff0ff709..661f1b110 100644 --- a/src/Yasumi/Provider/Switzerland/Schwyz.php +++ b/src/Yasumi/Provider/Switzerland/Schwyz.php @@ -39,7 +39,7 @@ class Schwyz extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Solothurn.php b/src/Yasumi/Provider/Switzerland/Solothurn.php index 3f6e50679..c0c19a318 100644 --- a/src/Yasumi/Provider/Switzerland/Solothurn.php +++ b/src/Yasumi/Provider/Switzerland/Solothurn.php @@ -39,7 +39,7 @@ class Solothurn extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/StGallen.php b/src/Yasumi/Provider/Switzerland/StGallen.php index 19ce3a1f0..9dc34c694 100644 --- a/src/Yasumi/Provider/Switzerland/StGallen.php +++ b/src/Yasumi/Provider/Switzerland/StGallen.php @@ -39,7 +39,7 @@ class StGallen extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Thurgau.php b/src/Yasumi/Provider/Switzerland/Thurgau.php index 33ff3e088..fdc7effa3 100644 --- a/src/Yasumi/Provider/Switzerland/Thurgau.php +++ b/src/Yasumi/Provider/Switzerland/Thurgau.php @@ -39,7 +39,7 @@ class Thurgau extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index c068b1109..5a7b34f8f 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -41,7 +41,7 @@ class Ticino extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Uri.php b/src/Yasumi/Provider/Switzerland/Uri.php index ebf2985d4..191ac8cd5 100644 --- a/src/Yasumi/Provider/Switzerland/Uri.php +++ b/src/Yasumi/Provider/Switzerland/Uri.php @@ -39,7 +39,7 @@ class Uri extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Valais.php b/src/Yasumi/Provider/Switzerland/Valais.php index 2d43b8d9e..ca49019c7 100644 --- a/src/Yasumi/Provider/Switzerland/Valais.php +++ b/src/Yasumi/Provider/Switzerland/Valais.php @@ -39,7 +39,7 @@ class Valais extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Vaud.php b/src/Yasumi/Provider/Switzerland/Vaud.php index f19227d69..8ebab708d 100644 --- a/src/Yasumi/Provider/Switzerland/Vaud.php +++ b/src/Yasumi/Provider/Switzerland/Vaud.php @@ -39,7 +39,7 @@ class Vaud extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Zug.php b/src/Yasumi/Provider/Switzerland/Zug.php index 17a9c0e96..0e5678d70 100644 --- a/src/Yasumi/Provider/Switzerland/Zug.php +++ b/src/Yasumi/Provider/Switzerland/Zug.php @@ -39,7 +39,7 @@ class Zug extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Switzerland/Zurich.php b/src/Yasumi/Provider/Switzerland/Zurich.php index b9501369f..d95d4b763 100644 --- a/src/Yasumi/Provider/Switzerland/Zurich.php +++ b/src/Yasumi/Provider/Switzerland/Zurich.php @@ -39,7 +39,7 @@ class Zurich extends Switzerland * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Translations.php b/src/Yasumi/Translations.php index 78cf15cc8..2ac7576f3 100644 --- a/src/Yasumi/Translations.php +++ b/src/Yasumi/Translations.php @@ -50,7 +50,7 @@ public function __construct(array $availableLocales) * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException */ - public function loadTranslations(string $directoryPath) + public function loadTranslations(string $directoryPath): void { if (! \file_exists($directoryPath)) { throw new InvalidArgumentException('Directory with translations not found'); @@ -111,7 +111,7 @@ protected function isValidLocale(string $locale): bool * * @throws \Yasumi\Exception\UnknownLocaleException */ - public function addTranslation(string $shortName, string $locale, string $translation) + public function addTranslation(string $shortName, string $locale, string $translation): void { $this->isValidLocale($locale); // Validate the given locale @@ -130,7 +130,7 @@ public function addTranslation(string $shortName, string $locale, string $transl * * @return string|null translated holiday name */ - public function getTranslation(string $shortName, string $locale) + public function getTranslation(string $shortName, string $locale): ?string { if (! \array_key_exists($shortName, $this->translations)) { return null; diff --git a/src/Yasumi/TranslationsInterface.php b/src/Yasumi/TranslationsInterface.php index 5e84d2447..ec58213a7 100644 --- a/src/Yasumi/TranslationsInterface.php +++ b/src/Yasumi/TranslationsInterface.php @@ -25,7 +25,7 @@ interface TranslationsInterface * * @return string|null translated holiday name */ - public function getTranslation(string $shortName, string $locale); + public function getTranslation(string $shortName, string $locale): ?string; /** * Returns all available translations for holiday. From 4ed06195d258c4b691441abc02b3f5103627f6f3 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 20:42:56 +0900 Subject: [PATCH 108/132] Return type hint added. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Austria.php | 4 ++-- src/Yasumi/Provider/Belgium.php | 2 +- src/Yasumi/Provider/Bosnia.php | 2 +- src/Yasumi/Provider/Brazil.php | 2 +- src/Yasumi/Provider/Croatia.php | 2 +- src/Yasumi/Provider/CzechRepublic.php | 12 ++++++------ src/Yasumi/Provider/Denmark.php | 6 +++--- src/Yasumi/Provider/Estonia.php | 8 ++++---- src/Yasumi/Provider/France/BasRhin.php | 2 +- src/Yasumi/Provider/France/HautRhin.php | 2 +- src/Yasumi/Provider/France/Moselle.php | 2 +- src/Yasumi/Provider/Germany.php | 4 ++-- src/Yasumi/Provider/Germany/BadenWurttemberg.php | 2 +- src/Yasumi/Provider/Germany/Bavaria.php | 2 +- src/Yasumi/Provider/Germany/Brandenburg.php | 4 ++-- src/Yasumi/Provider/Germany/Bremen.php | 4 ++-- src/Yasumi/Provider/Germany/Hamburg.php | 4 ++-- src/Yasumi/Provider/Germany/Hesse.php | 2 +- src/Yasumi/Provider/Germany/LowerSaxony.php | 4 ++-- .../Provider/Germany/MecklenburgWesternPomerania.php | 4 ++-- src/Yasumi/Provider/Germany/NorthRhineWestphalia.php | 2 +- src/Yasumi/Provider/Germany/RhinelandPalatinate.php | 2 +- src/Yasumi/Provider/Germany/Saarland.php | 2 +- src/Yasumi/Provider/Germany/Saxony.php | 6 +++--- src/Yasumi/Provider/Germany/SaxonyAnhalt.php | 2 +- src/Yasumi/Provider/Germany/SchleswigHolstein.php | 4 ++-- src/Yasumi/Provider/Germany/Thuringia.php | 4 ++-- 27 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/Yasumi/Provider/Austria.php b/src/Yasumi/Provider/Austria.php index e837e83ba..aaccc065d 100644 --- a/src/Yasumi/Provider/Austria.php +++ b/src/Yasumi/Provider/Austria.php @@ -37,7 +37,7 @@ class Austria extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Vienna'; @@ -78,7 +78,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNationalDay() + public function calculateNationalDay(): void { if ($this->year < 1955) { return; diff --git a/src/Yasumi/Provider/Belgium.php b/src/Yasumi/Provider/Belgium.php index f24b25e8d..9444f06fb 100755 --- a/src/Yasumi/Provider/Belgium.php +++ b/src/Yasumi/Provider/Belgium.php @@ -37,7 +37,7 @@ class Belgium extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Brussels'; diff --git a/src/Yasumi/Provider/Bosnia.php b/src/Yasumi/Provider/Bosnia.php index ed0c7f4b6..d90f7e44b 100644 --- a/src/Yasumi/Provider/Bosnia.php +++ b/src/Yasumi/Provider/Bosnia.php @@ -39,7 +39,7 @@ class Bosnia extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Sarajevo'; diff --git a/src/Yasumi/Provider/Brazil.php b/src/Yasumi/Provider/Brazil.php index 02a954a3d..278e3f973 100644 --- a/src/Yasumi/Provider/Brazil.php +++ b/src/Yasumi/Provider/Brazil.php @@ -38,7 +38,7 @@ class Brazil extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'America/Fortaleza'; diff --git a/src/Yasumi/Provider/Croatia.php b/src/Yasumi/Provider/Croatia.php index 19c3186bf..33fe4b984 100644 --- a/src/Yasumi/Provider/Croatia.php +++ b/src/Yasumi/Provider/Croatia.php @@ -39,7 +39,7 @@ class Croatia extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Zagreb'; diff --git a/src/Yasumi/Provider/CzechRepublic.php b/src/Yasumi/Provider/CzechRepublic.php index d70e85cb6..40c489242 100644 --- a/src/Yasumi/Provider/CzechRepublic.php +++ b/src/Yasumi/Provider/CzechRepublic.php @@ -40,7 +40,7 @@ class CzechRepublic extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Prague'; @@ -80,7 +80,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateSaintsCyrilAndMethodiusDay() + public function calculateSaintsCyrilAndMethodiusDay(): void { $this->addHoliday(new Holiday( 'saintsCyrilAndMethodiusDay', @@ -105,7 +105,7 @@ public function calculateSaintsCyrilAndMethodiusDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateJanHusDay() + public function calculateJanHusDay(): void { $this->addHoliday(new Holiday( 'janHusDay', @@ -133,7 +133,7 @@ public function calculateJanHusDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCzechStatehoodDay() + public function calculateCzechStatehoodDay(): void { $this->addHoliday(new Holiday( 'czechStateHoodDay', @@ -153,7 +153,7 @@ public function calculateCzechStatehoodDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateIndependentCzechoslovakStateDay() + public function calculateIndependentCzechoslovakStateDay(): void { $this->addHoliday(new Holiday('independentCzechoslovakStateDay', [ 'cs_CZ' => 'Den vzniku samostatného československého státu', @@ -171,7 +171,7 @@ public function calculateIndependentCzechoslovakStateDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStruggleForFreedomAndDemocracyDay() + public function calculateStruggleForFreedomAndDemocracyDay(): void { $this->addHoliday(new Holiday( 'struggleForFreedomAndDemocracyDay', diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index 97df9f10d..a3250f28a 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -38,7 +38,7 @@ class Denmark extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Copenhagen'; @@ -88,7 +88,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateGreatPrayerDay() + public function calculateGreatPrayerDay(): void { $easter = $this->calculateEaster($this->year, $this->timezone)->format('Y-m-d'); @@ -118,7 +118,7 @@ public function calculateGreatPrayerDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateConstitutionDay() + public function calculateConstitutionDay(): void { if ($this->year >= 1849) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Estonia.php b/src/Yasumi/Provider/Estonia.php index 3c37a6495..5fab5188d 100644 --- a/src/Yasumi/Provider/Estonia.php +++ b/src/Yasumi/Provider/Estonia.php @@ -42,7 +42,7 @@ class Estonia extends AbstractProvider * @throws \InvalidArgumentException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Tallinn'; @@ -65,7 +65,7 @@ public function initialize() * @throws \InvalidArgumentException * @throws \Exception */ - private function addIndependenceDay() + private function addIndependenceDay(): void { if ($this->year >= self::DECLARATION_OF_INDEPENDENCE_YEAR) { $this->addHoliday(new Holiday('independenceDay', [ @@ -79,7 +79,7 @@ private function addIndependenceDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addVictoryDay() + private function addVictoryDay(): void { if ($this->year >= self::VICTORY_DAY_START_YEAR) { $this->addHoliday(new Holiday('victoryDay', [ @@ -93,7 +93,7 @@ private function addVictoryDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addRestorationOfIndependenceDay() + private function addRestorationOfIndependenceDay(): void { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { $this->addHoliday(new Holiday('restorationOfIndependenceDay', [ diff --git a/src/Yasumi/Provider/France/BasRhin.php b/src/Yasumi/Provider/France/BasRhin.php index e940e79b1..4642c5281 100755 --- a/src/Yasumi/Provider/France/BasRhin.php +++ b/src/Yasumi/Provider/France/BasRhin.php @@ -42,7 +42,7 @@ class BasRhin extends France * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/France/HautRhin.php b/src/Yasumi/Provider/France/HautRhin.php index 911153c0c..9154631ef 100755 --- a/src/Yasumi/Provider/France/HautRhin.php +++ b/src/Yasumi/Provider/France/HautRhin.php @@ -42,7 +42,7 @@ class HautRhin extends France * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/France/Moselle.php b/src/Yasumi/Provider/France/Moselle.php index bd9052793..12cf57422 100755 --- a/src/Yasumi/Provider/France/Moselle.php +++ b/src/Yasumi/Provider/France/Moselle.php @@ -43,7 +43,7 @@ class Moselle extends France * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany.php b/src/Yasumi/Provider/Germany.php index 53474abef..cde6e1b94 100644 --- a/src/Yasumi/Provider/Germany.php +++ b/src/Yasumi/Provider/Germany.php @@ -37,7 +37,7 @@ class Germany extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Berlin'; @@ -80,7 +80,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateGermanUnityDay() + public function calculateGermanUnityDay(): void { if ($this->year >= 1990) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Germany/BadenWurttemberg.php b/src/Yasumi/Provider/Germany/BadenWurttemberg.php index 272e2871d..593ee50fc 100755 --- a/src/Yasumi/Provider/Germany/BadenWurttemberg.php +++ b/src/Yasumi/Provider/Germany/BadenWurttemberg.php @@ -40,7 +40,7 @@ class BadenWurttemberg extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/Bavaria.php b/src/Yasumi/Provider/Germany/Bavaria.php index ae1351933..1a97df3ca 100755 --- a/src/Yasumi/Provider/Germany/Bavaria.php +++ b/src/Yasumi/Provider/Germany/Bavaria.php @@ -41,7 +41,7 @@ class Bavaria extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/Brandenburg.php b/src/Yasumi/Provider/Germany/Brandenburg.php index b86471bb0..f405f2330 100755 --- a/src/Yasumi/Provider/Germany/Brandenburg.php +++ b/src/Yasumi/Provider/Germany/Brandenburg.php @@ -39,7 +39,7 @@ class Brandenburg extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -60,7 +60,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 1517) { return; diff --git a/src/Yasumi/Provider/Germany/Bremen.php b/src/Yasumi/Provider/Germany/Bremen.php index 88f8fc62e..5f4fc9ae7 100755 --- a/src/Yasumi/Provider/Germany/Bremen.php +++ b/src/Yasumi/Provider/Germany/Bremen.php @@ -39,7 +39,7 @@ class Bremen extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -56,7 +56,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 2018) { return; diff --git a/src/Yasumi/Provider/Germany/Hamburg.php b/src/Yasumi/Provider/Germany/Hamburg.php index 3a17fcb3e..fa484c5ff 100755 --- a/src/Yasumi/Provider/Germany/Hamburg.php +++ b/src/Yasumi/Provider/Germany/Hamburg.php @@ -41,7 +41,7 @@ class Hamburg extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -57,7 +57,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateDayOfReformation() + private function calculateDayOfReformation(): void { if ($this->year < 2018) { return; diff --git a/src/Yasumi/Provider/Germany/Hesse.php b/src/Yasumi/Provider/Germany/Hesse.php index 5a5159683..2f9cc2992 100755 --- a/src/Yasumi/Provider/Germany/Hesse.php +++ b/src/Yasumi/Provider/Germany/Hesse.php @@ -41,7 +41,7 @@ class Hesse extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/LowerSaxony.php b/src/Yasumi/Provider/Germany/LowerSaxony.php index 66b68a0c8..e6279be66 100755 --- a/src/Yasumi/Provider/Germany/LowerSaxony.php +++ b/src/Yasumi/Provider/Germany/LowerSaxony.php @@ -40,7 +40,7 @@ class LowerSaxony extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -59,7 +59,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 2018) { return; diff --git a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php index 60bffd239..59202eed5 100755 --- a/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php +++ b/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php @@ -40,7 +40,7 @@ class MecklenburgWesternPomerania extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -57,7 +57,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 1517) { return; diff --git a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php index 93c10ddef..b705de979 100755 --- a/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php +++ b/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php @@ -41,7 +41,7 @@ class NorthRhineWestphalia extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php index b1dd888c1..f99e8ce3f 100755 --- a/src/Yasumi/Provider/Germany/RhinelandPalatinate.php +++ b/src/Yasumi/Provider/Germany/RhinelandPalatinate.php @@ -40,7 +40,7 @@ class RhinelandPalatinate extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/Saarland.php b/src/Yasumi/Provider/Germany/Saarland.php index 9b5affca2..e51ad314b 100755 --- a/src/Yasumi/Provider/Germany/Saarland.php +++ b/src/Yasumi/Provider/Germany/Saarland.php @@ -41,7 +41,7 @@ class Saarland extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/Saxony.php b/src/Yasumi/Provider/Germany/Saxony.php index 6d05c3173..8f06ba753 100755 --- a/src/Yasumi/Provider/Germany/Saxony.php +++ b/src/Yasumi/Provider/Germany/Saxony.php @@ -41,7 +41,7 @@ class Saxony extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -59,7 +59,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 1517) { return; @@ -85,7 +85,7 @@ private function calculateReformationDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateRepentanceAndPrayerDay() + public function calculateRepentanceAndPrayerDay(): void { if ($this->year >= 1995) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php index 86340d98c..3f8c9f2a9 100755 --- a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php +++ b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php @@ -40,7 +40,7 @@ class SaxonyAnhalt extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Germany/SchleswigHolstein.php b/src/Yasumi/Provider/Germany/SchleswigHolstein.php index e70af6025..f37a99875 100755 --- a/src/Yasumi/Provider/Germany/SchleswigHolstein.php +++ b/src/Yasumi/Provider/Germany/SchleswigHolstein.php @@ -39,7 +39,7 @@ class SchleswigHolstein extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -56,7 +56,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 2018) { return; diff --git a/src/Yasumi/Provider/Germany/Thuringia.php b/src/Yasumi/Provider/Germany/Thuringia.php index fac908291..c8839ab0c 100755 --- a/src/Yasumi/Provider/Germany/Thuringia.php +++ b/src/Yasumi/Provider/Germany/Thuringia.php @@ -40,7 +40,7 @@ class Thuringia extends Germany * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -57,7 +57,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 1517) { return; From 7a8b26d72b2430d4a17f9f077ee15d50a38de1cd Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 20:49:30 +0900 Subject: [PATCH 109/132] Return type hint added. Added missing return statement. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/CommonHolidays.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Yasumi/Provider/CommonHolidays.php b/src/Yasumi/Provider/CommonHolidays.php index 2ff636bef..ed7703844 100644 --- a/src/Yasumi/Provider/CommonHolidays.php +++ b/src/Yasumi/Provider/CommonHolidays.php @@ -418,7 +418,7 @@ public function armisticeDay( * timezone. If no transition time is found, a null value is returned. * @throws \Exception */ - protected function calculateSummerWinterTime($year, $timezone, $summer) + protected function calculateSummerWinterTime($year, $timezone, $summer): ?DateTime { $zone = new DateTimeZone($timezone); @@ -448,13 +448,13 @@ protected function calculateSummerWinterTime($year, $timezone, $summer) * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. * - * @return \Yasumi\Holiday + * @return \Yasumi\Holiday|null * * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception */ - public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON) + public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON): ?Holiday { $date = $this->calculateSummerWinterTime($year, $timezone, true); @@ -467,6 +467,8 @@ public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEAS $type ); } + + return null; } /** @@ -480,13 +482,13 @@ public function summerTime($year, $timezone, $locale, $type = Holiday::TYPE_SEAS * @param string $type The type of holiday. Use the following constants: TYPE_OFFICIAL, TYPE_OBSERVANCE, * TYPE_SEASON, TYPE_BANK or TYPE_OTHER. By default an official holiday is considered. * - * @return \Yasumi\Holiday + * @return \Yasumi\Holiday|null * * @throws \Yasumi\Exception\UnknownLocaleException * @throws \InvalidArgumentException * @throws \Exception */ - public function winterTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON) + public function winterTime($year, $timezone, $locale, $type = Holiday::TYPE_SEASON): ?Holiday { $date = $this->calculateSummerWinterTime($year, $timezone, false); @@ -499,5 +501,7 @@ public function winterTime($year, $timezone, $locale, $type = Holiday::TYPE_SEAS $type ); } + + return null; } } From 43af51288362757882419bcb6a82192f3a0c0188 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 20:52:49 +0900 Subject: [PATCH 110/132] Return type hint added. Added missing return statement. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Finland.php | 8 ++++---- src/Yasumi/Provider/France.php | 4 ++-- src/Yasumi/Provider/Greece.php | 12 ++++++------ src/Yasumi/Provider/Hungary.php | 2 +- src/Yasumi/Provider/Ireland.php | 18 +++++++++--------- src/Yasumi/Provider/Italy.php | 6 +++--- src/Yasumi/Provider/Lithuania.php | 8 ++++---- src/Yasumi/Provider/Netherlands.php | 2 +- src/Yasumi/Provider/NewZealand.php | 14 +++++++------- src/Yasumi/Provider/Poland.php | 6 +++--- 10 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/Yasumi/Provider/Finland.php b/src/Yasumi/Provider/Finland.php index c26c8467a..4ecaa0b84 100644 --- a/src/Yasumi/Provider/Finland.php +++ b/src/Yasumi/Provider/Finland.php @@ -38,7 +38,7 @@ class Finland extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Helsinki'; @@ -82,7 +82,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStJohnsDay() + public function calculateStJohnsDay(): void { $translation = ['fi_FI' => 'Juhannuspäivä']; $shortName = 'stJohnsDay'; @@ -126,7 +126,7 @@ public function calculateStJohnsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateAllSaintsDay() + private function calculateAllSaintsDay(): void { $date = new DateTime("$this->year-10-31", new DateTimeZone($this->timezone)); @@ -159,7 +159,7 @@ private function calculateAllSaintsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateIndependenceDay() + public function calculateIndependenceDay(): void { if ($this->year >= 1917) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/France.php b/src/Yasumi/Provider/France.php index a0b307ba1..ed3603238 100755 --- a/src/Yasumi/Provider/France.php +++ b/src/Yasumi/Provider/France.php @@ -37,7 +37,7 @@ class France extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Paris'; @@ -82,7 +82,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateBastilleDay() + public function calculateBastilleDay(): void { if ($this->year >= 1790) { $this->addHoliday(new Holiday('bastilleDay', [ diff --git a/src/Yasumi/Provider/Greece.php b/src/Yasumi/Provider/Greece.php index bfa698401..d0ce2521c 100644 --- a/src/Yasumi/Provider/Greece.php +++ b/src/Yasumi/Provider/Greece.php @@ -38,7 +38,7 @@ class Greece extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Athens'; @@ -79,7 +79,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateThreeHolyHierarchs() + public function calculateThreeHolyHierarchs(): void { $this->addHoliday(new Holiday( 'threeHolyHierarchs', @@ -104,7 +104,7 @@ public function calculateThreeHolyHierarchs() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCleanMonday() + public function calculateCleanMonday(): void { $this->addHoliday(new Holiday( 'cleanMonday', @@ -142,7 +142,7 @@ public function calculateEaster($year, $timezone): DateTime * @throws \Exception */ - public function calculateIndependenceDay() + public function calculateIndependenceDay(): void { if ($this->year >= 1821) { $this->addHoliday(new Holiday( @@ -166,7 +166,7 @@ public function calculateIndependenceDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateOhiDay() + public function calculateOhiDay(): void { if ($this->year >= 1940) { $this->addHoliday(new Holiday( @@ -190,7 +190,7 @@ public function calculateOhiDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculatePolytechnio() + public function calculatePolytechnio(): void { if ($this->year >= 1973) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Hungary.php b/src/Yasumi/Provider/Hungary.php index 368cd4aca..13bffbcee 100644 --- a/src/Yasumi/Provider/Hungary.php +++ b/src/Yasumi/Provider/Hungary.php @@ -39,7 +39,7 @@ class Hungary extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Budapest'; diff --git a/src/Yasumi/Provider/Ireland.php b/src/Yasumi/Provider/Ireland.php index 5e869842a..739a64e8f 100644 --- a/src/Yasumi/Provider/Ireland.php +++ b/src/Yasumi/Provider/Ireland.php @@ -43,7 +43,7 @@ class Ireland extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Dublin'; @@ -91,7 +91,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNewYearsDay() + public function calculateNewYearsDay(): void { if ($this->year < 1974) { return; @@ -124,7 +124,7 @@ public function calculateNewYearsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculatePentecostMonday() + public function calculatePentecostMonday(): void { if ($this->year > 1973) { return; @@ -147,7 +147,7 @@ public function calculatePentecostMonday() * @throws \Exception * @throws \Exception */ - public function calculateChristmasDay() + public function calculateChristmasDay(): void { $holiday = new Holiday( 'christmasDay', @@ -184,7 +184,7 @@ public function calculateChristmasDay() * @throws \Exception * @throws \Exception */ - public function calculateStStephensDay() + public function calculateStStephensDay(): void { $holiday = new Holiday( 'stStephensDay', @@ -223,7 +223,7 @@ public function calculateStStephensDay() * @throws \Exception * @throws \Exception */ - public function calculateStPatricksDay() + public function calculateStPatricksDay(): void { if ($this->year < 1903) { return; @@ -265,7 +265,7 @@ public function calculateStPatricksDay() * @throws \Exception * @throws \Exception */ - public function calculateMayDay() + public function calculateMayDay(): void { if ($this->year < 1994) { return; @@ -293,7 +293,7 @@ public function calculateMayDay() * @throws \Exception * @throws \Exception */ - public function calculateJuneHoliday() + public function calculateJuneHoliday(): void { if ($this->year < 1974) { return; @@ -320,7 +320,7 @@ public function calculateJuneHoliday() * @throws \Exception * @throws \Exception */ - public function calculateOctoberHoliday() + public function calculateOctoberHoliday(): void { if ($this->year < 1977) { return; diff --git a/src/Yasumi/Provider/Italy.php b/src/Yasumi/Provider/Italy.php index b7b93128f..537019937 100755 --- a/src/Yasumi/Provider/Italy.php +++ b/src/Yasumi/Provider/Italy.php @@ -37,7 +37,7 @@ class Italy extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Rome'; @@ -77,7 +77,7 @@ public function initialize() * @throws \Exception * @throws \Exception */ - public function calculateLiberationDay() + public function calculateLiberationDay(): void { if ($this->year >= 1949) { $this->addHoliday(new Holiday( @@ -105,7 +105,7 @@ public function calculateLiberationDay() * @throws \Exception * @throws \Exception */ - public function calculateRepublicDay() + public function calculateRepublicDay(): void { if ($this->year >= 1946) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Lithuania.php b/src/Yasumi/Provider/Lithuania.php index 22002c6bf..a64a1f109 100644 --- a/src/Yasumi/Provider/Lithuania.php +++ b/src/Yasumi/Provider/Lithuania.php @@ -51,7 +51,7 @@ class Lithuania extends AbstractProvider * @throws \InvalidArgumentException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Vilnius'; @@ -77,7 +77,7 @@ public function initialize() * @throws \InvalidArgumentException * @throws \Exception */ - private function addRestorationOfTheStateDay() + private function addRestorationOfTheStateDay(): void { if ($this->year >= self::RESTORATION_OF_THE_STATE_YEAR) { $this->addHoliday(new Holiday('restorationOfTheStateOfLithuaniaDay', [ @@ -93,7 +93,7 @@ private function addRestorationOfTheStateDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addRestorationOfIndependenceDay() + private function addRestorationOfIndependenceDay(): void { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { $this->addHoliday(new Holiday('restorationOfIndependenceOfLithuaniaDay', [ @@ -110,7 +110,7 @@ private function addRestorationOfIndependenceDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addStatehoodDay() + private function addStatehoodDay(): void { if ($this->year >= self::STATEHOOD_YEAR) { $this->addHoliday(new Holiday('statehoodDay', [ diff --git a/src/Yasumi/Provider/Netherlands.php b/src/Yasumi/Provider/Netherlands.php index 6b9d7cd39..2c301b997 100755 --- a/src/Yasumi/Provider/Netherlands.php +++ b/src/Yasumi/Provider/Netherlands.php @@ -38,7 +38,7 @@ class Netherlands extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Amsterdam'; diff --git a/src/Yasumi/Provider/NewZealand.php b/src/Yasumi/Provider/NewZealand.php index 4d646d4f5..a70280234 100644 --- a/src/Yasumi/Provider/NewZealand.php +++ b/src/Yasumi/Provider/NewZealand.php @@ -38,7 +38,7 @@ class NewZealand extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Pacific/Auckland'; @@ -71,7 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNewYearHolidays() + public function calculateNewYearHolidays(): void { $newYearsDay = new DateTime("$this->year-01-01", new DateTimeZone($this->timezone)); $dayAfterNewYearsDay = new DateTime("$this->year-01-02", new DateTimeZone($this->timezone)); @@ -111,7 +111,7 @@ public function calculateNewYearHolidays() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateWaitangiDay() + public function calculateWaitangiDay(): void { if ($this->year < 1974) { return; @@ -141,7 +141,7 @@ public function calculateWaitangiDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAnzacDay() + public function calculateAnzacDay(): void { if ($this->year < 1921) { return; @@ -174,7 +174,7 @@ public function calculateAnzacDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateQueensBirthday() + public function calculateQueensBirthday(): void { if ($this->year < 1952) { return; @@ -207,7 +207,7 @@ public function calculateQueensBirthday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateLabourDay() + public function calculateLabourDay(): void { if ($this->year < 1900) { return; @@ -236,7 +236,7 @@ public function calculateLabourDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateChristmasHolidays() + public function calculateChristmasHolidays(): void { $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); $boxingDay = new DateTime("$this->year-12-26", new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Poland.php b/src/Yasumi/Provider/Poland.php index 91e7b1eaf..4801f45a5 100755 --- a/src/Yasumi/Provider/Poland.php +++ b/src/Yasumi/Provider/Poland.php @@ -37,7 +37,7 @@ class Poland extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Warsaw'; @@ -77,7 +77,7 @@ public function initialize() * @throws \Exception */ - public function calculateIndependenceDay() + public function calculateIndependenceDay(): void { if ($this->year < 1918) { return; @@ -105,7 +105,7 @@ public function calculateIndependenceDay() * @throws \Exception */ - public function calculateConstitutionDay() + public function calculateConstitutionDay(): void { if ($this->year < 1791) { return; From 0b7105c5a03d141e217718a4613f053c3dbddb72 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 20:59:05 +0900 Subject: [PATCH 111/132] Return type hint added. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Germany/SaxonyAnhalt.php | 2 +- src/Yasumi/Provider/Japan.php | 22 +++++++++---------- src/Yasumi/Provider/Latvia.php | 8 +++---- src/Yasumi/Provider/Norway.php | 4 ++-- src/Yasumi/Provider/Spain/BalearicIslands.php | 4 ++-- src/Yasumi/Provider/Spain/BasqueCountry.php | 4 ++-- src/Yasumi/Provider/Spain/CanaryIslands.php | 4 ++-- src/Yasumi/Provider/Spain/Cantabria.php | 4 ++-- src/Yasumi/Provider/Spain/CastileAndLeon.php | 4 ++-- .../Provider/Spain/CastillaLaMancha.php | 4 ++-- src/Yasumi/Provider/Spain/Catalonia.php | 4 ++-- src/Yasumi/Provider/Spain/Ceuta.php | 4 ++-- .../Provider/Spain/CommunityOfMadrid.php | 4 ++-- src/Yasumi/Provider/Spain/Extremadura.php | 4 ++-- src/Yasumi/Provider/Spain/Galicia.php | 6 ++--- src/Yasumi/Provider/Spain/LaRioja.php | 4 ++-- src/Yasumi/Provider/Spain/Melilla.php | 2 +- src/Yasumi/Provider/Spain/Navarre.php | 2 +- src/Yasumi/Provider/Spain/RegionOfMurcia.php | 4 ++-- .../Provider/Spain/ValencianCommunity.php | 4 ++-- src/Yasumi/Provider/Switzerland/Geneva.php | 4 ++-- src/Yasumi/Provider/Switzerland/Glarus.php | 2 +- src/Yasumi/Provider/Switzerland/Jura.php | 2 +- src/Yasumi/Provider/Switzerland/Ticino.php | 2 +- 24 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php index 3f8c9f2a9..b946c5bae 100755 --- a/src/Yasumi/Provider/Germany/SaxonyAnhalt.php +++ b/src/Yasumi/Provider/Germany/SaxonyAnhalt.php @@ -58,7 +58,7 @@ public function initialize(): void * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateReformationDay() + private function calculateReformationDay(): void { if ($this->year < 1517) { return; diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index d732aa6bc..6a3f50a0f 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -79,7 +79,7 @@ class Japan extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Asia/Tokyo'; @@ -201,7 +201,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateVernalEquinoxDay() + private function calculateVernalEquinoxDay(): void { $day = null; if ($this->year < 1948 || $this->year > 2150) { @@ -236,7 +236,7 @@ private function calculateVernalEquinoxDay() * @throws \Exception * @throws \Exception */ - private function calculateComingOfAgeDay() + private function calculateComingOfAgeDay(): void { $date = null; if ($this->year >= 2000) { @@ -266,7 +266,7 @@ private function calculateComingOfAgeDay() * @throws \Exception * @throws \Exception */ - private function calculateGreeneryDay() + private function calculateGreeneryDay(): void { $date = null; if ($this->year >= 2007) { @@ -298,7 +298,7 @@ private function calculateGreeneryDay() * @throws \Exception * @throws \Exception */ - private function calculateMarineDay() + private function calculateMarineDay(): void { $date = null; if ($this->year === 2020) { @@ -329,7 +329,7 @@ private function calculateMarineDay() * @throws \Exception * @throws \Exception */ - private function caluclateMountainDay() + private function caluclateMountainDay(): void { $date = null; if ($this->year === 2020) { @@ -360,7 +360,7 @@ private function caluclateMountainDay() * @throws \Exception * @throws \Exception */ - private function calculateRespectForTheAgeDay() + private function calculateRespectForTheAgeDay(): void { $date = null; if ($this->year >= 2003) { @@ -392,7 +392,7 @@ private function calculateRespectForTheAgeDay() * @throws \Exception * @throws \Exception */ - private function calculateHealthAndSportsDay() + private function calculateHealthAndSportsDay(): void { $date = null; if ($this->year === 2020) { @@ -427,7 +427,7 @@ private function calculateHealthAndSportsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateAutumnalEquinoxDay() + private function calculateAutumnalEquinoxDay(): void { $day = null; if ($this->year < 1948 || $this->year > 2150) { @@ -461,7 +461,7 @@ private function calculateAutumnalEquinoxDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateSubstituteHolidays() + private function calculateSubstituteHolidays(): void { // Get initial list of holiday dates $dates = $this->getHolidayDates(); @@ -508,7 +508,7 @@ private function calculateSubstituteHolidays() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateBridgeHolidays() + private function calculateBridgeHolidays(): void { // Get initial list of holidays and iterator $datesIterator = $this->getIterator(); diff --git a/src/Yasumi/Provider/Latvia.php b/src/Yasumi/Provider/Latvia.php index 47f57273c..ae2eec0e7 100644 --- a/src/Yasumi/Provider/Latvia.php +++ b/src/Yasumi/Provider/Latvia.php @@ -40,7 +40,7 @@ class Latvia extends AbstractProvider * @throws \InvalidArgumentException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Riga'; @@ -67,7 +67,7 @@ public function initialize() * @throws \InvalidArgumentException * @throws \Exception */ - private function addRestorationOfIndependenceDay() + private function addRestorationOfIndependenceDay(): void { if ($this->year >= self::RESTORATION_OF_INDEPENDENCE_YEAR) { $date = new \DateTime("{$this->year}-05-04", new \DateTimeZone($this->timezone)); @@ -87,7 +87,7 @@ private function addRestorationOfIndependenceDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addMidsummerEveDay() + private function addMidsummerEveDay(): void { $this->addHoliday(new Holiday('midsummerEveDay', [ 'en_US' => 'Midsummer Eve', @@ -102,7 +102,7 @@ private function addMidsummerEveDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addProclamationDay() + private function addProclamationDay(): void { if ($this->year >= self::PROCLAMATION_OF_INDEPENDENCE_YEAR) { $date = new \DateTime("{$this->year}-11-18", new \DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Norway.php b/src/Yasumi/Provider/Norway.php index ec5d227d1..03b42364e 100644 --- a/src/Yasumi/Provider/Norway.php +++ b/src/Yasumi/Provider/Norway.php @@ -37,7 +37,7 @@ class Norway extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Oslo'; @@ -78,7 +78,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateConstitutionDay() + public function calculateConstitutionDay(): void { if ($this->year >= 1836) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/BalearicIslands.php b/src/Yasumi/Provider/Spain/BalearicIslands.php index a8a0f821d..24c2d491b 100755 --- a/src/Yasumi/Provider/Spain/BalearicIslands.php +++ b/src/Yasumi/Provider/Spain/BalearicIslands.php @@ -45,7 +45,7 @@ class BalearicIslands extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -73,7 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateBalearicIslandsDay() + public function calculateBalearicIslandsDay(): void { if ($this->year >= 1983) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/BasqueCountry.php b/src/Yasumi/Provider/Spain/BasqueCountry.php index 736334460..0ab4d9e36 100755 --- a/src/Yasumi/Provider/Spain/BasqueCountry.php +++ b/src/Yasumi/Provider/Spain/BasqueCountry.php @@ -44,7 +44,7 @@ class BasqueCountry extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -73,7 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateBasqueCountryDay() + public function calculateBasqueCountryDay(): void { if ($this->year >= 2011 && $this->year <= 2013) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/CanaryIslands.php b/src/Yasumi/Provider/Spain/CanaryIslands.php index 3bc75ca1a..78b237648 100755 --- a/src/Yasumi/Provider/Spain/CanaryIslands.php +++ b/src/Yasumi/Provider/Spain/CanaryIslands.php @@ -46,7 +46,7 @@ class CanaryIslands extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); $this->timezone = 'Atlantic/Canary'; @@ -72,7 +72,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCanaryIslandsDay() + public function calculateCanaryIslandsDay(): void { if ($this->year >= 1984) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/Cantabria.php b/src/Yasumi/Provider/Spain/Cantabria.php index d121b57ef..c58b5ff82 100755 --- a/src/Yasumi/Provider/Spain/Cantabria.php +++ b/src/Yasumi/Provider/Spain/Cantabria.php @@ -46,7 +46,7 @@ class Cantabria extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -76,7 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCantabriaDay() + public function calculateCantabriaDay(): void { if ($this->year >= 1967) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/CastileAndLeon.php b/src/Yasumi/Provider/Spain/CastileAndLeon.php index f2bb18b30..4f1126acb 100755 --- a/src/Yasumi/Provider/Spain/CastileAndLeon.php +++ b/src/Yasumi/Provider/Spain/CastileAndLeon.php @@ -47,7 +47,7 @@ class CastileAndLeon extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -73,7 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCastileAndLeonDay() + public function calculateCastileAndLeonDay(): void { if ($this->year >= 1976) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/CastillaLaMancha.php b/src/Yasumi/Provider/Spain/CastillaLaMancha.php index a5165aa6e..bca90b1de 100755 --- a/src/Yasumi/Provider/Spain/CastillaLaMancha.php +++ b/src/Yasumi/Provider/Spain/CastillaLaMancha.php @@ -47,7 +47,7 @@ class CastillaLaMancha extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -76,7 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCastillaLaManchaDay() + public function calculateCastillaLaManchaDay(): void { if ($this->year >= 1984) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/Catalonia.php b/src/Yasumi/Provider/Spain/Catalonia.php index 0b2487e65..d0c4d1bb3 100755 --- a/src/Yasumi/Provider/Spain/Catalonia.php +++ b/src/Yasumi/Provider/Spain/Catalonia.php @@ -48,7 +48,7 @@ class Catalonia extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -76,7 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNationalDayOfCatalonia() + public function calculateNationalDayOfCatalonia(): void { if ($this->year >= 1886) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/Ceuta.php b/src/Yasumi/Provider/Spain/Ceuta.php index 9a51713e9..a2d99f594 100755 --- a/src/Yasumi/Provider/Spain/Ceuta.php +++ b/src/Yasumi/Provider/Spain/Ceuta.php @@ -45,7 +45,7 @@ class Ceuta extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -70,7 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDayOfCeuta() + public function calculateDayOfCeuta(): void { if ($this->year >= 1416) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php index 880cc88ca..ffae26b49 100755 --- a/src/Yasumi/Provider/Spain/CommunityOfMadrid.php +++ b/src/Yasumi/Provider/Spain/CommunityOfMadrid.php @@ -47,7 +47,7 @@ class CommunityOfMadrid extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -77,7 +77,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDosdeMayoUprisingDay() + public function calculateDosdeMayoUprisingDay(): void { $this->addHoliday(new Holiday( 'dosdeMayoUprisingDay', diff --git a/src/Yasumi/Provider/Spain/Extremadura.php b/src/Yasumi/Provider/Spain/Extremadura.php index d8e3f0719..2a47a2405 100755 --- a/src/Yasumi/Provider/Spain/Extremadura.php +++ b/src/Yasumi/Provider/Spain/Extremadura.php @@ -46,7 +46,7 @@ class Extremadura extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -73,7 +73,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDayOfExtremadura() + public function calculateDayOfExtremadura(): void { if ($this->year >= 1985) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Spain/Galicia.php b/src/Yasumi/Provider/Spain/Galicia.php index c7aa73f4e..383a47695 100755 --- a/src/Yasumi/Provider/Spain/Galicia.php +++ b/src/Yasumi/Provider/Spain/Galicia.php @@ -46,7 +46,7 @@ class Galicia extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -74,7 +74,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateGalicianLiteratureDay() + public function calculateGalicianLiteratureDay(): void { if ($this->year >= 1991) { $this->addHoliday(new Holiday('galicianLiteratureDay', [ @@ -102,7 +102,7 @@ public function calculateGalicianLiteratureDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStJamesDay() + public function calculateStJamesDay(): void { if ($this->year >= 2000) { $this->addHoliday(new Holiday('stJamesDay', [ diff --git a/src/Yasumi/Provider/Spain/LaRioja.php b/src/Yasumi/Provider/Spain/LaRioja.php index 80a7aa554..36bd6e973 100755 --- a/src/Yasumi/Provider/Spain/LaRioja.php +++ b/src/Yasumi/Provider/Spain/LaRioja.php @@ -45,7 +45,7 @@ class LaRioja extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -70,7 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateLaRiojaDay() + public function calculateLaRiojaDay(): void { if ($this->year >= 1983) { $this->addHoliday(new Holiday('laRiojaDay', [ diff --git a/src/Yasumi/Provider/Spain/Melilla.php b/src/Yasumi/Provider/Spain/Melilla.php index 2881e3ca1..44fe9fc74 100755 --- a/src/Yasumi/Provider/Spain/Melilla.php +++ b/src/Yasumi/Provider/Spain/Melilla.php @@ -43,7 +43,7 @@ class Melilla extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Spain/Navarre.php b/src/Yasumi/Provider/Spain/Navarre.php index 865222b1d..3edfe3887 100755 --- a/src/Yasumi/Provider/Spain/Navarre.php +++ b/src/Yasumi/Provider/Spain/Navarre.php @@ -43,7 +43,7 @@ class Navarre extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); diff --git a/src/Yasumi/Provider/Spain/RegionOfMurcia.php b/src/Yasumi/Provider/Spain/RegionOfMurcia.php index f94dc9163..2962015d9 100755 --- a/src/Yasumi/Provider/Spain/RegionOfMurcia.php +++ b/src/Yasumi/Provider/Spain/RegionOfMurcia.php @@ -45,7 +45,7 @@ class RegionOfMurcia extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -71,7 +71,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDayOfMurcia() + public function calculateDayOfMurcia(): void { if ($this->year >= 1983) { $this->addHoliday(new Holiday('murciaDay', [ diff --git a/src/Yasumi/Provider/Spain/ValencianCommunity.php b/src/Yasumi/Provider/Spain/ValencianCommunity.php index 534ea5106..c5a0b1582 100755 --- a/src/Yasumi/Provider/Spain/ValencianCommunity.php +++ b/src/Yasumi/Provider/Spain/ValencianCommunity.php @@ -48,7 +48,7 @@ class ValencianCommunity extends Spain * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { parent::initialize(); @@ -78,7 +78,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateValencianCommunityDay() + public function calculateValencianCommunityDay(): void { if ($this->year >= 1239) { $this->addHoliday(new Holiday('valencianCommunityDay', [ diff --git a/src/Yasumi/Provider/Switzerland/Geneva.php b/src/Yasumi/Provider/Switzerland/Geneva.php index 92907a00b..eb0d600bc 100644 --- a/src/Yasumi/Provider/Switzerland/Geneva.php +++ b/src/Yasumi/Provider/Switzerland/Geneva.php @@ -70,7 +70,7 @@ public function initialize(): void * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateJeuneGenevois() + public function calculateJeuneGenevois(): void { // Find first Sunday of September $date = new DateTime('First Sunday of ' . $this->year . '-09', new DateTimeZone($this->timezone)); @@ -105,7 +105,7 @@ public function calculateJeuneGenevois() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateRestaurationGenevoise() + public function calculateRestaurationGenevoise(): void { if ($this->year > 1813) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Switzerland/Glarus.php b/src/Yasumi/Provider/Switzerland/Glarus.php index 735e0a5fd..57ca3f79b 100644 --- a/src/Yasumi/Provider/Switzerland/Glarus.php +++ b/src/Yasumi/Provider/Switzerland/Glarus.php @@ -72,7 +72,7 @@ public function initialize(): void * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNafelserFahrt() + public function calculateNafelserFahrt(): void { if ($this->year >= 1389) { $date = new DateTime('First Thursday of ' . $this->year . '-04', new DateTimeZone($this->timezone)); diff --git a/src/Yasumi/Provider/Switzerland/Jura.php b/src/Yasumi/Provider/Switzerland/Jura.php index 48f77fd6e..ed2cf2975 100644 --- a/src/Yasumi/Provider/Switzerland/Jura.php +++ b/src/Yasumi/Provider/Switzerland/Jura.php @@ -75,7 +75,7 @@ public function initialize(): void * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculatePlebisciteJurassien() + public function calculatePlebisciteJurassien(): void { if ($this->year > 1974) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Switzerland/Ticino.php b/src/Yasumi/Provider/Switzerland/Ticino.php index 5a7b34f8f..ea4ab8650 100644 --- a/src/Yasumi/Provider/Switzerland/Ticino.php +++ b/src/Yasumi/Provider/Switzerland/Ticino.php @@ -82,7 +82,7 @@ public function initialize(): void * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStPeterPaul() + public function calculateStPeterPaul(): void { $this->addHoliday(new Holiday( 'stPeterPaul', From 24b3f50f9d8e03966dcafc12582fb26333d613d8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Tue, 8 Jan 2019 21:03:02 +0900 Subject: [PATCH 112/132] Return type hint added. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Portugal.php | 14 +++++++------- src/Yasumi/Provider/Romania.php | 14 +++++++------- src/Yasumi/Provider/Russia.php | 18 +++++++++--------- src/Yasumi/Provider/Slovakia.php | 12 ++++++------ src/Yasumi/Provider/SouthAfrica.php | 22 +++++++++++----------- src/Yasumi/Provider/Spain.php | 6 +++--- src/Yasumi/Provider/Sweden.php | 8 ++++---- src/Yasumi/Provider/USA.php | 4 ++-- src/Yasumi/Provider/Ukraine.php | 16 ++++++++-------- src/Yasumi/Provider/UnitedKingdom.php | 12 ++++++------ 10 files changed, 63 insertions(+), 63 deletions(-) diff --git a/src/Yasumi/Provider/Portugal.php b/src/Yasumi/Provider/Portugal.php index 3779b045a..77294a0aa 100644 --- a/src/Yasumi/Provider/Portugal.php +++ b/src/Yasumi/Provider/Portugal.php @@ -41,7 +41,7 @@ class Portugal extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Lisbon'; @@ -81,7 +81,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCarnationRevolutionDay() + public function calculateCarnationRevolutionDay(): void { if ($this->year >= 1974) { $this->addHoliday(new Holiday( @@ -103,7 +103,7 @@ public function calculateCarnationRevolutionDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateCorpusChristi() + public function calculateCorpusChristi(): void { if ($this->year <= 2013 || $this->year >= 2016) { $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); @@ -128,7 +128,7 @@ public function calculateCorpusChristi() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculatePortugalDay() + public function calculatePortugalDay(): void { if ($this->year <= 1932 || $this->year >= 1974) { $this->addHoliday(new Holiday( @@ -160,7 +160,7 @@ public function calculatePortugalDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculatePortugueseRepublicDay() + public function calculatePortugueseRepublicDay(): void { if ($this->year >= 1910) { $this->addHoliday(new Holiday( @@ -181,7 +181,7 @@ public function calculatePortugueseRepublicDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAllSaintsDay() + public function calculateAllSaintsDay(): void { if ($this->year <= 2013 || $this->year >= 2016) { $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale)); @@ -213,7 +213,7 @@ public function calculateAllSaintsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateRestorationOfIndependenceDay() + public function calculateRestorationOfIndependenceDay(): void { // The Wikipedia article mentions that this has been a holiday since the second of half of the XIX century. if (($this->year >= 1850 && $this->year <= 2013) || $this->year >= 2016) { diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index 6afea0d5a..460702433 100755 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -42,7 +42,7 @@ class Romania extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Bucharest'; @@ -84,7 +84,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDayAfterNewYearsDay() + public function calculateDayAfterNewYearsDay(): void { $this->addHoliday(new Holiday('dayAfterNewYearsDay', [ 'en_US' => 'Day after New Year\'s Day', @@ -107,7 +107,7 @@ public function calculateDayAfterNewYearsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateUnitedPrincipalitiesDay() + public function calculateUnitedPrincipalitiesDay(): void { // The law is official since 21.12.2014. if ($this->year > 2014) { @@ -130,7 +130,7 @@ public function calculateUnitedPrincipalitiesDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStAndrewDay() + public function calculateStAndrewDay(): void { if ($this->year >= 2012) { $this->addHoliday(new Holiday('stAndrewDay', [ @@ -156,7 +156,7 @@ public function calculateStAndrewDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNationalDay() + public function calculateNationalDay(): void { $national_day = null; @@ -192,7 +192,7 @@ public function calculateNationalDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateConstantinBrancusiDay() + public function calculateConstantinBrancusiDay(): void { if ($this->year >= 2016) { $this->addHoliday(new Holiday( @@ -221,7 +221,7 @@ public function calculateConstantinBrancusiDay() * @throws \Exception * @throws \Exception */ - public function calculateChildrensDay() + public function calculateChildrensDay(): void { if ($this->year >= 1950 && $this->year <= 2016) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Russia.php b/src/Yasumi/Provider/Russia.php index f0f646e81..7db1e63bf 100644 --- a/src/Yasumi/Provider/Russia.php +++ b/src/Yasumi/Provider/Russia.php @@ -41,7 +41,7 @@ class Russia extends AbstractProvider * @throws \InvalidArgumentException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Moscow'; @@ -61,7 +61,7 @@ public function initialize() * @throws \InvalidArgumentException * @throws \Exception */ - private function addNewYearsHolidays() + private function addNewYearsHolidays(): void { $holidayDays = [2, 3, 4, 5, 6, 8]; @@ -77,7 +77,7 @@ private function addNewYearsHolidays() * @throws \InvalidArgumentException * @throws \Exception */ - private function addOrthodoxChristmasDay() + private function addOrthodoxChristmasDay(): void { $this->addHoliday(new Holiday('orthodoxChristmasDay', [ 'en_US' => 'Orthodox Christmas Day', @@ -89,7 +89,7 @@ private function addOrthodoxChristmasDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addDefenceOfTheFatherlandDay() + private function addDefenceOfTheFatherlandDay(): void { if ($this->year < self::DEFENCE_OF_THE_FATHERLAND_START_YEAR) { return; @@ -105,7 +105,7 @@ private function addDefenceOfTheFatherlandDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addInternationalWomensDay() + private function addInternationalWomensDay(): void { $this->addHoliday(new Holiday('internationalWomensDay', [ 'en_US' => 'International Women\'s Day', @@ -117,7 +117,7 @@ private function addInternationalWomensDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addSpringAndLabourDay() + private function addSpringAndLabourDay(): void { $this->addHoliday(new Holiday('springAndLabourDay', [ 'en_US' => 'Spring and Labour Day', @@ -129,7 +129,7 @@ private function addSpringAndLabourDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addVictoryDay() + private function addVictoryDay(): void { $this->addHoliday(new Holiday('victoryDay', [ 'en_US' => 'Victory Day', @@ -141,7 +141,7 @@ private function addVictoryDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addRussiaDay() + private function addRussiaDay(): void { if ($this->year < self::RUSSIA_DAY_START_YEAR) { return; @@ -157,7 +157,7 @@ private function addRussiaDay() * @throws \InvalidArgumentException * @throws \Exception */ - private function addUnityDay() + private function addUnityDay(): void { if ($this->year < self::UNITY_DAY_START_YEAR) { return; diff --git a/src/Yasumi/Provider/Slovakia.php b/src/Yasumi/Provider/Slovakia.php index 887202c5f..1d85b7776 100644 --- a/src/Yasumi/Provider/Slovakia.php +++ b/src/Yasumi/Provider/Slovakia.php @@ -63,7 +63,7 @@ class Slovakia extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Bratislava'; @@ -116,7 +116,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateSaintsCyrilAndMethodiusDay() + public function calculateSaintsCyrilAndMethodiusDay(): void { $this->addHoliday(new Holiday( 'saintsCyrilAndMethodiusDay', @@ -141,7 +141,7 @@ public function calculateSaintsCyrilAndMethodiusDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateSlovakNationalUprisingDay() + public function calculateSlovakNationalUprisingDay(): void { $this->addHoliday(new Holiday( 'slovakNationalUprisingDay', @@ -165,7 +165,7 @@ public function calculateSlovakNationalUprisingDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateSlovakConstitutionDay() + public function calculateSlovakConstitutionDay(): void { $this->addHoliday(new Holiday( 'slovakConstitutionDay', @@ -193,7 +193,7 @@ public function calculateSlovakConstitutionDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateOurLadyOfSorrowsDay() + public function calculateOurLadyOfSorrowsDay(): void { $this->addHoliday(new Holiday('ourLadyOfSorrowsDay', [ 'sk_SK' => 'Sviatok Sedembolestnej Panny Márie', @@ -211,7 +211,7 @@ public function calculateOurLadyOfSorrowsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStruggleForFreedomAndDemocracyDay() + public function calculateStruggleForFreedomAndDemocracyDay(): void { $this->addHoliday(new Holiday( 'struggleForFreedomAndDemocracyDay', diff --git a/src/Yasumi/Provider/SouthAfrica.php b/src/Yasumi/Provider/SouthAfrica.php index 3325d8856..0be7ab47d 100644 --- a/src/Yasumi/Provider/SouthAfrica.php +++ b/src/Yasumi/Provider/SouthAfrica.php @@ -43,7 +43,7 @@ class SouthAfrica extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Africa/Johannesburg'; @@ -92,7 +92,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateHumanRightsDay() + public function calculateHumanRightsDay(): void { $this->addHoliday(new Holiday( 'humanRightsDay', @@ -114,7 +114,7 @@ public function calculateHumanRightsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateFamilyDay() + public function calculateFamilyDay(): void { $this->addHoliday(new Holiday( 'familyDay', @@ -137,7 +137,7 @@ public function calculateFamilyDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateFreedomDay() + public function calculateFreedomDay(): void { $this->addHoliday(new Holiday( 'freedomDay', @@ -164,7 +164,7 @@ public function calculateFreedomDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateYouthDay() + public function calculateYouthDay(): void { $this->addHoliday(new Holiday( 'youthDay', @@ -187,7 +187,7 @@ public function calculateYouthDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculate2016MunicipalElectionsDay() + public function calculate2016MunicipalElectionsDay(): void { if ($this->year !== 2016) { return; @@ -216,7 +216,7 @@ public function calculate2016MunicipalElectionsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNationalWomensDay() + public function calculateNationalWomensDay(): void { $this->addHoliday(new Holiday( 'nationalWomensDay', @@ -241,7 +241,7 @@ public function calculateNationalWomensDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateHeritageDay() + public function calculateHeritageDay(): void { $this->addHoliday(new Holiday( 'heritageDay', @@ -268,7 +268,7 @@ public function calculateHeritageDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDayOfReconciliation() + public function calculateDayOfReconciliation(): void { $this->addHoliday(new Holiday( 'reconciliationDay', @@ -294,7 +294,7 @@ public function calculateDayOfReconciliation() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateSubstituteDayOfGoodwill() + public function calculateSubstituteDayOfGoodwill(): void { if ($this->year !== 2016) { return; @@ -319,7 +319,7 @@ public function calculateSubstituteDayOfGoodwill() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateSubstituteHolidays() + private function calculateSubstituteHolidays(): void { $datesIterator = $this->getIterator(); diff --git a/src/Yasumi/Provider/Spain.php b/src/Yasumi/Provider/Spain.php index ff67ce033..27154b754 100755 --- a/src/Yasumi/Provider/Spain.php +++ b/src/Yasumi/Provider/Spain.php @@ -37,7 +37,7 @@ class Spain extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Madrid'; @@ -76,7 +76,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNationalDay() + public function calculateNationalDay(): void { if ($this->year >= 1981) { $this->addHoliday(new Holiday( @@ -102,7 +102,7 @@ public function calculateNationalDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateConstitutionDay() + public function calculateConstitutionDay(): void { if ($this->year >= 1978) { $this->addHoliday(new Holiday( diff --git a/src/Yasumi/Provider/Sweden.php b/src/Yasumi/Provider/Sweden.php index a5f02c8fd..f8a6a1401 100644 --- a/src/Yasumi/Provider/Sweden.php +++ b/src/Yasumi/Provider/Sweden.php @@ -38,7 +38,7 @@ class Sweden extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Stockholm'; @@ -82,7 +82,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateStJohnsDay() + public function calculateStJohnsDay(): void { $date = new DateTime("$this->year-6-20", new DateTimeZone($this->timezone)); // Default date @@ -118,7 +118,7 @@ public function calculateStJohnsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateAllSaintsDay() + public function calculateAllSaintsDay(): void { $date = new DateTime("$this->year-10-31", new DateTimeZone($this->timezone)); @@ -147,7 +147,7 @@ public function calculateAllSaintsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNationalDay() + public function calculateNationalDay(): void { if ($this->year < 1916) { return; diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index f60975e69..8f2efdda6 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -38,7 +38,7 @@ class USA extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'America/New_York'; @@ -213,7 +213,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateSubstituteHolidays() + private function calculateSubstituteHolidays(): void { $datesIterator = $this->getIterator(); $substituteHoliday = null; diff --git a/src/Yasumi/Provider/Ukraine.php b/src/Yasumi/Provider/Ukraine.php index ccb234aa3..22608a876 100644 --- a/src/Yasumi/Provider/Ukraine.php +++ b/src/Yasumi/Provider/Ukraine.php @@ -40,7 +40,7 @@ class Ukraine extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/Kiev'; @@ -70,7 +70,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateChristmasDay() + public function calculateChristmasDay(): void { $this->addHoliday(new Holiday( 'christmasDay', @@ -93,7 +93,7 @@ public function calculateChristmasDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateInternationalWomensDay() + public function calculateInternationalWomensDay(): void { $this->addHoliday(new Holiday( 'internationalWomensDay', @@ -113,7 +113,7 @@ public function calculateInternationalWomensDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateSecondInternationalWorkersDay() + public function calculateSecondInternationalWorkersDay(): void { $this->addHoliday(new Holiday('secondInternationalWorkersDay', [ 'uk_UA' => 'День міжнародної солідарності трудящих', @@ -137,7 +137,7 @@ public function calculateSecondInternationalWorkersDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateVictoryDay() + public function calculateVictoryDay(): void { $this->addHoliday(new Holiday( 'victoryDay', @@ -159,7 +159,7 @@ public function calculateVictoryDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateConstitutionDay() + public function calculateConstitutionDay(): void { if ($this->year < 1996) { return; @@ -187,7 +187,7 @@ public function calculateConstitutionDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateIndependenceDay() + public function calculateIndependenceDay(): void { if ($this->year < 1991) { return; @@ -216,7 +216,7 @@ public function calculateIndependenceDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateDefenderOfUkraineDay() + public function calculateDefenderOfUkraineDay(): void { if ($this->year < 2015) { return; diff --git a/src/Yasumi/Provider/UnitedKingdom.php b/src/Yasumi/Provider/UnitedKingdom.php index db305b347..68aea9c30 100644 --- a/src/Yasumi/Provider/UnitedKingdom.php +++ b/src/Yasumi/Provider/UnitedKingdom.php @@ -39,7 +39,7 @@ class UnitedKingdom extends AbstractProvider * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function initialize() + public function initialize(): void { $this->timezone = 'Europe/London'; @@ -72,7 +72,7 @@ public function initialize() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateNewYearsDay() + public function calculateNewYearsDay(): void { // Before 1871 it was not an observed or statutory holiday if ($this->year < 1871) { @@ -111,7 +111,7 @@ public function calculateNewYearsDay() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateMayDayBankHoliday() + private function calculateMayDayBankHoliday(): void { // From 1978, by Royal Proclamation annually if ($this->year < 1978) { @@ -143,7 +143,7 @@ private function calculateMayDayBankHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateSpringBankHoliday() + private function calculateSpringBankHoliday(): void { // Statutory bank holiday from 1971, following a trial period from 1965 to 1970. if ($this->year < 1965) { @@ -175,7 +175,7 @@ private function calculateSpringBankHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - private function calculateSummerBankHoliday() + private function calculateSummerBankHoliday(): void { // Statutory bank holiday from 1971, following a trial period from 1965 to 1970. if ($this->year < 1965) { @@ -213,7 +213,7 @@ private function calculateSummerBankHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function calculateChristmasHolidays() + public function calculateChristmasHolidays(): void { $christmasDay = new DateTime("$this->year-12-25", new DateTimeZone($this->timezone)); $boxingDay = new DateTime("$this->year-12-26", new DateTimeZone($this->timezone)); From 1c65f57b5de2eceb4e43fdef7a706c05a60e952f Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 10:39:33 +0900 Subject: [PATCH 113/132] Simplified if/then conditions using an intermediate variable avoiding duplication. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Australia.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/Australia.php b/src/Yasumi/Provider/Australia.php index ca132d115..11d3c1a11 100755 --- a/src/Yasumi/Provider/Australia.php +++ b/src/Yasumi/Provider/Australia.php @@ -163,12 +163,16 @@ public function calculateAnzacDay(): void $date = new DateTime("$this->year-04-25", new DateTimeZone($this->timezone)); $this->calculateHoliday('anzacDay', ['en_AU' => 'ANZAC Day'], $date, false, false); $easter = $this->calculateEaster($this->year, $this->timezone); + $easterMonday = $this->calculateEaster($this->year, $this->timezone); $easterMonday->add(new DateInterval('P1D')); - if (($date->format('Y-m-d') === $easter->format('Y-m-d')) || ($date->format('Y-m-d') === $easterMonday->format('Y-m-d'))) { + + $fDate = $date->format('Y-m-d'); + if ($fDate === $easter->format('Y-m-d') || $fDate === $easterMonday->format('Y-m-d')) { $easterMonday->add(new DateInterval('P1D')); $this->calculateHoliday('easterTuesday', ['en_AU' => 'Easter Tuesday'], $easterMonday, false, false); } + unset($fDate); } /** From 48f36b3fa31a4de711f1e2070d08e65bd6417371 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 10:41:45 +0900 Subject: [PATCH 114/132] Removed unnecessary argument. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Denmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/Denmark.php b/src/Yasumi/Provider/Denmark.php index a3250f28a..c1146fbcc 100644 --- a/src/Yasumi/Provider/Denmark.php +++ b/src/Yasumi/Provider/Denmark.php @@ -58,7 +58,7 @@ public function initialize(): void $this->calculateGreatPrayerDay(); $this->addHoliday($this->internationalWorkersDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); - $this->addHoliday($this->christmasEve($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); + $this->addHoliday($this->christmasEve($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->newYearsEve($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); $this->calculateConstitutionDay(); From 31730a567ff378e420094e8bda3c3778ca4ac935 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 10:51:26 +0900 Subject: [PATCH 115/132] Removed unnecessary imports. Signed-off-by: Sacha Telgenhof --- tests/Australia/ACT/EasterSundayTest.php | 1 - tests/Australia/NSW/EasterSundayTest.php | 1 - tests/Australia/Victoria/EasterSundayTest.php | 1 - tests/Base/HolidayOnFilterTest.php | 1 - tests/Bosnia/BosniaTest.php | 1 - tests/Bosnia/OrthodoxChristmasDay.php | 2 -- tests/Germany/Hamburg/DayOfReformationTest.php | 1 - 7 files changed, 8 deletions(-) diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php index fcc5498dd..dd0d79ebc 100644 --- a/tests/Australia/ACT/EasterSundayTest.php +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -12,7 +12,6 @@ namespace Yasumi\tests\Australia\ACT; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php index dbad9bdff..cb9f6e986 100644 --- a/tests/Australia/NSW/EasterSundayTest.php +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -12,7 +12,6 @@ namespace Yasumi\tests\Australia\NSW; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php index 66a27f603..eddd1a892 100644 --- a/tests/Australia/Victoria/EasterSundayTest.php +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -12,7 +12,6 @@ namespace Yasumi\tests\Australia\Victoria; -use DateInterval; use DateTime; use DateTimeZone; use Yasumi\Holiday; diff --git a/tests/Base/HolidayOnFilterTest.php b/tests/Base/HolidayOnFilterTest.php index 2ff33043d..c9808f046 100644 --- a/tests/Base/HolidayOnFilterTest.php +++ b/tests/Base/HolidayOnFilterTest.php @@ -14,7 +14,6 @@ use DateTime; use DateTimeZone; -use InvalidArgumentException; use PHPUnit\Framework\TestCase; use Yasumi\tests\YasumiBase; use Yasumi\Yasumi; diff --git a/tests/Bosnia/BosniaTest.php b/tests/Bosnia/BosniaTest.php index 348275a13..826132dd4 100644 --- a/tests/Bosnia/BosniaTest.php +++ b/tests/Bosnia/BosniaTest.php @@ -13,7 +13,6 @@ namespace Yasumi\tests\Bosnia; use Yasumi\Holiday; -use Yasumi\tests\Bosnia\BosniaBaseTestCase; /** * Class for testing holidays in Bosnia. diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php index 3202d521c..dcd3178a8 100644 --- a/tests/Bosnia/OrthodoxChristmasDay.php +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -12,8 +12,6 @@ namespace Yasumi\tests\Bosnia; -use DateTime; -use DateTimeZone; use Yasumi\Holiday; use Yasumi\tests\YasumiTestCaseInterface; diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index 2e4cca270..1d75cf849 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -15,7 +15,6 @@ use DateTime; use DateTimeZone; use Yasumi\Holiday; -use Yasumi\tests\Germany\Hamburg\HamburgBaseTestCase; use Yasumi\tests\YasumiTestCaseInterface; /** From 7da386565abbb5709f1e98a6cc32f1604f20b876 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 10:52:53 +0900 Subject: [PATCH 116/132] Removed duplicate variable instance. Signed-off-by: Sacha Telgenhof --- tests/Australia/EasterMondayTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index d1c12a026..f74294fac 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -92,8 +92,6 @@ public function HolidayDataProvider(): array */ public function HolidayDataProvider2(): array { - $data = []; - $data = [ [2011, '2011-04-26'], [2038, '2038-04-27'], From f27aac387e55d00f1dd6a30346a3861b8ba926c8 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 11:05:16 +0900 Subject: [PATCH 117/132] Changed assertion functions for internal types as the method 'assertInternalType' in PHPUnit 7.5 is deprecated. Signed-off-by: Sacha Telgenhof --- tests/Base/HolidayTest.php | 14 +++++++------- tests/Base/TranslationsTest.php | 14 +++++++------- tests/Base/YasumiTest.php | 34 ++++++++++++++++----------------- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index 9bfbc5930..97dc2f34e 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -57,7 +57,7 @@ public function testHolidayIsJsonSerializable() $json = \json_encode($holiday); $instance = \json_decode($json, true); - $this->assertInternalType('array', $instance); + $this->assertIsArray($instance); $this->assertNotNull($instance); $this->assertArrayHasKey('shortName', $instance); } @@ -87,7 +87,7 @@ public function testHolidayGetNameWithNoTranslations() $name = 'testHoliday'; $holiday = new Holiday($name, [], new DateTime(), 'en_US'); - $this->assertInternalType('string', $holiday->getName()); + $this->assertIsString($holiday->getName()); $this->assertEquals($name, $holiday->getName()); } @@ -101,7 +101,7 @@ public function testHolidayGetNameWithOnlyDefaultTranslation() $locale = 'en_US'; $holiday = new Holiday($name, [$locale => $translation], new DateTime(), $locale); - $this->assertInternalType('string', $holiday->getName()); + $this->assertIsString($holiday->getName()); $this->assertEquals($translation, $holiday->getName()); } @@ -115,7 +115,7 @@ public function testHolidayGetNameWithOneNonDefaultTranslation() $holiday = new Holiday($name, ['en_US' => $translation], new DateTime(), 'nl_NL'); $this->assertNotNull($holiday->getName()); - $this->assertInternalType('string', $holiday->getName()); + $this->assertIsString($holiday->getName()); $this->assertEquals($translation, $holiday->getName()); } @@ -140,7 +140,7 @@ public function testHolidayGetNameWithGlobalTranslations() $holiday->mergeGlobalTranslations($translationsStub); $this->assertNotNull($holiday->getName()); - $this->assertInternalType('string', $holiday->getName()); + $this->assertIsString($holiday->getName()); $this->assertEquals($translations[$locale], $holiday->getName()); } @@ -171,7 +171,7 @@ public function testHolidayGetNameWithGlobalAndCustomTranslations() $holiday->mergeGlobalTranslations($translationsStub); $this->assertNotNull($holiday->getName()); - $this->assertInternalType('string', $holiday->getName()); + $this->assertIsString($holiday->getName()); $this->assertEquals($customTranslation, $holiday->getName()); } @@ -202,7 +202,7 @@ public function testHolidayGetNameWithOverridenGlobalTranslations() $holiday->mergeGlobalTranslations($translationsStub); $this->assertNotNull($holiday->getName()); - $this->assertInternalType('string', $holiday->getName()); + $this->assertIsString($holiday->getName()); $this->assertEquals($customTranslation, $holiday->getName()); } } diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index 5302304ac..93f916c09 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -51,7 +51,7 @@ public function testAddTranslation() $this->assertEquals([$locale => $translation], $translations->getTranslations($shortName)); $this->assertNotNull($translations->getTranslation($shortName, $locale)); - $this->assertInternalType('string', $translations->getTranslation($shortName, $locale)); + $this->assertIsString($translations->getTranslation($shortName, $locale)); $this->assertEquals($translation, $translations->getTranslation($shortName, $locale)); } @@ -73,7 +73,7 @@ public function testAddMultipleTranslations() $this->assertEquals([$firstLocale => $firstTranslation], $translations->getTranslations($firstShortName)); $this->assertNotNull($translations->getTranslation($firstShortName, $firstLocale)); - $this->assertInternalType('string', $translations->getTranslation($firstShortName, $firstLocale)); + $this->assertIsString($translations->getTranslation($firstShortName, $firstLocale)); $this->assertEquals($firstTranslation, $translations->getTranslation($firstShortName, $firstLocale)); $secondLocale = 'nl_NL'; @@ -87,7 +87,7 @@ public function testAddMultipleTranslations() $this->assertEquals([$secondLocale => $secondTranslation], $translations->getTranslations($secondShortName)); $this->assertNotNull($translations->getTranslation($secondShortName, $secondLocale)); - $this->assertInternalType('string', $translations->getTranslation($secondShortName, $secondLocale)); + $this->assertIsString($translations->getTranslation($secondShortName, $secondLocale)); $this->assertEquals($secondTranslation, $translations->getTranslation($secondShortName, $secondLocale)); $thirdLocale = 'en_US'; @@ -104,7 +104,7 @@ public function testAddMultipleTranslations() ); $this->assertNotNull($translations->getTranslation($thirdShortName, $thirdLocale)); - $this->assertInternalType('string', $translations->getTranslation($thirdShortName, $thirdLocale)); + $this->assertIsString($translations->getTranslation($thirdShortName, $thirdLocale)); $this->assertEquals($thirdTranslation, $translations->getTranslation($thirdShortName, $thirdLocale)); } @@ -186,7 +186,7 @@ public function testLoadingTranslationsFromDirectory() $this->assertNotNull($translations->getTranslations($shortName)); $this->assertNotEmpty($translations->getTranslations($shortName)); - $this->assertInternalType('string', $translations->getTranslation($shortName, $locale)); + $this->assertIsString($translations->getTranslation($shortName, $locale)); $this->assertEquals($translation, $translations->getTranslation($shortName, $locale)); } @@ -289,7 +289,7 @@ public function testLoadingMultipleTranslationsFromDirectory() $this->assertNotNull($translations->getTranslations($firstShortName)); $this->assertNotEmpty($translations->getTranslations($firstShortName)); - $this->assertInternalType('string', $translations->getTranslation($firstShortName, $locale)); + $this->assertIsString($translations->getTranslation($firstShortName, $locale)); $this->assertEquals($translation, $translations->getTranslation($firstShortName, $locale)); $locale = 'nl_NL'; @@ -297,7 +297,7 @@ public function testLoadingMultipleTranslationsFromDirectory() $this->assertNotNull($translations->getTranslations($secondShortName)); $this->assertNotEmpty($translations->getTranslations($secondShortName)); - $this->assertInternalType('string', $translations->getTranslation($secondShortName, $locale)); + $this->assertIsString($translations->getTranslation($secondShortName, $locale)); $this->assertEquals($translation, $translations->getTranslation($secondShortName, $locale)); } } diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 4809bfd23..53230fc82 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -125,7 +125,7 @@ public function testCount() // There are 16 holidays in Japan in the year 2015, with 1 substituted holiday. $holidays = Yasumi::create('Japan', 2015); - $this->assertInternalType('int', $holidays->count()); + $this->assertIsInt($holidays->count()); $this->assertEquals(16, $holidays->count()); $this->assertNotEquals(17, $holidays->count()); } @@ -138,7 +138,7 @@ public function testGetType() $holidays = Yasumi::create('Japan', Factory::create()->numberBetween(1949, self::YEAR_UPPER_BOUND)); $holiday = $holidays->getHoliday('newYearsDay'); - $this->assertInternalType('string', $holiday->getType()); + $this->assertIsString($holiday->getType()); } /** @@ -149,7 +149,7 @@ public function testGetYear() $year = Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND); $holidays = Yasumi::create('Netherlands', $year); - $this->assertInternalType('integer', $holidays->getYear()); + $this->assertIsInt($holidays->getYear()); $this->assertEquals($year, $holidays->getYear()); } @@ -228,7 +228,7 @@ public function testGetHolidayNames() $holidays = Yasumi::create('Japan', 2015); $holidayNames = $holidays->getHolidayNames(); - $this->assertInternalType('array', $holidayNames); + $this->assertIsArray($holidayNames); $this->assertCount(17, $holidayNames); $this->assertContains('newYearsDay', $holidayNames); } @@ -242,7 +242,7 @@ public function testWhenIs() $when = $holidays->whenIs('autumnalEquinoxDay'); - $this->assertInternalType('string', $when); + $this->assertIsString($when); $this->assertEquals('2010-09-23', $when); } @@ -277,7 +277,7 @@ public function testWhatWeekDayIs() $holidays = Yasumi::create('Netherlands', 2110); $weekDay = $holidays->whatWeekDayIs('stMartinsDay'); - $this->assertInternalType('int', $weekDay); + $this->assertIsInt($weekDay); $this->assertEquals(2, $weekDay); } @@ -300,7 +300,7 @@ public function testGetProviders() $providers = Yasumi::getProviders(); $this->assertNotEmpty($providers); - $this->assertInternalType('array', $providers); + $this->assertIsArray($providers); $this->assertContains('Netherlands', $providers); $this->assertEquals('USA', $providers['US']); $this->assertNotContains('AbstractProvider', $providers); @@ -316,12 +316,12 @@ public function testGetProvidersStaticCall() $initial_providers = $providers; $this->assertNotEmpty($providers); - $this->assertInternalType('array', $providers); + $this->assertIsArray($providers); $this->assertContains($provider, $providers); $providers = Yasumi::getProviders(); $this->assertNotEmpty($providers); - $this->assertInternalType('array', $providers); + $this->assertIsArray($providers); $this->assertContains($provider, $providers); $this->assertEquals($initial_providers, $providers); } @@ -337,12 +337,12 @@ public function testIsHoliday() // Assertion using a DateTime instance $isHoliday = Yasumi::create($provider, $year)->isHoliday(new \DateTime($date)); - $this->assertInternalType('bool', $isHoliday); + $this->assertIsBool($isHoliday); $this->assertTrue($isHoliday); // Assertion using a DateTimeImmutable instance $isHoliday = Yasumi::create($provider, $year)->isHoliday(new \DateTimeImmutable($date)); - $this->assertInternalType('bool', $isHoliday); + $this->assertIsBool($isHoliday); $this->assertTrue($isHoliday); unset($isHoliday); @@ -359,12 +359,12 @@ public function testIsNotHoliday() // Assertion using a DateTime instance $isHoliday = Yasumi::create($provider, $year)->isHoliday(new \DateTime($date)); - $this->assertInternalType('bool', $isHoliday); + $this->assertIsBool($isHoliday); $this->assertFalse($isHoliday); // Assertion using a DateTimeImmutable instance $isHoliday = Yasumi::create($provider, $year)->isHoliday(new \DateTimeImmutable($date)); - $this->assertInternalType('bool', $isHoliday); + $this->assertIsBool($isHoliday); $this->assertFalse($isHoliday); unset($isHoliday); @@ -398,12 +398,12 @@ public function testIsWorkingDay() // Assertion using a DateTime instance $isWorkingDay = Yasumi::create($provider, $year)->isWorkingDay(new \DateTime($date)); - $this->assertInternalType('bool', $isWorkingDay); + $this->assertIsBool($isWorkingDay); $this->assertTrue($isWorkingDay); // Assertion using a DateTimeImmutable instance $isWorkingDay = Yasumi::create($provider, $year)->isWorkingDay(new \DateTimeImmutable($date)); - $this->assertInternalType('bool', $isWorkingDay); + $this->assertIsBool($isWorkingDay); $this->assertTrue($isWorkingDay); unset($isWorkingDay); @@ -423,12 +423,12 @@ public function testIsNotWorkingDay() // Assertion using a DateTime instance $isNotWorkingDay = Yasumi::create($provider, $year)->isWorkingDay(new \DateTime($date)); - $this->assertInternalType('bool', $isNotWorkingDay); + $this->assertIsBool($isNotWorkingDay); $this->assertFalse($isNotWorkingDay); // Assertion using a DateTimeImmutable instance $isNotWorkingDay = Yasumi::create($provider, $year)->isWorkingDay(new \DateTimeImmutable($date)); - $this->assertInternalType('bool', $isNotWorkingDay); + $this->assertIsBool($isNotWorkingDay); $this->assertFalse($isNotWorkingDay); unset($isNotWorkingDay); From dd1a42a0ea4b4cf9f75af8418e06d75b68f43048 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 11:48:47 +0900 Subject: [PATCH 118/132] Added missing @throws tags in the inline documentation. Signed-off-by: Sacha Telgenhof --- tests/Australia/ACT/ACTTest.php | 1 + tests/Australia/ACT/CanberraDayTest.php | 5 +++ tests/Australia/ACT/EasterSaturdayTest.php | 6 +++ tests/Australia/ACT/EasterSundayTest.php | 6 +++ tests/Australia/ACT/LabourDayTest.php | 5 +++ tests/Australia/ACT/QueensBirthdayTest.php | 5 +++ tests/Australia/ACT/ReconciliationDayTest.php | 5 +++ tests/Australia/AnzacDayTest.php | 6 +++ tests/Australia/AustraliaDayTest.php | 5 +++ tests/Australia/AustraliaTest.php | 5 +++ tests/Australia/BoxingDayTest.php | 7 +++ tests/Australia/ChristmasDayTest.php | 7 +++ tests/Australia/EasterMondayTest.php | 11 +++++ tests/Australia/GoodFridayTest.php | 6 +++ tests/Australia/NSW/BankHolidayTest.php | 5 +++ tests/Australia/NSW/EasterSaturdayTest.php | 6 +++ tests/Australia/NSW/EasterSundayTest.php | 6 +++ tests/Australia/NSW/LabourDayTest.php | 5 +++ tests/Australia/NSW/NSWTest.php | 2 + tests/Australia/NSW/QueensBirthdayTest.php | 5 +++ tests/Australia/NT/EasterSaturdayTest.php | 6 +++ tests/Australia/NT/MayDayTest.php | 5 +++ tests/Australia/NT/NTTest.php | 1 + tests/Australia/NT/PicnicDayTest.php | 5 +++ tests/Australia/NT/QueensBirthdayTest.php | 5 +++ tests/Australia/NewYearsDayTest.php | 7 +++ .../Queensland/Brisbane/BrisbaneTest.php | 1 + .../Queensland/Brisbane/PeoplesDayTest.php | 5 +++ tests/Australia/Queensland/LabourDayTest.php | 5 +++ .../Queensland/QueensBirthdayTest.php | 5 +++ tests/Australia/Queensland/QueenslandTest.php | 1 + tests/Australia/SA/AdelaideCupDayTest.php | 5 +++ tests/Australia/SA/ChristmasDayTest.php | 7 +++ tests/Australia/SA/EasterSaturdayTest.php | 6 +++ tests/Australia/SA/LabourDayTest.php | 5 +++ tests/Australia/SA/ProclamationDayTest.php | 5 +++ tests/Australia/SA/QueensBirthdayTest.php | 5 +++ tests/Australia/SA/SATest.php | 1 + .../CentralNorth/CentralNorthTest.php | 1 + .../CentralNorth/DevonportShowTest.php | 5 +++ tests/Australia/Tasmania/EightHourDayTest.php | 5 +++ .../FlindersIsland/FlindersIslandShowTest.php | 5 +++ .../FlindersIsland/FlindersIslandTest.php | 1 + .../KingIsland/KingIslandShowTest.php | 5 +++ .../Tasmania/KingIsland/KingIslandTest.php | 1 + .../Tasmania/Northeast/LauncestonShowTest.php | 5 +++ .../Tasmania/Northeast/NortheastTest.php | 1 + .../Tasmania/Northwest/BurnieShowTest.php | 5 +++ .../Northwest/CircularHead/AGFESTTest.php | 5 +++ .../CircularHead/CircularHeadTest.php | 1 + .../Tasmania/Northwest/NorthwestTest.php | 1 + .../Australia/Tasmania/QueensBirthdayTest.php | 5 +++ .../Australia/Tasmania/RecreationDayTest.php | 5 +++ .../Tasmania/South/HobartShowTest.php | 5 +++ tests/Australia/Tasmania/South/SouthTest.php | 1 + .../South/Southeast/HobartRegattaTest.php | 5 +++ .../South/Southeast/SoutheastTest.php | 1 + tests/Australia/Tasmania/TasmaniaTest.php | 1 + .../Victoria/AFLGrandFinalFridayTest.php | 6 +++ .../Australia/Victoria/EasterSaturdayTest.php | 6 +++ tests/Australia/Victoria/EasterSundayTest.php | 6 +++ tests/Australia/Victoria/LabourDayTest.php | 5 +++ .../Victoria/MelbourneCupDayTest.php | 5 +++ .../Australia/Victoria/QueensBirthdayTest.php | 5 +++ tests/Australia/Victoria/VictoriaTest.php | 1 + tests/Australia/WA/LabourDayTest.php | 5 +++ tests/Australia/WA/QueensBirthdayTest.php | 5 +++ tests/Australia/WA/WATest.php | 1 + .../Australia/WA/WesternAustraliaDayTest.php | 5 +++ tests/Austria/AllSaintsDayTest.php | 5 +++ tests/Austria/AscensionDayTest.php | 4 ++ tests/Austria/AssumptionOfMaryTest.php | 5 +++ tests/Austria/AustriaTest.php | 5 +++ tests/Austria/ChristmasTest.php | 5 +++ tests/Austria/CorpusChristiTest.php | 5 +++ tests/Austria/EasterMondayTest.php | 4 ++ tests/Austria/EasterTest.php | 4 ++ tests/Austria/EpiphanyTest.php | 5 +++ tests/Austria/ImmaculateConceptionTest.php | 5 +++ tests/Austria/InternationalWorkersDayTest.php | 5 +++ tests/Austria/NationalDayTest.php | 5 +++ tests/Austria/NewYearsDayTest.php | 5 +++ tests/Austria/PentecostMondayTest.php | 4 ++ tests/Austria/PentecostTest.php | 4 ++ tests/Austria/SecondChristmasDayTest.php | 5 +++ tests/Base/HolidayBetweenFilterTest.php | 32 ++++++++++++++ tests/Base/HolidayFiltersTest.php | 5 +++ tests/Base/HolidayOnFilterTest.php | 11 +++++ tests/Base/HolidayTest.php | 11 +++++ tests/Base/YasumiTest.php | 43 +++++++++++++++++++ tests/Belgium/AllSaintsDayTest.php | 5 +++ tests/Belgium/ArmisticeDayTest.php | 5 +++ tests/Belgium/AscensionDayTest.php | 4 ++ tests/Belgium/AssumptionOfMaryTest.php | 5 +++ tests/Belgium/BelgiumTest.php | 5 +++ tests/Belgium/ChristmasTest.php | 5 +++ tests/Belgium/EasterMondayTest.php | 4 ++ tests/Belgium/EasterTest.php | 4 ++ tests/Belgium/InternationalWorkersDayTest.php | 5 +++ tests/Belgium/NationalDayTest.php | 5 +++ tests/Belgium/NewYearsDayTest.php | 5 +++ tests/Belgium/PentecostTest.php | 4 ++ tests/Belgium/pentecostMondayTest.php | 4 ++ tests/Bosnia/BosniaTest.php | 5 +++ tests/Bosnia/ChristmasDayTest.php | 5 +++ tests/Bosnia/DayAfterNewYearsDay.php | 5 +++ tests/Bosnia/EasterTest.php | 4 ++ tests/Bosnia/IndependenceDayTest.php | 5 +++ tests/Bosnia/InternationalWorkersDayTest.php | 5 +++ tests/Bosnia/NewYearsDayTest.php | 5 +++ tests/Bosnia/OrthodoxChristmasDay.php | 5 +++ tests/Bosnia/SecondLabourDay.php | 5 +++ tests/Bosnia/StatehoodDayTest.php | 5 +++ tests/Brazil/AllSoulsDayTest.php | 5 +++ tests/Brazil/AshWednesdayTest.php | 4 ++ tests/Brazil/BrazilTest.php | 5 +++ tests/Brazil/CarnavalMondayTest.php | 6 +++ tests/Brazil/CarnavalTuesdayTest.php | 6 +++ tests/Brazil/ChristmasDayTest.php | 4 ++ tests/Brazil/CorpusChristiTest.php | 5 +++ tests/Brazil/EasterTest.php | 4 ++ tests/Brazil/GoodFridayTest.php | 5 +++ tests/Brazil/IndependenceDayTest.php | 5 +++ tests/Brazil/InternationalWorkersDayTest.php | 4 ++ tests/Brazil/NewYearsDayTest.php | 4 ++ tests/Brazil/OurLadyOfAparecidaDayTest.php | 5 +++ .../Brazil/ProclamationOfRepublicDayTest.php | 5 +++ tests/Brazil/TiradentesDayTest.php | 5 +++ tests/Croatia/AllSaintsDayTest.php | 5 +++ tests/Croatia/AntifascistStruggleDayTest.php | 5 +++ tests/Croatia/AssumptionOfMaryTest.php | 5 +++ tests/Croatia/ChristmasDayTest.php | 5 +++ tests/Croatia/CorpusChristiTest.php | 5 +++ tests/Croatia/EasterMondayTest.php | 4 ++ tests/Croatia/EasterTest.php | 4 ++ tests/Croatia/EpiphanyTest.php | 5 +++ tests/Croatia/HomelandThanksgivingDayTest.php | 5 +++ tests/Croatia/IndependenceDayTest.php | 5 +++ tests/Croatia/InternationalWorkersDayTest.php | 5 +++ tests/Croatia/NewYearsDayTest.php | 5 +++ tests/Croatia/StStephensDayTest.php | 5 +++ tests/Croatia/StatehoodDayTest.php | 5 +++ tests/CzechRepublic/ChristmasDayTest.php | 5 +++ tests/CzechRepublic/ChristmasEveTest.php | 5 +++ tests/CzechRepublic/CzechRepublicTest.php | 5 +++ tests/CzechRepublic/CzechStateHoodDayTest.php | 5 +++ tests/CzechRepublic/EasterMondayTest.php | 4 ++ tests/CzechRepublic/GoodFridayTest.php | 4 ++ .../IndependentCzechoslovakStateDayTest.php | 5 +++ .../InternationalWorkersDayTest.php | 5 +++ tests/CzechRepublic/JanHusDayTest.php | 5 +++ tests/CzechRepublic/NewYearsDayTest.php | 5 +++ .../SaintsCyrilAndMethodiusDayTest.php | 5 +++ .../CzechRepublic/SecondChristmasDayTest.php | 5 +++ .../StruggleForFreedomAndDemocracyDayTest.php | 5 +++ .../CzechRepublic/VictoryInEuropeDayTest.php | 5 +++ tests/Denmark/AscensionDayTest.php | 4 ++ tests/Denmark/ChristmasDayTest.php | 5 +++ tests/Denmark/ChristmasEveTest.php | 5 +++ tests/Denmark/ConstitutionDayTest.php | 5 +++ tests/Denmark/DenmarkTest.php | 5 +++ tests/Denmark/EasterMondayTest.php | 4 ++ tests/Denmark/EasterTest.php | 4 ++ tests/Denmark/GoodFridayTest.php | 4 ++ tests/Denmark/GreatPrayerDayTest.php | 5 +++ tests/Denmark/InternationalWorkersDayTest.php | 5 +++ tests/Denmark/MaundyThursdayTest.php | 4 ++ tests/Denmark/NewYearsDayTest.php | 5 +++ tests/Denmark/NewYearsEveTest.php | 5 +++ tests/Denmark/PentecostMondayTest.php | 4 ++ tests/Denmark/PentecostTest.php | 4 ++ tests/Denmark/SecondChristmasDayTest.php | 5 +++ tests/Denmark/SummerTimeTest.php | 5 +++ tests/Denmark/WinterTimeTest.php | 5 +++ tests/Estonia/ChristmasDayTest.php | 5 +++ tests/Estonia/ChristmasEveDayTest.php | 5 +++ tests/Estonia/EasterDayTest.php | 5 +++ tests/Estonia/EstoniaTest.php | 5 +++ tests/Estonia/GoodFridayDayTest.php | 5 +++ tests/Estonia/IndependenceDayTest.php | 6 +++ tests/Estonia/InternationalWorkersDayTest.php | 5 +++ tests/Estonia/NewYearsDayTest.php | 5 +++ tests/Estonia/PentecostTest.php | 5 +++ .../RestorationOfIndependenceDayTest.php | 6 +++ tests/Estonia/SecondChristmasDayTest.php | 5 +++ tests/Estonia/StJohnsDayTest.php | 5 +++ tests/Estonia/VictoryDayTest.php | 6 +++ tests/Finland/AllSaintsDayTest.php | 5 +++ tests/Finland/AscensionDayTest.php | 4 ++ tests/Finland/ChristmasDayTest.php | 5 +++ tests/Finland/EasterMondayTest.php | 4 ++ tests/Finland/EasterTest.php | 4 ++ tests/Finland/EpiphanyTest.php | 5 +++ tests/Finland/FinlandTest.php | 5 +++ tests/Finland/GoodFridayTest.php | 4 ++ tests/Finland/IndependenceDayTest.php | 5 +++ tests/Finland/InternationalWorkersDayTest.php | 5 +++ tests/Finland/NewYearsDayTest.php | 5 +++ tests/Finland/PentecostTest.php | 4 ++ tests/Finland/SecondChristmasDayTest.php | 5 +++ tests/Finland/stJohnsDayTest.php | 5 +++ tests/France/AllSaintsDayTest.php | 5 +++ tests/France/ArmisticeDayTest.php | 5 +++ tests/France/AscensionDayTest.php | 4 ++ tests/France/AssumptionOfMaryTest.php | 5 +++ tests/France/BasRhin/BasRhinTest.php | 5 +++ tests/France/BasRhin/GoodFridayTest.php | 4 ++ tests/France/BasRhin/stStephensDayTest.php | 5 +++ tests/France/BastilleDayTest.php | 5 +++ tests/France/ChristmasDayTest.php | 5 +++ tests/France/EasterMondayTest.php | 4 ++ tests/France/FranceTest.php | 5 +++ tests/France/HautRhin/GoodFridayTest.php | 4 ++ tests/France/HautRhin/HautRhinTest.php | 5 +++ tests/France/HautRhin/stStephensDayTest.php | 5 +++ tests/France/InternationalWorkersDayTest.php | 5 +++ tests/France/Moselle/GoodFridayTest.php | 4 ++ tests/France/Moselle/MoselleTest.php | 5 +++ tests/France/Moselle/stStephensDayTest.php | 5 +++ tests/France/NewYearsDayTest.php | 5 +++ tests/France/PentecostMondayTest.php | 4 ++ tests/France/VictoryInEuropeDayTest.php | 5 +++ tests/Germany/AscensionDayTest.php | 4 ++ .../BadenWurttemberg/AllSaintsDayTest.php | 5 +++ .../BadenWurttemberg/BadenWurttembergTest.php | 5 +++ .../BadenWurttemberg/CorpusChristiTest.php | 5 +++ .../Germany/BadenWurttemberg/EpiphanyTest.php | 5 +++ tests/Germany/Bavaria/AllSaintsDayTest.php | 5 +++ tests/Germany/Bavaria/BavariaTest.php | 5 +++ tests/Germany/Bavaria/CorpusChristiTest.php | 5 +++ tests/Germany/Bavaria/EpiphanyTest.php | 5 +++ tests/Germany/Berlin/BerlinTest.php | 5 +++ tests/Germany/Brandenburg/BrandenburgTest.php | 5 +++ .../Brandenburg/ReformationDayTest.php | 6 +++ tests/Germany/Bremen/BremenTest.php | 5 +++ tests/Germany/Bremen/ReformationDayTest.php | 6 +++ tests/Germany/ChristmasTest.php | 5 +++ tests/Germany/EasterMondayTest.php | 4 ++ tests/Germany/GermanUnityDayTest.php | 5 +++ tests/Germany/GermanyTest.php | 5 +++ tests/Germany/GoodFridayTest.php | 4 ++ .../Germany/Hamburg/DayOfReformationTest.php | 6 +++ tests/Germany/Hamburg/HamburgTest.php | 5 +++ tests/Germany/Hesse/CorpusChristiTest.php | 5 +++ tests/Germany/Hesse/HesseTest.php | 5 +++ tests/Germany/InternationalWorkersDayTest.php | 5 +++ tests/Germany/LowerSaxony/LowerSaxonyTest.php | 5 +++ .../LowerSaxony/ReformationDayTest.php | 6 +++ .../MecklenburgWesternPomeraniaTest.php | 5 +++ .../ReformationDayTest.php | 4 ++ tests/Germany/NewYearsDayTest.php | 5 +++ .../NorthRhineWestphalia/AllSaintsDayTest.php | 5 +++ .../CorpusChristiTest.php | 5 +++ .../NorthRhineWestphaliaTest.php | 5 +++ tests/Germany/PentecostMondayTest.php | 4 ++ tests/Germany/ReformationDay2017Test.php | 6 +++ .../RhinelandPalatinate/AllSaintsDayTest.php | 5 +++ .../RhinelandPalatinate/CorpusChristiTest.php | 5 +++ .../RhinelandPalatinateTest.php | 5 +++ tests/Germany/Saarland/AllSaintsDayTest.php | 5 +++ .../Germany/Saarland/AssumptionOfMaryTest.php | 5 +++ tests/Germany/Saarland/CorpusChristiTest.php | 5 +++ tests/Germany/Saarland/SaarlandTest.php | 5 +++ tests/Germany/Saxony/ReformationDayTest.php | 6 +++ .../Saxony/RepentanceAndPrayerDayTest.php | 5 +++ tests/Germany/Saxony/SaxonyTest.php | 5 +++ tests/Germany/SaxonyAnhalt/EpiphanyTest.php | 5 +++ .../SaxonyAnhalt/ReformationDayTest.php | 6 +++ .../Germany/SaxonyAnhalt/SaxonyAnhaltTest.php | 5 +++ .../SchleswigHolstein/ReformationDayTest.php | 6 +++ .../SchleswigHolsteinTest.php | 5 +++ tests/Germany/SecondChristmasDayTest.php | 5 +++ .../Germany/Thuringia/ReformationDayTest.php | 6 +++ tests/Germany/Thuringia/ThuringiaTest.php | 5 +++ tests/Greece/AnnunciationTest.php | 5 +++ tests/Greece/AscensionDayTest.php | 4 ++ tests/Greece/AssumptionOfMaryTest.php | 5 +++ tests/Greece/ChristmasDayTest.php | 5 +++ tests/Greece/CleanMondayTest.php | 4 ++ tests/Greece/EasterMondayTest.php | 4 ++ tests/Greece/EasterTest.php | 4 ++ tests/Greece/EpiphanyTest.php | 5 +++ tests/Greece/GreeceTest.php | 5 +++ tests/Greece/IndepencenceDayTest.php | 5 +++ tests/Greece/InternationalWorkersDayTest.php | 5 +++ tests/Greece/NewYearsDayTest.php | 5 +++ tests/Greece/OhiDayTest.php | 5 +++ tests/Greece/PentecostMondayTest.php | 4 ++ tests/Greece/PentecostTest.php | 4 ++ tests/Greece/PolytechnioTest.php | 5 +++ tests/Greece/ThreeHolyHierarchsTest.php | 5 +++ tests/Greece/goodFridayTest.php | 4 ++ tests/Hungary/AllSaintsDayTest.php | 5 +++ tests/Hungary/ChristmasTest.php | 5 +++ tests/Hungary/EasterMondayTest.php | 4 ++ tests/Hungary/EasterTest.php | 4 ++ tests/Hungary/HungaryTest.php | 5 +++ tests/Hungary/InternationalWorkersDayTest.php | 5 +++ tests/Hungary/MemorialDay1848Test.php | 5 +++ tests/Hungary/MemorialDay1956Test.php | 5 +++ tests/Hungary/NewYearsDayTest.php | 5 +++ tests/Hungary/PentecostMondayTest.php | 4 ++ tests/Hungary/PentecostTest.php | 4 ++ tests/Hungary/SecondChristmasDayTest.php | 5 +++ tests/Hungary/StateFoundationDayTest.php | 5 +++ tests/Ireland/AugustHolidayTest.php | 7 +++ tests/Ireland/ChristmasDayTest.php | 7 +++ tests/Ireland/EasterMondayTest.php | 6 +++ tests/Ireland/EasterTest.php | 6 +++ tests/Ireland/GoodFridayTest.php | 6 +++ tests/Ireland/IrelandTest.php | 5 +++ tests/Ireland/JuneHolidayTest.php | 8 ++++ tests/Ireland/MayDayTest.php | 8 ++++ tests/Ireland/NewYearsDayTest.php | 7 +++ tests/Ireland/OctoberHolidayTest.php | 8 ++++ tests/Ireland/PentecostTest.php | 6 +++ tests/Ireland/StPatricksDayTest.php | 8 ++++ tests/Ireland/StStephensDayTest.php | 7 +++ tests/Ireland/pentecostMondayTest.php | 7 +++ tests/Italy/AllSaintsDayTest.php | 5 +++ tests/Italy/AssumptionOfMaryTest.php | 5 +++ tests/Italy/ChristmasTest.php | 5 +++ tests/Italy/EasterMondayTest.php | 4 ++ tests/Italy/EasterTest.php | 4 ++ tests/Italy/EpiphanyTest.php | 5 +++ tests/Italy/ImmaculateConceptionTest.php | 5 +++ tests/Italy/InternationalWorkersDayTest.php | 5 +++ tests/Italy/ItalyTest.php | 5 +++ tests/Italy/LiberationDayTest.php | 5 +++ tests/Italy/NewYearsDayTest.php | 5 +++ tests/Italy/RepublicDayTest.php | 5 +++ tests/Italy/stStephensDayTest.php | 5 +++ tests/Japan/AutumnalEquinoxDayTest.php | 8 ++++ tests/Japan/ChildrensDayTest.php | 7 +++ tests/Japan/ComingOfAgeDayTest.php | 7 +++ tests/Japan/ConstitutionMemorialDayTest.php | 7 +++ tests/Japan/CultureDayTest.php | 7 +++ tests/Japan/EmperorsBirthdayTest.php | 7 +++ tests/Japan/GreeneryDayTest.php | 11 +++++ tests/Japan/HealthAndSportsDayTest.php | 11 +++++ tests/Japan/JapanTest.php | 5 +++ tests/Japan/LabourThanksgivingDayTest.php | 7 +++ tests/Japan/MarineDayTest.php | 11 +++++ tests/Japan/MountainDayTest.php | 9 ++++ tests/Japan/NationalFoundationDayTest.php | 7 +++ tests/Japan/NewYearsDayTest.php | 7 +++ tests/Japan/PublicBridgeDayTest.php | 4 ++ tests/Japan/RespectForTheAgedDayTest.php | 9 ++++ tests/Japan/ShowaDayTest.php | 7 +++ tests/Japan/VernalEquinoxDayTest.php | 8 ++++ tests/Latvia/ChristmasDayTest.php | 5 +++ tests/Latvia/ChristmasEveDayTest.php | 5 +++ tests/Latvia/EasterDayTest.php | 5 +++ tests/Latvia/EasterMondayDayTest.php | 5 +++ tests/Latvia/GoodFridayDayTest.php | 5 +++ tests/Latvia/InternationalWorkersDayTest.php | 5 +++ tests/Latvia/LatviaTest.php | 5 +++ tests/Latvia/MidsummerEveDayTest.php | 5 +++ tests/Latvia/NewYearsDayTest.php | 5 +++ tests/Latvia/NewYearsEveDayTest.php | 5 +++ ...oclamationOfTheRepublicOfLatviaDayTest.php | 7 +++ .../RestorationOfIndependenceDayTest.php | 7 +++ tests/Latvia/SecondChristmasDayTest.php | 5 +++ tests/Latvia/StJohnsDayTest.php | 5 +++ tests/Lithuania/AllSaintsDayTest.php | 5 +++ tests/Lithuania/AssumptionOfMaryDayTest.php | 5 +++ tests/Lithuania/ChristmasDayTest.php | 5 +++ tests/Lithuania/ChristmasEveDayTest.php | 5 +++ tests/Lithuania/EasterDayTest.php | 5 +++ tests/Lithuania/EasterMondayDayTest.php | 5 +++ .../Lithuania/InternationalWorkersDayTest.php | 5 +++ tests/Lithuania/LithuaniaTest.php | 5 +++ tests/Lithuania/NewYearsDayTest.php | 5 +++ ...rationOfIndependenceOfLithuaniaDayTest.php | 6 +++ ...estorationOfTheStateOfLithuaniaDayTest.php | 6 +++ tests/Lithuania/SecondChristmasDayTest.php | 5 +++ tests/Lithuania/StJohnsDayTest.php | 5 +++ tests/Lithuania/StatehoodDayTest.php | 6 +++ tests/Netherlands/AscensionDayTest.php | 4 ++ tests/Netherlands/AshWednesdayTest.php | 4 ++ tests/Netherlands/ChristmasDayTest.php | 5 +++ tests/Netherlands/CommemorationDayTest.php | 5 +++ tests/Netherlands/EasterMondayTest.php | 4 ++ tests/Netherlands/EasterTest.php | 4 ++ tests/Netherlands/EpiphanyTest.php | 5 +++ tests/Netherlands/FathersDayTest.php | 4 ++ tests/Netherlands/GoodFridayTest.php | 4 ++ tests/Netherlands/HalloweenTest.php | 5 +++ .../InternationalWorkersDayTest.php | 5 +++ tests/Netherlands/KingsDayTest.php | 7 +++ tests/Netherlands/LiberationDayTest.php | 5 +++ tests/Netherlands/MothersDayTest.php | 4 ++ tests/Netherlands/NetherlandsTest.php | 5 +++ tests/Netherlands/NewYearsDayTest.php | 5 +++ tests/Netherlands/PentecostTest.php | 4 ++ tests/Netherlands/QueensDayTest.php | 14 ++++++ tests/Netherlands/SummertimeTest.php | 5 +++ tests/Netherlands/ValentinesDayTest.php | 5 +++ tests/Netherlands/WintertimeTest.php | 4 ++ tests/Netherlands/WorldAnimalDayTest.php | 5 +++ tests/Netherlands/carnivalDayTest.php | 4 ++ tests/Netherlands/pentecostMondayTest.php | 4 ++ tests/Netherlands/princesDayTest.php | 4 ++ tests/Netherlands/secondCarnivalDay.php | 4 ++ tests/Netherlands/secondChristmasdayTest.php | 5 +++ tests/Netherlands/stMartinsDayTest.php | 5 +++ tests/Netherlands/stNicholasDayTest.php | 5 +++ tests/Netherlands/thirdCarnivalDay.php | 4 ++ tests/NewZealand/AnzacDayTest.php | 7 +++ tests/NewZealand/BoxingDayTest.php | 6 +++ tests/NewZealand/ChristmasDayTest.php | 6 +++ tests/NewZealand/DayAfterNewYearsDayTest.php | 6 +++ tests/NewZealand/EasterMondayTest.php | 5 +++ tests/NewZealand/GoodFridayTest.php | 5 +++ tests/NewZealand/LabourDayTest.php | 7 +++ tests/NewZealand/NewYearsDayTest.php | 6 +++ tests/NewZealand/NewZealandTest.php | 5 +++ tests/NewZealand/QueensBirthdayTest.php | 6 +++ tests/NewZealand/WaitangiDayTest.php | 7 +++ tests/Norway/AscensionDayTest.php | 4 ++ tests/Norway/ChristmasDayTest.php | 5 +++ tests/Norway/ConstitutionDayTest.php | 5 +++ tests/Norway/EasterMondayTest.php | 4 ++ tests/Norway/EasterTest.php | 4 ++ tests/Norway/GoodFridayTest.php | 4 ++ tests/Norway/InternationalWorkersDayTest.php | 5 +++ tests/Norway/MaundyThursdayTest.php | 4 ++ tests/Norway/NewYearsDayTest.php | 5 +++ tests/Norway/NorwayTest.php | 5 +++ tests/Norway/PentecostMondayTest.php | 4 ++ tests/Norway/PentecostTest.php | 4 ++ tests/Norway/SecondChristmasDayTest.php | 5 +++ tests/Poland/AllSaintsDayTest.php | 5 +++ tests/Poland/AssumptionOfMaryTest.php | 5 +++ tests/Poland/ChristmasTest.php | 5 +++ tests/Poland/ConstitutionDayTest.php | 5 +++ tests/Poland/CorpusChristiTest.php | 4 ++ tests/Poland/EasterMondayTest.php | 4 ++ tests/Poland/EasterTest.php | 4 ++ tests/Poland/EpiphanyTest.php | 5 +++ tests/Poland/IndependenceDayTest.php | 5 +++ tests/Poland/InternationalWorkersDayTest.php | 5 +++ tests/Poland/NewYearsDayTest.php | 5 +++ tests/Poland/PentecostTest.php | 4 ++ tests/Poland/PolandTest.php | 5 +++ tests/Poland/SecondChristmasDayTest.php | 5 +++ tests/Portugal/AllSaintsDayTest.php | 8 ++++ tests/Portugal/AssumptionOfMaryTest.php | 5 +++ tests/Portugal/CarnationRevolutionDayTest.php | 5 +++ tests/Portugal/ChristmasTest.php | 5 +++ tests/Portugal/CorpusChristiTest.php | 6 +++ tests/Portugal/EasterTest.php | 4 ++ tests/Portugal/GoodFridayTest.php | 4 ++ tests/Portugal/ImmaculateConceptionTest.php | 5 +++ .../Portugal/InternationalWorkersDayTest.php | 5 +++ tests/Portugal/NewYearsDayTest.php | 5 +++ tests/Portugal/PortugalDayTest.php | 10 +++++ tests/Portugal/PortugalTest.php | 5 +++ tests/Portugal/PortugueseRepublicDayTest.php | 8 ++++ .../RestorationOfIndependenceTest.php | 15 +++++++ tests/Romania/AssumptionOfMaryTest.php | 5 +++ tests/Romania/ChildrensDayTest.php | 6 +++ tests/Romania/ChristmasDayTest.php | 5 +++ tests/Romania/ConstantinBrancusiDayTest.php | 5 +++ tests/Romania/DayAfterNewYearsDayTest.php | 5 +++ tests/Romania/EasterMondayTest.php | 4 ++ tests/Romania/EasterTest.php | 4 ++ tests/Romania/InternationalWorkersDayTest.php | 5 +++ tests/Romania/NationalDayTest.php | 9 ++++ tests/Romania/NewYearsDayTest.php | 5 +++ tests/Romania/PentecostMondayTest.php | 5 +++ tests/Romania/PentecostTest.php | 5 +++ tests/Romania/RomaniaTest.php | 5 +++ tests/Romania/SecondChristmasDayTest.php | 5 +++ tests/Romania/StAndrewDayTest.php | 5 +++ tests/Romania/UnitedPrincipalitiesDayTest.php | 5 +++ .../Russia/DefenceOfTheFatherlandDayTest.php | 6 +++ tests/Russia/InternationalWomensDayTest.php | 5 +++ tests/Russia/NewYearHolidaysDay2Test.php | 5 +++ tests/Russia/NewYearHolidaysDay3Test.php | 5 +++ tests/Russia/NewYearHolidaysDay4Test.php | 5 +++ tests/Russia/NewYearHolidaysDay5Test.php | 5 +++ tests/Russia/NewYearHolidaysDay6Test.php | 5 +++ tests/Russia/NewYearHolidaysDay8Test.php | 5 +++ tests/Russia/NewYearsDayTest.php | 5 +++ tests/Russia/OrthodoxChristmasDayTest.php | 5 +++ tests/Russia/RussiaDayTest.php | 6 +++ tests/Russia/RussiaTest.php | 5 +++ tests/Russia/SpringAndLabourDayTest.php | 5 +++ tests/Russia/UnityDayTest.php | 6 +++ tests/Russia/VictoryDayTest.php | 5 +++ tests/Slovakia/AllSaintsDayTest.php | 5 +++ tests/Slovakia/ChristmasDayTest.php | 5 +++ tests/Slovakia/ChristmasEveTest.php | 5 +++ tests/Slovakia/EasterMondayTest.php | 5 +++ tests/Slovakia/EpiphanyTest.php | 5 +++ tests/Slovakia/GoodFridayTest.php | 5 +++ .../Slovakia/InternationalWorkersDayTest.php | 5 +++ tests/Slovakia/NewYearsDayTest.php | 5 +++ tests/Slovakia/OurLadyOfSorrowsDayTest.php | 5 +++ .../SaintsCyrilAndMethodiusDayTest.php | 5 +++ tests/Slovakia/SecondChristmasDayTest.php | 5 +++ tests/Slovakia/SlovakConstitutionDayTest.php | 5 +++ .../SlovakNationalUprisingDayTest.php | 5 +++ tests/Slovakia/SlovakiaTest.php | 5 +++ .../StruggleForFreedomAndDemocracyDayTest.php | 5 +++ tests/Slovakia/VictoryInEuropeDayTest.php | 5 +++ tests/SouthAfrica/ChristmasDayTest.php | 7 +++ tests/SouthAfrica/FamilyDayTest.php | 6 +++ tests/SouthAfrica/FreedomDayTest.php | 7 +++ tests/SouthAfrica/GoodFridayTest.php | 6 +++ tests/SouthAfrica/HeritageDayTest.php | 7 +++ tests/SouthAfrica/HumanRightsDayTest.php | 7 +++ .../MunicipalElections2016DayTest.php | 6 +++ tests/SouthAfrica/NationalWomensDayTest.php | 7 +++ tests/SouthAfrica/NewYearsDayTest.php | 7 +++ tests/SouthAfrica/ReconciliationDayTest.php | 7 +++ tests/SouthAfrica/SecondChristmasDayTest.php | 7 +++ tests/SouthAfrica/SouthAfricaTest.php | 5 +++ .../SubstituteDayOfGoodwillTest.php | 6 +++ tests/SouthAfrica/WorkersDayTest.php | 7 +++ tests/SouthAfrica/YouthDayTest.php | 7 +++ tests/Spain/AllSaintsDayTest.php | 5 +++ tests/Spain/Andalusia/AndalusiaDayTest.php | 5 +++ tests/Spain/Andalusia/AndalusiaTest.php | 5 +++ tests/Spain/Aragon/AragonTest.php | 5 +++ tests/Spain/Aragon/StGeorgesDayTest.php | 4 ++ tests/Spain/AssumptionOfMaryTest.php | 5 +++ tests/Spain/Asturias/AsturiasDayTest.php | 5 +++ tests/Spain/Asturias/AsturiasTest.php | 5 +++ .../BalearicIslandsDayTest.php | 5 +++ .../BalearicIslands/BalearicIslandsTest.php | 5 +++ .../BasqueCountry/BasqueCountryDayTest.php | 6 +++ .../Spain/BasqueCountry/BasqueCountryTest.php | 5 +++ .../CanaryIslands/CanaryIslandsDayTest.php | 5 +++ .../Spain/CanaryIslands/CanaryIslandsTest.php | 5 +++ tests/Spain/Cantabria/CantabriaDayTest.php | 5 +++ tests/Spain/Cantabria/CantabriaTest.php | 5 +++ .../CastileAndLeon/CastileAndLeonDayTest.php | 5 +++ .../CastileAndLeon/CastileAndLeonTest.php | 5 +++ .../CastillaLaManchaDayTest.php | 5 +++ .../CastillaLaMancha/CastillaLaManchaTest.php | 5 +++ tests/Spain/Catalonia/CataloniaTest.php | 5 +++ .../Catalonia/nationalCataloniaDayTest.php | 5 +++ tests/Spain/Catalonia/stJohnsDayTest.php | 5 +++ tests/Spain/Ceuta/CeutaTest.php | 5 +++ tests/Spain/Ceuta/ceutaDayTest.php | 5 +++ tests/Spain/ChristmasTest.php | 5 +++ .../CommunityOfMadridTest.php | 5 +++ .../DosdeMayoUprisingDayTest.php | 4 ++ tests/Spain/ConstitutionDayTest.php | 5 +++ tests/Spain/EasterMondayTest.php | 4 ++ tests/Spain/EpiphanyTest.php | 5 +++ .../Spain/Extremadura/ExtremaduraDayTest.php | 5 +++ tests/Spain/Extremadura/ExtremaduraTest.php | 5 +++ tests/Spain/Galicia/GaliciaTest.php | 5 +++ .../Galicia/GalicianLiteratureDayTest.php | 5 +++ tests/Spain/Galicia/stJamesDayTest.php | 5 +++ tests/Spain/GoodFridayTest.php | 4 ++ tests/Spain/ImmaculateConceptionTest.php | 5 +++ tests/Spain/InternationalWorkersDayTest.php | 5 +++ tests/Spain/LaRioja/LaRiojaDayTest.php | 5 +++ tests/Spain/LaRioja/LaRiojaTest.php | 5 +++ tests/Spain/MaundyThursdayTest.php | 4 ++ tests/Spain/Melilla/MelillaTest.php | 5 +++ tests/Spain/NationalDayTest.php | 5 +++ tests/Spain/Navarre/NavarreTest.php | 5 +++ tests/Spain/NewYearsDayTest.php | 5 +++ .../RegionOfMurcia/RegionOfMurciaDayTest.php | 5 +++ .../RegionOfMurcia/RegionOfMurciaTest.php | 5 +++ tests/Spain/SpainTest.php | 5 +++ .../ValencianCommunityDayTest.php | 5 +++ .../ValencianCommunityTest.php | 5 +++ tests/Spain/ValentinesDayTest.php | 5 +++ tests/Spain/stJosephsDayTest.php | 5 +++ tests/Sweden/AllSaintsDayTest.php | 5 +++ tests/Sweden/AscensionDayTest.php | 4 ++ tests/Sweden/ChristmasDayTest.php | 5 +++ tests/Sweden/ChristmasEveTest.php | 5 +++ tests/Sweden/EasterMondayTest.php | 4 ++ tests/Sweden/EasterTest.php | 4 ++ tests/Sweden/EpiphanyTest.php | 5 +++ tests/Sweden/GoodFridayTest.php | 4 ++ tests/Sweden/InternationalWorkersDayTest.php | 5 +++ tests/Sweden/NationalDayTest.php | 6 +++ tests/Sweden/NewYearsDayTest.php | 5 +++ tests/Sweden/PentecostTest.php | 4 ++ tests/Sweden/SecondChristmasDayTest.php | 5 +++ tests/Sweden/SwedenTest.php | 5 +++ tests/Sweden/stJohnsDayTest.php | 3 ++ tests/Switzerland/Aargau/AargauTest.php | 12 ++++++ tests/Switzerland/Aargau/AscensionDayTest.php | 4 ++ tests/Switzerland/Aargau/ChristmasDayTest.php | 5 +++ tests/Switzerland/Aargau/GoodFridayTest.php | 4 ++ tests/Switzerland/Aargau/NewYearsDayTest.php | 5 +++ .../AppenzellAusserrhodenTest.php | 6 +++ .../AscensionDayTest.php | 4 ++ .../ChristmasDayTest.php | 5 +++ .../EasterMondayTest.php | 4 ++ .../AppenzellAusserrhoden/GoodFridayTest.php | 4 ++ .../AppenzellAusserrhoden/NewYearsDayTest.php | 5 +++ .../PentecostMondayTest.php | 4 ++ .../StStephensDayTest.php | 5 +++ .../AppenzellInnerrhoden/AllSaintsDayTest.php | 5 +++ .../AppenzellInnerrhodenTest.php | 6 +++ .../AppenzellInnerrhoden/AscensionDayTest.php | 4 ++ .../AssumptionOfMaryTest.php | 5 +++ .../AppenzellInnerrhoden/ChristmasDayTest.php | 5 +++ .../CorpusChristiTest.php | 5 +++ .../AppenzellInnerrhoden/EasterMondayTest.php | 4 ++ .../AppenzellInnerrhoden/GoodFridayTest.php | 4 ++ .../ImmaculateConceptionTest.php | 5 +++ .../AppenzellInnerrhoden/NewYearsDayTest.php | 5 +++ .../PentecostMondayTest.php | 4 ++ .../StStephensDayTest.php | 5 +++ .../BaselLandschaft/AscensionDayTest.php | 4 ++ .../BaselLandschaft/BaselLandschaftTest.php | 6 +++ .../BaselLandschaft/ChristmasDayTest.php | 5 +++ .../BaselLandschaft/EasterMondayTest.php | 4 ++ .../BaselLandschaft/GoodFridayTest.php | 4 ++ .../BaselLandschaft/NewYearsDayTest.php | 5 +++ .../BaselLandschaft/PentecostMondayTest.php | 4 ++ .../BaselLandschaft/StStephensDayTest.php | 5 +++ .../BaselLandschaft/WorkersDayTest.php | 6 +++ .../BaselStadt/AscensionDayTest.php | 4 ++ .../Switzerland/BaselStadt/BaselStadtTest.php | 6 +++ .../BaselStadt/ChristmasDayTest.php | 5 +++ .../BaselStadt/EasterMondayTest.php | 4 ++ .../Switzerland/BaselStadt/GoodFridayTest.php | 4 ++ .../BaselStadt/NewYearsDayTest.php | 5 +++ .../BaselStadt/PentecostMondayTest.php | 4 ++ .../BaselStadt/StStephensDayTest.php | 5 +++ .../Switzerland/BaselStadt/WorkersDayTest.php | 6 +++ tests/Switzerland/Bern/AscensionDayTest.php | 4 ++ tests/Switzerland/Bern/BerchtoldsTagTest.php | 5 +++ tests/Switzerland/Bern/BernTest.php | 6 +++ tests/Switzerland/Bern/ChristmasDayTest.php | 5 +++ tests/Switzerland/Bern/EasterMondayTest.php | 4 ++ tests/Switzerland/Bern/GoodFridayTest.php | 4 ++ tests/Switzerland/Bern/NewYearsDayTest.php | 5 +++ .../Switzerland/Bern/PentecostMondayTest.php | 4 ++ tests/Switzerland/Bern/StStephensDayTest.php | 5 +++ .../Switzerland/Fribourg/AscensionDayTest.php | 4 ++ .../Switzerland/Fribourg/ChristmasDayTest.php | 5 +++ .../Switzerland/Fribourg/EasterMondayTest.php | 4 ++ tests/Switzerland/Fribourg/FribourgTest.php | 6 +++ tests/Switzerland/Fribourg/GoodFridayTest.php | 4 ++ .../Switzerland/Fribourg/NewYearsDayTest.php | 5 +++ .../Fribourg/PentecostMondayTest.php | 4 ++ tests/Switzerland/Geneva/AscensionDayTest.php | 4 ++ tests/Switzerland/Geneva/ChristmasDayTest.php | 5 +++ tests/Switzerland/Geneva/EasterMondayTest.php | 4 ++ tests/Switzerland/Geneva/GenevaTest.php | 6 +++ tests/Switzerland/Geneva/GoodFridayTest.php | 4 ++ .../Switzerland/Geneva/JeuneGenevoisTest.php | 12 ++++++ tests/Switzerland/Geneva/NewYearsDayTest.php | 5 +++ .../Geneva/PentecostMondayTest.php | 4 ++ .../Geneva/RestaurationGenevoiseTest.php | 4 ++ tests/Switzerland/Glarus/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Glarus/AscensionDayTest.php | 4 ++ .../Switzerland/Glarus/BerchtoldsTagTest.php | 5 +++ tests/Switzerland/Glarus/ChristmasDayTest.php | 5 +++ tests/Switzerland/Glarus/EasterMondayTest.php | 4 ++ tests/Switzerland/Glarus/GlarusTest.php | 6 +++ tests/Switzerland/Glarus/GoodFridayTest.php | 4 ++ .../Switzerland/Glarus/NafelserFahrtTest.php | 5 +++ tests/Switzerland/Glarus/NewYearsDayTest.php | 5 +++ .../Glarus/PentecostMondayTest.php | 4 ++ .../Switzerland/Glarus/StStephensDayTest.php | 5 +++ .../Switzerland/Grisons/AscensionDayTest.php | 4 ++ .../Switzerland/Grisons/ChristmasDayTest.php | 5 +++ .../Switzerland/Grisons/EasterMondayTest.php | 4 ++ tests/Switzerland/Grisons/GoodFridayTest.php | 4 ++ tests/Switzerland/Grisons/GrisonsTest.php | 6 +++ tests/Switzerland/Grisons/NewYearsDayTest.php | 5 +++ .../Grisons/PentecostMondayTest.php | 4 ++ .../Switzerland/Grisons/StStephensDayTest.php | 5 +++ tests/Switzerland/Jura/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Jura/AscensionDayTest.php | 4 ++ .../Switzerland/Jura/AssumptionOfMaryTest.php | 5 +++ tests/Switzerland/Jura/BerchtoldsTagTest.php | 5 +++ tests/Switzerland/Jura/ChristmasDayTest.php | 5 +++ tests/Switzerland/Jura/CorpusChristiTest.php | 5 +++ tests/Switzerland/Jura/EasterMondayTest.php | 4 ++ tests/Switzerland/Jura/GoodFridayTest.php | 4 ++ tests/Switzerland/Jura/JuraTest.php | 6 +++ tests/Switzerland/Jura/NewYearsDayTest.php | 5 +++ .../Switzerland/Jura/PentecostMondayTest.php | 4 ++ .../Jura/PlebisciteJurassienTest.php | 5 +++ tests/Switzerland/Jura/WorkersDayTest.php | 6 +++ .../Switzerland/Lucerne/AllSaintsDayTest.php | 5 +++ .../Switzerland/Lucerne/AscensionDayTest.php | 4 ++ .../Lucerne/AssumptionOfMaryTest.php | 5 +++ .../Switzerland/Lucerne/BerchtoldsTagTest.php | 5 +++ .../Switzerland/Lucerne/ChristmasDayTest.php | 5 +++ .../Switzerland/Lucerne/CorpusChristiTest.php | 5 +++ .../Switzerland/Lucerne/EasterMondayTest.php | 4 ++ tests/Switzerland/Lucerne/GoodFridayTest.php | 4 ++ .../Lucerne/ImmaculateConceptionTest.php | 5 +++ tests/Switzerland/Lucerne/LucerneTest.php | 6 +++ tests/Switzerland/Lucerne/NewYearsDayTest.php | 5 +++ .../Lucerne/PentecostMondayTest.php | 4 ++ .../Switzerland/Lucerne/StStephensDayTest.php | 5 +++ .../Neuchatel/AscensionDayTest.php | 4 ++ .../Neuchatel/BerchtoldsTagTest.php | 5 +++ .../Neuchatel/BettagsMontagTest.php | 6 +++ .../Neuchatel/ChristmasDayTest.php | 5 +++ .../Neuchatel/EasterMondayTest.php | 4 ++ .../Switzerland/Neuchatel/GoodFridayTest.php | 4 ++ .../Neuchatel/InstaurationRepubliqueTest.php | 5 +++ tests/Switzerland/Neuchatel/NeuchatelTest.php | 6 +++ .../Switzerland/Neuchatel/NewYearsDayTest.php | 5 +++ .../Neuchatel/PentecostMondayTest.php | 4 ++ .../Switzerland/Neuchatel/WorkersDayTest.php | 6 +++ .../Nidwalden/AllSaintsDayTest.php | 5 +++ .../Nidwalden/AscensionDayTest.php | 4 ++ .../Nidwalden/AssumptionOfMaryTest.php | 5 +++ .../Nidwalden/ChristmasDayTest.php | 5 +++ .../Nidwalden/CorpusChristiTest.php | 5 +++ .../Nidwalden/EasterMondayTest.php | 4 ++ .../Switzerland/Nidwalden/GoodFridayTest.php | 4 ++ .../Nidwalden/ImmaculateConceptionTest.php | 5 +++ .../Switzerland/Nidwalden/NewYearsDayTest.php | 5 +++ tests/Switzerland/Nidwalden/NidwaldenTest.php | 6 +++ .../Nidwalden/PentecostMondayTest.php | 4 ++ .../Switzerland/Nidwalden/StJosephDayTest.php | 5 +++ .../Nidwalden/StStephensDayTest.php | 5 +++ .../Switzerland/Obwalden/AllSaintsDayTest.php | 5 +++ .../Switzerland/Obwalden/AscensionDayTest.php | 4 ++ .../Obwalden/AssumptionOfMaryTest.php | 5 +++ .../Obwalden/BerchtoldsTagTest.php | 5 +++ .../Obwalden/BruderKlausenFestTest.php | 9 ++++ .../Switzerland/Obwalden/ChristmasDayTest.php | 5 +++ .../Obwalden/CorpusChristiTest.php | 4 ++ .../Switzerland/Obwalden/EasterMondayTest.php | 4 ++ tests/Switzerland/Obwalden/GoodFridayTest.php | 4 ++ .../Obwalden/ImmaculateConceptionTest.php | 5 +++ .../Switzerland/Obwalden/NewYearsDayTest.php | 5 +++ tests/Switzerland/Obwalden/ObwaldenTest.php | 6 +++ .../Obwalden/PentecostMondayTest.php | 4 ++ .../Obwalden/StStephensDayTest.php | 5 +++ .../Schaffhausen/AscensionDayTest.php | 4 ++ .../Schaffhausen/BerchtoldsTagTest.php | 5 +++ .../Schaffhausen/ChristmasDayTest.php | 5 +++ .../Schaffhausen/EasterMondayTest.php | 4 ++ .../Schaffhausen/GoodFridayTest.php | 4 ++ .../Schaffhausen/NewYearsDayTest.php | 5 +++ .../Schaffhausen/PentecostMondayTest.php | 4 ++ .../Schaffhausen/SchaffhausenTest.php | 6 +++ .../Schaffhausen/StStephensDayTest.php | 5 +++ .../Schaffhausen/WorkersDayTest.php | 6 +++ tests/Switzerland/Schwyz/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Schwyz/AscensionDayTest.php | 4 ++ .../Schwyz/AssumptionOfMaryTest.php | 5 +++ tests/Switzerland/Schwyz/ChristmasDayTest.php | 5 +++ .../Switzerland/Schwyz/CorpusChristiTest.php | 5 +++ tests/Switzerland/Schwyz/EasterMondayTest.php | 4 ++ tests/Switzerland/Schwyz/EpiphanyTest.php | 5 +++ tests/Switzerland/Schwyz/GoodFridayTest.php | 4 ++ .../Schwyz/ImmaculateConceptionTest.php | 5 +++ tests/Switzerland/Schwyz/NewYearsDayTest.php | 5 +++ .../Schwyz/PentecostMondayTest.php | 4 ++ tests/Switzerland/Schwyz/SchwyzTest.php | 6 +++ tests/Switzerland/Schwyz/StJosephDayTest.php | 5 +++ .../Switzerland/Schwyz/StStephensDayTest.php | 5 +++ .../Solothurn/AscensionDayTest.php | 4 ++ .../Solothurn/BerchtoldsTagTest.php | 5 +++ .../Solothurn/ChristmasDayTest.php | 5 +++ .../Switzerland/Solothurn/GoodFridayTest.php | 4 ++ .../Switzerland/Solothurn/NewYearsDayTest.php | 5 +++ tests/Switzerland/Solothurn/SolothurnTest.php | 6 +++ .../Switzerland/StGallen/AllSaintsDayTest.php | 5 +++ .../Switzerland/StGallen/AscensionDayTest.php | 4 ++ .../Switzerland/StGallen/ChristmasDayTest.php | 5 +++ .../Switzerland/StGallen/EasterMondayTest.php | 4 ++ tests/Switzerland/StGallen/GoodFridayTest.php | 4 ++ .../Switzerland/StGallen/NewYearsDayTest.php | 5 +++ .../StGallen/PentecostMondayTest.php | 4 ++ tests/Switzerland/StGallen/StGallenTest.php | 6 +++ .../StGallen/StStephensDayTest.php | 5 +++ tests/Switzerland/SwissNationalDayTest.php | 12 ++++++ tests/Switzerland/SwitzerlandTest.php | 5 +++ .../Switzerland/Thurgau/AscensionDayTest.php | 4 ++ .../Switzerland/Thurgau/BerchtoldsTagTest.php | 5 +++ .../Switzerland/Thurgau/ChristmasDayTest.php | 5 +++ .../Switzerland/Thurgau/EasterMondayTest.php | 4 ++ tests/Switzerland/Thurgau/GoodFridayTest.php | 4 ++ tests/Switzerland/Thurgau/NewYearsDayTest.php | 5 +++ .../Thurgau/PentecostMondayTest.php | 4 ++ .../Switzerland/Thurgau/StStephensDayTest.php | 5 +++ tests/Switzerland/Thurgau/ThurgauTest.php | 6 +++ tests/Switzerland/Thurgau/WorkersDayTest.php | 6 +++ tests/Switzerland/Ticino/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Ticino/AscensionDayTest.php | 4 ++ .../Ticino/AssumptionOfMaryTest.php | 5 +++ tests/Switzerland/Ticino/ChristmasDayTest.php | 5 +++ .../Switzerland/Ticino/CorpusChristiTest.php | 5 +++ tests/Switzerland/Ticino/EasterMondayTest.php | 4 ++ tests/Switzerland/Ticino/EpiphanyTest.php | 5 +++ .../Ticino/ImmaculateConceptionTest.php | 5 +++ tests/Switzerland/Ticino/NewYearsDayTest.php | 5 +++ .../Ticino/PentecostMondayTest.php | 4 ++ tests/Switzerland/Ticino/StJosephDayTest.php | 5 +++ tests/Switzerland/Ticino/StPeterPaulTest.php | 5 +++ .../Switzerland/Ticino/StStephensDayTest.php | 5 +++ tests/Switzerland/Ticino/TicinoTest.php | 6 +++ tests/Switzerland/Ticino/WorkersDayTest.php | 6 +++ tests/Switzerland/Uri/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Uri/AscensionDayTest.php | 4 ++ .../Switzerland/Uri/AssumptionOfMaryTest.php | 5 +++ tests/Switzerland/Uri/ChristmasDayTest.php | 5 +++ tests/Switzerland/Uri/CorpusChristiTest.php | 5 +++ tests/Switzerland/Uri/EasterMondayTest.php | 4 ++ tests/Switzerland/Uri/EpiphanyTest.php | 5 +++ tests/Switzerland/Uri/GoodFridayTest.php | 4 ++ .../Uri/ImmaculateConceptionTest.php | 5 +++ tests/Switzerland/Uri/NewYearsDayTest.php | 5 +++ tests/Switzerland/Uri/PentecostMondayTest.php | 4 ++ tests/Switzerland/Uri/StJosephDayTest.php | 5 +++ tests/Switzerland/Uri/StStephensDayTest.php | 5 +++ tests/Switzerland/Uri/UriTest.php | 6 +++ tests/Switzerland/Valais/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Valais/AscensionDayTest.php | 4 ++ .../Valais/AssumptionOfMaryTest.php | 5 +++ tests/Switzerland/Valais/ChristmasDayTest.php | 5 +++ .../Switzerland/Valais/CorpusChristiTest.php | 5 +++ .../Valais/ImmaculateConceptionTest.php | 5 +++ tests/Switzerland/Valais/NewYearsDayTest.php | 5 +++ tests/Switzerland/Valais/StJosephDayTest.php | 5 +++ tests/Switzerland/Valais/ValaisTest.php | 6 +++ tests/Switzerland/Vaud/AscensionDayTest.php | 4 ++ tests/Switzerland/Vaud/BerchtoldsTagTest.php | 5 +++ tests/Switzerland/Vaud/BettagsMontagTest.php | 6 +++ tests/Switzerland/Vaud/ChristmasDayTest.php | 5 +++ tests/Switzerland/Vaud/EasterMondayTest.php | 4 ++ tests/Switzerland/Vaud/GoodFridayTest.php | 4 ++ tests/Switzerland/Vaud/NewYearsDayTest.php | 5 +++ .../Switzerland/Vaud/PentecostMondayTest.php | 4 ++ tests/Switzerland/Vaud/VaudTest.php | 6 +++ tests/Switzerland/Zug/AllSaintsDayTest.php | 5 +++ tests/Switzerland/Zug/AscensionDayTest.php | 4 ++ .../Switzerland/Zug/AssumptionOfMaryTest.php | 5 +++ tests/Switzerland/Zug/BerchtoldsTagTest.php | 5 +++ tests/Switzerland/Zug/ChristmasDayTest.php | 5 +++ tests/Switzerland/Zug/CorpusChristiTest.php | 5 +++ tests/Switzerland/Zug/EasterMondayTest.php | 4 ++ tests/Switzerland/Zug/GoodFridayTest.php | 4 ++ .../Zug/ImmaculateConceptionTest.php | 5 +++ tests/Switzerland/Zug/NewYearsDayTest.php | 5 +++ tests/Switzerland/Zug/PentecostMondayTest.php | 4 ++ tests/Switzerland/Zug/StStephensDayTest.php | 5 +++ tests/Switzerland/Zug/ZugTest.php | 6 +++ tests/Switzerland/Zurich/AscensionDayTest.php | 4 ++ .../Switzerland/Zurich/BerchtoldsTagTest.php | 5 +++ tests/Switzerland/Zurich/ChristmasDayTest.php | 5 +++ tests/Switzerland/Zurich/EasterMondayTest.php | 4 ++ tests/Switzerland/Zurich/GoodFridayTest.php | 4 ++ tests/Switzerland/Zurich/NewYearsDayTest.php | 5 +++ .../Zurich/PentecostMondayTest.php | 4 ++ .../Switzerland/Zurich/StStephensDayTest.php | 5 +++ tests/Switzerland/Zurich/WorkersDayTest.php | 6 +++ tests/Switzerland/Zurich/ZurichTest.php | 6 +++ tests/USA/ChristmasDayTest.php | 8 ++++ tests/USA/ColumbusDayTest.php | 7 +++ tests/USA/IndependenceDayTest.php | 9 ++++ tests/USA/LabourDayTest.php | 5 +++ tests/USA/MartinLutherKingDayTest.php | 5 +++ tests/USA/MemorialDayTest.php | 7 +++ tests/USA/NewYearsDayTest.php | 8 ++++ tests/USA/ThanksgivingDayTest.php | 5 +++ tests/USA/USATest.php | 5 +++ tests/USA/VeteransDayTest.php | 7 +++ tests/USA/WashingtonsBirthdayTest.php | 7 +++ tests/Ukraine/ChristmasDayTest.php | 5 +++ tests/Ukraine/ConstitutionDayTest.php | 6 +++ tests/Ukraine/DefenderOfUkraineDayTest.php | 6 +++ tests/Ukraine/EasterTest.php | 4 ++ tests/Ukraine/IndependenceDayTest.php | 6 +++ tests/Ukraine/InternationalWomensDayTest.php | 5 +++ tests/Ukraine/InternationalWorkersDayTest.php | 5 +++ tests/Ukraine/NewYearsDayTest.php | 5 +++ tests/Ukraine/PentecostTest.php | 4 ++ .../SecondInternationalWorkersDayTest.php | 5 +++ tests/Ukraine/UkraineTest.php | 5 +++ tests/Ukraine/VictoryDayTest.php | 5 +++ tests/UnitedKingdom/BoxingDayTest.php | 6 +++ tests/UnitedKingdom/ChristmasDayTest.php | 6 +++ tests/UnitedKingdom/EasterMondayTest.php | 5 +++ tests/UnitedKingdom/GoodFridayTest.php | 4 ++ tests/UnitedKingdom/MayDayBankHolidayTest.php | 5 +++ tests/UnitedKingdom/NewYearsDayTest.php | 8 ++++ tests/UnitedKingdom/SpringBankHolidayTest.php | 5 +++ tests/UnitedKingdom/SummerBankHolidayTest.php | 5 +++ tests/UnitedKingdom/UnitedKingdomTest.php | 5 +++ tests/YasumiBase.php | 3 ++ 895 files changed, 4570 insertions(+) diff --git a/tests/Australia/ACT/ACTTest.php b/tests/Australia/ACT/ACTTest.php index 4bc4ff0d6..dc2224841 100644 --- a/tests/Australia/ACT/ACTTest.php +++ b/tests/Australia/ACT/ACTTest.php @@ -28,6 +28,7 @@ class ACTTest extends ACTBaseTestCase /** * Tests if all official holidays in ACT (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/ACT/CanberraDayTest.php b/tests/Australia/ACT/CanberraDayTest.php index b6cd40fc7..fd6815cfe 100644 --- a/tests/Australia/ACT/CanberraDayTest.php +++ b/tests/Australia/ACT/CanberraDayTest.php @@ -39,6 +39,9 @@ class CanberraDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/ACT/EasterSaturdayTest.php b/tests/Australia/ACT/EasterSaturdayTest.php index 71507ddbe..edf80ca39 100644 --- a/tests/Australia/ACT/EasterSaturdayTest.php +++ b/tests/Australia/ACT/EasterSaturdayTest.php @@ -35,6 +35,9 @@ class EasterSaturdayTest extends ACTBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -68,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php index dd0d79ebc..1dc329264 100644 --- a/tests/Australia/ACT/EasterSundayTest.php +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -34,6 +34,9 @@ class EasterSundayTest extends ACTBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -66,6 +70,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -79,6 +84,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/ACT/LabourDayTest.php b/tests/Australia/ACT/LabourDayTest.php index 057e7c4a7..54b759703 100644 --- a/tests/Australia/ACT/LabourDayTest.php +++ b/tests/Australia/ACT/LabourDayTest.php @@ -34,6 +34,9 @@ class LabourDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/ACT/QueensBirthdayTest.php b/tests/Australia/ACT/QueensBirthdayTest.php index b8af2782a..89aa6c37a 100644 --- a/tests/Australia/ACT/QueensBirthdayTest.php +++ b/tests/Australia/ACT/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends ACTBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/ACT/ReconciliationDayTest.php b/tests/Australia/ACT/ReconciliationDayTest.php index 70f94a3f3..b5574a3c2 100644 --- a/tests/Australia/ACT/ReconciliationDayTest.php +++ b/tests/Australia/ACT/ReconciliationDayTest.php @@ -39,6 +39,9 @@ class ReconciliationDayTest extends ACTBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -78,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -91,6 +95,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index 462e93ecf..168e93246 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -39,6 +39,9 @@ class AnzacDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -52,6 +55,7 @@ public function testHoliday($year, $expected) /** * Tests that ANZAC Day is not present before 1921 + * @throws \ReflectionException */ public function testNotHoliday() { @@ -85,6 +89,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -98,6 +103,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index 7c64fcd6a..be9bb0651 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -34,6 +34,9 @@ class AustraliaDayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -48,6 +51,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -61,6 +65,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/AustraliaTest.php b/tests/Australia/AustraliaTest.php index 90131a059..1a95df3b2 100644 --- a/tests/Australia/AustraliaTest.php +++ b/tests/Australia/AustraliaTest.php @@ -26,6 +26,7 @@ class AustraliaTest extends AustraliaBaseTestCase /** * Tests if all official holidays in Australia are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -42,6 +43,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Australia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -50,6 +52,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Australia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -58,6 +61,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Australia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -66,6 +70,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Australia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index e368afb74..0e54ddf92 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -36,6 +36,9 @@ class BoxingDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInter * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected, $expectedExtra) { @@ -87,6 +90,8 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -106,6 +111,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index 3c62c014e..257ca95e2 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -36,6 +36,9 @@ class ChristmasDayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected, $expectedExtra) { @@ -87,6 +90,8 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -106,6 +111,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index f74294fac..0981cad03 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -36,6 +36,9 @@ class EasterMondayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -54,6 +57,9 @@ public function testHoliday($year, $expected) * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday2($year, $expected) { @@ -69,6 +75,7 @@ public function testHoliday2($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -104,6 +111,8 @@ public function HolidayDataProvider2(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -123,6 +132,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index c05229be3..6ff1d103e 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -35,6 +35,9 @@ class GoodFridayTest extends AustraliaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -67,6 +71,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -80,6 +85,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NSW/BankHolidayTest.php b/tests/Australia/NSW/BankHolidayTest.php index dfdf87484..f1f15edf8 100644 --- a/tests/Australia/NSW/BankHolidayTest.php +++ b/tests/Australia/NSW/BankHolidayTest.php @@ -34,6 +34,9 @@ class BankHolidayTest extends NSWBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NSW/EasterSaturdayTest.php b/tests/Australia/NSW/EasterSaturdayTest.php index 79b8dc3e6..451bacbe6 100644 --- a/tests/Australia/NSW/EasterSaturdayTest.php +++ b/tests/Australia/NSW/EasterSaturdayTest.php @@ -35,6 +35,9 @@ class EasterSaturdayTest extends NSWBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -68,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php index cb9f6e986..d8a102deb 100644 --- a/tests/Australia/NSW/EasterSundayTest.php +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -34,6 +34,9 @@ class EasterSundayTest extends NSWBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -66,6 +70,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -79,6 +84,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NSW/LabourDayTest.php b/tests/Australia/NSW/LabourDayTest.php index e5ff36a25..e94a984c9 100644 --- a/tests/Australia/NSW/LabourDayTest.php +++ b/tests/Australia/NSW/LabourDayTest.php @@ -34,6 +34,9 @@ class LabourDayTest extends NSWBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NSW/NSWTest.php b/tests/Australia/NSW/NSWTest.php index 0e03ea425..8fd04fe3d 100644 --- a/tests/Australia/NSW/NSWTest.php +++ b/tests/Australia/NSW/NSWTest.php @@ -28,6 +28,7 @@ class NSWTest extends NSWBaseTestCase /** * Tests if all official holidays in NSW (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all bank holidays in NSW (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { diff --git a/tests/Australia/NSW/QueensBirthdayTest.php b/tests/Australia/NSW/QueensBirthdayTest.php index 299a29a9e..90b3a4917 100644 --- a/tests/Australia/NSW/QueensBirthdayTest.php +++ b/tests/Australia/NSW/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends NSWBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NT/EasterSaturdayTest.php b/tests/Australia/NT/EasterSaturdayTest.php index c3777cf0e..c2cf876b3 100644 --- a/tests/Australia/NT/EasterSaturdayTest.php +++ b/tests/Australia/NT/EasterSaturdayTest.php @@ -35,6 +35,9 @@ class EasterSaturdayTest extends NTBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -68,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NT/MayDayTest.php b/tests/Australia/NT/MayDayTest.php index 04667df2b..4cefa2c89 100644 --- a/tests/Australia/NT/MayDayTest.php +++ b/tests/Australia/NT/MayDayTest.php @@ -34,6 +34,9 @@ class MayDayTest extends NTBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NT/NTTest.php b/tests/Australia/NT/NTTest.php index 729d3e795..ef0605442 100644 --- a/tests/Australia/NT/NTTest.php +++ b/tests/Australia/NT/NTTest.php @@ -28,6 +28,7 @@ class NTTest extends NTBaseTestCase /** * Tests if all official holidays in NT (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/NT/PicnicDayTest.php b/tests/Australia/NT/PicnicDayTest.php index d75171944..8b31ae725 100644 --- a/tests/Australia/NT/PicnicDayTest.php +++ b/tests/Australia/NT/PicnicDayTest.php @@ -34,6 +34,9 @@ class PicnicDayTest extends NTBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NT/QueensBirthdayTest.php b/tests/Australia/NT/QueensBirthdayTest.php index dea4a4a24..f53dce6e8 100644 --- a/tests/Australia/NT/QueensBirthdayTest.php +++ b/tests/Australia/NT/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends NTBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index 46113b6b1..e33854d67 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -36,6 +36,9 @@ class NewYearsDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInt * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected, $expectedExtra) { @@ -87,6 +90,8 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -106,6 +111,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php index f6b7109f9..fcb9a77d3 100644 --- a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php +++ b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php @@ -28,6 +28,7 @@ class BrisbaneTest extends BrisbaneBaseTestCase /** * Tests if all official holidays in Queensland (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php index 8b02d69d4..cc7099847 100644 --- a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php +++ b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php @@ -34,6 +34,9 @@ class PeoplesDayTest extends BrisbaneBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Queensland/LabourDayTest.php b/tests/Australia/Queensland/LabourDayTest.php index 16f444d7f..b0804feff 100644 --- a/tests/Australia/Queensland/LabourDayTest.php +++ b/tests/Australia/Queensland/LabourDayTest.php @@ -34,6 +34,9 @@ class LabourDayTest extends QueenslandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Queensland/QueensBirthdayTest.php b/tests/Australia/Queensland/QueensBirthdayTest.php index 554e82b0f..b872452bf 100644 --- a/tests/Australia/Queensland/QueensBirthdayTest.php +++ b/tests/Australia/Queensland/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends QueenslandBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Queensland/QueenslandTest.php b/tests/Australia/Queensland/QueenslandTest.php index fa2f8a601..27ced6027 100644 --- a/tests/Australia/Queensland/QueenslandTest.php +++ b/tests/Australia/Queensland/QueenslandTest.php @@ -28,6 +28,7 @@ class QueenslandTest extends QueenslandBaseTestCase /** * Tests if all official holidays in Queensland (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/SA/AdelaideCupDayTest.php b/tests/Australia/SA/AdelaideCupDayTest.php index f365898ae..73f7f2f14 100644 --- a/tests/Australia/SA/AdelaideCupDayTest.php +++ b/tests/Australia/SA/AdelaideCupDayTest.php @@ -39,6 +39,9 @@ class AdelaideCupDayTest extends SABaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -86,6 +89,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -99,6 +103,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/SA/ChristmasDayTest.php b/tests/Australia/SA/ChristmasDayTest.php index 43fc1e5b2..771ac4d27 100644 --- a/tests/Australia/SA/ChristmasDayTest.php +++ b/tests/Australia/SA/ChristmasDayTest.php @@ -36,6 +36,9 @@ class ChristmasDayTest extends SABaseTestCase implements YasumiTestCaseInterface * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date * @param string $expectedExtra the expected date for the additional holiday, or null if no additional holiday + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected, $expectedExtra) { @@ -87,6 +90,8 @@ public function HolidayDataProvider() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -106,6 +111,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/SA/EasterSaturdayTest.php b/tests/Australia/SA/EasterSaturdayTest.php index 59026d7d0..3eeaabc9a 100644 --- a/tests/Australia/SA/EasterSaturdayTest.php +++ b/tests/Australia/SA/EasterSaturdayTest.php @@ -35,6 +35,9 @@ class EasterSaturdayTest extends SABaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -68,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/SA/LabourDayTest.php b/tests/Australia/SA/LabourDayTest.php index 58374a8a2..81e94b44a 100644 --- a/tests/Australia/SA/LabourDayTest.php +++ b/tests/Australia/SA/LabourDayTest.php @@ -34,6 +34,9 @@ class LabourDayTest extends SABaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/SA/ProclamationDayTest.php b/tests/Australia/SA/ProclamationDayTest.php index e28d3f354..b47d793d1 100644 --- a/tests/Australia/SA/ProclamationDayTest.php +++ b/tests/Australia/SA/ProclamationDayTest.php @@ -34,6 +34,9 @@ class ProclamationDayTest extends SABaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/SA/QueensBirthdayTest.php b/tests/Australia/SA/QueensBirthdayTest.php index 4f0b7b712..d7987795c 100644 --- a/tests/Australia/SA/QueensBirthdayTest.php +++ b/tests/Australia/SA/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends SABaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/SA/SATest.php b/tests/Australia/SA/SATest.php index 79314c519..f7b0705d8 100644 --- a/tests/Australia/SA/SATest.php +++ b/tests/Australia/SA/SATest.php @@ -28,6 +28,7 @@ class SATest extends SABaseTestCase /** * Tests if all official holidays in SA (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php index d31d97b06..7112734d9 100644 --- a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php @@ -28,6 +28,7 @@ class CentralNorthTest extends CentralNorthBaseTestCase /** * Tests if all official holidays in central north Tasmania (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php index c76693c0e..5d35c27b0 100644 --- a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php +++ b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php @@ -34,6 +34,9 @@ class DevonportShowTest extends CentralNorthBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/EightHourDayTest.php b/tests/Australia/Tasmania/EightHourDayTest.php index 31ed1b4c7..aa132a5e2 100644 --- a/tests/Australia/Tasmania/EightHourDayTest.php +++ b/tests/Australia/Tasmania/EightHourDayTest.php @@ -34,6 +34,9 @@ class EightHourDayTest extends TasmaniaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php index 1730dfd35..c0c328eb1 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php @@ -34,6 +34,9 @@ class FlindersIslandShowTest extends FlindersIslandBaseTestCase implements Yasum * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php index 21bfa1c36..5c7f37358 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php @@ -28,6 +28,7 @@ class FlindersIslandTest extends FlindersIslandBaseTestCase /** * Tests if all official holidays in Flinders Island (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php index 44ecbb731..0db02ca3f 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php @@ -34,6 +34,9 @@ class KingIslandShowTest extends KingIslandBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php index a66678b69..d80ef4a8b 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php @@ -28,6 +28,7 @@ class KingIslandTest extends KingIslandBaseTestCase /** * Tests if all official holidays in King Island (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php index 89c013772..e98c1d708 100644 --- a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php +++ b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php @@ -34,6 +34,9 @@ class LauncestonShowTest extends NortheastBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/Northeast/NortheastTest.php b/tests/Australia/Tasmania/Northeast/NortheastTest.php index 6da19f6cb..b0d93afec 100644 --- a/tests/Australia/Tasmania/Northeast/NortheastTest.php +++ b/tests/Australia/Tasmania/Northeast/NortheastTest.php @@ -28,6 +28,7 @@ class NortheastTest extends NortheastBaseTestCase /** * Tests if all official holidays in northeastern Tasmania (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php index b0c1b8e1f..319720dd7 100644 --- a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php +++ b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php @@ -34,6 +34,9 @@ class BurnieShowTest extends NorthwestBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php index 423246e5b..566c162f9 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php @@ -34,6 +34,9 @@ class AGFESTTest extends CircularHeadBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php index 49e5f1bc6..59ace839e 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php @@ -28,6 +28,7 @@ class CircularHeadTest extends CircularHeadBaseTestCase /** * Tests if all official holidays in Circular Head (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/Northwest/NorthwestTest.php b/tests/Australia/Tasmania/Northwest/NorthwestTest.php index 3d6e58a6d..bb4884917 100644 --- a/tests/Australia/Tasmania/Northwest/NorthwestTest.php +++ b/tests/Australia/Tasmania/Northwest/NorthwestTest.php @@ -28,6 +28,7 @@ class NorthwestTest extends NorthwestBaseTestCase /** * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/QueensBirthdayTest.php b/tests/Australia/Tasmania/QueensBirthdayTest.php index 6fc170596..283f705a3 100644 --- a/tests/Australia/Tasmania/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends TasmaniaBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/RecreationDayTest.php b/tests/Australia/Tasmania/RecreationDayTest.php index 3e7e9a3f8..5ff54b052 100644 --- a/tests/Australia/Tasmania/RecreationDayTest.php +++ b/tests/Australia/Tasmania/RecreationDayTest.php @@ -34,6 +34,9 @@ class RecreationDayTest extends TasmaniaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/South/HobartShowTest.php b/tests/Australia/Tasmania/South/HobartShowTest.php index 0abb32707..3d169cc31 100644 --- a/tests/Australia/Tasmania/South/HobartShowTest.php +++ b/tests/Australia/Tasmania/South/HobartShowTest.php @@ -34,6 +34,9 @@ class HobartShowTest extends SouthBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/South/SouthTest.php b/tests/Australia/Tasmania/South/SouthTest.php index 76a59174b..3ffcb6316 100644 --- a/tests/Australia/Tasmania/South/SouthTest.php +++ b/tests/Australia/Tasmania/South/SouthTest.php @@ -28,6 +28,7 @@ class SouthTest extends SouthBaseTestCase /** * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php index 45b3ec06e..ac924d39b 100644 --- a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php +++ b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php @@ -34,6 +34,9 @@ class HobartRegattaTest extends SoutheastBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php index 6013d8a0f..e3544e9ea 100644 --- a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php @@ -28,6 +28,7 @@ class SoutheastTest extends SoutheastBaseTestCase /** * Tests if all official holidays in Circular Head (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Tasmania/TasmaniaTest.php b/tests/Australia/Tasmania/TasmaniaTest.php index 7116dd431..0d0b6635f 100644 --- a/tests/Australia/Tasmania/TasmaniaTest.php +++ b/tests/Australia/Tasmania/TasmaniaTest.php @@ -28,6 +28,7 @@ class TasmaniaTest extends TasmaniaBaseTestCase /** * Tests if all official holidays in Tasmania (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index 4f26b8aa2..0e0e390f3 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -37,6 +37,9 @@ class AFLGrandFinalFridayTest extends VictoriaBaseTestCase implements YasumiTest * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -51,6 +54,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -77,6 +82,7 @@ public function testHolidayType() /** * Tests that Holiday is not present before establishment year + * @throws \ReflectionException */ public function testNotHoliday() { diff --git a/tests/Australia/Victoria/EasterSaturdayTest.php b/tests/Australia/Victoria/EasterSaturdayTest.php index 63e351ee9..e3670262d 100644 --- a/tests/Australia/Victoria/EasterSaturdayTest.php +++ b/tests/Australia/Victoria/EasterSaturdayTest.php @@ -35,6 +35,9 @@ class EasterSaturdayTest extends VictoriaBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -68,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php index eddd1a892..d30630823 100644 --- a/tests/Australia/Victoria/EasterSundayTest.php +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -34,6 +34,9 @@ class EasterSundayTest extends VictoriaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -66,6 +70,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -79,6 +84,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index befb7bfbd..96987c190 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -34,6 +34,9 @@ class LabourDayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Victoria/MelbourneCupDayTest.php b/tests/Australia/Victoria/MelbourneCupDayTest.php index b69426c52..ede7a68e7 100644 --- a/tests/Australia/Victoria/MelbourneCupDayTest.php +++ b/tests/Australia/Victoria/MelbourneCupDayTest.php @@ -39,6 +39,9 @@ class MelbourneCupDayTest extends VictoriaBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Victoria/QueensBirthdayTest.php b/tests/Australia/Victoria/QueensBirthdayTest.php index 19cbc30cb..16b2c566d 100644 --- a/tests/Australia/Victoria/QueensBirthdayTest.php +++ b/tests/Australia/Victoria/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends VictoriaBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/Victoria/VictoriaTest.php b/tests/Australia/Victoria/VictoriaTest.php index 5f967046b..dace27d1c 100644 --- a/tests/Australia/Victoria/VictoriaTest.php +++ b/tests/Australia/Victoria/VictoriaTest.php @@ -28,6 +28,7 @@ class VictoriaTest extends VictoriaBaseTestCase /** * Tests if all official holidays in Victoria (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/WA/LabourDayTest.php b/tests/Australia/WA/LabourDayTest.php index 4cd8c23e6..de32ceab2 100644 --- a/tests/Australia/WA/LabourDayTest.php +++ b/tests/Australia/WA/LabourDayTest.php @@ -34,6 +34,9 @@ class LabourDayTest extends WABaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/WA/QueensBirthdayTest.php b/tests/Australia/WA/QueensBirthdayTest.php index 3c213179d..3b3b6e25e 100644 --- a/tests/Australia/WA/QueensBirthdayTest.php +++ b/tests/Australia/WA/QueensBirthdayTest.php @@ -39,6 +39,9 @@ class QueensBirthdayTest extends WABaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -76,6 +79,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Australia/WA/WATest.php b/tests/Australia/WA/WATest.php index 343ecbc4d..4350fa5d1 100644 --- a/tests/Australia/WA/WATest.php +++ b/tests/Australia/WA/WATest.php @@ -28,6 +28,7 @@ class WATest extends WABaseTestCase /** * Tests if all official holidays in WA (Australia) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { diff --git a/tests/Australia/WA/WesternAustraliaDayTest.php b/tests/Australia/WA/WesternAustraliaDayTest.php index cb0062e5e..ff334d434 100644 --- a/tests/Australia/WA/WesternAustraliaDayTest.php +++ b/tests/Australia/WA/WesternAustraliaDayTest.php @@ -34,6 +34,9 @@ class WesternAustraliaDayTest extends WABaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -71,6 +74,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +88,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/AllSaintsDayTest.php b/tests/Austria/AllSaintsDayTest.php index fd8385ca6..93d91c6ff 100644 --- a/tests/Austria/AllSaintsDayTest.php +++ b/tests/Austria/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends AustriaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/AscensionDayTest.php b/tests/Austria/AscensionDayTest.php index 7eb80b75a..a5bdeac36 100644 --- a/tests/Austria/AscensionDayTest.php +++ b/tests/Austria/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends AustriaBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/AssumptionOfMaryTest.php b/tests/Austria/AssumptionOfMaryTest.php index b47cc0f90..a4d269db0 100644 --- a/tests/Austria/AssumptionOfMaryTest.php +++ b/tests/Austria/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends AustriaBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/AustriaTest.php b/tests/Austria/AustriaTest.php index 53f71834b..5e811d85b 100644 --- a/tests/Austria/AustriaTest.php +++ b/tests/Austria/AustriaTest.php @@ -26,6 +26,7 @@ class AustriaTest extends AustriaBaseTestCase /** * Tests if all official holidays in Austria are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Austria are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -56,6 +58,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Austria are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -64,6 +67,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Austria are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -72,6 +76,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Austria are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Austria/ChristmasTest.php b/tests/Austria/ChristmasTest.php index 3faeee372..5cf0b6b6f 100644 --- a/tests/Austria/ChristmasTest.php +++ b/tests/Austria/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends AustriaBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/CorpusChristiTest.php b/tests/Austria/CorpusChristiTest.php index ca834f81e..a86664783 100644 --- a/tests/Austria/CorpusChristiTest.php +++ b/tests/Austria/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends AustriaBaseTestCase implements YasumiTestCaseInt /** * Tests the holiday defined in this test. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -45,6 +48,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/EasterMondayTest.php b/tests/Austria/EasterMondayTest.php index a00ac4c01..8a9e9987b 100644 --- a/tests/Austria/EasterMondayTest.php +++ b/tests/Austria/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends AustriaBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/EasterTest.php b/tests/Austria/EasterTest.php index 8060d736f..d2d9c8f5e 100644 --- a/tests/Austria/EasterTest.php +++ b/tests/Austria/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends AustriaBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/EpiphanyTest.php b/tests/Austria/EpiphanyTest.php index a896d69dc..1e5c9a8c9 100644 --- a/tests/Austria/EpiphanyTest.php +++ b/tests/Austria/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends AustriaBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/ImmaculateConceptionTest.php b/tests/Austria/ImmaculateConceptionTest.php index 04467a1d5..c09058265 100644 --- a/tests/Austria/ImmaculateConceptionTest.php +++ b/tests/Austria/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends AustriaBaseTestCase implements YasumiTest * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/InternationalWorkersDayTest.php b/tests/Austria/InternationalWorkersDayTest.php index 067517a07..b0ccc1d8a 100644 --- a/tests/Austria/InternationalWorkersDayTest.php +++ b/tests/Austria/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends AustriaBaseTestCase implements YasumiT * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/NationalDayTest.php b/tests/Austria/NationalDayTest.php index e78a26639..277b0c852 100644 --- a/tests/Austria/NationalDayTest.php +++ b/tests/Austria/NationalDayTest.php @@ -34,6 +34,8 @@ class NationalDayTest extends AustriaBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/NewYearsDayTest.php b/tests/Austria/NewYearsDayTest.php index bad75074f..3929e2587 100644 --- a/tests/Austria/NewYearsDayTest.php +++ b/tests/Austria/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends AustriaBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/PentecostMondayTest.php b/tests/Austria/PentecostMondayTest.php index e6370c3c4..7768feec9 100644 --- a/tests/Austria/PentecostMondayTest.php +++ b/tests/Austria/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends AustriaBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/PentecostTest.php b/tests/Austria/PentecostTest.php index eb0ce7ef3..975f9b27b 100644 --- a/tests/Austria/PentecostTest.php +++ b/tests/Austria/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends AustriaBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Austria/SecondChristmasDayTest.php b/tests/Austria/SecondChristmasDayTest.php index e584e3051..ceaa9ea50 100644 --- a/tests/Austria/SecondChristmasDayTest.php +++ b/tests/Austria/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends AustriaBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index 758dfbfe7..e00a58f06 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -30,6 +30,9 @@ class HolidayBetweenFilterTest extends TestCase /** * Tests the basic usage of the BetweenFilter. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHolidaysBetweenDateRange() { @@ -82,6 +85,9 @@ public function testHolidaysBetweenDateRange() /** * Tests the basic usage of the BetweenFilter using DateTimeImmutable objects. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() { @@ -134,6 +140,9 @@ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() /** * Tests that BetweenFilter considers the date and ignores timezones and time of day. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHolidaysBetweenDateRangeDifferentTimezone() { @@ -158,6 +167,9 @@ public function testHolidaysBetweenDateRangeDifferentTimezone() /** * Tests the BetweenFilter with date range where start and end date are exclusive of the comparison. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHolidaysBetweenDateRangeExclusiveStartEndDate() { @@ -211,6 +223,9 @@ public function testHolidaysBetweenDateRangeExclusiveStartEndDate() /** * Tests the BetweenFilter where the start date lies before the year of the Holiday Provider instance. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() { @@ -248,6 +263,9 @@ public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() /** * Tests the BetweenFilter where the end date lies beyond the year of the Holiday Provider instance. + * + * @throws \Exception + * @throws \ReflectionException */ public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() { @@ -287,6 +305,8 @@ public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() * Tests that an InvalidArgumentException is thrown in case an invalid holiday provider is given. * * @expectedException InvalidArgumentException + * @throws \Exception + * @throws \ReflectionException */ public function testWrongDates() { @@ -304,6 +324,9 @@ public function testWrongDates() * Tests the BetweenFilter so that a substituted holiday is only counted once. * * This test covers the scenario that the requested date range covers all know holidays. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCountBetweenWithSubstitutes() { @@ -342,6 +365,9 @@ public function testCountBetweenWithSubstitutes() * Tests the BetweenFilter so that a substituted holiday is only counted once. * * This test covers the scenario that the requested date range excludes a substituted holiday. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCountBetweenExcludingSubstituteHoliday() { @@ -384,6 +410,9 @@ public function testCountBetweenExcludingSubstituteHoliday() * * This test covers the scenario that the requested date range excludes a substituted holiday, but includes * the original substituted holiday. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHoliday() { @@ -427,6 +456,9 @@ public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHolid * * This test covers the scenario that the requested date range excludes a substituted holiday and also * the original substituted holiday. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday() { diff --git a/tests/Base/HolidayFiltersTest.php b/tests/Base/HolidayFiltersTest.php index 82c457fcc..5ffca3215 100644 --- a/tests/Base/HolidayFiltersTest.php +++ b/tests/Base/HolidayFiltersTest.php @@ -32,6 +32,7 @@ class HolidayFiltersTest extends TestCase /** * Tests the Official Holidays filter + * @throws \ReflectionException */ public function testOfficialHolidaysFilter() { @@ -65,6 +66,7 @@ public function testOfficialHolidaysFilter() /** * Tests the Observed Holidays filter + * @throws \ReflectionException */ public function testObservedHolidaysFilter() { @@ -98,6 +100,7 @@ public function testObservedHolidaysFilter() /** * Tests Bank Holidays + * @throws \ReflectionException */ public function testBankHolidaysFilter() { @@ -131,6 +134,7 @@ public function testBankHolidaysFilter() /** * Tests Seasonal Holidays + * @throws \ReflectionException */ public function testSeasonalHolidaysFilter() { @@ -178,6 +182,7 @@ public function testSeasonalHolidaysFilter() /** * Tests other type of Holidays + * @throws \ReflectionException */ public function testOtherHolidaysFilter() { diff --git a/tests/Base/HolidayOnFilterTest.php b/tests/Base/HolidayOnFilterTest.php index c9808f046..8c1f2082c 100644 --- a/tests/Base/HolidayOnFilterTest.php +++ b/tests/Base/HolidayOnFilterTest.php @@ -29,6 +29,9 @@ class HolidayOnFilterTest extends TestCase /** * Tests the basic usage of the OnFilter. + * + * @throws \ReflectionException + * @throws \Exception */ public function testHolidaysOnDate() { @@ -50,6 +53,10 @@ public function testHolidaysOnDate() } } + /** + * @throws \ReflectionException + * @throws \Exception + */ public function testHolidaysNotOnDate() { $timezone = 'Europe/Amsterdam'; @@ -70,6 +77,10 @@ public function testHolidaysNotOnDate() } } + /** + * @throws \ReflectionException + * @throws \Exception + */ public function testCorrectNumberOfHolidaysOnDate() { $timezone = 'Europe/Amsterdam'; diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index 97dc2f34e..5e8c7b943 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -32,6 +32,7 @@ class HolidayTest extends TestCase * Tests that an InvalidArgumentException is thrown in case an blank short name is given. * * @expectedException InvalidArgumentException + * @throws \Exception */ public function testHolidayBlankNameInvalidArgumentException() { @@ -42,6 +43,7 @@ public function testHolidayBlankNameInvalidArgumentException() * Tests that an Yasumi\Exception\UnknownLocaleException is thrown in case an invalid locale is given. * * @expectedException \Yasumi\Exception\UnknownLocaleException + * @throws \Exception */ public function testCreateHolidayUnknownLocaleException() { @@ -50,6 +52,7 @@ public function testCreateHolidayUnknownLocaleException() /** * Tests that a Yasumi holiday instance can be serialized to a JSON object. + * @throws \Exception */ public function testHolidayIsJsonSerializable() { @@ -65,6 +68,7 @@ public function testHolidayIsJsonSerializable() /** * Tests that a Yasumi holiday instance can be created using an object that implements the DateTimeInterface (e.g. * DateTime or DateTimeImmutable) + * @throws \Exception */ public function testHolidayWithDateTimeInterface() { @@ -81,6 +85,7 @@ public function testHolidayWithDateTimeInterface() /** * Tests the getName function of the Holiday object with no translations for the name given. + * @throws \Exception */ public function testHolidayGetNameWithNoTranslations() { @@ -93,6 +98,7 @@ public function testHolidayGetNameWithNoTranslations() /** * Tests the getName function of the Holiday object with only a default translation for the name given. + * @throws \Exception */ public function testHolidayGetNameWithOnlyDefaultTranslation() { @@ -107,6 +113,8 @@ public function testHolidayGetNameWithOnlyDefaultTranslation() /** * Tests the getName function of the Holiday object with only a default translation for the name given. + * + * @throws \Exception */ public function testHolidayGetNameWithOneNonDefaultTranslation() { @@ -121,6 +129,7 @@ public function testHolidayGetNameWithOneNonDefaultTranslation() /** * Tests the getName function of the Holiday object with global translations and no custom translation. + * @throws \Exception */ public function testHolidayGetNameWithGlobalTranslations() { @@ -146,6 +155,7 @@ public function testHolidayGetNameWithGlobalTranslations() /** * Tests the getName function of the Holiday object with global translations and a new custom translation. + * @throws \Exception */ public function testHolidayGetNameWithGlobalAndCustomTranslations() { @@ -177,6 +187,7 @@ public function testHolidayGetNameWithGlobalAndCustomTranslations() /** * Tests the getName function of the Holiday object with global translations and an overriding custom translation. + * @throws \Exception */ public function testHolidayGetNameWithOverridenGlobalTranslations() { diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 53230fc82..bcfd0c7f2 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -41,6 +41,7 @@ class YasumiTest extends TestCase * Tests that an InvalidArgumentException is thrown in case an invalid year is given. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testCreateWithInvalidYear() { @@ -51,6 +52,7 @@ public function testCreateWithInvalidYear() * Tests that an InvalidArgumentException is thrown in case an invalid holiday provider is given. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testCreateWithInvalidProvider() { @@ -61,6 +63,7 @@ public function testCreateWithInvalidProvider() * Tests that an InvalidArgumentException is thrown in case we try to load a Trait as provider. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testCreateWithInvalidProviderBecauseItsATrait() { @@ -71,6 +74,7 @@ public function testCreateWithInvalidProviderBecauseItsATrait() * Tests that an InvalidArgumentException is thrown in case we try to load the AbstractProvider as provider. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testCreateWithAbstractClassProvider() { @@ -79,6 +83,7 @@ public function testCreateWithAbstractClassProvider() /** * Tests that Yasumi allows external classes that extend the ProviderInterface. + * @throws \ReflectionException */ public function testCreateWithAbstractExtension() { @@ -94,6 +99,7 @@ public function testCreateWithAbstractExtension() * Tests that an Yasumi\Exception\UnknownLocaleException is thrown in case an invalid locale is given. * * @expectedException \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function testCreateWithInvalidLocale() { @@ -106,6 +112,7 @@ public function testCreateWithInvalidLocale() /** * Tests that the getIterator function returns an ArrayIterator object + * @throws \ReflectionException */ public function testGetIterator() { @@ -119,6 +126,7 @@ public function testGetIterator() /** * Tests that the count function returns an integer and a correct count for the test holiday provider + * @throws \ReflectionException */ public function testCount() { @@ -132,6 +140,7 @@ public function testCount() /** * Tests that the getType function returns a string for the test holiday provider + * @throws \ReflectionException */ public function testGetType() { @@ -143,6 +152,7 @@ public function testGetType() /** * Tests that the getYear function returns an integer for the test holiday provider + * @throws \ReflectionException */ public function testGetYear() { @@ -155,6 +165,8 @@ public function testGetYear() /** * Tests that the next function returns the next upcoming date (i.e. next year) for the given holiday + * + * @throws \ReflectionException */ public function testNext() { @@ -176,6 +188,7 @@ public function testNext() * Tests the next function that an InvalidArgumentException is thrown in case a blank name is given. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testNextWithBlankName() { @@ -188,6 +201,8 @@ public function testNextWithBlankName() /** * Tests the previous function returns the previous date (i.e. previous year) for the given holiday + * + * @throws \ReflectionException */ public function testPrevious() { @@ -210,6 +225,7 @@ public function testPrevious() * Tests the previous function that an InvalidArgumentException is thrown in case a blank name is given. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testPreviousWithBlankName() { @@ -222,6 +238,7 @@ public function testPreviousWithBlankName() /** * Tests that the getHolidayNames function returns an array and a correct count for the test holiday provider + * @throws \ReflectionException */ public function testGetHolidayNames() { @@ -235,6 +252,7 @@ public function testGetHolidayNames() /** * Tests that the WhenIs function returns a string representation of the date the given holiday occurs. + * @throws \ReflectionException */ public function testWhenIs() { @@ -250,6 +268,7 @@ public function testWhenIs() * Tests that the WhenIs function throws an InvalidArgumentException when a blank name is given. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testWhenIsWithBlankName() { @@ -261,6 +280,7 @@ public function testWhenIsWithBlankName() * Tests that an InvalidArgumentException is thrown in case a blank name is given for the getHoliday function. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testGetHolidayWithBlankName() { @@ -271,6 +291,7 @@ public function testGetHolidayWithBlankName() /** * Tests that the whatWeekDayIs function returns an integer representation of the day of the week the given holiday * is occurring. + * @throws \ReflectionException */ public function testWhatWeekDayIs() { @@ -285,6 +306,7 @@ public function testWhatWeekDayIs() * Tests that the whatWeekDayIs function throws an InvalidArgumentException when a blank name is given. * * @expectedException InvalidArgumentException + * @throws \ReflectionException */ public function testWhatWeekDayIsWithBlankName() { @@ -294,6 +316,7 @@ public function testWhatWeekDayIsWithBlankName() /** * Tests that the getProviders function returns an array containing all available holiday providers. + * @throws \ReflectionException */ public function testGetProviders() { @@ -308,6 +331,8 @@ public function testGetProviders() /** * Tests that the getProviders function (static call) returns the same data when called again. + * + * @throws \ReflectionException */ public function testGetProvidersStaticCall() { @@ -328,6 +353,10 @@ public function testGetProvidersStaticCall() /** * Tests that the isHoliday function returns a boolean true for a date that is defined as a holiday. + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException */ public function testIsHoliday() { @@ -350,6 +379,10 @@ public function testIsHoliday() /** * Tests that the isHoliday function returns a boolean false for a date that is not defined as a holiday. + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException */ public function testIsNotHoliday() { @@ -373,6 +406,7 @@ public function testIsNotHoliday() /** * Tests that the isHoliday function throws a TypeError when the given argument is not an instance that * implements the DateTimeInterface (e.g. DateTime or DateTimeImmutable) + * @throws \ReflectionException */ public function testIsHolidayException() { @@ -389,6 +423,10 @@ public function testIsHolidayException() * the weekend. * * @TODO Add additional unit tests for those holiday providers that differ from the global definition + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException */ public function testIsWorkingDay() { @@ -414,6 +452,10 @@ public function testIsWorkingDay() * the weekend. * * @TODO Add additional unit tests for those holiday providers that differ from the global definition + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException */ public function testIsNotWorkingDay() { @@ -439,6 +481,7 @@ public function testIsNotWorkingDay() * that implements the DateTimeInterface (e.g. DateTime or DateTimeImmutable) * * @TODO Add additional unit tests for those holiday providers that differ from the global definition + * @throws \ReflectionException */ public function testIsWorkingDayException() { diff --git a/tests/Belgium/AllSaintsDayTest.php b/tests/Belgium/AllSaintsDayTest.php index 4302a69c4..51d95b185 100644 --- a/tests/Belgium/AllSaintsDayTest.php +++ b/tests/Belgium/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/ArmisticeDayTest.php b/tests/Belgium/ArmisticeDayTest.php index f79bded0a..52079835b 100644 --- a/tests/Belgium/ArmisticeDayTest.php +++ b/tests/Belgium/ArmisticeDayTest.php @@ -33,6 +33,8 @@ class ArmisticeDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/AscensionDayTest.php b/tests/Belgium/AscensionDayTest.php index 5e4528804..fec0f8605 100644 --- a/tests/Belgium/AscensionDayTest.php +++ b/tests/Belgium/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/AssumptionOfMaryTest.php b/tests/Belgium/AssumptionOfMaryTest.php index 63b60d740..3e19ba217 100644 --- a/tests/Belgium/AssumptionOfMaryTest.php +++ b/tests/Belgium/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends BelgiumBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/BelgiumTest.php b/tests/Belgium/BelgiumTest.php index e5d76d58d..f0ddf6d46 100644 --- a/tests/Belgium/BelgiumTest.php +++ b/tests/Belgium/BelgiumTest.php @@ -26,6 +26,7 @@ class BelgiumTest extends BelgiumBaseTestCase /** * Tests if all official holidays in Belgium are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Belgium are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -55,6 +57,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Belgium are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -63,6 +66,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Belgium are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -71,6 +75,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Belgium are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Belgium/ChristmasTest.php b/tests/Belgium/ChristmasTest.php index 67962911e..d95609a54 100644 --- a/tests/Belgium/ChristmasTest.php +++ b/tests/Belgium/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends BelgiumBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/EasterMondayTest.php b/tests/Belgium/EasterMondayTest.php index 268128a24..7e118eb76 100644 --- a/tests/Belgium/EasterMondayTest.php +++ b/tests/Belgium/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/EasterTest.php b/tests/Belgium/EasterTest.php index 1b07e05d7..c08ea4f8b 100644 --- a/tests/Belgium/EasterTest.php +++ b/tests/Belgium/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends BelgiumBaseTestCase implements YasumiTestCaseInterface /** * Tests Easter. + * @throws \Exception + * @throws \ReflectionException */ public function testEaster() { @@ -43,6 +45,7 @@ public function testEaster() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/InternationalWorkersDayTest.php b/tests/Belgium/InternationalWorkersDayTest.php index a06dd4159..a151f7ade 100644 --- a/tests/Belgium/InternationalWorkersDayTest.php +++ b/tests/Belgium/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends BelgiumBaseTestCase implements YasumiT * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/NationalDayTest.php b/tests/Belgium/NationalDayTest.php index 9d394ba91..502f48474 100644 --- a/tests/Belgium/NationalDayTest.php +++ b/tests/Belgium/NationalDayTest.php @@ -33,6 +33,8 @@ class NationalDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/NewYearsDayTest.php b/tests/Belgium/NewYearsDayTest.php index 466389a5e..41b6b1b26 100644 --- a/tests/Belgium/NewYearsDayTest.php +++ b/tests/Belgium/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/PentecostTest.php b/tests/Belgium/PentecostTest.php index fd90dfb89..a4f9b6960 100644 --- a/tests/Belgium/PentecostTest.php +++ b/tests/Belgium/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends BelgiumBaseTestCase implements YasumiTestCaseInterfa /** * Tests Pentecost. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Belgium/pentecostMondayTest.php b/tests/Belgium/pentecostMondayTest.php index 43e8ff291..765853870 100644 --- a/tests/Belgium/pentecostMondayTest.php +++ b/tests/Belgium/pentecostMondayTest.php @@ -29,6 +29,8 @@ class pentecostMondayTest extends BelgiumBaseTestCase implements YasumiTestCaseI /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/BosniaTest.php b/tests/Bosnia/BosniaTest.php index 826132dd4..720ea3308 100644 --- a/tests/Bosnia/BosniaTest.php +++ b/tests/Bosnia/BosniaTest.php @@ -26,6 +26,7 @@ class BosniaTest extends BosniaBaseTestCase /** * Tests if all official holidays in Bosnia are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -45,6 +46,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Bosnia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -53,6 +55,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Bosnia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -61,6 +64,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Bosnia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -69,6 +73,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Bosnia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Bosnia/ChristmasDayTest.php b/tests/Bosnia/ChristmasDayTest.php index 64dc257a9..a2200c1d8 100644 --- a/tests/Bosnia/ChristmasDayTest.php +++ b/tests/Bosnia/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends BosniaBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider() { @@ -51,6 +54,7 @@ public function HolidayDataProvider() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/DayAfterNewYearsDay.php b/tests/Bosnia/DayAfterNewYearsDay.php index 5af8b4a6f..59360b400 100644 --- a/tests/Bosnia/DayAfterNewYearsDay.php +++ b/tests/Bosnia/DayAfterNewYearsDay.php @@ -33,6 +33,8 @@ class DayAfterNewYearsDay extends BosniaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider() { @@ -51,6 +54,7 @@ public function HolidayDataProvider() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/EasterTest.php b/tests/Bosnia/EasterTest.php index 98668af7f..88af25429 100644 --- a/tests/Bosnia/EasterTest.php +++ b/tests/Bosnia/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends BosniaBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/IndependenceDayTest.php b/tests/Bosnia/IndependenceDayTest.php index ed45b410f..aad9c78c9 100644 --- a/tests/Bosnia/IndependenceDayTest.php +++ b/tests/Bosnia/IndependenceDayTest.php @@ -34,6 +34,8 @@ class IndependenceDayTest extends BosniaBaseTestCase implements YasumiTestCaseIn /** * Tests Independence Day on or after 1992. + * @throws \Exception + * @throws \ReflectionException */ public function testIndependenceDayOnAfter1992() { @@ -48,6 +50,7 @@ public function testIndependenceDayOnAfter1992() /** * Tests Independence Day before 1992. + * @throws \ReflectionException */ public function testIndependenceDayBefore1992() { @@ -60,6 +63,7 @@ public function testIndependenceDayBefore1992() /** * Tests translated name of Independence Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/InternationalWorkersDayTest.php b/tests/Bosnia/InternationalWorkersDayTest.php index cfe9f658e..ab55d6090 100644 --- a/tests/Bosnia/InternationalWorkersDayTest.php +++ b/tests/Bosnia/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends BosniaBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider() { diff --git a/tests/Bosnia/NewYearsDayTest.php b/tests/Bosnia/NewYearsDayTest.php index a75cf9407..a5aec7920 100644 --- a/tests/Bosnia/NewYearsDayTest.php +++ b/tests/Bosnia/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider() { @@ -51,6 +54,7 @@ public function HolidayDataProvider() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php index dcd3178a8..09e42bb78 100644 --- a/tests/Bosnia/OrthodoxChristmasDay.php +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -28,6 +28,7 @@ class OrthodoxChristmasDay extends BosniaBaseTestCase implements YasumiTestCaseI /** * @return array + * @throws \Exception */ public function holidayDataProvider() { @@ -39,6 +40,8 @@ public function holidayDataProvider() * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -47,6 +50,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -60,6 +64,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Bosnia/SecondLabourDay.php b/tests/Bosnia/SecondLabourDay.php index 98797aa1f..ad514541d 100644 --- a/tests/Bosnia/SecondLabourDay.php +++ b/tests/Bosnia/SecondLabourDay.php @@ -33,6 +33,8 @@ class SecondLabourDay extends BosniaBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider() { diff --git a/tests/Bosnia/StatehoodDayTest.php b/tests/Bosnia/StatehoodDayTest.php index 972b1b48c..18cb81529 100644 --- a/tests/Bosnia/StatehoodDayTest.php +++ b/tests/Bosnia/StatehoodDayTest.php @@ -34,6 +34,8 @@ class StatehoodDayTest extends BosniaBaseTestCase implements YasumiTestCaseInter /** * Tests Statehood Day on or after 1943. + * @throws \Exception + * @throws \ReflectionException */ public function testStatehoodDayOnAfter1943() { @@ -48,6 +50,7 @@ public function testStatehoodDayOnAfter1943() /** * Tests Statehood Day before 1943. + * @throws \ReflectionException */ public function testStatehoodDayBefore1943() { @@ -60,6 +63,7 @@ public function testStatehoodDayBefore1943() /** * Tests translated name of Statehood Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/AllSoulsDayTest.php b/tests/Brazil/AllSoulsDayTest.php index a2f7f2fe1..1e0424530 100644 --- a/tests/Brazil/AllSoulsDayTest.php +++ b/tests/Brazil/AllSoulsDayTest.php @@ -34,6 +34,8 @@ class AllSoulsDayTest extends BrazilBaseTestCase implements YasumiTestCaseInterf /** * Tests Dia dos Finados on or after 1300. + * @throws \Exception + * @throws \ReflectionException */ public function testDiaDosFinadosAfter1300() { @@ -48,6 +50,7 @@ public function testDiaDosFinadosAfter1300() /** * Tests Dia dos Finados on or before 1300. + * @throws \ReflectionException */ public function testDiaDosFinadosBefore1300() { @@ -57,6 +60,7 @@ public function testDiaDosFinadosBefore1300() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/AshWednesdayTest.php b/tests/Brazil/AshWednesdayTest.php index 06a7c66f3..d2ac6ff26 100644 --- a/tests/Brazil/AshWednesdayTest.php +++ b/tests/Brazil/AshWednesdayTest.php @@ -29,6 +29,8 @@ class AshWednesdayTest extends BrazilBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of Ash Wednesday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/BrazilTest.php b/tests/Brazil/BrazilTest.php index d46d0357b..cbb0d90b4 100644 --- a/tests/Brazil/BrazilTest.php +++ b/tests/Brazil/BrazilTest.php @@ -26,6 +26,7 @@ class BrazilTest extends BrazilBaseTestCase /** * Tests if all official holidays in Brazil are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Brazil are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Brazil are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Brazil are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Brazil are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Brazil/CarnavalMondayTest.php b/tests/Brazil/CarnavalMondayTest.php index 0136885c0..ec32162bf 100644 --- a/tests/Brazil/CarnavalMondayTest.php +++ b/tests/Brazil/CarnavalMondayTest.php @@ -36,6 +36,9 @@ class CarnavalMondayTest extends BrazilBaseTestCase implements YasumiTestCaseInt /** * Tests Carnaval Monday on or after 1700. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCarnavalMondayAfter1700() { @@ -50,6 +53,7 @@ public function testCarnavalMondayAfter1700() /** * Tests Carnaval Monday on or before 1700. + * @throws \ReflectionException */ public function testCarnavalMondayBefore1700() { @@ -59,6 +63,7 @@ public function testCarnavalMondayBefore1700() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +73,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/CarnavalTuesdayTest.php b/tests/Brazil/CarnavalTuesdayTest.php index d3c6dac0e..908abfbe0 100644 --- a/tests/Brazil/CarnavalTuesdayTest.php +++ b/tests/Brazil/CarnavalTuesdayTest.php @@ -36,6 +36,9 @@ class CarnavalTuesdayTest extends BrazilBaseTestCase implements YasumiTestCaseIn /** * Tests Carnaval Tuesday on or after 1700. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCarnavalTuesdayAfter1700() { @@ -50,6 +53,7 @@ public function testCarnavalTuesdayAfter1700() /** * Tests Carnaval Tuesday on or before 1700. + * @throws \ReflectionException */ public function testCarnavalTuesdayBefore1700() { @@ -59,6 +63,7 @@ public function testCarnavalTuesdayBefore1700() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +73,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/ChristmasDayTest.php b/tests/Brazil/ChristmasDayTest.php index 07c03273b..6fb1f5599 100644 --- a/tests/Brazil/ChristmasDayTest.php +++ b/tests/Brazil/ChristmasDayTest.php @@ -29,6 +29,8 @@ class ChristmasDayTest extends BrazilBaseTestCase implements YasumiTestCaseInter /** * Tests Christmas Day. + * @throws \Exception + * @throws \ReflectionException */ public function testChristmasDay() { @@ -43,6 +45,7 @@ public function testChristmasDay() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/CorpusChristiTest.php b/tests/Brazil/CorpusChristiTest.php index fbfcff107..8e8f49c68 100644 --- a/tests/Brazil/CorpusChristiTest.php +++ b/tests/Brazil/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends BrazilBaseTestCase implements YasumiTestCaseInte /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/EasterTest.php b/tests/Brazil/EasterTest.php index 333d821b7..e21021648 100644 --- a/tests/Brazil/EasterTest.php +++ b/tests/Brazil/EasterTest.php @@ -30,6 +30,8 @@ class EasterTest extends BrazilBaseTestCase implements YasumiTestCaseInterface /** * Tests Easter. + * @throws \Exception + * @throws \ReflectionException */ public function testEaster() { @@ -39,6 +41,7 @@ public function testEaster() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -52,6 +55,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/GoodFridayTest.php b/tests/Brazil/GoodFridayTest.php index 7a1625689..a07d06078 100644 --- a/tests/Brazil/GoodFridayTest.php +++ b/tests/Brazil/GoodFridayTest.php @@ -31,6 +31,9 @@ class GoodFridayTest extends BrazilBaseTestCase implements YasumiTestCaseInterfa /** * Tests Good Friday. + * + * @throws \Exception + * @throws \ReflectionException */ public function testGoodFriday() { @@ -45,6 +48,7 @@ public function testGoodFriday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/IndependenceDayTest.php b/tests/Brazil/IndependenceDayTest.php index a95b57461..24a58dec3 100644 --- a/tests/Brazil/IndependenceDayTest.php +++ b/tests/Brazil/IndependenceDayTest.php @@ -34,6 +34,8 @@ class IndependenceDayTest extends BrazilBaseTestCase implements YasumiTestCaseIn /** * Tests Dia da independência do Brasil on or after 1822. + * @throws \Exception + * @throws \ReflectionException */ public function testDiaDaIndependenciaDoBrasilAfter1822() { @@ -48,6 +50,7 @@ public function testDiaDaIndependenciaDoBrasilAfter1822() /** * Tests Dia da independência do Brasil on or before 1822. + * @throws \ReflectionException */ public function testDiaDaIndependenciaDoBrasilBefore1822() { @@ -57,6 +60,7 @@ public function testDiaDaIndependenciaDoBrasilBefore1822() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -71,6 +75,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/InternationalWorkersDayTest.php b/tests/Brazil/InternationalWorkersDayTest.php index 72ce6767e..9b2b1d529 100644 --- a/tests/Brazil/InternationalWorkersDayTest.php +++ b/tests/Brazil/InternationalWorkersDayTest.php @@ -29,6 +29,8 @@ class InternationalWorkersDayTest extends BrazilBaseTestCase implements YasumiTe /** * Tests International Workers' Day. + * @throws \Exception + * @throws \ReflectionException */ public function testInternationalWorkersDay() { @@ -43,6 +45,7 @@ public function testInternationalWorkersDay() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/NewYearsDayTest.php b/tests/Brazil/NewYearsDayTest.php index b5c41b0dc..b2a8dd7cc 100644 --- a/tests/Brazil/NewYearsDayTest.php +++ b/tests/Brazil/NewYearsDayTest.php @@ -29,6 +29,8 @@ class NewYearsDayTest extends BrazilBaseTestCase implements YasumiTestCaseInterf /** * Tests New Years Day. + * @throws \Exception + * @throws \ReflectionException */ public function testNewYearsDay() { @@ -43,6 +45,7 @@ public function testNewYearsDay() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/OurLadyOfAparecidaDayTest.php b/tests/Brazil/OurLadyOfAparecidaDayTest.php index 5f6a41db0..937feec16 100644 --- a/tests/Brazil/OurLadyOfAparecidaDayTest.php +++ b/tests/Brazil/OurLadyOfAparecidaDayTest.php @@ -34,6 +34,8 @@ class OurLadyOfAparecidaDayTest extends BrazilBaseTestCase implements YasumiTest /** * Tests Nossa Senhora Aparecida on or after 1980. + * @throws \Exception + * @throws \ReflectionException */ public function testNossaSenhoraAparecidaAfter1980() { @@ -48,6 +50,7 @@ public function testNossaSenhoraAparecidaAfter1980() /** * Tests Nossa Senhora Aparecida on or before 1980. + * @throws \ReflectionException */ public function testNossaSenhoraAparecidaBefore1980() { @@ -57,6 +60,7 @@ public function testNossaSenhoraAparecidaBefore1980() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -71,6 +75,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/ProclamationOfRepublicDayTest.php b/tests/Brazil/ProclamationOfRepublicDayTest.php index 4bc486ad3..b3626a23d 100644 --- a/tests/Brazil/ProclamationOfRepublicDayTest.php +++ b/tests/Brazil/ProclamationOfRepublicDayTest.php @@ -34,6 +34,8 @@ class ProclamationOfRepublicDayTest extends BrazilBaseTestCase implements Yasumi /** * Tests Proclamação da República on or after 1889. + * @throws \Exception + * @throws \ReflectionException */ public function testProclamacaoDaRepublicaAfter1889() { @@ -48,6 +50,7 @@ public function testProclamacaoDaRepublicaAfter1889() /** * Tests Proclamação da República on or before 1889. + * @throws \ReflectionException */ public function testProclamacaoDaRepublicaBefore1889() { @@ -57,6 +60,7 @@ public function testProclamacaoDaRepublicaBefore1889() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -71,6 +75,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Brazil/TiradentesDayTest.php b/tests/Brazil/TiradentesDayTest.php index 70692576d..505653bb5 100644 --- a/tests/Brazil/TiradentesDayTest.php +++ b/tests/Brazil/TiradentesDayTest.php @@ -34,6 +34,8 @@ class TiradentesDayTest extends BrazilBaseTestCase implements YasumiTestCaseInte /** * Tests Dia de Tiradentes on or after 1792. + * @throws \Exception + * @throws \ReflectionException */ public function testDiaDeTiradentesAfter1792() { @@ -48,6 +50,7 @@ public function testDiaDeTiradentesAfter1792() /** * Tests Dia de Tiradentes on or before 1792. + * @throws \ReflectionException */ public function testDiaDeTiradentesBefore1792() { @@ -57,6 +60,7 @@ public function testDiaDeTiradentesBefore1792() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/AllSaintsDayTest.php b/tests/Croatia/AllSaintsDayTest.php index 512877c86..dc9b2f291 100644 --- a/tests/Croatia/AllSaintsDayTest.php +++ b/tests/Croatia/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/AntifascistStruggleDayTest.php b/tests/Croatia/AntifascistStruggleDayTest.php index e5ad0da95..ca4616792 100644 --- a/tests/Croatia/AntifascistStruggleDayTest.php +++ b/tests/Croatia/AntifascistStruggleDayTest.php @@ -34,6 +34,8 @@ class AntifascistStruggleDayTest extends CroatiaBaseTestCase implements YasumiTe /** * Tests Day of Antifascist Struggle on or after 1941. + * @throws \Exception + * @throws \ReflectionException */ public function testAntifascistStruggleDayOnAfter1941() { @@ -48,6 +50,7 @@ public function testAntifascistStruggleDayOnAfter1941() /** * Tests Day of Antifascist Struggle before 1941. + * @throws \ReflectionException */ public function testAntifascistStruggleDayBefore1941() { @@ -60,6 +63,7 @@ public function testAntifascistStruggleDayBefore1941() /** * Tests translated name of Day of Antifascist Struggle. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/AssumptionOfMaryTest.php b/tests/Croatia/AssumptionOfMaryTest.php index 2d8efefd7..43afc4e21 100644 --- a/tests/Croatia/AssumptionOfMaryTest.php +++ b/tests/Croatia/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends CroatiaBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/ChristmasDayTest.php b/tests/Croatia/ChristmasDayTest.php index 56f3abb5f..d22d1824b 100644 --- a/tests/Croatia/ChristmasDayTest.php +++ b/tests/Croatia/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/CorpusChristiTest.php b/tests/Croatia/CorpusChristiTest.php index e6b38b94e..e524f95e1 100644 --- a/tests/Croatia/CorpusChristiTest.php +++ b/tests/Croatia/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends CroatiaBaseTestCase implements YasumiTestCaseInt /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/EasterMondayTest.php b/tests/Croatia/EasterMondayTest.php index 2a2df094a..35e0cbe65 100644 --- a/tests/Croatia/EasterMondayTest.php +++ b/tests/Croatia/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/EasterTest.php b/tests/Croatia/EasterTest.php index 0a3f944f4..a709c2e22 100644 --- a/tests/Croatia/EasterTest.php +++ b/tests/Croatia/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends CroatiaBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/EpiphanyTest.php b/tests/Croatia/EpiphanyTest.php index bc4d54acf..f0920e54d 100644 --- a/tests/Croatia/EpiphanyTest.php +++ b/tests/Croatia/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends CroatiaBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/HomelandThanksgivingDayTest.php b/tests/Croatia/HomelandThanksgivingDayTest.php index 5b024312e..bd69efd0c 100644 --- a/tests/Croatia/HomelandThanksgivingDayTest.php +++ b/tests/Croatia/HomelandThanksgivingDayTest.php @@ -34,6 +34,8 @@ class HomelandThanksgivingDayTest extends CroatiaBaseTestCase implements YasumiT /** * Tests Homeland Thanksgiving Day on or after 1995. + * @throws \Exception + * @throws \ReflectionException */ public function testHomelandThanksgivingDayOnAfter1995() { @@ -48,6 +50,7 @@ public function testHomelandThanksgivingDayOnAfter1995() /** * Tests Homeland Thanksgiving Day before 1995. + * @throws \ReflectionException */ public function testHomelandThanksgivingDayBefore1995() { @@ -60,6 +63,7 @@ public function testHomelandThanksgivingDayBefore1995() /** * Tests translated name of Homeland Thanksgiving Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/IndependenceDayTest.php b/tests/Croatia/IndependenceDayTest.php index d78a2ee59..99acac401 100644 --- a/tests/Croatia/IndependenceDayTest.php +++ b/tests/Croatia/IndependenceDayTest.php @@ -34,6 +34,8 @@ class IndependenceDayTest extends CroatiaBaseTestCase implements YasumiTestCaseI /** * Tests Independence Day on or after 1991. + * @throws \Exception + * @throws \ReflectionException */ public function testIndependenceDayOnAfter1991() { @@ -48,6 +50,7 @@ public function testIndependenceDayOnAfter1991() /** * Tests Independence Day before 1991. + * @throws \ReflectionException */ public function testIndependenceDayBefore1991() { @@ -60,6 +63,7 @@ public function testIndependenceDayBefore1991() /** * Tests translated name of Independence Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/InternationalWorkersDayTest.php b/tests/Croatia/InternationalWorkersDayTest.php index b77c1e8c0..8c869d27d 100644 --- a/tests/Croatia/InternationalWorkersDayTest.php +++ b/tests/Croatia/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends CroatiaBaseTestCase implements YasumiT * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Croatia/NewYearsDayTest.php b/tests/Croatia/NewYearsDayTest.php index cb21cbed8..7c9965be4 100644 --- a/tests/Croatia/NewYearsDayTest.php +++ b/tests/Croatia/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/StStephensDayTest.php b/tests/Croatia/StStephensDayTest.php index c1d61faee..1a1af0016 100644 --- a/tests/Croatia/StStephensDayTest.php +++ b/tests/Croatia/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which St. Stephen's Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function teststStephensDay($year, $expected) { @@ -43,6 +45,7 @@ public function teststStephensDay($year, $expected) * Returns a list of random test dates used for assertion of St. Stephen's Day. * * @return array list of test dates for St. Stephen's Day + * @throws \Exception */ public function stStephensDayDataProvider(): array { @@ -51,6 +54,7 @@ public function stStephensDayDataProvider(): array /** * Tests translated name of St. Stephen's Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Croatia/StatehoodDayTest.php b/tests/Croatia/StatehoodDayTest.php index e30801541..36d8ac74d 100644 --- a/tests/Croatia/StatehoodDayTest.php +++ b/tests/Croatia/StatehoodDayTest.php @@ -34,6 +34,8 @@ class StatehoodDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte /** * Tests Statehood Day on or after 1991. + * @throws \Exception + * @throws \ReflectionException */ public function testStatehoodDayOnAfter1991() { @@ -48,6 +50,7 @@ public function testStatehoodDayOnAfter1991() /** * Tests Statehood Day before 1991. + * @throws \ReflectionException */ public function testStatehoodDayBefore1991() { @@ -60,6 +63,7 @@ public function testStatehoodDayBefore1991() /** * Tests translated name of Statehood Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/ChristmasDayTest.php b/tests/CzechRepublic/ChristmasDayTest.php index b4b2737c5..e284b371f 100644 --- a/tests/CzechRepublic/ChristmasDayTest.php +++ b/tests/CzechRepublic/ChristmasDayTest.php @@ -37,6 +37,8 @@ class ChristmasDayTest extends CzechRepublicBaseTestCase implements YasumiTestCa * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -47,6 +49,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/ChristmasEveTest.php b/tests/CzechRepublic/ChristmasEveTest.php index 63efa0761..a5778a235 100644 --- a/tests/CzechRepublic/ChristmasEveTest.php +++ b/tests/CzechRepublic/ChristmasEveTest.php @@ -37,6 +37,8 @@ class ChristmasEveTest extends CzechRepublicBaseTestCase implements YasumiTestCa * * @param int $year the year for which Christmas Eve needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -47,6 +49,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/CzechRepublicTest.php b/tests/CzechRepublic/CzechRepublicTest.php index cf676b6c0..ef47ee528 100644 --- a/tests/CzechRepublic/CzechRepublicTest.php +++ b/tests/CzechRepublic/CzechRepublicTest.php @@ -30,6 +30,7 @@ class CzechRepublicTest extends CzechRepublicBaseTestCase /** * Tests if all official holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -51,6 +52,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the Czech Republic are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -59,6 +61,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the Czech Republic are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -67,6 +70,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the Czech Republic are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -75,6 +79,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the Czech Republic are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/CzechRepublic/CzechStateHoodDayTest.php b/tests/CzechRepublic/CzechStateHoodDayTest.php index 0e1f3aa58..b15defe00 100644 --- a/tests/CzechRepublic/CzechStateHoodDayTest.php +++ b/tests/CzechRepublic/CzechStateHoodDayTest.php @@ -37,6 +37,8 @@ class CzechStateHoodDayTest extends CzechRepublicBaseTestCase implements YasumiT * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -47,6 +49,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/EasterMondayTest.php b/tests/CzechRepublic/EasterMondayTest.php index 54a4223a3..8abd60961 100644 --- a/tests/CzechRepublic/EasterMondayTest.php +++ b/tests/CzechRepublic/EasterMondayTest.php @@ -33,6 +33,8 @@ class EasterMondayTest extends CzechRepublicBaseTestCase implements YasumiTestCa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -47,6 +49,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -60,6 +63,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/GoodFridayTest.php b/tests/CzechRepublic/GoodFridayTest.php index 93fd6dd18..7d5773008 100644 --- a/tests/CzechRepublic/GoodFridayTest.php +++ b/tests/CzechRepublic/GoodFridayTest.php @@ -33,6 +33,8 @@ class GoodFridayTest extends CzechRepublicBaseTestCase implements YasumiTestCase /** * Tests Good Friday. + * @throws \Exception + * @throws \ReflectionException */ public function testGoodFriday() { @@ -47,6 +49,7 @@ public function testGoodFriday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -60,6 +63,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php index 7ecfdd310..fe907cf91 100644 --- a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php +++ b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php @@ -33,6 +33,8 @@ class IndependentCzechoslovakStateDayTest extends CzechRepublicBaseTestCase impl * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/InternationalWorkersDayTest.php b/tests/CzechRepublic/InternationalWorkersDayTest.php index d35b6efba..e91695b5e 100644 --- a/tests/CzechRepublic/InternationalWorkersDayTest.php +++ b/tests/CzechRepublic/InternationalWorkersDayTest.php @@ -37,6 +37,8 @@ class InternationalWorkersDayTest extends CzechRepublicBaseTestCase implements Y * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -45,6 +47,7 @@ public function testHoliday($year, $expected) /** * Tests translated name of International Workers' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +61,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -68,6 +72,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/CzechRepublic/JanHusDayTest.php b/tests/CzechRepublic/JanHusDayTest.php index 74fca5818..18329d92d 100644 --- a/tests/CzechRepublic/JanHusDayTest.php +++ b/tests/CzechRepublic/JanHusDayTest.php @@ -33,6 +33,8 @@ class JanHusDayTest extends CzechRepublicBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/NewYearsDayTest.php b/tests/CzechRepublic/NewYearsDayTest.php index 7956dd2e3..dc34f9ae2 100644 --- a/tests/CzechRepublic/NewYearsDayTest.php +++ b/tests/CzechRepublic/NewYearsDayTest.php @@ -37,6 +37,8 @@ class NewYearsDayTest extends CzechRepublicBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -47,6 +49,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php index d5c37f2f8..cbf8cf118 100644 --- a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php @@ -37,6 +37,8 @@ class SaintsCyrilAndMethodiusDayTest extends CzechRepublicBaseTestCase implement * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -47,6 +49,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/SecondChristmasDayTest.php b/tests/CzechRepublic/SecondChristmasDayTest.php index dfeccb260..e32916252 100644 --- a/tests/CzechRepublic/SecondChristmasDayTest.php +++ b/tests/CzechRepublic/SecondChristmasDayTest.php @@ -37,6 +37,8 @@ class SecondChristmasDayTest extends CzechRepublicBaseTestCase implements Yasumi * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -47,6 +49,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php index b13b79705..f41dc8dcd 100644 --- a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php @@ -33,6 +33,8 @@ class StruggleForFreedomAndDemocracyDayTest extends CzechRepublicBaseTestCase im * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/CzechRepublic/VictoryInEuropeDayTest.php b/tests/CzechRepublic/VictoryInEuropeDayTest.php index 5bb871a6c..c2fd54950 100644 --- a/tests/CzechRepublic/VictoryInEuropeDayTest.php +++ b/tests/CzechRepublic/VictoryInEuropeDayTest.php @@ -37,6 +37,8 @@ class VictoryInEuropeDayTest extends CzechRepublicBaseTestCase implements Yasumi * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -47,6 +49,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -55,6 +58,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -68,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/AscensionDayTest.php b/tests/Denmark/AscensionDayTest.php index c841ffb79..f5d55a5b3 100644 --- a/tests/Denmark/AscensionDayTest.php +++ b/tests/Denmark/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInte /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 1f53ea257..9bf177125 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/ChristmasEveTest.php b/tests/Denmark/ChristmasEveTest.php index 8240e6fc7..29ff6c8bd 100644 --- a/tests/Denmark/ChristmasEveTest.php +++ b/tests/Denmark/ChristmasEveTest.php @@ -33,6 +33,8 @@ class ChristmasEveTest extends DenmarkBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/ConstitutionDayTest.php b/tests/Denmark/ConstitutionDayTest.php index 9e35e1243..3ee9503b0 100644 --- a/tests/Denmark/ConstitutionDayTest.php +++ b/tests/Denmark/ConstitutionDayTest.php @@ -34,6 +34,8 @@ class ConstitutionDayTest extends DenmarkBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/DenmarkTest.php b/tests/Denmark/DenmarkTest.php index 8ad12bf3c..754e63e74 100644 --- a/tests/Denmark/DenmarkTest.php +++ b/tests/Denmark/DenmarkTest.php @@ -26,6 +26,7 @@ class DenmarkTest extends DenmarkBaseTestCase /** * Tests if all official holidays in Denmark are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Denmark are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -59,6 +61,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Denmark are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -68,6 +71,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Denmark are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -76,6 +80,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Denmark are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Denmark/EasterMondayTest.php b/tests/Denmark/EasterMondayTest.php index 3dda8309b..f75f06579 100644 --- a/tests/Denmark/EasterMondayTest.php +++ b/tests/Denmark/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends DenmarkBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/EasterTest.php b/tests/Denmark/EasterTest.php index a8b1317f1..066820ac1 100644 --- a/tests/Denmark/EasterTest.php +++ b/tests/Denmark/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/GoodFridayTest.php b/tests/Denmark/GoodFridayTest.php index eb0dfd61a..e4a2ea66f 100644 --- a/tests/Denmark/GoodFridayTest.php +++ b/tests/Denmark/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends DenmarkBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/GreatPrayerDayTest.php b/tests/Denmark/GreatPrayerDayTest.php index 9bc4ee530..602d9c178 100644 --- a/tests/Denmark/GreatPrayerDayTest.php +++ b/tests/Denmark/GreatPrayerDayTest.php @@ -34,6 +34,8 @@ class GreatPrayerDayTest extends DenmarkBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/InternationalWorkersDayTest.php b/tests/Denmark/InternationalWorkersDayTest.php index d8513d750..72cf644e1 100644 --- a/tests/Denmark/InternationalWorkersDayTest.php +++ b/tests/Denmark/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends DenmarkBaseTestCase implements YasumiT * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -43,6 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { @@ -51,6 +54,7 @@ public function InternationalWorkersDayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/MaundyThursdayTest.php b/tests/Denmark/MaundyThursdayTest.php index d6f77870d..d04ee44a6 100644 --- a/tests/Denmark/MaundyThursdayTest.php +++ b/tests/Denmark/MaundyThursdayTest.php @@ -29,6 +29,8 @@ class MaundyThursdayTest extends DenmarkBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/NewYearsDayTest.php b/tests/Denmark/NewYearsDayTest.php index 9890701c1..00672a47c 100644 --- a/tests/Denmark/NewYearsDayTest.php +++ b/tests/Denmark/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/NewYearsEveTest.php b/tests/Denmark/NewYearsEveTest.php index 1354a2063..5199ca172 100644 --- a/tests/Denmark/NewYearsEveTest.php +++ b/tests/Denmark/NewYearsEveTest.php @@ -33,6 +33,8 @@ class NewYearsEveTest extends DenmarkBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/PentecostMondayTest.php b/tests/Denmark/PentecostMondayTest.php index 31437199e..217d54656 100644 --- a/tests/Denmark/PentecostMondayTest.php +++ b/tests/Denmark/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends DenmarkBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/PentecostTest.php b/tests/Denmark/PentecostTest.php index 318f29178..aca5a5aa2 100644 --- a/tests/Denmark/PentecostTest.php +++ b/tests/Denmark/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends DenmarkBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/SecondChristmasDayTest.php b/tests/Denmark/SecondChristmasDayTest.php index 014d7d17c..c1f0e5a66 100644 --- a/tests/Denmark/SecondChristmasDayTest.php +++ b/tests/Denmark/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends DenmarkBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php index 266005a43..23f6c9124 100644 --- a/tests/Denmark/SummerTimeTest.php +++ b/tests/Denmark/SummerTimeTest.php @@ -29,6 +29,9 @@ class SummerTimeTest extends DenmarkBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * + * @throws \Exception + * @throws \ReflectionException */ public function testSummerTime() { @@ -52,6 +55,7 @@ public function testSummerTime() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Denmark/WinterTimeTest.php b/tests/Denmark/WinterTimeTest.php index 82addfb23..9b27fb81d 100644 --- a/tests/Denmark/WinterTimeTest.php +++ b/tests/Denmark/WinterTimeTest.php @@ -29,6 +29,9 @@ class WinterTimeTest extends DenmarkBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * + * @throws \Exception + * @throws \ReflectionException */ public function testWinterTime() { @@ -53,6 +56,7 @@ public function testWinterTime() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/ChristmasDayTest.php b/tests/Estonia/ChristmasDayTest.php index 6ec7ceaaa..bbb396bc0 100644 --- a/tests/Estonia/ChristmasDayTest.php +++ b/tests/Estonia/ChristmasDayTest.php @@ -30,6 +30,7 @@ class ChristmasDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInte /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/ChristmasEveDayTest.php b/tests/Estonia/ChristmasEveDayTest.php index baa3e9898..3f8ff65c4 100644 --- a/tests/Estonia/ChristmasEveDayTest.php +++ b/tests/Estonia/ChristmasEveDayTest.php @@ -30,6 +30,7 @@ class ChristmasEveDayTest extends EstoniaBaseTestCase implements YasumiTestCaseI /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index b6b2740c9..10e4fdb82 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -44,6 +44,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -57,6 +60,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/EstoniaTest.php b/tests/Estonia/EstoniaTest.php index fcaa23c4e..cd014f7e3 100644 --- a/tests/Estonia/EstoniaTest.php +++ b/tests/Estonia/EstoniaTest.php @@ -25,6 +25,7 @@ class EstoniaTest extends EstoniaBaseTestCase { /** * Tests if all official holidays in Estonia are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -59,6 +60,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Estonia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -67,6 +69,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Estonia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -75,6 +78,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Estonia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -83,6 +87,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Estonia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Estonia/GoodFridayDayTest.php b/tests/Estonia/GoodFridayDayTest.php index ff026f07b..06b5d500d 100644 --- a/tests/Estonia/GoodFridayDayTest.php +++ b/tests/Estonia/GoodFridayDayTest.php @@ -45,6 +45,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -58,6 +61,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -71,6 +75,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/IndependenceDayTest.php b/tests/Estonia/IndependenceDayTest.php index 0acdad607..003a9928d 100644 --- a/tests/Estonia/IndependenceDayTest.php +++ b/tests/Estonia/IndependenceDayTest.php @@ -31,6 +31,7 @@ class IndependenceDayTest extends EstoniaBaseTestCase implements YasumiTestCaseI /** * Test if holiday is not defined before + * @throws \ReflectionException */ public function testHolidayBefore() { @@ -43,6 +44,8 @@ public function testHolidayBefore() /** * Test if holiday is defined after + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfter() { @@ -58,6 +61,8 @@ public function testHolidayAfter() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/InternationalWorkersDayTest.php b/tests/Estonia/InternationalWorkersDayTest.php index e0e8fc929..2b23a1976 100644 --- a/tests/Estonia/InternationalWorkersDayTest.php +++ b/tests/Estonia/InternationalWorkersDayTest.php @@ -30,6 +30,7 @@ class InternationalWorkersDayTest extends EstoniaBaseTestCase implements YasumiT /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/NewYearsDayTest.php b/tests/Estonia/NewYearsDayTest.php index 2d4eb171c..9ca4072dc 100644 --- a/tests/Estonia/NewYearsDayTest.php +++ b/tests/Estonia/NewYearsDayTest.php @@ -30,6 +30,7 @@ class NewYearsDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInter /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/PentecostTest.php b/tests/Estonia/PentecostTest.php index db963de11..515697936 100644 --- a/tests/Estonia/PentecostTest.php +++ b/tests/Estonia/PentecostTest.php @@ -45,6 +45,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -58,6 +61,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -71,6 +75,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/RestorationOfIndependenceDayTest.php b/tests/Estonia/RestorationOfIndependenceDayTest.php index 4eb5dda6a..865e55ff9 100644 --- a/tests/Estonia/RestorationOfIndependenceDayTest.php +++ b/tests/Estonia/RestorationOfIndependenceDayTest.php @@ -31,6 +31,7 @@ class RestorationOfIndependenceDayTest extends EstoniaBaseTestCase implements Ya /** * Test if holiday is not defined before + * @throws \ReflectionException */ public function testHolidayBefore() { @@ -43,6 +44,8 @@ public function testHolidayBefore() /** * Test if holiday is defined after + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfter() { @@ -58,6 +61,8 @@ public function testHolidayAfter() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/SecondChristmasDayTest.php b/tests/Estonia/SecondChristmasDayTest.php index f16e0f815..817c14ac1 100644 --- a/tests/Estonia/SecondChristmasDayTest.php +++ b/tests/Estonia/SecondChristmasDayTest.php @@ -30,6 +30,7 @@ class SecondChristmasDayTest extends EstoniaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/StJohnsDayTest.php b/tests/Estonia/StJohnsDayTest.php index 08519f33b..948fded65 100644 --- a/tests/Estonia/StJohnsDayTest.php +++ b/tests/Estonia/StJohnsDayTest.php @@ -30,6 +30,7 @@ class StJohnsDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterf /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Estonia/VictoryDayTest.php b/tests/Estonia/VictoryDayTest.php index 06f4c1dfb..5ef152431 100644 --- a/tests/Estonia/VictoryDayTest.php +++ b/tests/Estonia/VictoryDayTest.php @@ -31,6 +31,7 @@ class VictoryDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterf /** * Test if holiday is not defined before + * @throws \ReflectionException */ public function testHolidayBefore() { @@ -43,6 +44,8 @@ public function testHolidayBefore() /** * Test if holiday is defined after + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfter() { @@ -58,6 +61,8 @@ public function testHolidayAfter() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/AllSaintsDayTest.php b/tests/Finland/AllSaintsDayTest.php index 33f1acc24..6ae64cd71 100644 --- a/tests/Finland/AllSaintsDayTest.php +++ b/tests/Finland/AllSaintsDayTest.php @@ -35,6 +35,8 @@ class AllSaintsDayTest extends FinlandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -45,6 +47,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -69,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -82,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/AscensionDayTest.php b/tests/Finland/AscensionDayTest.php index 0aa4f837b..69200decf 100644 --- a/tests/Finland/AscensionDayTest.php +++ b/tests/Finland/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends FinlandBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/ChristmasDayTest.php b/tests/Finland/ChristmasDayTest.php index 791644adb..03d914abd 100644 --- a/tests/Finland/ChristmasDayTest.php +++ b/tests/Finland/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends FinlandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/EasterMondayTest.php b/tests/Finland/EasterMondayTest.php index 99c3c5fcb..9d36da287 100644 --- a/tests/Finland/EasterMondayTest.php +++ b/tests/Finland/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends FinlandBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/EasterTest.php b/tests/Finland/EasterTest.php index 89c595baa..a1fc29b72 100644 --- a/tests/Finland/EasterTest.php +++ b/tests/Finland/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends FinlandBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/EpiphanyTest.php b/tests/Finland/EpiphanyTest.php index 1c70f49fe..42068c417 100644 --- a/tests/Finland/EpiphanyTest.php +++ b/tests/Finland/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends FinlandBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/FinlandTest.php b/tests/Finland/FinlandTest.php index e48a60c6f..77f618092 100644 --- a/tests/Finland/FinlandTest.php +++ b/tests/Finland/FinlandTest.php @@ -26,6 +26,7 @@ class FinlandTest extends FinlandBaseTestCase /** * Tests if all official holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -56,6 +58,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -64,6 +67,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -72,6 +76,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Finland/GoodFridayTest.php b/tests/Finland/GoodFridayTest.php index 1e27765e1..8e3b705cc 100644 --- a/tests/Finland/GoodFridayTest.php +++ b/tests/Finland/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends FinlandBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/IndependenceDayTest.php b/tests/Finland/IndependenceDayTest.php index 17d1e30ee..3ff01f80e 100644 --- a/tests/Finland/IndependenceDayTest.php +++ b/tests/Finland/IndependenceDayTest.php @@ -34,6 +34,8 @@ class IndependenceDayTest extends FinlandBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/InternationalWorkersDayTest.php b/tests/Finland/InternationalWorkersDayTest.php index fc34df14e..ca7976741 100644 --- a/tests/Finland/InternationalWorkersDayTest.php +++ b/tests/Finland/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends FinlandBaseTestCase implements YasumiT * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Finland/NewYearsDayTest.php b/tests/Finland/NewYearsDayTest.php index da0fe5dde..f2f7dd67e 100644 --- a/tests/Finland/NewYearsDayTest.php +++ b/tests/Finland/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends FinlandBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/PentecostTest.php b/tests/Finland/PentecostTest.php index a86851e9b..15744e5ee 100644 --- a/tests/Finland/PentecostTest.php +++ b/tests/Finland/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends FinlandBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/SecondChristmasDayTest.php b/tests/Finland/SecondChristmasDayTest.php index be7f6d90c..20f00b434 100644 --- a/tests/Finland/SecondChristmasDayTest.php +++ b/tests/Finland/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends FinlandBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Finland/stJohnsDayTest.php b/tests/Finland/stJohnsDayTest.php index cc5452cff..5f35708da 100644 --- a/tests/Finland/stJohnsDayTest.php +++ b/tests/Finland/stJohnsDayTest.php @@ -39,6 +39,8 @@ class stJohnsDayTest extends FinlandBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday before it was adjusted. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayBeforeAdjustment() { @@ -53,6 +55,7 @@ public function testHolidayBeforeAdjustment() /** * Tests the holiday before it was adjusted. + * @throws \ReflectionException */ public function testHolidayAfterAdjustment() { @@ -76,6 +79,7 @@ public function testHolidayAfterAdjustment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/AllSaintsDayTest.php b/tests/France/AllSaintsDayTest.php index adcfe3093..e49b82801 100644 --- a/tests/France/AllSaintsDayTest.php +++ b/tests/France/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends FranceBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/France/ArmisticeDayTest.php b/tests/France/ArmisticeDayTest.php index a9f45cf73..9422cfa7e 100644 --- a/tests/France/ArmisticeDayTest.php +++ b/tests/France/ArmisticeDayTest.php @@ -34,6 +34,8 @@ class ArmisticeDayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * Tests Armistice Day on or after 1919. + * @throws \Exception + * @throws \ReflectionException */ public function testArmisticeDayOnAfter1919() { @@ -48,6 +50,7 @@ public function testArmisticeDayOnAfter1919() /** * Tests Armistice Day before 1919. + * @throws \ReflectionException */ public function testArmisticeDayBefore1919() { @@ -60,6 +63,7 @@ public function testArmisticeDayBefore1919() /** * Tests translated name of Armistice Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/AscensionDayTest.php b/tests/France/AscensionDayTest.php index 44c5757c2..e06e4cb81 100644 --- a/tests/France/AscensionDayTest.php +++ b/tests/France/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/AssumptionOfMaryTest.php b/tests/France/AssumptionOfMaryTest.php index b5d0454cc..712985b84 100644 --- a/tests/France/AssumptionOfMaryTest.php +++ b/tests/France/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends FranceBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/France/BasRhin/BasRhinTest.php b/tests/France/BasRhin/BasRhinTest.php index 14ed3f17e..899bee13d 100644 --- a/tests/France/BasRhin/BasRhinTest.php +++ b/tests/France/BasRhin/BasRhinTest.php @@ -26,6 +26,7 @@ class BasRhinTest extends BasRhinBaseTestCase /** * Tests if all official holidays in Bas-Rhin are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Bas-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -56,6 +58,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Bas-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -64,6 +67,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Bas-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -72,6 +76,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Bas-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/France/BasRhin/GoodFridayTest.php b/tests/France/BasRhin/GoodFridayTest.php index f0988ef49..8ab9404ce 100644 --- a/tests/France/BasRhin/GoodFridayTest.php +++ b/tests/France/BasRhin/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends BasRhinBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/BasRhin/stStephensDayTest.php b/tests/France/BasRhin/stStephensDayTest.php index d8188d423..614d4c475 100644 --- a/tests/France/BasRhin/stStephensDayTest.php +++ b/tests/France/BasRhin/stStephensDayTest.php @@ -33,6 +33,8 @@ class stStephensDayTest extends BasRhinBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/BastilleDayTest.php b/tests/France/BastilleDayTest.php index 8818e607e..d19fd90c7 100644 --- a/tests/France/BastilleDayTest.php +++ b/tests/France/BastilleDayTest.php @@ -34,6 +34,8 @@ class BastilleDayTest extends FranceBaseTestCase implements YasumiTestCaseInterf /** * Tests Bastille Day on or after 1790. + * @throws \Exception + * @throws \ReflectionException */ public function testBastilleDayOnAfter1790() { @@ -48,6 +50,7 @@ public function testBastilleDayOnAfter1790() /** * Tests Bastille Day before 1790. + * @throws \ReflectionException */ public function testBastilleDayBefore1790() { @@ -60,6 +63,7 @@ public function testBastilleDayBefore1790() /** * Tests translated name of Bastille Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/ChristmasDayTest.php b/tests/France/ChristmasDayTest.php index ed9443669..baa2d578a 100644 --- a/tests/France/ChristmasDayTest.php +++ b/tests/France/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends FranceBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/EasterMondayTest.php b/tests/France/EasterMondayTest.php index f24074d7b..175690e02 100644 --- a/tests/France/EasterMondayTest.php +++ b/tests/France/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/FranceTest.php b/tests/France/FranceTest.php index eb22d8031..dfcf1b3ef 100644 --- a/tests/France/FranceTest.php +++ b/tests/France/FranceTest.php @@ -26,6 +26,7 @@ class FranceTest extends FranceBaseTestCase /** * Tests if all official holidays in France are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in France are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -54,6 +56,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in France are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -62,6 +65,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in France are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -70,6 +74,7 @@ public function testBankHolidays() /** * Tests if all other holidays in France are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/France/HautRhin/GoodFridayTest.php b/tests/France/HautRhin/GoodFridayTest.php index d713f8283..04111ad53 100644 --- a/tests/France/HautRhin/GoodFridayTest.php +++ b/tests/France/HautRhin/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends HautRhinBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/HautRhin/HautRhinTest.php b/tests/France/HautRhin/HautRhinTest.php index 5d1326294..951cd185c 100644 --- a/tests/France/HautRhin/HautRhinTest.php +++ b/tests/France/HautRhin/HautRhinTest.php @@ -26,6 +26,7 @@ class HautRhinTest extends HautRhinBaseTestCase /** * Tests if all official holidays in Haut-Rhin are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Haut-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -56,6 +58,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Haut-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -64,6 +67,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Haut-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -72,6 +76,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Haut-Rhin (France) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/France/HautRhin/stStephensDayTest.php b/tests/France/HautRhin/stStephensDayTest.php index 1d7e3f42d..c2a1d8761 100644 --- a/tests/France/HautRhin/stStephensDayTest.php +++ b/tests/France/HautRhin/stStephensDayTest.php @@ -33,6 +33,8 @@ class stStephensDayTest extends HautRhinBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/InternationalWorkersDayTest.php b/tests/France/InternationalWorkersDayTest.php index e3c0368d9..6d6e8eacf 100644 --- a/tests/France/InternationalWorkersDayTest.php +++ b/tests/France/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends FranceBaseTestCase implements YasumiTe * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests translated name of International Workers' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/France/Moselle/GoodFridayTest.php b/tests/France/Moselle/GoodFridayTest.php index d462d090f..7496beb69 100644 --- a/tests/France/Moselle/GoodFridayTest.php +++ b/tests/France/Moselle/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends MoselleBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/Moselle/MoselleTest.php b/tests/France/Moselle/MoselleTest.php index 58a7ef937..be5d37343 100644 --- a/tests/France/Moselle/MoselleTest.php +++ b/tests/France/Moselle/MoselleTest.php @@ -26,6 +26,7 @@ class MoselleTest extends MoselleBaseTestCase /** * Tests if all official holidays in Moselle are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Moselle (France) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -56,6 +58,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Moselle (France) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -64,6 +67,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Moselle (France) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -72,6 +76,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Moselle (France) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/France/Moselle/stStephensDayTest.php b/tests/France/Moselle/stStephensDayTest.php index 370005171..203b25760 100644 --- a/tests/France/Moselle/stStephensDayTest.php +++ b/tests/France/Moselle/stStephensDayTest.php @@ -33,6 +33,8 @@ class stStephensDayTest extends MoselleBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/NewYearsDayTest.php b/tests/France/NewYearsDayTest.php index 6e740a140..058bff983 100644 --- a/tests/France/NewYearsDayTest.php +++ b/tests/France/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends FranceBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/France/PentecostMondayTest.php b/tests/France/PentecostMondayTest.php index 6a1036790..39b7e0e37 100644 --- a/tests/France/PentecostMondayTest.php +++ b/tests/France/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends FranceBaseTestCase implements YasumiTestCaseIn /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/France/VictoryInEuropeDayTest.php b/tests/France/VictoryInEuropeDayTest.php index ebfc5212c..d07dd3cb9 100644 --- a/tests/France/VictoryInEuropeDayTest.php +++ b/tests/France/VictoryInEuropeDayTest.php @@ -34,6 +34,8 @@ class VictoryInEuropeDayTest extends FranceBaseTestCase implements YasumiTestCas /** * Tests Victory In Europe Day on or after 1945. + * @throws \Exception + * @throws \ReflectionException */ public function testVictoryInEuropeDayOnAfter1945() { @@ -48,6 +50,7 @@ public function testVictoryInEuropeDayOnAfter1945() /** * Tests Victory In Europe Day before 1945. + * @throws \ReflectionException */ public function testVictoryInEuropeDayBefore1945() { @@ -60,6 +63,7 @@ public function testVictoryInEuropeDayBefore1945() /** * Tests translated name of Victory in Europe Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/AscensionDayTest.php b/tests/Germany/AscensionDayTest.php index 85339ed2b..0729f15a0 100644 --- a/tests/Germany/AscensionDayTest.php +++ b/tests/Germany/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends GermanyBaseTestCase implements YasumiTestCaseInte /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php index 0219d260f..ddb7b4de0 100644 --- a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php +++ b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends BadenWurttembergBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php index a81203c9c..61556ca0e 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php @@ -26,6 +26,7 @@ class BadenWurttembergTest extends BadenWurttembergBaseTestCase /** * Tests if all official holidays in Baden-Württemberg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Baden-Württemberg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Baden-Württemberg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Baden-Württemberg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Baden-Württemberg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php index 96df7253c..dff344421 100644 --- a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php +++ b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends BadenWurttembergBaseTestCase implements YasumiTe /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/BadenWurttemberg/EpiphanyTest.php b/tests/Germany/BadenWurttemberg/EpiphanyTest.php index eced86da4..0e7e7227c 100644 --- a/tests/Germany/BadenWurttemberg/EpiphanyTest.php +++ b/tests/Germany/BadenWurttemberg/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends BadenWurttembergBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Bavaria/AllSaintsDayTest.php b/tests/Germany/Bavaria/AllSaintsDayTest.php index 8925f21be..4f34684d1 100644 --- a/tests/Germany/Bavaria/AllSaintsDayTest.php +++ b/tests/Germany/Bavaria/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends BavariaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Bavaria/BavariaTest.php b/tests/Germany/Bavaria/BavariaTest.php index 20e502290..5e62113d5 100644 --- a/tests/Germany/Bavaria/BavariaTest.php +++ b/tests/Germany/Bavaria/BavariaTest.php @@ -26,6 +26,7 @@ class BavariaTest extends BavariaBaseTestCase /** * Tests if all official holidays in Bavaria (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Bavaria (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Bavaria (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Bavaria (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Bavaria (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Bavaria/CorpusChristiTest.php b/tests/Germany/Bavaria/CorpusChristiTest.php index 05ef659ef..90929ee16 100644 --- a/tests/Germany/Bavaria/CorpusChristiTest.php +++ b/tests/Germany/Bavaria/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends BavariaBaseTestCase implements YasumiTestCaseInt /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Bavaria/EpiphanyTest.php b/tests/Germany/Bavaria/EpiphanyTest.php index f2de9bb7f..e9d1b14d1 100644 --- a/tests/Germany/Bavaria/EpiphanyTest.php +++ b/tests/Germany/Bavaria/EpiphanyTest.php @@ -34,6 +34,8 @@ class EpiphanyTest extends BavariaBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -44,6 +46,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -52,6 +55,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Berlin/BerlinTest.php b/tests/Germany/Berlin/BerlinTest.php index 8d61a07c2..2403411c5 100644 --- a/tests/Germany/Berlin/BerlinTest.php +++ b/tests/Germany/Berlin/BerlinTest.php @@ -26,6 +26,7 @@ class BerlinTest extends BerlinBaseTestCase /** * Tests if all official holidays in Berlin (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Berlin (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Berlin (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Berlin (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Berlin (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Brandenburg/BrandenburgTest.php b/tests/Germany/Brandenburg/BrandenburgTest.php index b010041d7..ebe148614 100644 --- a/tests/Germany/Brandenburg/BrandenburgTest.php +++ b/tests/Germany/Brandenburg/BrandenburgTest.php @@ -26,6 +26,7 @@ class BrandenburgTest extends BrandenburgBaseTestCase /** * Tests if all official holidays in Brandenburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -55,6 +56,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Brandenburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -63,6 +65,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Brandenburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -71,6 +74,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Brandenburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -79,6 +83,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Brandenburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Brandenburg/ReformationDayTest.php b/tests/Germany/Brandenburg/ReformationDayTest.php index fa7d2ffaf..a946c8b4c 100644 --- a/tests/Germany/Brandenburg/ReformationDayTest.php +++ b/tests/Germany/Brandenburg/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends BrandenburgBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Bremen/BremenTest.php b/tests/Germany/Bremen/BremenTest.php index 51f807484..fdcd1da02 100644 --- a/tests/Germany/Bremen/BremenTest.php +++ b/tests/Germany/Bremen/BremenTest.php @@ -26,6 +26,7 @@ class BremenTest extends BremenBaseTestCase /** * Tests if all official holidays in Bremen (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Bremen (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Bremen (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Bremen (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Bremen (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Bremen/ReformationDayTest.php b/tests/Germany/Bremen/ReformationDayTest.php index 82e672e32..6ccf1620d 100644 --- a/tests/Germany/Bremen/ReformationDayTest.php +++ b/tests/Germany/Bremen/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends BremenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/ChristmasTest.php b/tests/Germany/ChristmasTest.php index 7cfd8ff8d..5692fcf27 100644 --- a/tests/Germany/ChristmasTest.php +++ b/tests/Germany/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends GermanyBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/EasterMondayTest.php b/tests/Germany/EasterMondayTest.php index 651b3f518..13533668d 100644 --- a/tests/Germany/EasterMondayTest.php +++ b/tests/Germany/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends GermanyBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/GermanUnityDayTest.php b/tests/Germany/GermanUnityDayTest.php index 866688f0e..3b85cb0df 100644 --- a/tests/Germany/GermanUnityDayTest.php +++ b/tests/Germany/GermanUnityDayTest.php @@ -34,6 +34,8 @@ class GermanUnityDayTest extends GermanyBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/GermanyTest.php b/tests/Germany/GermanyTest.php index a22574b84..5cc1561c9 100644 --- a/tests/Germany/GermanyTest.php +++ b/tests/Germany/GermanyTest.php @@ -26,6 +26,7 @@ class GermanyTest extends GermanyBaseTestCase /** * Tests if all official holidays in Finland are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Germany are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Germany are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Germany are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Germany are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/GoodFridayTest.php b/tests/Germany/GoodFridayTest.php index 2b9e9b5ab..e1a75b14b 100644 --- a/tests/Germany/GoodFridayTest.php +++ b/tests/Germany/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends GermanyBaseTestCase implements YasumiTestCaseInterf /** * Tests Good Friday. + * @throws \Exception + * @throws \ReflectionException */ public function testGoodFriday() { @@ -43,6 +45,7 @@ public function testGoodFriday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index 1d75cf849..9dc4dda74 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -39,6 +39,8 @@ class DayOfReformationTest extends HamburgBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Hamburg/HamburgTest.php b/tests/Germany/Hamburg/HamburgTest.php index b4244967c..e2b804ee3 100644 --- a/tests/Germany/Hamburg/HamburgTest.php +++ b/tests/Germany/Hamburg/HamburgTest.php @@ -26,6 +26,7 @@ class HamburgTest extends HamburgBaseTestCase /** * Tests if all official holidays in Hamburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Hamburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Hamburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Hamburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Hamburg (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Hesse/CorpusChristiTest.php b/tests/Germany/Hesse/CorpusChristiTest.php index f44557068..bdb055cd8 100644 --- a/tests/Germany/Hesse/CorpusChristiTest.php +++ b/tests/Germany/Hesse/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends HesseBaseTestCase implements YasumiTestCaseInter /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Hesse/HesseTest.php b/tests/Germany/Hesse/HesseTest.php index a1d80f7ca..96873095e 100644 --- a/tests/Germany/Hesse/HesseTest.php +++ b/tests/Germany/Hesse/HesseTest.php @@ -26,6 +26,7 @@ class HesseTest extends HesseBaseTestCase /** * Tests if all official holidays in Hesse (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Hesse (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Hesse (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Hesse (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Hesse (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/InternationalWorkersDayTest.php b/tests/Germany/InternationalWorkersDayTest.php index 5c5aed749..dc1e2f499 100644 --- a/tests/Germany/InternationalWorkersDayTest.php +++ b/tests/Germany/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends GermanyBaseTestCase implements YasumiT * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests translated name of International Workers' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Germany/LowerSaxony/LowerSaxonyTest.php b/tests/Germany/LowerSaxony/LowerSaxonyTest.php index 50e667b70..6531cf949 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyTest.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyTest.php @@ -26,6 +26,7 @@ class LowerSaxonyTest extends LowerSaxonyBaseTestCase /** * Tests if all official holidays in Lower Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Lower Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Lower Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Lower Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Lower Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/LowerSaxony/ReformationDayTest.php b/tests/Germany/LowerSaxony/ReformationDayTest.php index 98271c3e8..28ff0d2ae 100644 --- a/tests/Germany/LowerSaxony/ReformationDayTest.php +++ b/tests/Germany/LowerSaxony/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends LowerSaxonyBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php index b82299f36..066b17ba9 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php @@ -26,6 +26,7 @@ class MecklenburgWesternPomeraniaTest extends MecklenburgWesternPomeraniaBaseTes /** * Tests if all official holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -53,6 +54,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -61,6 +63,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -69,6 +72,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -77,6 +81,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php index 8e27cb89c..1801b777f 100644 --- a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php @@ -36,6 +36,7 @@ class ReformationDayTest extends MecklenburgWesternPomeraniaBaseTestCase impleme * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +52,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -63,6 +65,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -76,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/NewYearsDayTest.php b/tests/Germany/NewYearsDayTest.php index 54476d9db..0ddbd68cb 100644 --- a/tests/Germany/NewYearsDayTest.php +++ b/tests/Germany/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends GermanyBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php index 7b97171b4..5bee82012 100644 --- a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends NorthRhineWestphaliaBaseTestCase implements Yasum * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php index 1b381199e..7c17463ac 100644 --- a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php +++ b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends NorthRhineWestphaliaBaseTestCase implements Yasu /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php index b6afc1334..3c581c7aa 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php @@ -26,6 +26,7 @@ class NorthRhineWestphaliaTest extends NorthRhineWestphaliaBaseTestCase /** * Tests if all official holidays in North Rhine-Westphalia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in North Rhine-Westphalia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in North Rhine-Westphalia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in North Rhine-Westphalia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in North Rhine-Westphalia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/PentecostMondayTest.php b/tests/Germany/PentecostMondayTest.php index 2b60ed091..2404206d7 100644 --- a/tests/Germany/PentecostMondayTest.php +++ b/tests/Germany/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends GermanyBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/ReformationDay2017Test.php b/tests/Germany/ReformationDay2017Test.php index b361b98ea..fe1ac2c75 100644 --- a/tests/Germany/ReformationDay2017Test.php +++ b/tests/Germany/ReformationDay2017Test.php @@ -34,6 +34,8 @@ class ReformationDay2017Test extends GermanyBaseTestCase implements YasumiTestCa /** * Test the holiday defined in this test upon establishment + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnEstablishment() { @@ -47,6 +49,7 @@ public function testHolidayOnEstablishment() /** * Test the holiday defined in this test before establishment + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -59,6 +62,7 @@ public function testHolidayBeforeEstablishment() /** * Test the holiday defined in this test after completion + * @throws \ReflectionException */ public function testHolidayAfterCompletion() { @@ -67,6 +71,7 @@ public function testHolidayAfterCompletion() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -80,6 +85,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php index e8f3bf661..ee3bc3206 100644 --- a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php +++ b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends RhinelandPalatinateBaseTestCase implements Yasumi * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php index c6860352d..d3d1a6717 100644 --- a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php +++ b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends RhinelandPalatinateBaseTestCase implements Yasum /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php index 3aa98a78a..ff8036852 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php @@ -26,6 +26,7 @@ class RhinelandPalatinateTest extends RhinelandPalatinateBaseTestCase /** * Tests if all official holidays in Rhineland Palatinate (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Rhineland Palatinate (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Rhineland Palatinate (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Rhineland Palatinate (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Rhineland Palatinate (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Saarland/AllSaintsDayTest.php b/tests/Germany/Saarland/AllSaintsDayTest.php index bf5569427..bb0e54161 100644 --- a/tests/Germany/Saarland/AllSaintsDayTest.php +++ b/tests/Germany/Saarland/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends SaarlandBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Saarland/AssumptionOfMaryTest.php b/tests/Germany/Saarland/AssumptionOfMaryTest.php index 430761681..167a3ae37 100644 --- a/tests/Germany/Saarland/AssumptionOfMaryTest.php +++ b/tests/Germany/Saarland/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends SaarlandBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Saarland/CorpusChristiTest.php b/tests/Germany/Saarland/CorpusChristiTest.php index f80bf4dae..5f3e7c3e2 100644 --- a/tests/Germany/Saarland/CorpusChristiTest.php +++ b/tests/Germany/Saarland/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends SaarlandBaseTestCase implements YasumiTestCaseIn /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Saarland/SaarlandTest.php b/tests/Germany/Saarland/SaarlandTest.php index a8abbace4..4f0c8603f 100644 --- a/tests/Germany/Saarland/SaarlandTest.php +++ b/tests/Germany/Saarland/SaarlandTest.php @@ -26,6 +26,7 @@ class SaarlandTest extends SaarlandBaseTestCase /** * Tests if all official holidays in Saarland (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Saarland (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Saarland (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Saarland (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Saarland (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/Saxony/ReformationDayTest.php b/tests/Germany/Saxony/ReformationDayTest.php index b8dc0ed85..d943e737b 100644 --- a/tests/Germany/Saxony/ReformationDayTest.php +++ b/tests/Germany/Saxony/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends SaxonyBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php index 60c1a53de..6f77218d0 100644 --- a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php +++ b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php @@ -39,6 +39,8 @@ class RepentanceAndPrayerDayTest extends SaxonyBaseTestCase implements YasumiTes /** * Tests the holiday defined in this test on or after establishment. + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayOnAfterEstablishment() { @@ -56,6 +58,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -68,6 +71,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +85,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Saxony/SaxonyTest.php b/tests/Germany/Saxony/SaxonyTest.php index bc0ec85c9..88c7ca554 100644 --- a/tests/Germany/Saxony/SaxonyTest.php +++ b/tests/Germany/Saxony/SaxonyTest.php @@ -26,6 +26,7 @@ class SaxonyTest extends SaxonyBaseTestCase /** * Tests if all official holidays in Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -57,6 +58,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -65,6 +67,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -73,6 +76,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -81,6 +85,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Saxony (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php index aaaf6b1f1..8098983b3 100644 --- a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php +++ b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php @@ -34,6 +34,8 @@ class EpiphanyTest extends SaxonyAnhaltBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -44,6 +46,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -52,6 +55,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php index d283f9d17..6effb9c47 100644 --- a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php +++ b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends SaxonyAnhaltBaseTestCase implements YasumiTestC * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php index 46fe9e798..9db13bf7b 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php @@ -26,6 +26,7 @@ class SaxonyAnhaltTest extends SaxonyAnhaltBaseTestCase /** * Tests if all official holidays in Saxony-Anhalt (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -53,6 +54,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Saxony-Anhalt (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -61,6 +63,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Saxony-Anhalt (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -69,6 +72,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Saxony-Anhalt (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -77,6 +81,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Saxony-Anhalt (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/SchleswigHolstein/ReformationDayTest.php b/tests/Germany/SchleswigHolstein/ReformationDayTest.php index 3005fd835..6b50efeaa 100644 --- a/tests/Germany/SchleswigHolstein/ReformationDayTest.php +++ b/tests/Germany/SchleswigHolstein/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends SchleswigHolsteinBaseTestCase implements Yasumi * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php index a13e28c8a..d97b452d9 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php @@ -26,6 +26,7 @@ class SchleswigHolsteinTest extends SchleswigHolsteinBaseTestCase /** * Tests if all official holidays in Schleswig-Holstein (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Schleswig-Holstein (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Schleswig-Holstein (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Schleswig-Holstein (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Schleswig-Holstein (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Germany/SecondChristmasDayTest.php b/tests/Germany/SecondChristmasDayTest.php index 166281e3d..6c891c206 100644 --- a/tests/Germany/SecondChristmasDayTest.php +++ b/tests/Germany/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends GermanyBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Thuringia/ReformationDayTest.php b/tests/Germany/Thuringia/ReformationDayTest.php index 712d1a7ac..a982fa027 100644 --- a/tests/Germany/Thuringia/ReformationDayTest.php +++ b/tests/Germany/Thuringia/ReformationDayTest.php @@ -39,6 +39,8 @@ class ReformationDayTest extends ThuringiaBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -64,6 +67,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -76,6 +80,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Germany/Thuringia/ThuringiaTest.php b/tests/Germany/Thuringia/ThuringiaTest.php index 7baed4490..31e9d9b0e 100644 --- a/tests/Germany/Thuringia/ThuringiaTest.php +++ b/tests/Germany/Thuringia/ThuringiaTest.php @@ -26,6 +26,7 @@ class ThuringiaTest extends ThuringiaBaseTestCase /** * Tests if all official holidays in Thuringia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -53,6 +54,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Thuringia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -61,6 +63,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Thuringia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -69,6 +72,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Thuringia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -77,6 +81,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Thuringia (Germany) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Greece/AnnunciationTest.php b/tests/Greece/AnnunciationTest.php index 243020387..98eebc0bd 100644 --- a/tests/Greece/AnnunciationTest.php +++ b/tests/Greece/AnnunciationTest.php @@ -33,6 +33,8 @@ class AnnunciationTest extends GreeceBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/AscensionDayTest.php b/tests/Greece/AscensionDayTest.php index 6c701de3f..532c68355 100644 --- a/tests/Greece/AscensionDayTest.php +++ b/tests/Greece/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends GreeceBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/AssumptionOfMaryTest.php b/tests/Greece/AssumptionOfMaryTest.php index c0efba2e9..505a9122e 100644 --- a/tests/Greece/AssumptionOfMaryTest.php +++ b/tests/Greece/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends GreeceBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/ChristmasDayTest.php b/tests/Greece/ChristmasDayTest.php index 137df76f8..3cc8b1ce0 100644 --- a/tests/Greece/ChristmasDayTest.php +++ b/tests/Greece/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends GreeceBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/CleanMondayTest.php b/tests/Greece/CleanMondayTest.php index aec8d9724..a14414d05 100644 --- a/tests/Greece/CleanMondayTest.php +++ b/tests/Greece/CleanMondayTest.php @@ -29,6 +29,8 @@ class CleanMondayTest extends GreeceBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/EasterMondayTest.php b/tests/Greece/EasterMondayTest.php index 4ad98900c..8d443689e 100644 --- a/tests/Greece/EasterMondayTest.php +++ b/tests/Greece/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends GreeceBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/EasterTest.php b/tests/Greece/EasterTest.php index 9de92788c..b679b838a 100644 --- a/tests/Greece/EasterTest.php +++ b/tests/Greece/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends GreeceBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of Easter. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/EpiphanyTest.php b/tests/Greece/EpiphanyTest.php index c71c82194..12aad19c7 100644 --- a/tests/Greece/EpiphanyTest.php +++ b/tests/Greece/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends GreeceBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Epiphany. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/GreeceTest.php b/tests/Greece/GreeceTest.php index 08e604154..62614c6ff 100644 --- a/tests/Greece/GreeceTest.php +++ b/tests/Greece/GreeceTest.php @@ -26,6 +26,7 @@ class GreeceTest extends GreeceBaseTestCase /** * Tests if all official holidays in Greece are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -50,6 +51,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Greece are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Greece are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Greece are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Greece are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Greece/IndepencenceDayTest.php b/tests/Greece/IndepencenceDayTest.php index a74492980..ac8c5f2fe 100644 --- a/tests/Greece/IndepencenceDayTest.php +++ b/tests/Greece/IndepencenceDayTest.php @@ -34,6 +34,8 @@ class IndepencenceDayTest extends GreeceBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -48,6 +50,7 @@ public function testHoliday() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/InternationalWorkersDayTest.php b/tests/Greece/InternationalWorkersDayTest.php index a2dc2bd15..11c23a149 100644 --- a/tests/Greece/InternationalWorkersDayTest.php +++ b/tests/Greece/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends GreeceBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests translated name of International Workers' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Greece/NewYearsDayTest.php b/tests/Greece/NewYearsDayTest.php index c74c847b3..6933359cd 100644 --- a/tests/Greece/NewYearsDayTest.php +++ b/tests/Greece/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends GreeceBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Greece/OhiDayTest.php b/tests/Greece/OhiDayTest.php index 386b2e0bc..c1198addc 100644 --- a/tests/Greece/OhiDayTest.php +++ b/tests/Greece/OhiDayTest.php @@ -34,6 +34,8 @@ class OhiDayTest extends GreeceBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -48,6 +50,7 @@ public function testHoliday() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/PentecostMondayTest.php b/tests/Greece/PentecostMondayTest.php index 13d67d186..6d1fc63c6 100644 --- a/tests/Greece/PentecostMondayTest.php +++ b/tests/Greece/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends GreeceBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/PentecostTest.php b/tests/Greece/PentecostTest.php index ee9cf8719..4cc535829 100644 --- a/tests/Greece/PentecostTest.php +++ b/tests/Greece/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends GreeceBaseTestCase implements YasumiTestCaseInterfac /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/PolytechnioTest.php b/tests/Greece/PolytechnioTest.php index 4dea9d41a..2a4020022 100644 --- a/tests/Greece/PolytechnioTest.php +++ b/tests/Greece/PolytechnioTest.php @@ -34,6 +34,8 @@ class PolytechnioTest extends GreeceBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -48,6 +50,7 @@ public function testHoliday() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/ThreeHolyHierarchsTest.php b/tests/Greece/ThreeHolyHierarchsTest.php index e07a593a1..0bc72d273 100644 --- a/tests/Greece/ThreeHolyHierarchsTest.php +++ b/tests/Greece/ThreeHolyHierarchsTest.php @@ -33,6 +33,8 @@ class ThreeHolyHierarchsTest extends GreeceBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Greece/goodFridayTest.php b/tests/Greece/goodFridayTest.php index f5e15ce1f..1ad270be4 100644 --- a/tests/Greece/goodFridayTest.php +++ b/tests/Greece/goodFridayTest.php @@ -29,6 +29,8 @@ class goodFridayTest extends GreeceBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/AllSaintsDayTest.php b/tests/Hungary/AllSaintsDayTest.php index d16605d17..1674995d8 100644 --- a/tests/Hungary/AllSaintsDayTest.php +++ b/tests/Hungary/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends HungaryBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/ChristmasTest.php b/tests/Hungary/ChristmasTest.php index 9bd2940c6..f95a4264b 100644 --- a/tests/Hungary/ChristmasTest.php +++ b/tests/Hungary/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends HungaryBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/EasterMondayTest.php b/tests/Hungary/EasterMondayTest.php index d53db3690..f21d2bc52 100644 --- a/tests/Hungary/EasterMondayTest.php +++ b/tests/Hungary/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends HungaryBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/EasterTest.php b/tests/Hungary/EasterTest.php index a52a7bfc2..12b9f0355 100644 --- a/tests/Hungary/EasterTest.php +++ b/tests/Hungary/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends HungaryBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/HungaryTest.php b/tests/Hungary/HungaryTest.php index 8a09a75c4..8504f9a95 100644 --- a/tests/Hungary/HungaryTest.php +++ b/tests/Hungary/HungaryTest.php @@ -26,6 +26,7 @@ class HungaryTest extends HungaryBaseTestCase /** * Tests if all official holidays in Hungary are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -61,6 +62,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Hungary are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -69,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Hungary are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -77,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Hungary are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -85,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Hungary are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Hungary/InternationalWorkersDayTest.php b/tests/Hungary/InternationalWorkersDayTest.php index c193f7178..4f5131dbc 100644 --- a/tests/Hungary/InternationalWorkersDayTest.php +++ b/tests/Hungary/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends HungaryBaseTestCase implements YasumiT * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/MemorialDay1848Test.php b/tests/Hungary/MemorialDay1848Test.php index 6415d197b..4aa8d8f55 100644 --- a/tests/Hungary/MemorialDay1848Test.php +++ b/tests/Hungary/MemorialDay1848Test.php @@ -34,6 +34,8 @@ class MemorialDay1848Test extends HungaryBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/MemorialDay1956Test.php b/tests/Hungary/MemorialDay1956Test.php index cec92e802..d3a92f6b2 100644 --- a/tests/Hungary/MemorialDay1956Test.php +++ b/tests/Hungary/MemorialDay1956Test.php @@ -34,6 +34,8 @@ class MemorialDay1956Test extends HungaryBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/NewYearsDayTest.php b/tests/Hungary/NewYearsDayTest.php index 0e81b4e40..fb3695784 100644 --- a/tests/Hungary/NewYearsDayTest.php +++ b/tests/Hungary/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends HungaryBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/PentecostMondayTest.php b/tests/Hungary/PentecostMondayTest.php index 2809bc68b..12229cca6 100644 --- a/tests/Hungary/PentecostMondayTest.php +++ b/tests/Hungary/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends HungaryBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/PentecostTest.php b/tests/Hungary/PentecostTest.php index 22c77eaf4..692520482 100644 --- a/tests/Hungary/PentecostTest.php +++ b/tests/Hungary/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends HungaryBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/SecondChristmasDayTest.php b/tests/Hungary/SecondChristmasDayTest.php index fa286f28d..9dc7118dc 100644 --- a/tests/Hungary/SecondChristmasDayTest.php +++ b/tests/Hungary/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends HungaryBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Hungary/StateFoundationDayTest.php b/tests/Hungary/StateFoundationDayTest.php index d95060225..eab8db48f 100644 --- a/tests/Hungary/StateFoundationDayTest.php +++ b/tests/Hungary/StateFoundationDayTest.php @@ -34,6 +34,8 @@ class StateFoundationDayTest extends HungaryBaseTestCase implements YasumiTestCa /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/AugustHolidayTest.php b/tests/Ireland/AugustHolidayTest.php index 7f53a792b..b3633ab47 100644 --- a/tests/Ireland/AugustHolidayTest.php +++ b/tests/Ireland/AugustHolidayTest.php @@ -34,6 +34,9 @@ class AugustHolidayTest extends IrelandBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -67,6 +71,8 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +92,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index 2b3a49334..a92f267d7 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -34,6 +34,9 @@ class ChristmasDayTest extends IrelandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -66,6 +70,8 @@ public function HolidayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -85,6 +91,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index b569c812d..74ce759ad 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -35,6 +35,9 @@ class EasterMondayTest extends IrelandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -69,6 +72,8 @@ public function HolidayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -88,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index c98526fe5..cb44cec30 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -34,6 +34,9 @@ class EasterTest extends IrelandBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -67,6 +70,8 @@ public function HolidayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +91,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index 555e06295..d39f9f9a0 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -35,6 +35,9 @@ class GoodFridayTest extends IrelandBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -68,6 +71,8 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +92,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/IrelandTest.php b/tests/Ireland/IrelandTest.php index fbafc13e6..911d61c75 100644 --- a/tests/Ireland/IrelandTest.php +++ b/tests/Ireland/IrelandTest.php @@ -26,6 +26,7 @@ class IrelandTest extends IrelandBaseTestCase /** * Tests if all official holidays in Ireland are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -56,6 +57,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Ireland are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -64,6 +66,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Ireland are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -72,6 +75,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Ireland are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -80,6 +84,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Ireland are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Ireland/JuneHolidayTest.php b/tests/Ireland/JuneHolidayTest.php index c5073731b..de6a56f40 100644 --- a/tests/Ireland/JuneHolidayTest.php +++ b/tests/Ireland/JuneHolidayTest.php @@ -39,6 +39,9 @@ class JuneHolidayTest extends IrelandBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -55,6 +58,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -72,6 +76,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -84,6 +89,8 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -103,6 +110,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/MayDayTest.php b/tests/Ireland/MayDayTest.php index 1411a490e..dc3ce3d5c 100644 --- a/tests/Ireland/MayDayTest.php +++ b/tests/Ireland/MayDayTest.php @@ -39,6 +39,9 @@ class MayDayTest extends IrelandBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -56,6 +59,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -73,6 +77,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -85,6 +90,8 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -104,6 +111,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index c110075fe..9c25fee10 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -40,6 +40,8 @@ class NewYearsDayTest extends IrelandBaseTestCase implements YasumiTestCaseInter * @param int $year the year for which the holiday defined in this test needs to be tested * @param \DateTime $expected the expected date * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -56,6 +58,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -72,6 +75,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -84,6 +88,8 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -103,6 +109,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/OctoberHolidayTest.php b/tests/Ireland/OctoberHolidayTest.php index bbeb468ca..be5c75a9c 100644 --- a/tests/Ireland/OctoberHolidayTest.php +++ b/tests/Ireland/OctoberHolidayTest.php @@ -39,6 +39,9 @@ class OctoberHolidayTest extends IrelandBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -56,6 +59,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -73,6 +77,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -85,6 +90,8 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -104,6 +111,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index 3eb9496f5..d5c3e2b07 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -35,6 +35,9 @@ class PentecostTest extends IrelandBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -69,6 +72,8 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -88,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index 173b7e4b0..f3e1b7bcb 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -39,6 +39,9 @@ class StPatricksDayTest extends IrelandBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -55,6 +58,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -71,6 +75,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -83,6 +88,8 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +109,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index 9b05b1a7c..4de3da05b 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -34,6 +34,9 @@ class StStephensDayTest extends IrelandBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -66,6 +70,8 @@ public function HolidayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -85,6 +91,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index 77ddbc0e8..b2914e4d7 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -40,6 +40,9 @@ class pentecostMondayTest extends IrelandBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -73,6 +76,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test after abolishment. + * @throws \ReflectionException */ public function testHolidayDayAfterAbolishment() { @@ -81,6 +85,8 @@ public function testHolidayDayAfterAbolishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -100,6 +106,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/AllSaintsDayTest.php b/tests/Italy/AllSaintsDayTest.php index 95e363ffa..c409494fe 100644 --- a/tests/Italy/AllSaintsDayTest.php +++ b/tests/Italy/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends ItalyBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -43,6 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { @@ -51,6 +54,7 @@ public function AllSaintsDayDataProvider(): array /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/AssumptionOfMaryTest.php b/tests/Italy/AssumptionOfMaryTest.php index d8d4c8940..d05c150cb 100644 --- a/tests/Italy/AssumptionOfMaryTest.php +++ b/tests/Italy/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends ItalyBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -43,6 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { @@ -51,6 +54,7 @@ public function AssumptionOfMaryDataProvider(): array /** * Tests translated name of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/ChristmasTest.php b/tests/Italy/ChristmasTest.php index 2a54756f4..061013e10 100644 --- a/tests/Italy/ChristmasTest.php +++ b/tests/Italy/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends ItalyBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/EasterMondayTest.php b/tests/Italy/EasterMondayTest.php index 17db3dab3..e2d4edd44 100644 --- a/tests/Italy/EasterMondayTest.php +++ b/tests/Italy/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends ItalyBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/EasterTest.php b/tests/Italy/EasterTest.php index 95c39580c..05466a2d9 100644 --- a/tests/Italy/EasterTest.php +++ b/tests/Italy/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends ItalyBaseTestCase implements YasumiTestCaseInterface /** * Tests Easter. + * @throws \Exception + * @throws \ReflectionException */ public function testEaster() { @@ -43,6 +45,7 @@ public function testEaster() /** * Tests translated name of Easter. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/EpiphanyTest.php b/tests/Italy/EpiphanyTest.php index cf565a9d8..b68bc7556 100644 --- a/tests/Italy/EpiphanyTest.php +++ b/tests/Italy/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends ItalyBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which Epiphany needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testEpiphany($year, $expected) { @@ -43,6 +45,7 @@ public function testEpiphany($year, $expected) * Returns a list of random test dates used for assertion of Epiphany. * * @return array list of test dates for Epiphany + * @throws \Exception */ public function EpiphanyDataProvider(): array { @@ -51,6 +54,7 @@ public function EpiphanyDataProvider(): array /** * Tests translated name of Epiphany. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/ImmaculateConceptionTest.php b/tests/Italy/ImmaculateConceptionTest.php index 7acadcb86..5d6211e69 100644 --- a/tests/Italy/ImmaculateConceptionTest.php +++ b/tests/Italy/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends ItalyBaseTestCase implements YasumiTestCa * * @param int $year the year for which the day of Immaculate Conception needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testImmaculateConception($year, $expected) { @@ -43,6 +45,7 @@ public function testImmaculateConception($year, $expected) * Returns a list of random test dates used for assertion of the day of Immaculate Conception. * * @return array list of test dates for the day of Immaculate Conception + * @throws \Exception */ public function ImmaculateConceptionDataProvider(): array { @@ -51,6 +54,7 @@ public function ImmaculateConceptionDataProvider(): array /** * Tests translated name of the day of Immaculate Conception. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/InternationalWorkersDayTest.php b/tests/Italy/InternationalWorkersDayTest.php index 04a8bad55..b3a7b9cac 100644 --- a/tests/Italy/InternationalWorkersDayTest.php +++ b/tests/Italy/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends ItalyBaseTestCase implements YasumiTes * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -43,6 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { @@ -51,6 +54,7 @@ public function InternationalWorkersDayDataProvider(): array /** * Tests translated name of International Workers' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/ItalyTest.php b/tests/Italy/ItalyTest.php index c1f6d6864..262b1db4b 100644 --- a/tests/Italy/ItalyTest.php +++ b/tests/Italy/ItalyTest.php @@ -26,6 +26,7 @@ class ItalyTest extends ItalyBaseTestCase /** * Tests if all official holidays in Italy are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Italy are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -55,6 +57,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Italy are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -63,6 +66,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Italy are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -71,6 +75,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Italy are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Italy/LiberationDayTest.php b/tests/Italy/LiberationDayTest.php index 0f08f1dba..1d1b5be76 100644 --- a/tests/Italy/LiberationDayTest.php +++ b/tests/Italy/LiberationDayTest.php @@ -41,6 +41,8 @@ class LiberationDayTest extends ItalyBaseTestCase implements YasumiTestCaseInter /** * Tests Liberation Day on or after 1949. + * @throws \Exception + * @throws \ReflectionException */ public function testLiberationDayOnAfter1949() { @@ -55,6 +57,7 @@ public function testLiberationDayOnAfter1949() /** * Tests Liberation Day before 1949. + * @throws \ReflectionException */ public function testLiberationDayBefore1949() { @@ -67,6 +70,7 @@ public function testLiberationDayBefore1949() /** * Tests translated name of Liberation Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -80,6 +84,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/NewYearsDayTest.php b/tests/Italy/NewYearsDayTest.php index 103c8d4d0..b2f8d0855 100644 --- a/tests/Italy/NewYearsDayTest.php +++ b/tests/Italy/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends ItalyBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -43,6 +45,7 @@ public function testNewYearsDay($year, $expected) * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { @@ -51,6 +54,7 @@ public function NewYearsDayDataProvider(): array /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/RepublicDayTest.php b/tests/Italy/RepublicDayTest.php index 222b057a1..a581a9189 100644 --- a/tests/Italy/RepublicDayTest.php +++ b/tests/Italy/RepublicDayTest.php @@ -41,6 +41,8 @@ class RepublicDayTest extends ItalyBaseTestCase implements YasumiTestCaseInterfa /** * Tests Republic Day on or after 1946. + * @throws \Exception + * @throws \ReflectionException */ public function testRepublicDayOnAfter1946() { @@ -55,6 +57,7 @@ public function testRepublicDayOnAfter1946() /** * Tests Republic Day before 1946. + * @throws \ReflectionException */ public function testRepublicDayBefore1946() { @@ -67,6 +70,7 @@ public function testRepublicDayBefore1946() /** * Tests translated name of Republic Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -80,6 +84,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Italy/stStephensDayTest.php b/tests/Italy/stStephensDayTest.php index 2effa75f9..09a4af11b 100644 --- a/tests/Italy/stStephensDayTest.php +++ b/tests/Italy/stStephensDayTest.php @@ -33,6 +33,8 @@ class stStephensDayTest extends ItalyBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which St. Stephen's Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function teststStephensDay($year, $expected) { @@ -43,6 +45,7 @@ public function teststStephensDay($year, $expected) * Returns a list of random test dates used for assertion of St. Stephen's Day. * * @return array list of test dates for St. Stephen's Day + * @throws \Exception */ public function stStephensDayDataProvider(): array { @@ -51,6 +54,7 @@ public function stStephensDayDataProvider(): array /** * Tests translated name of St. Stephen's Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/AutumnalEquinoxDayTest.php b/tests/Japan/AutumnalEquinoxDayTest.php index 47682f53b..607e20f3a 100644 --- a/tests/Japan/AutumnalEquinoxDayTest.php +++ b/tests/Japan/AutumnalEquinoxDayTest.php @@ -38,6 +38,7 @@ class AutumnalEquinoxDayTest extends JapanBaseTestCase implements YasumiTestCase * festival called Shūki kōrei-sai (秋季皇霊祭). * * After 2150 no calculations are available yet. + * @throws \ReflectionException */ public function testAutumnalEquinoxDayOnAfter2150() { @@ -56,6 +57,9 @@ public function testAutumnalEquinoxDayOnAfter2150() * @param $year int year of example data to be tested * @param $month int month (number) of example data to be tested * @param $day int day of the month (number) of example data to be tested + * + * @throws \ReflectionException + * @throws \Exception */ public function testAutumnalEquinoxDayBetween1948And2150($year, $month, $day) { @@ -87,6 +91,7 @@ public function autumnalEquinoxHolidaysProvider(): array * Tests Vernal Equinox Day before 1948. This national holiday was established in 1948 as a day on which to honor * one's ancestors and remember the dead. Prior to 1948, the autumnal equinox was an imperial ancestor worship * festival called Shūki kōrei-sai (秋季皇霊祭). + * @throws \ReflectionException */ public function testAutumnalEquinoxDayBefore1948() { @@ -101,6 +106,7 @@ public function testAutumnalEquinoxDayBefore1948() * Tests Vernal Equinox Day between 1851 and 1948. This national holiday was established in 1948 as a day on * which to honor one's ancestors and remember the dead. Prior to 1948, the autumnal equinox was an imperial * ancestor worship festival called Shūki kōrei-sai (秋季皇霊祭). + * @throws \ReflectionException */ public function testAutumnalEquinoxDayBetween1851And1948() { @@ -113,6 +119,7 @@ public function testAutumnalEquinoxDayBetween1851And1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -126,6 +133,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/ChildrensDayTest.php b/tests/Japan/ChildrensDayTest.php index d1a548a04..d1479f901 100644 --- a/tests/Japan/ChildrensDayTest.php +++ b/tests/Japan/ChildrensDayTest.php @@ -34,6 +34,8 @@ class ChildrensDayTest extends JapanBaseTestCase implements YasumiTestCaseInterf /** * Tests Children's Day after 1948. Children's Day was established after 1948 + * @throws \Exception + * @throws \ReflectionException */ public function testChildrensDayOnAfter1948() { @@ -48,6 +50,8 @@ public function testChildrensDayOnAfter1948() /** * Tests Children's Day after 1948 substituted next working day (when Children's Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testChildrensDayOnAfter1948SubstitutedNextWorkingDay() { @@ -62,6 +66,7 @@ public function testChildrensDayOnAfter1948SubstitutedNextWorkingDay() /** * Tests Children's Day before 1948. Children's Day was established after 1948 + * @throws \ReflectionException */ public function testChildrensDayBefore1948() { @@ -74,6 +79,7 @@ public function testChildrensDayBefore1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/ComingOfAgeDayTest.php b/tests/Japan/ComingOfAgeDayTest.php index 71d27ae40..f2eef3189 100644 --- a/tests/Japan/ComingOfAgeDayTest.php +++ b/tests/Japan/ComingOfAgeDayTest.php @@ -35,6 +35,8 @@ class ComingOfAgeDayTest extends JapanBaseTestCase implements YasumiTestCaseInte /** * Tests Coming of Age Day after 2000. Coming of Age Day was established after 1948 on January 15th. After 2000 it * was changed to be the second monday of January. + * @throws \Exception + * @throws \ReflectionException */ public function testComingOfAgeDayOnAfter2000() { @@ -51,6 +53,8 @@ public function testComingOfAgeDayOnAfter2000() /** * Tests Coming of Age Day between 1948 and 2000. Coming of Age Day was established after 1948 on January 15th. * After 2000 it was changed to be the second monday of January. + * @throws \Exception + * @throws \ReflectionException */ public function testComingOfAgeDayBetween1948And2000() { @@ -66,6 +70,7 @@ public function testComingOfAgeDayBetween1948And2000() /** * Tests Coming of Age Day before 1948. Coming of Age Day was established after 1948 on January 15th. After 2000 it * was changed to be the second monday of January. + * @throws \ReflectionException */ public function testConstitutionMemorialDayBefore1948() { @@ -78,6 +83,7 @@ public function testConstitutionMemorialDayBefore1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -91,6 +97,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/ConstitutionMemorialDayTest.php b/tests/Japan/ConstitutionMemorialDayTest.php index f2054ca1c..91a48506e 100644 --- a/tests/Japan/ConstitutionMemorialDayTest.php +++ b/tests/Japan/ConstitutionMemorialDayTest.php @@ -34,6 +34,8 @@ class ConstitutionMemorialDayTest extends JapanBaseTestCase implements YasumiTes /** * Tests Constitution Memorial Day after 1948. Constitution Memorial Day was established after 1948 + * @throws \Exception + * @throws \ReflectionException */ public function testConstitutionMemorialDayOnAfter1948() { @@ -49,6 +51,8 @@ public function testConstitutionMemorialDayOnAfter1948() /** * Tests Constitution Memorial Day after 1948 substituted next working day (when Constitution Memorial Day falls on * a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testConstitutionMemorialDayOnAfter1948SubstitutedNextWorkingDay() { @@ -63,6 +67,7 @@ public function testConstitutionMemorialDayOnAfter1948SubstitutedNextWorkingDay( /** * Tests Constitution Memorial Day before 1948. Constitution Memorial Day was established after 1948 + * @throws \ReflectionException */ public function testConstitutionMemorialDayBefore1948() { @@ -75,6 +80,7 @@ public function testConstitutionMemorialDayBefore1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -88,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/CultureDayTest.php b/tests/Japan/CultureDayTest.php index e05f0a0fe..db82bde07 100644 --- a/tests/Japan/CultureDayTest.php +++ b/tests/Japan/CultureDayTest.php @@ -34,6 +34,8 @@ class CultureDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfac /** * Tests Culture Day after 1948. Culture Day Day was established after 1948 + * @throws \Exception + * @throws \ReflectionException */ public function testCultureDayOnAfter1948() { @@ -48,6 +50,8 @@ public function testCultureDayOnAfter1948() /** * Tests Culture Day after 1948 substituted next working day (when Culture Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testCultureDayOnAfter1948SubstitutedNextWorkingDay() { @@ -62,6 +66,7 @@ public function testCultureDayOnAfter1948SubstitutedNextWorkingDay() /** * Tests Culture Day before 1948. Culture Day was established after 1948 + * @throws \ReflectionException */ public function testCultureDayBefore1948() { @@ -74,6 +79,7 @@ public function testCultureDayBefore1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/EmperorsBirthdayTest.php b/tests/Japan/EmperorsBirthdayTest.php index baa7c7991..2737aec0a 100644 --- a/tests/Japan/EmperorsBirthdayTest.php +++ b/tests/Japan/EmperorsBirthdayTest.php @@ -36,6 +36,8 @@ class EmperorsBirthdayTest extends JapanBaseTestCase implements YasumiTestCaseIn * Tests the Emperors Birthday after 1989. The Emperors Birthday is on December 23rd and celebrated as such since * 1989. Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. See also "Shōwa * Day". + * @throws \Exception + * @throws \ReflectionException */ public function testEmperorsBirthdayOnAfter1989() { @@ -51,6 +53,8 @@ public function testEmperorsBirthdayOnAfter1989() /** * Tests the Emperors Birthday after 1989 substituted next working day (when the Emperors Birthday falls on a * Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testEmperorsBirthdayOnAfter1989SubstitutedNextWorkingDay() { @@ -67,6 +71,7 @@ public function testEmperorsBirthdayOnAfter1989SubstitutedNextWorkingDay() * Tests the Emperors Birthday before 1989. The Emperors Birthday is on December 23rd and celebrated as such since * 1989. Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. See also "Shōwa * Day"/"Greenery Day" + * @throws \ReflectionException */ public function testEmperorsBirthdayBefore1989() { @@ -79,6 +84,7 @@ public function testEmperorsBirthdayBefore1989() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -92,6 +98,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/GreeneryDayTest.php b/tests/Japan/GreeneryDayTest.php index cae974530..ddbd59adb 100644 --- a/tests/Japan/GreeneryDayTest.php +++ b/tests/Japan/GreeneryDayTest.php @@ -35,6 +35,8 @@ class GreeneryDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa /** * Tests Greenery Day after 2007. Greenery Day was established from 1989 on April 29th. After 2007 * it was changed to be May 4th. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfter2007() { @@ -49,6 +51,8 @@ public function testHolidayOnAfter2007() /** * Tests Greenery Day after 2007 substituted next working day (when Greenery Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfter2007SubstitutedNextWorkingDay() { @@ -64,6 +68,8 @@ public function testHolidayOnAfter2007SubstitutedNextWorkingDay() /** * Tests Greenery Day between 1989 and 2007. Greenery Day was established from 1989 on April 29th. After 2007 * it was changed to be May 4th. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayBetween1989And2007() { @@ -78,6 +84,8 @@ public function testHolidayBetween1989And2007() /** * Tests Greenery Day between 1989 and 2007 substituted next working day (when Greenery Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayBetween1989And2007SubstitutedNextWorkingDay() { @@ -93,6 +101,7 @@ public function testHolidayBetween1989And2007SubstitutedNextWorkingDay() /** * Tests Greenery Day before 1989. Greenery Day was established from 1989 on April 29th. After 2007 * it was changed to be May 4th. + * @throws \ReflectionException */ public function testHolidayBefore1989() { @@ -105,6 +114,7 @@ public function testHolidayBefore1989() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -118,6 +128,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/HealthAndSportsDayTest.php b/tests/Japan/HealthAndSportsDayTest.php index 2f26b9dff..f1544ce96 100644 --- a/tests/Japan/HealthAndSportsDayTest.php +++ b/tests/Japan/HealthAndSportsDayTest.php @@ -34,6 +34,8 @@ class HealthAndSportsDayTest extends JapanBaseTestCase implements YasumiTestCase /** * Tests Health And Sports Day in 2020. Health And Sports Day in 2020 is July 24th for the Olympic Games. + * @throws \Exception + * @throws \ReflectionException */ public function testHealthAndSportsDayIn2020() { @@ -49,6 +51,8 @@ public function testHealthAndSportsDayIn2020() /** * Tests Health And Sports Day after 2000. Health And Sports Day was established since 1996 on October 10th. After * 2000 it was changed to be the second monday of October. + * @throws \Exception + * @throws \ReflectionException */ public function testHealthAndSportsDayOnAfter2000() { @@ -64,6 +68,8 @@ public function testHealthAndSportsDayOnAfter2000() /** * Tests Health And Sports Day between 1996 and 2000. Health And Sports Day was established since 1996 on October * 10th. After 2000 it was changed to be the second monday of October. + * @throws \Exception + * @throws \ReflectionException */ public function testHealthAndSportsDayBetween1996And2000() { @@ -79,6 +85,8 @@ public function testHealthAndSportsDayBetween1996And2000() /** * Tests Health And Sports Day between 1996 and 2000 substituted next working day (when Health And Sports Day falls * on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testHealthAndSportsDayBetween1996And2000SubstitutedNextWorkingDay() { @@ -94,6 +102,7 @@ public function testHealthAndSportsDayBetween1996And2000SubstitutedNextWorkingDa /** * Tests Health And Sports Day before. Health And Sports Day was established since 1996 on October 10th. After * 2000 it was changed to be the second monday of October. + * @throws \ReflectionException */ public function testHealthAndSportsDayBefore1996() { @@ -106,6 +115,7 @@ public function testHealthAndSportsDayBefore1996() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -119,6 +129,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/JapanTest.php b/tests/Japan/JapanTest.php index be47afda3..eb6e26386 100644 --- a/tests/Japan/JapanTest.php +++ b/tests/Japan/JapanTest.php @@ -26,6 +26,7 @@ class JapanTest extends JapanBaseTestCase /** * Tests if all official holidays in Japan are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -52,6 +53,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Japan are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -60,6 +62,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Japan are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -68,6 +71,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Japan are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -76,6 +80,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Japan are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Japan/LabourThanksgivingDayTest.php b/tests/Japan/LabourThanksgivingDayTest.php index a7d6d75d9..400f617fb 100644 --- a/tests/Japan/LabourThanksgivingDayTest.php +++ b/tests/Japan/LabourThanksgivingDayTest.php @@ -35,6 +35,8 @@ class LabourThanksgivingDayTest extends JapanBaseTestCase implements YasumiTestC /** * Tests Labor Thanksgiving Day after 1948. Labor Thanksgiving Day is held on November 23rd and established since * 1948. + * @throws \Exception + * @throws \ReflectionException */ public function testLabourThanksgivingDayOnAfter1948() { @@ -50,6 +52,8 @@ public function testLabourThanksgivingDayOnAfter1948() /** * Tests Labor Thanksgiving Day after 1948 substituted next working day (when Labor Thanksgiving Day falls on a * Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testLabourThanksgivingDayOnAfter1948SubstitutedNextWorkingDay() { @@ -65,6 +69,7 @@ public function testLabourThanksgivingDayOnAfter1948SubstitutedNextWorkingDay() /** * Tests Labor Thanksgiving Day before 1948. Labor Thanksgiving Day is held on November 23rd and established since * 1948. + * @throws \ReflectionException */ public function testLabourThanksgivingDayBefore1948() { @@ -77,6 +82,7 @@ public function testLabourThanksgivingDayBefore1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -90,6 +96,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/MarineDayTest.php b/tests/Japan/MarineDayTest.php index acc40d602..b17f5ca84 100644 --- a/tests/Japan/MarineDayTest.php +++ b/tests/Japan/MarineDayTest.php @@ -34,6 +34,8 @@ class MarineDayTest extends JapanBaseTestCase implements YasumiTestCaseInterface /** * Tests Marine Day in 2020. Marine Day in 2020 is July 23th for the Olympic Games. + * @throws \Exception + * @throws \ReflectionException */ public function testMarineDayIn2020() { @@ -49,6 +51,8 @@ public function testMarineDayIn2020() /** * Tests Marine Day after 2003. Marine Day was established since 1996 on July 20th. After 2003 it was changed * to be the third monday of July. + * @throws \Exception + * @throws \ReflectionException */ public function testMarineDayOnAfter2003() { @@ -64,6 +68,8 @@ public function testMarineDayOnAfter2003() /** * Tests Marine Day between 1996 and 2003. Marine Day was established since 1996 on July 20th. After 2003 it was * changed to be the third monday of July. + * @throws \Exception + * @throws \ReflectionException */ public function testMarineDayBetween1996And2003() { @@ -78,6 +84,8 @@ public function testMarineDayBetween1996And2003() /** * Tests Marine Day between 1996 and 2003 substituted next working day (when Marine Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testMarineDayBetween1996And2003SubstitutedNextWorkingDay() { @@ -93,6 +101,7 @@ public function testMarineDayBetween1996And2003SubstitutedNextWorkingDay() /** * Tests Marine Day before 1996. Marine Day was established since 1996 on July 20th. After 2003 it was changed * to be the third monday of July. + * @throws \ReflectionException */ public function testMarineDayBefore1996() { @@ -105,6 +114,7 @@ public function testMarineDayBefore1996() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -118,6 +128,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/MountainDayTest.php b/tests/Japan/MountainDayTest.php index d93e807f2..b02d3c16c 100644 --- a/tests/Japan/MountainDayTest.php +++ b/tests/Japan/MountainDayTest.php @@ -34,6 +34,8 @@ class MountainDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa /** * Tests Mountain Day in 2020. Mountain Day in 2020 is August 10th for the Olympic Games. + * @throws \Exception + * @throws \ReflectionException */ public function testMountainDayIn2020() { @@ -48,6 +50,8 @@ public function testMountainDayIn2020() /** * Tests Mountain Day after 2016. Mountain Day was established in 2014 and is held from 2016 on August 11th. + * @throws \Exception + * @throws \ReflectionException */ public function testMountainDayOnAfter2016() { @@ -62,6 +66,8 @@ public function testMountainDayOnAfter2016() /** * Tests Mountain Day after 2016 substituted next working day (when Mountain Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testMountainDayOnAfter2016SubstitutedNextWorkingDay() { @@ -76,6 +82,7 @@ public function testMountainDayOnAfter2016SubstitutedNextWorkingDay() /** * Tests Mountain Day before 2016. Mountain Day was established in 2014 and is held from 2016 on August 11th. + * @throws \ReflectionException */ public function testMountainDayBefore2016() { @@ -88,6 +95,7 @@ public function testMountainDayBefore2016() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -101,6 +109,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/NationalFoundationDayTest.php b/tests/Japan/NationalFoundationDayTest.php index 8f4fb5e4e..65fb23576 100644 --- a/tests/Japan/NationalFoundationDayTest.php +++ b/tests/Japan/NationalFoundationDayTest.php @@ -34,6 +34,8 @@ class NationalFoundationDayTest extends JapanBaseTestCase implements YasumiTestC /** * Tests National Foundation Day after 1966. National Foundation day was established after 1966 + * @throws \Exception + * @throws \ReflectionException */ public function testNationalFoundationDayOnAfter1966() { @@ -49,6 +51,8 @@ public function testNationalFoundationDayOnAfter1966() /** * Tests National Foundation Day after 1966. substituted next working day (when National Foundation Day falls on a * Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testNationalFoundationDayOnAfter1966SubstitutedNextWorkingDay() { @@ -63,6 +67,7 @@ public function testNationalFoundationDayOnAfter1966SubstitutedNextWorkingDay() /** * Tests National Foundation Day before 1966. National Foundation day was established after 1966 + * @throws \ReflectionException */ public function testNationalFoundationDayBefore1966() { @@ -75,6 +80,7 @@ public function testNationalFoundationDayBefore1966() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -88,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/NewYearsDayTest.php b/tests/Japan/NewYearsDayTest.php index 6f33263f4..688fda4b6 100644 --- a/tests/Japan/NewYearsDayTest.php +++ b/tests/Japan/NewYearsDayTest.php @@ -34,6 +34,8 @@ class NewYearsDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa /** * Tests New Years Day after 1948. New Years Day was established after 1948 + * @throws \Exception + * @throws \ReflectionException */ public function testNewYearsDayOnAfter1948() { @@ -48,6 +50,8 @@ public function testNewYearsDayOnAfter1948() /** * Tests New Years Day after 1948 substituted next working day (when New Years Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testNewYearsDayOnAfter1948SubstitutedNextWorkingDay() { @@ -62,6 +66,7 @@ public function testNewYearsDayOnAfter1948SubstitutedNextWorkingDay() /** * Tests New Years Day before 1948. New Years Day was established after 1948 + * @throws \ReflectionException */ public function testNewYearsDayBefore1948() { @@ -74,6 +79,7 @@ public function testNewYearsDayBefore1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/PublicBridgeDayTest.php b/tests/Japan/PublicBridgeDayTest.php index 2c91a0d09..98f9533b0 100644 --- a/tests/Japan/PublicBridgeDayTest.php +++ b/tests/Japan/PublicBridgeDayTest.php @@ -33,6 +33,8 @@ class PublicBridgeDayTest extends JapanBaseTestCase implements YasumiTestCaseInt /** * Tests public bridge days. + * @throws \Exception + * @throws \ReflectionException */ public function testPublicBridgeDay() { @@ -46,6 +48,7 @@ public function testPublicBridgeDay() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/RespectForTheAgedDayTest.php b/tests/Japan/RespectForTheAgedDayTest.php index ad300fb5e..f8aee57a3 100644 --- a/tests/Japan/RespectForTheAgedDayTest.php +++ b/tests/Japan/RespectForTheAgedDayTest.php @@ -35,6 +35,8 @@ class RespectForTheAgedDayTest extends JapanBaseTestCase implements YasumiTestCa /** * Tests Respect for the Aged Day after 2003. Respect for the Aged Day was established since 1996 on September * 15th. After 2003 it was changed to be the third monday of September. + * @throws \Exception + * @throws \ReflectionException */ public function testRespectForTheAgedDayOnAfter2003() { @@ -50,6 +52,8 @@ public function testRespectForTheAgedDayOnAfter2003() /** * Tests Respect for the Aged Day between 1996 and 2003. Respect for the Aged Day was established since 1996 on * September 15th. After 2003 it was changed to be the third monday of September. + * @throws \Exception + * @throws \ReflectionException */ public function testRespectForTheAgedDayBetween1996And2003() { @@ -65,6 +69,8 @@ public function testRespectForTheAgedDayBetween1996And2003() /** * Tests Respect for the Aged Day between 1996 and 2003 substituted next working day (when Respect for the Aged Day * falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testRespectForTheAgedDayBetween1996And2003SubstitutedNextWorkingDay() { @@ -80,6 +86,7 @@ public function testRespectForTheAgedDayBetween1996And2003SubstitutedNextWorking /** * Tests Respect for the Aged Day before 1996. Respect for the Aged Day was established since 1996 on September * 15th. After 2003 it was changed to be the third monday of September. + * @throws \ReflectionException */ public function testRespectForTheAgedDayBefore1996() { @@ -92,6 +99,7 @@ public function testRespectForTheAgedDayBefore1996() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -105,6 +113,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/ShowaDayTest.php b/tests/Japan/ShowaDayTest.php index 69972a6fa..551e1aa20 100644 --- a/tests/Japan/ShowaDayTest.php +++ b/tests/Japan/ShowaDayTest.php @@ -34,6 +34,8 @@ class ShowaDayTest extends JapanBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in the test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfter2007() { @@ -48,6 +50,8 @@ public function testHolidayOnAfter2007() /** * Tests the holiday defined in the test on or after the establishment and substituted next working day. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishmentSubstitutedNextWorkingDay() { @@ -62,6 +66,7 @@ public function testHolidayOnAfterEstablishmentSubstitutedNextWorkingDay() /** * Tests the holiday defined in the test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -74,6 +79,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Japan/VernalEquinoxDayTest.php b/tests/Japan/VernalEquinoxDayTest.php index 8a5dd640e..3646d2295 100644 --- a/tests/Japan/VernalEquinoxDayTest.php +++ b/tests/Japan/VernalEquinoxDayTest.php @@ -38,6 +38,7 @@ class VernalEquinoxDayTest extends JapanBaseTestCase implements YasumiTestCaseIn * festival called Shunki kōrei-sai (春季皇霊祭). * * After 2150 no calculations are available yet. + * @throws \ReflectionException */ public function testVernalEquinoxDayOnAfter2150() { @@ -56,6 +57,9 @@ public function testVernalEquinoxDayOnAfter2150() * @param $year int year of example data to be tested * @param $month int month (number) of example data to be tested * @param $day int day of the month (number) of example data to be tested + * + * @throws \ReflectionException + * @throws \Exception */ public function testVernalEquinoxDayBetween1948And2150($year, $month, $day) { @@ -88,6 +92,7 @@ public function vernalEquinoxHolidaysProvider(): array * Tests Vernal Equinox Day before 1948. This national holiday was established in 1948 as a day for the admiration * of nature and the love of living things. Prior to 1948, the vernal equinox was an imperial ancestor worship * festival called Shunki kōrei-sai (春季皇霊祭). + * @throws \ReflectionException */ public function testVernalEquinoxDayBefore1948() { @@ -102,6 +107,7 @@ public function testVernalEquinoxDayBefore1948() * Tests Vernal Equinox Day between 1851 and 1948. This national holiday was established in 1948 as a day for * the admiration of nature and the love of living things. Prior to 1948, the vernal equinox was an imperial * ancestor worship festival called Shunki kōrei-sai (春季皇霊祭). + * @throws \ReflectionException */ public function testVernalEquinoxDayBetween1851And1948() { @@ -114,6 +120,7 @@ public function testVernalEquinoxDayBetween1851And1948() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -127,6 +134,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/ChristmasDayTest.php b/tests/Latvia/ChristmasDayTest.php index 749b53a41..d910c5cfe 100644 --- a/tests/Latvia/ChristmasDayTest.php +++ b/tests/Latvia/ChristmasDayTest.php @@ -30,6 +30,7 @@ class ChristmasDayTest extends LatviaBaseTestCase implements YasumiTestCaseInter /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/ChristmasEveDayTest.php b/tests/Latvia/ChristmasEveDayTest.php index b33b7a73a..97d608892 100644 --- a/tests/Latvia/ChristmasEveDayTest.php +++ b/tests/Latvia/ChristmasEveDayTest.php @@ -30,6 +30,7 @@ class ChristmasEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index 5d91bde4e..3de649b72 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -44,6 +44,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -57,6 +60,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index 018c2cce8..eefb4fefc 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -44,6 +44,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -57,6 +60,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index abe6dbf80..a3516f33a 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -44,6 +44,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -57,6 +60,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/InternationalWorkersDayTest.php b/tests/Latvia/InternationalWorkersDayTest.php index ee97c8879..a22541535 100644 --- a/tests/Latvia/InternationalWorkersDayTest.php +++ b/tests/Latvia/InternationalWorkersDayTest.php @@ -30,6 +30,7 @@ class InternationalWorkersDayTest extends LatviaBaseTestCase implements YasumiTe /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/LatviaTest.php b/tests/Latvia/LatviaTest.php index 589f2addf..c23b58a1b 100644 --- a/tests/Latvia/LatviaTest.php +++ b/tests/Latvia/LatviaTest.php @@ -25,6 +25,7 @@ class LatviaTest extends LatviaBaseTestCase { /** * Tests if all official holidays in Latvia are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -57,6 +58,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Latvia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -65,6 +67,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Latvia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -73,6 +76,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Latvia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -81,6 +85,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Latvia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Latvia/MidsummerEveDayTest.php b/tests/Latvia/MidsummerEveDayTest.php index aaefd21ad..77e98a85a 100644 --- a/tests/Latvia/MidsummerEveDayTest.php +++ b/tests/Latvia/MidsummerEveDayTest.php @@ -30,6 +30,7 @@ class MidsummerEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/NewYearsDayTest.php b/tests/Latvia/NewYearsDayTest.php index 217621b49..f61d1190a 100644 --- a/tests/Latvia/NewYearsDayTest.php +++ b/tests/Latvia/NewYearsDayTest.php @@ -30,6 +30,7 @@ class NewYearsDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterf /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/NewYearsEveDayTest.php b/tests/Latvia/NewYearsEveDayTest.php index 796043f4e..4103da3a6 100644 --- a/tests/Latvia/NewYearsEveDayTest.php +++ b/tests/Latvia/NewYearsEveDayTest.php @@ -30,6 +30,7 @@ class NewYearsEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseInt /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index 9b9dcfcd9..fd8487112 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -31,6 +31,7 @@ class ProclamationOfTheRepublicOfLatviaDayTest extends LatviaBaseTestCase implem /** * Test if holiday is not defined before proclamation + * @throws \ReflectionException */ public function testNotHoliday() { @@ -43,6 +44,7 @@ public function testNotHoliday() /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -62,6 +64,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -75,6 +80,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -91,6 +97,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index d87ef41fb..93f566136 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -31,6 +31,7 @@ class RestorationOfIndependenceDayTest extends LatviaBaseTestCase implements Yas /** * Test if holiday is not defined before restoration + * @throws \ReflectionException */ public function testNotHoliday() { @@ -43,6 +44,7 @@ public function testNotHoliday() /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -62,6 +64,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -75,6 +80,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -91,6 +97,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/SecondChristmasDayTest.php b/tests/Latvia/SecondChristmasDayTest.php index 028449dd6..d92abe576 100644 --- a/tests/Latvia/SecondChristmasDayTest.php +++ b/tests/Latvia/SecondChristmasDayTest.php @@ -30,6 +30,7 @@ class SecondChristmasDayTest extends LatviaBaseTestCase implements YasumiTestCas /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Latvia/StJohnsDayTest.php b/tests/Latvia/StJohnsDayTest.php index 3dc6c4498..38aac0a66 100644 --- a/tests/Latvia/StJohnsDayTest.php +++ b/tests/Latvia/StJohnsDayTest.php @@ -30,6 +30,7 @@ class StJohnsDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterfa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/AllSaintsDayTest.php b/tests/Lithuania/AllSaintsDayTest.php index 62658f953..4cc9806fa 100644 --- a/tests/Lithuania/AllSaintsDayTest.php +++ b/tests/Lithuania/AllSaintsDayTest.php @@ -30,6 +30,7 @@ class AllSaintsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/AssumptionOfMaryDayTest.php b/tests/Lithuania/AssumptionOfMaryDayTest.php index 3a45c435e..f878e0fc3 100644 --- a/tests/Lithuania/AssumptionOfMaryDayTest.php +++ b/tests/Lithuania/AssumptionOfMaryDayTest.php @@ -30,6 +30,7 @@ class AssumptionOfMaryDayTest extends LithuaniaBaseTestCase implements YasumiTes /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/ChristmasDayTest.php b/tests/Lithuania/ChristmasDayTest.php index 2fc9c6361..745d629b4 100644 --- a/tests/Lithuania/ChristmasDayTest.php +++ b/tests/Lithuania/ChristmasDayTest.php @@ -30,6 +30,7 @@ class ChristmasDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/ChristmasEveDayTest.php b/tests/Lithuania/ChristmasEveDayTest.php index bea5d72f3..3144c886a 100644 --- a/tests/Lithuania/ChristmasEveDayTest.php +++ b/tests/Lithuania/ChristmasEveDayTest.php @@ -30,6 +30,7 @@ class ChristmasEveDayTest extends LithuaniaBaseTestCase implements YasumiTestCas /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index 733e8b297..036b65041 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -44,6 +44,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -57,6 +60,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index 99fafbe79..4023c0214 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -44,6 +44,9 @@ public function holidayDataProvider(): array * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -57,6 +60,7 @@ public function testHoliday($year, $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/InternationalWorkersDayTest.php b/tests/Lithuania/InternationalWorkersDayTest.php index 9bd38a0ae..08517de56 100644 --- a/tests/Lithuania/InternationalWorkersDayTest.php +++ b/tests/Lithuania/InternationalWorkersDayTest.php @@ -30,6 +30,7 @@ class InternationalWorkersDayTest extends LithuaniaBaseTestCase implements Yasum /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/LithuaniaTest.php b/tests/Lithuania/LithuaniaTest.php index a2b83cbe5..93f8a6777 100644 --- a/tests/Lithuania/LithuaniaTest.php +++ b/tests/Lithuania/LithuaniaTest.php @@ -25,6 +25,7 @@ class LithuaniaTest extends LithuaniaBaseTestCase { /** * Tests if all official holidays in Lithuania are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -60,6 +61,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Lithuania are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +70,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Lithuania are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +79,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Lithuania are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +88,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Lithuania are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Lithuania/NewYearsDayTest.php b/tests/Lithuania/NewYearsDayTest.php index bb987132e..84971fbf9 100644 --- a/tests/Lithuania/NewYearsDayTest.php +++ b/tests/Lithuania/NewYearsDayTest.php @@ -30,6 +30,7 @@ class NewYearsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInt /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php index 8676bc0c1..9382ac167 100644 --- a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php @@ -31,6 +31,7 @@ class RestorationOfIndependenceOfLithuaniaDayTest extends LithuaniaBaseTestCase /** * Test if holiday is not defined before restoration + * @throws \ReflectionException */ public function testHolidayBeforeRestoration() { @@ -43,6 +44,8 @@ public function testHolidayBeforeRestoration() /** * Test if holiday is defined after restoration + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfterRestoration() { @@ -58,6 +61,8 @@ public function testHolidayAfterRestoration() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php index 838a0d030..23df22457 100644 --- a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php @@ -31,6 +31,7 @@ class RestorationOfTheStateOfLithuaniaDayTest extends LithuaniaBaseTestCase impl /** * Test if holiday is not defined before restoration + * @throws \ReflectionException */ public function testHolidayBeforeRestoration() { @@ -43,6 +44,8 @@ public function testHolidayBeforeRestoration() /** * Test if holiday is defined after restoration + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfterRestoration() { @@ -58,6 +61,8 @@ public function testHolidayAfterRestoration() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/SecondChristmasDayTest.php b/tests/Lithuania/SecondChristmasDayTest.php index 4192f6eed..0cb8d2be6 100644 --- a/tests/Lithuania/SecondChristmasDayTest.php +++ b/tests/Lithuania/SecondChristmasDayTest.php @@ -30,6 +30,7 @@ class SecondChristmasDayTest extends LithuaniaBaseTestCase implements YasumiTest /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/StJohnsDayTest.php b/tests/Lithuania/StJohnsDayTest.php index afebf60f1..81f1e8ac1 100644 --- a/tests/Lithuania/StJohnsDayTest.php +++ b/tests/Lithuania/StJohnsDayTest.php @@ -30,6 +30,7 @@ class StJohnsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInte /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Lithuania/StatehoodDayTest.php b/tests/Lithuania/StatehoodDayTest.php index bb41afc25..78f3e5e1d 100644 --- a/tests/Lithuania/StatehoodDayTest.php +++ b/tests/Lithuania/StatehoodDayTest.php @@ -31,6 +31,7 @@ class StatehoodDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * Test if holiday is not defined before restoration + * @throws \ReflectionException */ public function testHolidayBeforeRestoration() { @@ -43,6 +44,8 @@ public function testHolidayBeforeRestoration() /** * Test if holiday is defined after restoration + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfterRestoration() { @@ -58,6 +61,8 @@ public function testHolidayAfterRestoration() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/AscensionDayTest.php b/tests/Netherlands/AscensionDayTest.php index ba1510566..4e58930eb 100644 --- a/tests/Netherlands/AscensionDayTest.php +++ b/tests/Netherlands/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/AshWednesdayTest.php b/tests/Netherlands/AshWednesdayTest.php index 8b6e12026..579eb959c 100644 --- a/tests/Netherlands/AshWednesdayTest.php +++ b/tests/Netherlands/AshWednesdayTest.php @@ -29,6 +29,8 @@ class AshWednesdayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of Ash Wednesday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/ChristmasDayTest.php b/tests/Netherlands/ChristmasDayTest.php index fdf2ae3e2..2c9f73e48 100644 --- a/tests/Netherlands/ChristmasDayTest.php +++ b/tests/Netherlands/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends NetherlandsBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/CommemorationDayTest.php b/tests/Netherlands/CommemorationDayTest.php index dcc9c70e3..3b97a43c2 100644 --- a/tests/Netherlands/CommemorationDayTest.php +++ b/tests/Netherlands/CommemorationDayTest.php @@ -34,6 +34,7 @@ class CommemorationDayTest extends NetherlandsBaseTestCase implements YasumiTest /** * Tests Commemoration Day before 1947. Commemoration Day was established after WWII in 1947. + * @throws \ReflectionException */ public function testCommemorationDayBefore1947() { @@ -46,6 +47,8 @@ public function testCommemorationDayBefore1947() /** * Tests Commemoration Day after 1947. Commemoration Day was established after WWII in 1947. + * @throws \Exception + * @throws \ReflectionException */ public function testCommemorationDayOnAfter1947() { @@ -60,6 +63,7 @@ public function testCommemorationDayOnAfter1947() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/EasterMondayTest.php b/tests/Netherlands/EasterMondayTest.php index 9a839fe30..a4d86f7f1 100644 --- a/tests/Netherlands/EasterMondayTest.php +++ b/tests/Netherlands/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/EasterTest.php b/tests/Netherlands/EasterTest.php index 9c0fc87e9..6711ff09f 100644 --- a/tests/Netherlands/EasterTest.php +++ b/tests/Netherlands/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends NetherlandsBaseTestCase implements YasumiTestCaseInterf /** * Tests Easter. + * @throws \Exception + * @throws \ReflectionException */ public function testEaster() { @@ -43,6 +45,7 @@ public function testEaster() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/EpiphanyTest.php b/tests/Netherlands/EpiphanyTest.php index ea3e41c4e..67753586e 100644 --- a/tests/Netherlands/EpiphanyTest.php +++ b/tests/Netherlands/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends NetherlandsBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which Epiphany needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testEpiphany($year, $expected) { @@ -43,6 +45,7 @@ public function testEpiphany($year, $expected) * Returns a list of random test dates used for assertion of Epiphany. * * @return array list of test dates for Epiphany + * @throws \Exception */ public function EpiphanyDataProvider(): array { @@ -51,6 +54,7 @@ public function EpiphanyDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/FathersDayTest.php b/tests/Netherlands/FathersDayTest.php index 2c8f2d222..2e5030888 100644 --- a/tests/Netherlands/FathersDayTest.php +++ b/tests/Netherlands/FathersDayTest.php @@ -29,6 +29,8 @@ class FathersDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/GoodFridayTest.php b/tests/Netherlands/GoodFridayTest.php index bf617f88d..7e41393f4 100644 --- a/tests/Netherlands/GoodFridayTest.php +++ b/tests/Netherlands/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * Tests Good Friday. + * @throws \Exception + * @throws \ReflectionException */ public function testGoodFriday() { @@ -43,6 +45,7 @@ public function testGoodFriday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/HalloweenTest.php b/tests/Netherlands/HalloweenTest.php index c7b6ac2da..44c106ee1 100644 --- a/tests/Netherlands/HalloweenTest.php +++ b/tests/Netherlands/HalloweenTest.php @@ -33,6 +33,8 @@ class HalloweenTest extends NetherlandsBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Halloween needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of Halloween. * * @return array list of test dates for Halloween + * @throws \Exception */ public function HalloweenDataProvider(): array { @@ -51,6 +54,7 @@ public function HalloweenDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/InternationalWorkersDayTest.php b/tests/Netherlands/InternationalWorkersDayTest.php index b04cd44be..391694cd2 100644 --- a/tests/Netherlands/InternationalWorkersDayTest.php +++ b/tests/Netherlands/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends NetherlandsBaseTestCase implements Yas * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -43,6 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { @@ -51,6 +54,7 @@ public function InternationalWorkersDayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/KingsDayTest.php b/tests/Netherlands/KingsDayTest.php index a2301ca23..8d05f9002 100644 --- a/tests/Netherlands/KingsDayTest.php +++ b/tests/Netherlands/KingsDayTest.php @@ -34,6 +34,8 @@ class KingsDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseInte /** * Tests Kings Day on or after 2014. King's Day is celebrated from 2014 onwards on April 27th. + * @throws \Exception + * @throws \ReflectionException */ public function testKingsDayOnAfter2014() { @@ -48,6 +50,8 @@ public function testKingsDayOnAfter2014() /** * Tests Kings Day substituted on Saturday (when Kings Day falls on a Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testKingsDayOnAfter2014SubstitutedDay() { @@ -62,6 +66,7 @@ public function testKingsDayOnAfter2014SubstitutedDay() /** * Tests Kings Day before 2014. King's Day is celebrated from 2014 onwards on April 27th. + * @throws \ReflectionException */ public function testKingsDayBefore2014() { @@ -74,6 +79,7 @@ public function testKingsDayBefore2014() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/LiberationDayTest.php b/tests/Netherlands/LiberationDayTest.php index 4d2a7a79d..f5ebb4aab 100644 --- a/tests/Netherlands/LiberationDayTest.php +++ b/tests/Netherlands/LiberationDayTest.php @@ -34,6 +34,7 @@ class LiberationDayTest extends NetherlandsBaseTestCase implements YasumiTestCas /** * Tests Liberation Day before 1947. Liberation Day was established after WWII in 1947. + * @throws \ReflectionException */ public function testLiberationDayBefore1947() { @@ -46,6 +47,8 @@ public function testLiberationDayBefore1947() /** * Tests Liberation Day after 1947. Liberation Day was established after WWII in 1947. + * @throws \Exception + * @throws \ReflectionException */ public function testLiberationDayOnAfter1947() { @@ -60,6 +63,7 @@ public function testLiberationDayOnAfter1947() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/MothersDayTest.php b/tests/Netherlands/MothersDayTest.php index 05e8a3f4a..54a6debec 100644 --- a/tests/Netherlands/MothersDayTest.php +++ b/tests/Netherlands/MothersDayTest.php @@ -29,6 +29,8 @@ class MothersDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * Tests Mother's Day. + * @throws \Exception + * @throws \ReflectionException */ public function testMothersDay() { @@ -43,6 +45,7 @@ public function testMothersDay() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/NetherlandsTest.php b/tests/Netherlands/NetherlandsTest.php index 7129343d5..a567aed35 100644 --- a/tests/Netherlands/NetherlandsTest.php +++ b/tests/Netherlands/NetherlandsTest.php @@ -26,6 +26,7 @@ class NetherlandsTest extends NetherlandsBaseTestCase /** * Tests if all official holidays in Netherlands are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Netherlands are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -63,6 +65,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Netherlands are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -72,6 +75,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Netherlands are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -80,6 +84,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Netherlands are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Netherlands/NewYearsDayTest.php b/tests/Netherlands/NewYearsDayTest.php index 8041dc63c..cc8376fe6 100644 --- a/tests/Netherlands/NewYearsDayTest.php +++ b/tests/Netherlands/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -43,6 +45,7 @@ public function testNewYearsDay($year, $expected) * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { @@ -51,6 +54,7 @@ public function NewYearsDayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/PentecostTest.php b/tests/Netherlands/PentecostTest.php index 8ef7cc6cd..8210dba92 100644 --- a/tests/Netherlands/PentecostTest.php +++ b/tests/Netherlands/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends NetherlandsBaseTestCase implements YasumiTestCaseInt /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/QueensDayTest.php b/tests/Netherlands/QueensDayTest.php index 8b2e5e83d..83b452de8 100644 --- a/tests/Netherlands/QueensDayTest.php +++ b/tests/Netherlands/QueensDayTest.php @@ -29,6 +29,8 @@ class QueensDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseInt /** * Tests Queens Day between 1891 and 1948. + * @throws \Exception + * @throws \ReflectionException */ public function testQueensBetween1891and1948() { @@ -43,6 +45,8 @@ public function testQueensBetween1891and1948() /** * Tests Queens Day between 1891 and 1948 substituted one day later (when Queens Day falls on a Sunday). + * @throws \Exception + * @throws \ReflectionException */ public function testQueensBetween1891and1948SubstitutedLater() { @@ -57,6 +61,8 @@ public function testQueensBetween1891and1948SubstitutedLater() /** * Tests Queens Day between 1949 and 2013. + * @throws \Exception + * @throws \ReflectionException */ public function testQueensBetween1949and2013() { @@ -71,6 +77,8 @@ public function testQueensBetween1949and2013() /** * Tests Queens Day between 1949 and 2013 substituted one day later. + * @throws \Exception + * @throws \ReflectionException */ public function testQueensBetween1949and2013SubstitutedLater() { @@ -85,6 +93,8 @@ public function testQueensBetween1949and2013SubstitutedLater() /** * Tests Queens Day between 1949 and 2013 substituted one day earlier. + * @throws \Exception + * @throws \ReflectionException */ public function testQueensBetween1949and2013SubstitutedEarlier() { @@ -99,6 +109,7 @@ public function testQueensBetween1949and2013SubstitutedEarlier() /** * Tests Queen's Day before 1891. + * @throws \ReflectionException */ public function testQueensDayBefore1891() { @@ -107,6 +118,7 @@ public function testQueensDayBefore1891() /** * Tests Queen's Day after 2013. + * @throws \ReflectionException */ public function testQueensDayAfter2013() { @@ -115,6 +127,7 @@ public function testQueensDayAfter2013() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -128,6 +141,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/SummertimeTest.php b/tests/Netherlands/SummertimeTest.php index 6f4d62366..e98803781 100644 --- a/tests/Netherlands/SummertimeTest.php +++ b/tests/Netherlands/SummertimeTest.php @@ -29,6 +29,9 @@ class SummertimeTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * Tests Summertime. + * + * @throws \Exception + * @throws \ReflectionException */ public function testSummertime() { @@ -53,6 +56,7 @@ public function testSummertime() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/ValentinesDayTest.php b/tests/Netherlands/ValentinesDayTest.php index 00fc3d6f8..344ab4fd5 100644 --- a/tests/Netherlands/ValentinesDayTest.php +++ b/tests/Netherlands/ValentinesDayTest.php @@ -33,6 +33,8 @@ class ValentinesDayTest extends NetherlandsBaseTestCase implements YasumiTestCas * * @param int $year the year for which Valentines Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testValentinesDay($year, $expected) { @@ -43,6 +45,7 @@ public function testValentinesDay($year, $expected) * Returns a list of random test dates used for assertion of Valentines Day. * * @return array list of test dates for Valentines Day + * @throws \Exception */ public function ValentinesDayDataProvider(): array { @@ -52,6 +55,7 @@ public function ValentinesDayDataProvider(): array /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -60,6 +64,7 @@ public function testHolidayType() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { diff --git a/tests/Netherlands/WintertimeTest.php b/tests/Netherlands/WintertimeTest.php index ab11ae630..a0594dc95 100644 --- a/tests/Netherlands/WintertimeTest.php +++ b/tests/Netherlands/WintertimeTest.php @@ -29,6 +29,8 @@ class WintertimeTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * Tests Wintertime. + * @throws \Exception + * @throws \ReflectionException */ public function testWintertime() { @@ -53,6 +55,7 @@ public function testWintertime() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/WorldAnimalDayTest.php b/tests/Netherlands/WorldAnimalDayTest.php index 6f62bf111..0733ee26c 100644 --- a/tests/Netherlands/WorldAnimalDayTest.php +++ b/tests/Netherlands/WorldAnimalDayTest.php @@ -34,6 +34,8 @@ class WorldAnimalDayTest extends NetherlandsBaseTestCase implements YasumiTestCa /** * Tests World Animal Day on or after 1931. + * @throws \Exception + * @throws \ReflectionException */ public function testWorldAnimalDayOnAfter1931() { @@ -48,6 +50,7 @@ public function testWorldAnimalDayOnAfter1931() /** * Tests World Animal Day before 1931. + * @throws \ReflectionException */ public function testWorldAnimalBefore1931() { @@ -60,6 +63,7 @@ public function testWorldAnimalBefore1931() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -73,6 +77,7 @@ public function testHolidayType() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { diff --git a/tests/Netherlands/carnivalDayTest.php b/tests/Netherlands/carnivalDayTest.php index 21b9276de..a806b9248 100644 --- a/tests/Netherlands/carnivalDayTest.php +++ b/tests/Netherlands/carnivalDayTest.php @@ -30,6 +30,8 @@ class carnivalDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -44,6 +46,7 @@ public function testHoliday() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -52,6 +55,7 @@ public function testHolidayType() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { diff --git a/tests/Netherlands/pentecostMondayTest.php b/tests/Netherlands/pentecostMondayTest.php index 540129055..28dfbee12 100644 --- a/tests/Netherlands/pentecostMondayTest.php +++ b/tests/Netherlands/pentecostMondayTest.php @@ -29,6 +29,8 @@ class pentecostMondayTest extends NetherlandsBaseTestCase implements YasumiTestC /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/princesDayTest.php b/tests/Netherlands/princesDayTest.php index 7b5dc27bb..32db9f77f 100644 --- a/tests/Netherlands/princesDayTest.php +++ b/tests/Netherlands/princesDayTest.php @@ -29,6 +29,8 @@ class princesDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * Tests Prince's Day. + * @throws \Exception + * @throws \ReflectionException */ public function testPrincesDay() { @@ -43,6 +45,7 @@ public function testPrincesDay() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/secondCarnivalDay.php b/tests/Netherlands/secondCarnivalDay.php index 6073de0e8..027cd8a1f 100644 --- a/tests/Netherlands/secondCarnivalDay.php +++ b/tests/Netherlands/secondCarnivalDay.php @@ -35,6 +35,8 @@ class secondCarnivalDay extends NetherlandsBaseTestCase implements YasumiTestCas * @throws \InvalidArgumentException * @throws \PHPUnit_Framework_AssertionFailedError * @throws \RuntimeException + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday() { @@ -54,6 +56,7 @@ public function testHoliday() * @throws \PHPUnit_Framework_AssertionFailedError * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function testHolidayType() { @@ -67,6 +70,7 @@ public function testHolidayType() * @throws \PHPUnit_Framework_AssertionFailedError * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function testTranslation() { diff --git a/tests/Netherlands/secondChristmasdayTest.php b/tests/Netherlands/secondChristmasdayTest.php index c39539add..90d6b9e1a 100644 --- a/tests/Netherlands/secondChristmasdayTest.php +++ b/tests/Netherlands/secondChristmasdayTest.php @@ -33,6 +33,8 @@ class secondChristmasdayTest extends NetherlandsBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/stMartinsDayTest.php b/tests/Netherlands/stMartinsDayTest.php index 592afea54..37ac9707f 100644 --- a/tests/Netherlands/stMartinsDayTest.php +++ b/tests/Netherlands/stMartinsDayTest.php @@ -33,6 +33,8 @@ class stMartinsDayTest extends NetherlandsBaseTestCase implements YasumiTestCase * * @param int $year the year for which Sint Martins Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function teststMartinsDay($year, $expected) { @@ -43,6 +45,7 @@ public function teststMartinsDay($year, $expected) * Returns a list of random test dates used for assertion of Sint Martins Day. * * @return array list of test dates for Sint Martins Day + * @throws \Exception */ public function stMartinsDayDataProvider(): array { @@ -51,6 +54,7 @@ public function stMartinsDayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/stNicholasDayTest.php b/tests/Netherlands/stNicholasDayTest.php index 19a7c92be..ea1fe2e2e 100644 --- a/tests/Netherlands/stNicholasDayTest.php +++ b/tests/Netherlands/stNicholasDayTest.php @@ -34,6 +34,8 @@ class stNicholasDayTest extends NetherlandsBaseTestCase implements YasumiTestCas * * @param int $year the year for which Sint Nicholas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function teststNicholasDay($year, $expected) { @@ -44,6 +46,7 @@ public function teststNicholasDay($year, $expected) * Returns a list of random test dates used for assertion of Sint Nicholas Day. * * @return array list of test dates for Sint Nicholas Day + * @throws \Exception */ public function stNicholasDayDataProvider(): array { @@ -52,6 +55,7 @@ public function stNicholasDayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Netherlands/thirdCarnivalDay.php b/tests/Netherlands/thirdCarnivalDay.php index d1ec8884b..06ff9fd2c 100644 --- a/tests/Netherlands/thirdCarnivalDay.php +++ b/tests/Netherlands/thirdCarnivalDay.php @@ -35,6 +35,8 @@ class thirdCarnivalDay extends NetherlandsBaseTestCase implements YasumiTestCase * @throws \InvalidArgumentException * @throws \PHPUnit_Framework_AssertionFailedError * @throws \RuntimeException + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday() { @@ -54,6 +56,7 @@ public function testHoliday() * @throws \PHPUnit_Framework_AssertionFailedError * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function testHolidayType() { @@ -67,6 +70,7 @@ public function testHolidayType() * @throws \PHPUnit_Framework_AssertionFailedError * @throws \RuntimeException * @throws \Yasumi\Exception\UnknownLocaleException + * @throws \ReflectionException */ public function testTranslation() { diff --git a/tests/NewZealand/AnzacDayTest.php b/tests/NewZealand/AnzacDayTest.php index 1bc6ef4f5..a4c616eaf 100644 --- a/tests/NewZealand/AnzacDayTest.php +++ b/tests/NewZealand/AnzacDayTest.php @@ -39,6 +39,9 @@ class AnzacDayTest extends NewZealandBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -52,6 +55,7 @@ public function testHoliday($year, $expected) /** * Tests that Labour Day is not present before 1921 + * @throws \ReflectionException */ public function testNotHoliday() { @@ -62,6 +66,7 @@ public function testNotHoliday() * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -75,6 +80,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -88,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index 4027709ce..f76962d7e 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -35,6 +35,9 @@ class BoxingDayTest extends NewZealandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -71,6 +75,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +89,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index d2e12293a..2e9704e60 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -35,6 +35,9 @@ class ChristmasDayTest extends NewZealandBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -71,6 +75,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +89,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/DayAfterNewYearsDayTest.php b/tests/NewZealand/DayAfterNewYearsDayTest.php index 043b60db0..cbda1c3dd 100644 --- a/tests/NewZealand/DayAfterNewYearsDayTest.php +++ b/tests/NewZealand/DayAfterNewYearsDayTest.php @@ -35,6 +35,9 @@ class DayAfterNewYearsDayTest extends NewZealandBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -48,6 +51,7 @@ public function testHoliday($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -61,6 +65,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -71,6 +76,7 @@ public function testHolidayType() * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/NewZealand/EasterMondayTest.php b/tests/NewZealand/EasterMondayTest.php index 1cfb1526f..035a30490 100644 --- a/tests/NewZealand/EasterMondayTest.php +++ b/tests/NewZealand/EasterMondayTest.php @@ -35,6 +35,9 @@ class EasterMondayTest extends NewZealandBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -69,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -82,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/GoodFridayTest.php b/tests/NewZealand/GoodFridayTest.php index 2bb57559e..f05691c4d 100644 --- a/tests/NewZealand/GoodFridayTest.php +++ b/tests/NewZealand/GoodFridayTest.php @@ -35,6 +35,9 @@ class GoodFridayTest extends NewZealandBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -68,6 +71,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -81,6 +85,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/LabourDayTest.php b/tests/NewZealand/LabourDayTest.php index 0e4bc1951..d9b85aa6e 100644 --- a/tests/NewZealand/LabourDayTest.php +++ b/tests/NewZealand/LabourDayTest.php @@ -39,6 +39,9 @@ class LabourDayTest extends NewZealandBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -52,6 +55,7 @@ public function testHoliday($year, $expected) /** * Tests that Labour Day is not present before 1900 + * @throws \ReflectionException */ public function testNotHoliday() { @@ -62,6 +66,7 @@ public function testNotHoliday() * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -82,6 +87,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -95,6 +101,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/NewYearsDayTest.php b/tests/NewZealand/NewYearsDayTest.php index c7e1f1525..5c135fe30 100644 --- a/tests/NewZealand/NewYearsDayTest.php +++ b/tests/NewZealand/NewYearsDayTest.php @@ -35,6 +35,9 @@ class NewYearsDayTest extends NewZealandBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -50,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -76,6 +80,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -89,6 +94,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/NewZealandTest.php b/tests/NewZealand/NewZealandTest.php index 9cc6e8e72..bfaf4c34c 100644 --- a/tests/NewZealand/NewZealandTest.php +++ b/tests/NewZealand/NewZealandTest.php @@ -26,6 +26,7 @@ class NewZealandTest extends NewZealandBaseTestCase /** * Tests if all official holidays in New Zealand are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -44,6 +45,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in New Zealand are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -52,6 +54,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in New Zealand are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -60,6 +63,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in New Zealand are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +72,7 @@ public function testBankHolidays() /** * Tests if all other holidays in New Zealand are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/NewZealand/QueensBirthdayTest.php b/tests/NewZealand/QueensBirthdayTest.php index 185ca4a35..0b1681693 100644 --- a/tests/NewZealand/QueensBirthdayTest.php +++ b/tests/NewZealand/QueensBirthdayTest.php @@ -39,6 +39,8 @@ class QueensBirthdayTest extends NewZealandBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -47,6 +49,7 @@ public function testHoliday($year, $expected) /** * Tests that Holiday is not present before 1952 + * @throws \ReflectionException */ public function testNotHoliday() { @@ -57,6 +60,7 @@ public function testNotHoliday() * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -73,6 +77,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +91,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/NewZealand/WaitangiDayTest.php b/tests/NewZealand/WaitangiDayTest.php index 4b2fd1a7c..6c08d81f7 100644 --- a/tests/NewZealand/WaitangiDayTest.php +++ b/tests/NewZealand/WaitangiDayTest.php @@ -39,6 +39,9 @@ class WaitangiDayTest extends NewZealandBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -52,6 +55,7 @@ public function testHoliday($year, $expected) /** * Tests that Holiday is not present before 1974 + * @throws \ReflectionException */ public function testNotHoliday() { @@ -60,6 +64,7 @@ public function testNotHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -88,6 +94,7 @@ public function testHolidayType() * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { diff --git a/tests/Norway/AscensionDayTest.php b/tests/Norway/AscensionDayTest.php index 88ad979c5..87d86dfa2 100644 --- a/tests/Norway/AscensionDayTest.php +++ b/tests/Norway/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends NorwayBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/ChristmasDayTest.php b/tests/Norway/ChristmasDayTest.php index 0c2eb90ec..66147b86c 100644 --- a/tests/Norway/ChristmasDayTest.php +++ b/tests/Norway/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends NorwayBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/ConstitutionDayTest.php b/tests/Norway/ConstitutionDayTest.php index 89fa43eeb..f29825396 100644 --- a/tests/Norway/ConstitutionDayTest.php +++ b/tests/Norway/ConstitutionDayTest.php @@ -34,6 +34,8 @@ class ConstitutionDayTest extends NorwayBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/EasterMondayTest.php b/tests/Norway/EasterMondayTest.php index 9ff1504f1..038e6170d 100644 --- a/tests/Norway/EasterMondayTest.php +++ b/tests/Norway/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends NorwayBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/EasterTest.php b/tests/Norway/EasterTest.php index 567277d9d..f819dc706 100644 --- a/tests/Norway/EasterTest.php +++ b/tests/Norway/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends NorwayBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/GoodFridayTest.php b/tests/Norway/GoodFridayTest.php index 0685b42bf..3c37809b8 100644 --- a/tests/Norway/GoodFridayTest.php +++ b/tests/Norway/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends NorwayBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/InternationalWorkersDayTest.php b/tests/Norway/InternationalWorkersDayTest.php index 0ae3a0092..a0d3ef25f 100644 --- a/tests/Norway/InternationalWorkersDayTest.php +++ b/tests/Norway/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends NorwayBaseTestCase implements YasumiTe * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/Norway/MaundyThursdayTest.php b/tests/Norway/MaundyThursdayTest.php index bd76f7561..3eee7e8a5 100644 --- a/tests/Norway/MaundyThursdayTest.php +++ b/tests/Norway/MaundyThursdayTest.php @@ -29,6 +29,8 @@ class MaundyThursdayTest extends NorwayBaseTestCase implements YasumiTestCaseInt /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/NewYearsDayTest.php b/tests/Norway/NewYearsDayTest.php index 94830ef1d..f984ae6ba 100644 --- a/tests/Norway/NewYearsDayTest.php +++ b/tests/Norway/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends NorwayBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/NorwayTest.php b/tests/Norway/NorwayTest.php index 548bca15b..2fa232206 100644 --- a/tests/Norway/NorwayTest.php +++ b/tests/Norway/NorwayTest.php @@ -26,6 +26,7 @@ class NorwayTest extends NorwayBaseTestCase /** * Tests if all official holidays in Norway are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Norway are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -55,6 +57,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Norway are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -63,6 +66,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Norway are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -71,6 +75,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Norway are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Norway/PentecostMondayTest.php b/tests/Norway/PentecostMondayTest.php index c260cfd73..9575024a3 100644 --- a/tests/Norway/PentecostMondayTest.php +++ b/tests/Norway/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends NorwayBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/PentecostTest.php b/tests/Norway/PentecostTest.php index c36b3f58d..40f20b573 100644 --- a/tests/Norway/PentecostTest.php +++ b/tests/Norway/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends NorwayBaseTestCase implements YasumiTestCaseInterfac /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Norway/SecondChristmasDayTest.php b/tests/Norway/SecondChristmasDayTest.php index a66776aac..9811e66e2 100644 --- a/tests/Norway/SecondChristmasDayTest.php +++ b/tests/Norway/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends NorwayBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/AllSaintsDayTest.php b/tests/Poland/AllSaintsDayTest.php index 07f97cb34..cde0ce840 100644 --- a/tests/Poland/AllSaintsDayTest.php +++ b/tests/Poland/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends PolandBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/AssumptionOfMaryTest.php b/tests/Poland/AssumptionOfMaryTest.php index b133bf720..4777e9693 100644 --- a/tests/Poland/AssumptionOfMaryTest.php +++ b/tests/Poland/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends PolandBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/ChristmasTest.php b/tests/Poland/ChristmasTest.php index 93342e873..e86e1d83c 100644 --- a/tests/Poland/ChristmasTest.php +++ b/tests/Poland/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends PolandBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/ConstitutionDayTest.php b/tests/Poland/ConstitutionDayTest.php index ea7dd544d..390ee6c17 100644 --- a/tests/Poland/ConstitutionDayTest.php +++ b/tests/Poland/ConstitutionDayTest.php @@ -34,6 +34,8 @@ class ConstitutionDayTest extends PolandBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/CorpusChristiTest.php b/tests/Poland/CorpusChristiTest.php index 707bb71da..2584269d6 100644 --- a/tests/Poland/CorpusChristiTest.php +++ b/tests/Poland/CorpusChristiTest.php @@ -29,6 +29,8 @@ class CorpusChristiTest extends PolandBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of Corpus Christi. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/EasterMondayTest.php b/tests/Poland/EasterMondayTest.php index 5f08cce02..1f0def165 100644 --- a/tests/Poland/EasterMondayTest.php +++ b/tests/Poland/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends PolandBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/EasterTest.php b/tests/Poland/EasterTest.php index 3bd6dc89b..4c2fa119e 100644 --- a/tests/Poland/EasterTest.php +++ b/tests/Poland/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends PolandBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/EpiphanyTest.php b/tests/Poland/EpiphanyTest.php index 861c9a13e..82b0ef918 100644 --- a/tests/Poland/EpiphanyTest.php +++ b/tests/Poland/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends PolandBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which Epiphany needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testEpiphany($year, $expected) { @@ -43,6 +45,7 @@ public function testEpiphany($year, $expected) * Returns a list of random test dates used for assertion of Epiphany. * * @return array list of test dates for Epiphany + * @throws \Exception */ public function EpiphanyDataProvider(): array { @@ -51,6 +54,7 @@ public function EpiphanyDataProvider(): array /** * Tests translated name of Epiphany. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/IndependenceDayTest.php b/tests/Poland/IndependenceDayTest.php index 624515cf4..c9d4e47d7 100644 --- a/tests/Poland/IndependenceDayTest.php +++ b/tests/Poland/IndependenceDayTest.php @@ -34,6 +34,8 @@ class IndependenceDayTest extends PolandBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/InternationalWorkersDayTest.php b/tests/Poland/InternationalWorkersDayTest.php index ed9e226bc..d52789a29 100644 --- a/tests/Poland/InternationalWorkersDayTest.php +++ b/tests/Poland/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends PolandBaseTestCase implements YasumiTe * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/Poland/NewYearsDayTest.php b/tests/Poland/NewYearsDayTest.php index b5c68411d..e78f45831 100644 --- a/tests/Poland/NewYearsDayTest.php +++ b/tests/Poland/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends PolandBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/PentecostTest.php b/tests/Poland/PentecostTest.php index 687d4e85f..db91ab567 100644 --- a/tests/Poland/PentecostTest.php +++ b/tests/Poland/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends PolandBaseTestCase implements YasumiTestCaseInterfac /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Poland/PolandTest.php b/tests/Poland/PolandTest.php index 3bc393f5d..afae94879 100644 --- a/tests/Poland/PolandTest.php +++ b/tests/Poland/PolandTest.php @@ -26,6 +26,7 @@ class PolandTest extends PolandBaseTestCase /** * Tests if all official holidays in Poland are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Poland are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -55,6 +57,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Poland are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -63,6 +66,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Poland are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -71,6 +75,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Poland are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Poland/SecondChristmasDayTest.php b/tests/Poland/SecondChristmasDayTest.php index 8089c87b4..c4ee40391 100644 --- a/tests/Poland/SecondChristmasDayTest.php +++ b/tests/Poland/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends PolandBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/AllSaintsDayTest.php b/tests/Portugal/AllSaintsDayTest.php index 853110f23..a16dcfef1 100644 --- a/tests/Portugal/AllSaintsDayTest.php +++ b/tests/Portugal/AllSaintsDayTest.php @@ -39,6 +39,10 @@ class AllSaintsDayTest extends PortugalBaseTestCase implements YasumiTestCaseInt /** * Tests the holiday defined in this test. + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday() { @@ -53,6 +57,7 @@ public function testHoliday() /** * Test that the holiday did not happen in 2014 and 2015. + * @throws \ReflectionException */ public function testNotHoliday() { @@ -62,6 +67,7 @@ public function testNotHoliday() /** * Tests translated name of Corpus Christi. + * @throws \ReflectionException */ public function testTranslation() { @@ -76,6 +82,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/AssumptionOfMaryTest.php b/tests/Portugal/AssumptionOfMaryTest.php index ea21ad5e1..506ae535e 100644 --- a/tests/Portugal/AssumptionOfMaryTest.php +++ b/tests/Portugal/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends PortugalBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/CarnationRevolutionDayTest.php b/tests/Portugal/CarnationRevolutionDayTest.php index b562dd1b0..87f7e31ad 100644 --- a/tests/Portugal/CarnationRevolutionDayTest.php +++ b/tests/Portugal/CarnationRevolutionDayTest.php @@ -34,6 +34,8 @@ class CarnationRevolutionDayTest extends PortugalBaseTestCase implements YasumiT /** * Test that the holiday is valid after the year of establishment + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayAfterEstablishment() { @@ -44,6 +46,7 @@ public function testHolidayAfterEstablishment() /** * Tests that the holiday is not a holiday before the year of establishment + * @throws \ReflectionException */ public function testNotHolidayBeforeEstablishment() { @@ -53,6 +56,7 @@ public function testNotHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/ChristmasTest.php b/tests/Portugal/ChristmasTest.php index 3b339d7b9..449d22d96 100644 --- a/tests/Portugal/ChristmasTest.php +++ b/tests/Portugal/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends PortugalBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/CorpusChristiTest.php b/tests/Portugal/CorpusChristiTest.php index c75d8f8b4..6007463f1 100644 --- a/tests/Portugal/CorpusChristiTest.php +++ b/tests/Portugal/CorpusChristiTest.php @@ -39,6 +39,8 @@ class CorpusChristiTest extends PortugalBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test. + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday() { @@ -49,6 +51,7 @@ public function testHoliday() /** * Test that the holiday did not happen in 2014 and 2015. + * @throws \ReflectionException */ public function testNotHoliday() { @@ -58,6 +61,7 @@ public function testNotHoliday() /** * Tests translated name of Corpus Christi. + * @throws \ReflectionException */ public function testTranslation() { @@ -67,6 +71,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/EasterTest.php b/tests/Portugal/EasterTest.php index 1d4224d03..94c456e15 100644 --- a/tests/Portugal/EasterTest.php +++ b/tests/Portugal/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends PortugalBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/GoodFridayTest.php b/tests/Portugal/GoodFridayTest.php index ece1e24eb..e044092a6 100644 --- a/tests/Portugal/GoodFridayTest.php +++ b/tests/Portugal/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends PortugalBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/ImmaculateConceptionTest.php b/tests/Portugal/ImmaculateConceptionTest.php index 5e308f4ef..73ea20227 100644 --- a/tests/Portugal/ImmaculateConceptionTest.php +++ b/tests/Portugal/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends PortugalBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/InternationalWorkersDayTest.php b/tests/Portugal/InternationalWorkersDayTest.php index 2d13e636f..10c12567e 100644 --- a/tests/Portugal/InternationalWorkersDayTest.php +++ b/tests/Portugal/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends PortugalBaseTestCase implements Yasumi * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/Portugal/NewYearsDayTest.php b/tests/Portugal/NewYearsDayTest.php index e73f00799..eb5c0fa76 100644 --- a/tests/Portugal/NewYearsDayTest.php +++ b/tests/Portugal/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends PortugalBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/PortugalDayTest.php b/tests/Portugal/PortugalDayTest.php index 556a41ca9..74653a6c7 100644 --- a/tests/Portugal/PortugalDayTest.php +++ b/tests/Portugal/PortugalDayTest.php @@ -41,6 +41,8 @@ class PortugalDayTest extends PortugalBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test before it was abolished. * @see Portugal::calculatePortugalDay() + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayBeforeAbolishment() { @@ -52,6 +54,8 @@ public function testHolidayBeforeAbolishment() /** * Tests the holiday defined in this test after it was restored * @see Portugal::calculatePortugalDay() + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayAfterRestoration() { @@ -63,6 +67,8 @@ public function testHolidayAfterRestoration() /** * Tests that the holiday defined in this test does not exist during the period that it was abolished * @see Portugal::calculatePortugalDay() + * + * @throws \ReflectionException */ public function testNotHolidayDuringAbolishment() { @@ -75,6 +81,8 @@ public function testNotHolidayDuringAbolishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -87,6 +95,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index da0f00108..ef8535b13 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -26,6 +26,7 @@ class PortugalTest extends PortugalBaseTestCase /** * Tests if all official holidays in Portugal are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Portugal are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -55,6 +57,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Portugal are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -63,6 +66,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Portugal are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -71,6 +75,7 @@ public function testBankHolidays() /** * Tests if all other holidays in PortugalPortugal are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Portugal/PortugueseRepublicDayTest.php b/tests/Portugal/PortugueseRepublicDayTest.php index 55676eb45..8221ddd08 100644 --- a/tests/Portugal/PortugueseRepublicDayTest.php +++ b/tests/Portugal/PortugueseRepublicDayTest.php @@ -34,6 +34,10 @@ class PortugueseRepublicDayTest extends PortugalBaseTestCase implements YasumiTe /** * Tests the holiday defined in this test on or after establishment. + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayOnAfterEstablishment() { @@ -49,6 +53,8 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -61,6 +67,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +81,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Portugal/RestorationOfIndependenceTest.php b/tests/Portugal/RestorationOfIndependenceTest.php index 36e894db7..f51a3673d 100644 --- a/tests/Portugal/RestorationOfIndependenceTest.php +++ b/tests/Portugal/RestorationOfIndependenceTest.php @@ -44,6 +44,10 @@ class RestorationOfIndependenceTest extends PortugalBaseTestCase implements Yasu /** * Tests the holiday defined in this test on or after establishment. + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayOnAfterEstablishment() { @@ -59,6 +63,10 @@ public function testHolidayOnAfterEstablishment() /** * Test that the holiday if in effect in 2016 and later dates. + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayOnAfterRestoration() { @@ -75,6 +83,7 @@ public function testHolidayOnAfterRestoration() /** * Test that the holiday did not happen in 2014 and 2015. + * @throws \ReflectionException */ public function testNotHolidayDuringAbolishment() { @@ -84,6 +93,8 @@ public function testNotHolidayDuringAbolishment() /** * Tests the holiday defined in this test before establishment. + * + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -96,6 +107,8 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testTranslation() { @@ -118,6 +131,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/AssumptionOfMaryTest.php b/tests/Romania/AssumptionOfMaryTest.php index 47ecc1a1e..8dab2d554 100644 --- a/tests/Romania/AssumptionOfMaryTest.php +++ b/tests/Romania/AssumptionOfMaryTest.php @@ -34,6 +34,8 @@ class AssumptionOfMaryTest extends RomaniaBaseTestCase implements YasumiTestCase /** * Tests Assumption Of Mary Day on or after 2008. + * @throws \Exception + * @throws \ReflectionException */ public function testAssumptionOfMaryDayOnAfter2008() { @@ -48,6 +50,7 @@ public function testAssumptionOfMaryDayOnAfter2008() /** * Tests Assumption of Mary Day before 2008. + * @throws \ReflectionException */ public function testAssumptionOfMaryDayBefore2008() { @@ -60,6 +63,7 @@ public function testAssumptionOfMaryDayBefore2008() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/ChildrensDayTest.php b/tests/Romania/ChildrensDayTest.php index 8328eae58..85e0712f8 100644 --- a/tests/Romania/ChildrensDayTest.php +++ b/tests/Romania/ChildrensDayTest.php @@ -34,6 +34,8 @@ class ChildrensDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInte /** * Tests Children's Day on or after 1950. + * @throws \Exception + * @throws \ReflectionException */ public function testChildrensDayOnAfter1950() { @@ -48,6 +50,7 @@ public function testChildrensDayOnAfter1950() /** * Tests Children's Day before 1950. + * @throws \ReflectionException */ public function testChildrensDayBefore1950() { @@ -60,6 +63,7 @@ public function testChildrensDayBefore1950() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,8 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/ChristmasDayTest.php b/tests/Romania/ChristmasDayTest.php index 8fdf6f482..5c37bd43a 100644 --- a/tests/Romania/ChristmasDayTest.php +++ b/tests/Romania/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/ConstantinBrancusiDayTest.php b/tests/Romania/ConstantinBrancusiDayTest.php index 401659445..86fd66f4f 100644 --- a/tests/Romania/ConstantinBrancusiDayTest.php +++ b/tests/Romania/ConstantinBrancusiDayTest.php @@ -34,6 +34,8 @@ class ConstantinBrancusiDayTest extends RomaniaBaseTestCase implements YasumiTes /** * Tests Constantin Brancusi Day on or after 2016. + * @throws \Exception + * @throws \ReflectionException */ public function testConstantinBrancusiDayOnAfter2016() { @@ -48,6 +50,7 @@ public function testConstantinBrancusiDayOnAfter2016() /** * Tests Constantin Brancusi Day before 2016. + * @throws \ReflectionException */ public function testConstantinBrancusiDayBefore2016() { @@ -60,6 +63,7 @@ public function testConstantinBrancusiDayBefore2016() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/DayAfterNewYearsDayTest.php b/tests/Romania/DayAfterNewYearsDayTest.php index 7e7872475..b35f158f6 100644 --- a/tests/Romania/DayAfterNewYearsDayTest.php +++ b/tests/Romania/DayAfterNewYearsDayTest.php @@ -33,6 +33,8 @@ class DayAfterNewYearsDayTest extends RomaniaBaseTestCase implements YasumiTestC * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/EasterMondayTest.php b/tests/Romania/EasterMondayTest.php index 3359946f5..d19cce7dc 100755 --- a/tests/Romania/EasterMondayTest.php +++ b/tests/Romania/EasterMondayTest.php @@ -30,6 +30,8 @@ class EasterMondayTest extends RomaniaBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -44,6 +46,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -57,6 +60,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/EasterTest.php b/tests/Romania/EasterTest.php index 4b87bf13f..cc4a3cbad 100755 --- a/tests/Romania/EasterTest.php +++ b/tests/Romania/EasterTest.php @@ -30,6 +30,8 @@ class EasterTest extends RomaniaBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -44,6 +46,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -57,6 +60,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/InternationalWorkersDayTest.php b/tests/Romania/InternationalWorkersDayTest.php index b26fd718b..a714a2b5f 100755 --- a/tests/Romania/InternationalWorkersDayTest.php +++ b/tests/Romania/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends RomaniaBaseTestCase implements YasumiT * * @param int $year the year for which International Workers' Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/Romania/NationalDayTest.php b/tests/Romania/NationalDayTest.php index ea4350723..bbb0d8bfb 100644 --- a/tests/Romania/NationalDayTest.php +++ b/tests/Romania/NationalDayTest.php @@ -34,6 +34,8 @@ class NationalDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInter /** * Tests National Day on or after 1990. + * @throws \Exception + * @throws \ReflectionException */ public function testNationalDayOnAfter1990() { @@ -48,6 +50,8 @@ public function testNationalDayOnAfter1990() /** * Tests National Day between 1948 - 1989. + * @throws \Exception + * @throws \ReflectionException */ public function testNationalDayBetween1948_1989() { @@ -62,6 +66,8 @@ public function testNationalDayBetween1948_1989() /** * Tests National Day between 1866 - 1947. + * @throws \Exception + * @throws \ReflectionException */ public function testNationalDayBetween1866_1947() { @@ -76,6 +82,7 @@ public function testNationalDayBetween1866_1947() /** * Tests National Day before 1865. + * @throws \ReflectionException */ public function testNationalDayBefore1865() { @@ -88,6 +95,7 @@ public function testNationalDayBefore1865() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -101,6 +109,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/NewYearsDayTest.php b/tests/Romania/NewYearsDayTest.php index f6347771d..7099db6f8 100644 --- a/tests/Romania/NewYearsDayTest.php +++ b/tests/Romania/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/PentecostMondayTest.php b/tests/Romania/PentecostMondayTest.php index a89090329..5bd784cde 100644 --- a/tests/Romania/PentecostMondayTest.php +++ b/tests/Romania/PentecostMondayTest.php @@ -35,6 +35,8 @@ class PentecostMondayTest extends RomaniaBaseTestCase implements YasumiTestCaseI /** * Tests the Pentecost Monday Day on and after 2008. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMondayOnAfter2008() { @@ -49,6 +51,7 @@ public function testPentecostMondayOnAfter2008() /** * Tests the Pentecost Day before 2008. + * @throws \ReflectionException */ public function testPentecostMondayBefore2008() { @@ -61,6 +64,7 @@ public function testPentecostMondayBefore2008() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/PentecostTest.php b/tests/Romania/PentecostTest.php index 0be003bdc..c7a415547 100644 --- a/tests/Romania/PentecostTest.php +++ b/tests/Romania/PentecostTest.php @@ -35,6 +35,8 @@ class PentecostTest extends RomaniaBaseTestCase implements YasumiTestCaseInterfa /** * Tests the Pentecost Day on and after 2008. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostDayOnAfter2008() { @@ -49,6 +51,7 @@ public function testPentecostDayOnAfter2008() /** * Tests the Pentecost Day before 2008. + * @throws \ReflectionException */ public function testPentecostDayBefore2008() { @@ -61,6 +64,7 @@ public function testPentecostDayBefore2008() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/RomaniaTest.php b/tests/Romania/RomaniaTest.php index 9725eb61b..38ec74512 100755 --- a/tests/Romania/RomaniaTest.php +++ b/tests/Romania/RomaniaTest.php @@ -28,6 +28,7 @@ class RomaniaTest extends RomaniaBaseTestCase /** * Tests if all official holidays in Romania are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -56,6 +57,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Romania are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -74,6 +76,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Romania are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -82,6 +85,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Romania are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -90,6 +94,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Romania are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Romania/SecondChristmasDayTest.php b/tests/Romania/SecondChristmasDayTest.php index d36b09072..134380d0a 100644 --- a/tests/Romania/SecondChristmasDayTest.php +++ b/tests/Romania/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends RomaniaBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/StAndrewDayTest.php b/tests/Romania/StAndrewDayTest.php index 20ef72bbc..4fb4b396a 100644 --- a/tests/Romania/StAndrewDayTest.php +++ b/tests/Romania/StAndrewDayTest.php @@ -34,6 +34,8 @@ class StAndrewDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInter /** * Tests Saint Andrew Day on or after 2012. + * @throws \Exception + * @throws \ReflectionException */ public function testStAndrewDayOnAfter2012() { @@ -48,6 +50,7 @@ public function testStAndrewDayOnAfter2012() /** * Tests Saint Andrew before 2012. + * @throws \ReflectionException */ public function testStAndrewDayBefore2012() { @@ -60,6 +63,7 @@ public function testStAndrewDayBefore2012() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Romania/UnitedPrincipalitiesDayTest.php b/tests/Romania/UnitedPrincipalitiesDayTest.php index 7798b19e4..4a3331b16 100644 --- a/tests/Romania/UnitedPrincipalitiesDayTest.php +++ b/tests/Romania/UnitedPrincipalitiesDayTest.php @@ -34,6 +34,8 @@ class UnitedPrincipalitiesDayTest extends RomaniaBaseTestCase implements YasumiT /** * Tests united Principalities Day on or after 2015. + * @throws \Exception + * @throws \ReflectionException */ public function testUnitedPrincipalitiesDayOnAfter2015() { @@ -48,6 +50,7 @@ public function testUnitedPrincipalitiesDayOnAfter2015() /** * Tests unitedPrincipalitiesDay before 2015. + * @throws \ReflectionException */ public function testUnitedPrincipalitiesDayBefore2015() { @@ -60,6 +63,7 @@ public function testUnitedPrincipalitiesDayBefore2015() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/DefenceOfTheFatherlandDayTest.php b/tests/Russia/DefenceOfTheFatherlandDayTest.php index f340e5d5e..88c526e24 100644 --- a/tests/Russia/DefenceOfTheFatherlandDayTest.php +++ b/tests/Russia/DefenceOfTheFatherlandDayTest.php @@ -30,6 +30,7 @@ class DefenceOfTheFatherlandDayTest extends RussiaBaseTestCase implements Yasumi /** * Test if holiday is not defined before + * @throws \ReflectionException */ public function testHolidayBefore() { @@ -42,6 +43,8 @@ public function testHolidayBefore() /** * Test if holiday is defined after + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfter() { @@ -57,6 +60,8 @@ public function testHolidayAfter() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -76,6 +81,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/InternationalWomensDayTest.php b/tests/Russia/InternationalWomensDayTest.php index 73c2a3cce..2b734f4b2 100644 --- a/tests/Russia/InternationalWomensDayTest.php +++ b/tests/Russia/InternationalWomensDayTest.php @@ -30,6 +30,7 @@ class InternationalWomensDayTest extends RussiaBaseTestCase implements YasumiTes /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearHolidaysDay2Test.php b/tests/Russia/NewYearHolidaysDay2Test.php index 8ca50acd3..140f82b50 100644 --- a/tests/Russia/NewYearHolidaysDay2Test.php +++ b/tests/Russia/NewYearHolidaysDay2Test.php @@ -30,6 +30,7 @@ class NewYearHolidaysDay2Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearHolidaysDay3Test.php b/tests/Russia/NewYearHolidaysDay3Test.php index 8d5a43522..e7fb0b56b 100644 --- a/tests/Russia/NewYearHolidaysDay3Test.php +++ b/tests/Russia/NewYearHolidaysDay3Test.php @@ -30,6 +30,7 @@ class NewYearHolidaysDay3Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearHolidaysDay4Test.php b/tests/Russia/NewYearHolidaysDay4Test.php index cd26c317f..da03373b7 100644 --- a/tests/Russia/NewYearHolidaysDay4Test.php +++ b/tests/Russia/NewYearHolidaysDay4Test.php @@ -29,6 +29,7 @@ class NewYearHolidaysDay4Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -40,6 +41,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -48,6 +51,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -61,6 +65,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearHolidaysDay5Test.php b/tests/Russia/NewYearHolidaysDay5Test.php index 5d0b49a06..4457f959b 100644 --- a/tests/Russia/NewYearHolidaysDay5Test.php +++ b/tests/Russia/NewYearHolidaysDay5Test.php @@ -30,6 +30,7 @@ class NewYearHolidaysDay5Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearHolidaysDay6Test.php b/tests/Russia/NewYearHolidaysDay6Test.php index dd7874e46..0c3ec353c 100644 --- a/tests/Russia/NewYearHolidaysDay6Test.php +++ b/tests/Russia/NewYearHolidaysDay6Test.php @@ -30,6 +30,7 @@ class NewYearHolidaysDay6Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearHolidaysDay8Test.php b/tests/Russia/NewYearHolidaysDay8Test.php index 48b5df0fb..56175f150 100644 --- a/tests/Russia/NewYearHolidaysDay8Test.php +++ b/tests/Russia/NewYearHolidaysDay8Test.php @@ -29,6 +29,7 @@ class NewYearHolidaysDay8Test extends RussiaBaseTestCase implements YasumiTestCa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -40,6 +41,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -48,6 +51,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -61,6 +65,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/NewYearsDayTest.php b/tests/Russia/NewYearsDayTest.php index 4fc630595..a734118e9 100644 --- a/tests/Russia/NewYearsDayTest.php +++ b/tests/Russia/NewYearsDayTest.php @@ -30,6 +30,7 @@ class NewYearsDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterf /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/OrthodoxChristmasDayTest.php b/tests/Russia/OrthodoxChristmasDayTest.php index edf902209..65725b842 100644 --- a/tests/Russia/OrthodoxChristmasDayTest.php +++ b/tests/Russia/OrthodoxChristmasDayTest.php @@ -30,6 +30,7 @@ class OrthodoxChristmasDayTest extends RussiaBaseTestCase implements YasumiTestC /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/RussiaDayTest.php b/tests/Russia/RussiaDayTest.php index 8189e7192..0826c6757 100644 --- a/tests/Russia/RussiaDayTest.php +++ b/tests/Russia/RussiaDayTest.php @@ -31,6 +31,7 @@ class RussiaDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterfac /** * Test if holiday is not defined before + * @throws \ReflectionException */ public function testHolidayBefore() { @@ -43,6 +44,8 @@ public function testHolidayBefore() /** * Test if holiday is defined after + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfter() { @@ -58,6 +61,8 @@ public function testHolidayAfter() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/RussiaTest.php b/tests/Russia/RussiaTest.php index fe4dec904..42cef5004 100644 --- a/tests/Russia/RussiaTest.php +++ b/tests/Russia/RussiaTest.php @@ -25,6 +25,7 @@ class RussiaTest extends RussiaBaseTestCase { /** * Tests if all official holidays in Russia are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -61,6 +62,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Russia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -69,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Russia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -77,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Russia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -85,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Russia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Russia/SpringAndLabourDayTest.php b/tests/Russia/SpringAndLabourDayTest.php index acd25f37b..a5799f8e4 100644 --- a/tests/Russia/SpringAndLabourDayTest.php +++ b/tests/Russia/SpringAndLabourDayTest.php @@ -30,6 +30,7 @@ class SpringAndLabourDayTest extends RussiaBaseTestCase implements YasumiTestCas /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/UnityDayTest.php b/tests/Russia/UnityDayTest.php index 5a42cce27..64eaaf98e 100644 --- a/tests/Russia/UnityDayTest.php +++ b/tests/Russia/UnityDayTest.php @@ -31,6 +31,7 @@ class UnityDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterface /** * Test if holiday is not defined before + * @throws \ReflectionException */ public function testHolidayBefore() { @@ -43,6 +44,8 @@ public function testHolidayBefore() /** * Test if holiday is defined after + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayAfter() { @@ -58,6 +61,8 @@ public function testHolidayAfter() /** * {@inheritdoc} + * + * @throws \ReflectionException */ public function testTranslation() { @@ -77,6 +82,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Russia/VictoryDayTest.php b/tests/Russia/VictoryDayTest.php index eddd40abf..1cfd0756e 100644 --- a/tests/Russia/VictoryDayTest.php +++ b/tests/Russia/VictoryDayTest.php @@ -30,6 +30,7 @@ class VictoryDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterfa /** * @return array + * @throws \Exception */ public function holidayDataProvider(): array { @@ -41,6 +42,8 @@ public function holidayDataProvider(): array * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, \DateTime $expected) { @@ -49,6 +52,7 @@ public function testHoliday($year, \DateTime $expected) /** * {@inheritdoc} + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * {@inheritdoc} + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/AllSaintsDayTest.php b/tests/Slovakia/AllSaintsDayTest.php index 4509095e4..af6a9f0c8 100644 --- a/tests/Slovakia/AllSaintsDayTest.php +++ b/tests/Slovakia/AllSaintsDayTest.php @@ -40,6 +40,8 @@ class AllSaintsDayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/ChristmasDayTest.php b/tests/Slovakia/ChristmasDayTest.php index 4c6a2c5a5..6273e11c0 100644 --- a/tests/Slovakia/ChristmasDayTest.php +++ b/tests/Slovakia/ChristmasDayTest.php @@ -40,6 +40,8 @@ class ChristmasDayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -51,6 +53,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/ChristmasEveTest.php b/tests/Slovakia/ChristmasEveTest.php index 3cd8e9bd0..32609f359 100644 --- a/tests/Slovakia/ChristmasEveTest.php +++ b/tests/Slovakia/ChristmasEveTest.php @@ -40,6 +40,8 @@ class ChristmasEveTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasEve($year, $expected) { @@ -51,6 +53,7 @@ public function testChristmasEve($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Eve. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/EasterMondayTest.php b/tests/Slovakia/EasterMondayTest.php index 56b885c3f..1109c6ab1 100644 --- a/tests/Slovakia/EasterMondayTest.php +++ b/tests/Slovakia/EasterMondayTest.php @@ -41,6 +41,8 @@ class EasterMondayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -52,6 +54,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -72,6 +75,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +90,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/EpiphanyTest.php b/tests/Slovakia/EpiphanyTest.php index 8bcd8cfe8..d1c8f39dc 100644 --- a/tests/Slovakia/EpiphanyTest.php +++ b/tests/Slovakia/EpiphanyTest.php @@ -40,6 +40,8 @@ class EpiphanyTest extends SlovakiaBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/GoodFridayTest.php b/tests/Slovakia/GoodFridayTest.php index 3c7604a93..2403caa1e 100644 --- a/tests/Slovakia/GoodFridayTest.php +++ b/tests/Slovakia/GoodFridayTest.php @@ -41,6 +41,8 @@ class GoodFridayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -52,6 +54,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -72,6 +75,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +90,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/InternationalWorkersDayTest.php b/tests/Slovakia/InternationalWorkersDayTest.php index 04e77087d..55e18e492 100644 --- a/tests/Slovakia/InternationalWorkersDayTest.php +++ b/tests/Slovakia/InternationalWorkersDayTest.php @@ -40,6 +40,8 @@ class InternationalWorkersDayTest extends SlovakiaBaseTestCase implements Yasumi * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/NewYearsDayTest.php b/tests/Slovakia/NewYearsDayTest.php index ddfb6c53e..91ecc2859 100644 --- a/tests/Slovakia/NewYearsDayTest.php +++ b/tests/Slovakia/NewYearsDayTest.php @@ -40,6 +40,8 @@ class NewYearsDayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/OurLadyOfSorrowsDayTest.php b/tests/Slovakia/OurLadyOfSorrowsDayTest.php index 94f93e55f..166025590 100644 --- a/tests/Slovakia/OurLadyOfSorrowsDayTest.php +++ b/tests/Slovakia/OurLadyOfSorrowsDayTest.php @@ -40,6 +40,8 @@ class OurLadyOfSorrowsDayTest extends SlovakiaBaseTestCase implements YasumiTest * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php index 931fa67e0..1e6945419 100644 --- a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php @@ -40,6 +40,8 @@ class SaintsCyrilAndMethodiusDayTest extends SlovakiaBaseTestCase implements Yas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/SecondChristmasDayTest.php b/tests/Slovakia/SecondChristmasDayTest.php index 2da761c76..5b531ed7b 100644 --- a/tests/Slovakia/SecondChristmasDayTest.php +++ b/tests/Slovakia/SecondChristmasDayTest.php @@ -40,6 +40,8 @@ class SecondChristmasDayTest extends SlovakiaBaseTestCase implements YasumiTestC * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Second Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/SlovakConstitutionDayTest.php b/tests/Slovakia/SlovakConstitutionDayTest.php index c83844ce6..b5e0f270e 100644 --- a/tests/Slovakia/SlovakConstitutionDayTest.php +++ b/tests/Slovakia/SlovakConstitutionDayTest.php @@ -39,6 +39,8 @@ class SlovakConstitutionDayTest extends SlovakiaBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -50,6 +52,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -59,6 +62,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/SlovakNationalUprisingDayTest.php b/tests/Slovakia/SlovakNationalUprisingDayTest.php index 9813888c3..bd9545a93 100644 --- a/tests/Slovakia/SlovakNationalUprisingDayTest.php +++ b/tests/Slovakia/SlovakNationalUprisingDayTest.php @@ -40,6 +40,8 @@ class SlovakNationalUprisingDayTest extends SlovakiaBaseTestCase implements Yasu * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/SlovakiaTest.php b/tests/Slovakia/SlovakiaTest.php index 8516daf8b..ad033e992 100644 --- a/tests/Slovakia/SlovakiaTest.php +++ b/tests/Slovakia/SlovakiaTest.php @@ -33,6 +33,7 @@ class SlovakiaTest extends SlovakiaBaseTestCase /** * Tests if all official holidays in Slovakia are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -48,6 +49,7 @@ public function testOfficialHolidays() /** * Tests if all bank holidays in Slovakia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -68,6 +70,7 @@ public function testBankHolidays() /** * Tests if all observed holidays in Slovakia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -77,6 +80,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Slovakia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -86,6 +90,7 @@ public function testSeasonalHolidays() /** * Tests if all other holidays in Slovakia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php index 2ba1a36b0..36f1455ae 100644 --- a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php @@ -40,6 +40,8 @@ class StruggleForFreedomAndDemocracyDayTest extends SlovakiaBaseTestCase impleme * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Slovakia/VictoryInEuropeDayTest.php b/tests/Slovakia/VictoryInEuropeDayTest.php index fe07a1374..1723e4e45 100644 --- a/tests/Slovakia/VictoryInEuropeDayTest.php +++ b/tests/Slovakia/VictoryInEuropeDayTest.php @@ -40,6 +40,8 @@ class VictoryInEuropeDayTest extends SlovakiaBaseTestCase implements YasumiTestC * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -51,6 +53,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -60,6 +63,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +78,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index f02b523d6..74ae46958 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -44,6 +44,9 @@ class ChristmasDayTest extends SouthAfricaBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index 396a957f8..001e6acb6 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -44,6 +44,9 @@ class FamilyDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -77,6 +80,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +93,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +107,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index c11c19f39..473f90761 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -44,6 +44,9 @@ class FreedomDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index 5f1803a23..8a5637dbc 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -44,6 +44,9 @@ class GoodFridayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -77,6 +80,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +93,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +107,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index dea904148..041493e0e 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -44,6 +44,9 @@ class HeritageDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index 95880fa3d..37a56303e 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -44,6 +44,9 @@ class HumanRightsDayTest extends SouthAfricaBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/MunicipalElections2016DayTest.php b/tests/SouthAfrica/MunicipalElections2016DayTest.php index 467aa1c92..15d56fdc9 100644 --- a/tests/SouthAfrica/MunicipalElections2016DayTest.php +++ b/tests/SouthAfrica/MunicipalElections2016DayTest.php @@ -38,6 +38,8 @@ class MunicipalElections2016DayTest extends SouthAfricaBaseTestCase implements Y /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -51,6 +53,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -63,6 +66,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the holiday defined in this test after completion. + * @throws \ReflectionException */ public function testHolidayDayAfterCompletion() { @@ -71,6 +75,7 @@ public function testHolidayDayAfterCompletion() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +89,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index d1c4dffe1..cc87e5ae1 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -44,6 +44,9 @@ class NationalWomensDayTest extends SouthAfricaBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index 94559af38..c7a09fa72 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -44,6 +44,9 @@ class NewYearsDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index f5e435253..8f0281279 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -44,6 +44,9 @@ class ReconciliationDayTest extends SouthAfricaBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index 2686a020f..a2f6031aa 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -44,6 +44,9 @@ class SecondChristmasDayTest extends SouthAfricaBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/SouthAfricaTest.php b/tests/SouthAfrica/SouthAfricaTest.php index a42547df9..62b990fec 100644 --- a/tests/SouthAfrica/SouthAfricaTest.php +++ b/tests/SouthAfrica/SouthAfricaTest.php @@ -30,6 +30,7 @@ class SouthAfricaTest extends SouthAfricaBaseTestCase /** * Tests if all official holidays in SouthAfrica are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -58,6 +59,7 @@ public function testOfficialHolidays() /** * Tests if all bank holidays in South Africa are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -66,6 +68,7 @@ public function testBankHolidays() /** * Tests if all observed holidays in South Africa are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -74,6 +77,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in South Africa are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -82,6 +86,7 @@ public function testSeasonalHolidays() /** * Tests if all other holidays in South Africa are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php index 56e68db03..5ec90c151 100644 --- a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php +++ b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php @@ -38,6 +38,8 @@ class SubstituteDayOfGoodwillTest extends SouthAfricaBaseTestCase implements Yas /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -51,6 +53,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -63,6 +66,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the holiday defined in this test after completion. + * @throws \ReflectionException */ public function testHolidayDayAfterCompletion() { @@ -71,6 +75,7 @@ public function testHolidayDayAfterCompletion() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -84,6 +89,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index a225aac2f..b08997a9a 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -44,6 +44,9 @@ class WorkersDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index 381cf8ca0..b671d486e 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -44,6 +44,9 @@ class YouthDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -61,6 +64,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -77,6 +81,7 @@ public function HolidayDataProvider(): array /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -89,6 +94,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -102,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/AllSaintsDayTest.php b/tests/Spain/AllSaintsDayTest.php index 76a7efe9d..6ad8bbb69 100644 --- a/tests/Spain/AllSaintsDayTest.php +++ b/tests/Spain/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends SpainBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Andalusia/AndalusiaDayTest.php b/tests/Spain/Andalusia/AndalusiaDayTest.php index c4c222c37..0d0978306 100644 --- a/tests/Spain/Andalusia/AndalusiaDayTest.php +++ b/tests/Spain/Andalusia/AndalusiaDayTest.php @@ -34,6 +34,8 @@ class AndalusiaDayTest extends AndalusiaBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Andalusia/AndalusiaTest.php b/tests/Spain/Andalusia/AndalusiaTest.php index bc887dea4..c169e3f43 100644 --- a/tests/Spain/Andalusia/AndalusiaTest.php +++ b/tests/Spain/Andalusia/AndalusiaTest.php @@ -26,6 +26,7 @@ class AndalusiaTest extends AndalusiaBaseTestCase /** * Tests if all official holidays in Andalusia (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Andalusia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Andalusia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Andalusia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Andalusia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Aragon/AragonTest.php b/tests/Spain/Aragon/AragonTest.php index c26307d8e..4bdabfefb 100644 --- a/tests/Spain/Aragon/AragonTest.php +++ b/tests/Spain/Aragon/AragonTest.php @@ -26,6 +26,7 @@ class AragonTest extends AragonBaseTestCase /** * Tests if all official holidays in Aragon (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -45,6 +46,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Aragon are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Aragon are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Aragon are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Aragon are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Aragon/StGeorgesDayTest.php b/tests/Spain/Aragon/StGeorgesDayTest.php index 8eb9447d0..6a116170d 100644 --- a/tests/Spain/Aragon/StGeorgesDayTest.php +++ b/tests/Spain/Aragon/StGeorgesDayTest.php @@ -29,6 +29,8 @@ class StGeorgesDayTest extends AragonBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/AssumptionOfMaryTest.php b/tests/Spain/AssumptionOfMaryTest.php index be87f9ee7..ae6c4e4ec 100644 --- a/tests/Spain/AssumptionOfMaryTest.php +++ b/tests/Spain/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends SpainBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Asturias/AsturiasDayTest.php b/tests/Spain/Asturias/AsturiasDayTest.php index 3a206e1ef..be9f39a54 100644 --- a/tests/Spain/Asturias/AsturiasDayTest.php +++ b/tests/Spain/Asturias/AsturiasDayTest.php @@ -34,6 +34,8 @@ class AsturiasDayTest extends AsturiasBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Asturias/AsturiasTest.php b/tests/Spain/Asturias/AsturiasTest.php index fcf33828e..ed82625af 100644 --- a/tests/Spain/Asturias/AsturiasTest.php +++ b/tests/Spain/Asturias/AsturiasTest.php @@ -26,6 +26,7 @@ class AsturiasTest extends AsturiasBaseTestCase /** * Tests if all official holidays in Asturias (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Asturias are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Asturias are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Asturias are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Asturias are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php index f019d69d3..2441bde64 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php @@ -34,6 +34,8 @@ class BalearicIslandsDayTest extends BalearicIslandsBaseTestCase implements Yasu /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/BalearicIslands/BalearicIslandsTest.php b/tests/Spain/BalearicIslands/BalearicIslandsTest.php index 9a2b4e8ea..86034ad89 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsTest.php @@ -26,6 +26,7 @@ class BalearicIslandsTest extends BalearicIslandsBaseTestCase /** * Tests if all official holidays in the Balearic Islands (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the Balearic Islands are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -60,6 +62,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the Balearic Islands are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -68,6 +71,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the Balearic Islands are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -76,6 +80,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the Balearic Islands are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php index 188a5c6ed..1d4f5f515 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php @@ -39,6 +39,8 @@ class BasqueCountryDayTest extends BasqueCountryBaseTestCase implements YasumiTe /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -53,6 +55,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -65,6 +68,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the holiday defined in this test after abolishment. + * @throws \ReflectionException */ public function testHolidayDayAfterAbolishment() { @@ -73,6 +77,7 @@ public function testHolidayDayAfterAbolishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +91,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/BasqueCountry/BasqueCountryTest.php b/tests/Spain/BasqueCountry/BasqueCountryTest.php index f45a01d28..275e2f433 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryTest.php @@ -26,6 +26,7 @@ class BasqueCountryTest extends BasqueCountryBaseTestCase /** * Tests if all official holidays in Basque Country (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Basque Country are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Basque Country are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Basque Country are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Basque Country are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php index 3173aac14..4e1941f53 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php @@ -34,6 +34,8 @@ class CanaryIslandsDayTest extends CanaryIslandsBaseTestCase implements YasumiTe /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/CanaryIslands/CanaryIslandsTest.php b/tests/Spain/CanaryIslands/CanaryIslandsTest.php index 531ed56bd..2d9cb1b3d 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsTest.php @@ -26,6 +26,7 @@ class CanaryIslandsTest extends CanaryIslandsBaseTestCase /** * Tests if all official holidays in the Canary Islands (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the Canary Islands are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the Canary Islands are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the Canary Islands are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the Canary Islands are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Cantabria/CantabriaDayTest.php b/tests/Spain/Cantabria/CantabriaDayTest.php index 5fbc18d25..dbb17a826 100644 --- a/tests/Spain/Cantabria/CantabriaDayTest.php +++ b/tests/Spain/Cantabria/CantabriaDayTest.php @@ -34,6 +34,8 @@ class CantabriaDayTest extends CantabriaBaseTestCase implements YasumiTestCaseIn /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Cantabria/CantabriaTest.php b/tests/Spain/Cantabria/CantabriaTest.php index 0de10666b..35080f936 100644 --- a/tests/Spain/Cantabria/CantabriaTest.php +++ b/tests/Spain/Cantabria/CantabriaTest.php @@ -26,6 +26,7 @@ class CantabriaTest extends CantabriaBaseTestCase /** * Tests if all official holidays in Cantabria (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Cantabria are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Cantabria are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Cantabria are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Cantabria are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php index 440398ea3..e83d7a1e8 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php @@ -34,6 +34,8 @@ class CastileAndLeonDayTest extends CastileAndLeonBaseTestCase implements Yasumi /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php index 13a24f508..54fd70be3 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php @@ -26,6 +26,7 @@ class CastileAndLeonTest extends CastileAndLeonBaseTestCase /** * Tests if all official holidays in Castile And Leon (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Castile And Leon are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Castile And Leon are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Castile And Leon are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Castile And Leon are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php index df9e85db3..cb422faca 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php @@ -34,6 +34,8 @@ class CastillaLaManchaDayTest extends CastillaLaManchaBaseTestCase implements Ya /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php index e497920e2..5e706a8fe 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php @@ -26,6 +26,7 @@ class CastillaLaManchaTest extends CastillaLaManchaBaseTestCase /** * Tests if all official holidays in Castilla-La Mancha (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Castilla-La Mancha are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Castilla-La Mancha are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Castilla-La Mancha are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Castilla-La Mancha are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Catalonia/CataloniaTest.php b/tests/Spain/Catalonia/CataloniaTest.php index 9cd3fd43c..f3bc28ae8 100644 --- a/tests/Spain/Catalonia/CataloniaTest.php +++ b/tests/Spain/Catalonia/CataloniaTest.php @@ -26,6 +26,7 @@ class CataloniaTest extends CataloniaBaseTestCase /** * Tests if all official holidays in Catalonia (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Catalonia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -59,6 +61,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Catalonia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -67,6 +70,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Catalonia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -75,6 +79,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Catalonia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Catalonia/nationalCataloniaDayTest.php b/tests/Spain/Catalonia/nationalCataloniaDayTest.php index 1322d1ffb..6dafea348 100644 --- a/tests/Spain/Catalonia/nationalCataloniaDayTest.php +++ b/tests/Spain/Catalonia/nationalCataloniaDayTest.php @@ -34,6 +34,8 @@ class nationalCataloniaDayTest extends CataloniaBaseTestCase implements YasumiTe /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Catalonia/stJohnsDayTest.php b/tests/Spain/Catalonia/stJohnsDayTest.php index 83d12e918..69e99e25a 100644 --- a/tests/Spain/Catalonia/stJohnsDayTest.php +++ b/tests/Spain/Catalonia/stJohnsDayTest.php @@ -33,6 +33,8 @@ class stJohnsDayTest extends CataloniaBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Ceuta/CeutaTest.php b/tests/Spain/Ceuta/CeutaTest.php index b01746cd2..662a71230 100644 --- a/tests/Spain/Ceuta/CeutaTest.php +++ b/tests/Spain/Ceuta/CeutaTest.php @@ -26,6 +26,7 @@ class CeutaTest extends CeutaBaseTestCase /** * Tests if all official holidays in Ceuta (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Ceuta are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Ceuta are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Ceuta are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Ceuta are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Ceuta/ceutaDayTest.php b/tests/Spain/Ceuta/ceutaDayTest.php index d4780b7ba..f2610fe01 100644 --- a/tests/Spain/Ceuta/ceutaDayTest.php +++ b/tests/Spain/Ceuta/ceutaDayTest.php @@ -34,6 +34,8 @@ class ceutaDayTest extends CeutaBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/ChristmasTest.php b/tests/Spain/ChristmasTest.php index 911d913a3..7f6d341aa 100644 --- a/tests/Spain/ChristmasTest.php +++ b/tests/Spain/ChristmasTest.php @@ -33,6 +33,8 @@ class ChristmasTest extends SpainBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php index 1b9b5b84b..c3334d308 100644 --- a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php +++ b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php @@ -26,6 +26,7 @@ class CommunityOfMadridTest extends CommunityOfMadridBaseTestCase /** * Tests if all official holidays in the Community of Madrid (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the Community of Madrid are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -59,6 +61,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the Community of Madrid are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -67,6 +70,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the Community of Madrid are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -75,6 +79,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the Community of Madrid are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php index 000e9c50b..1894d2119 100644 --- a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php +++ b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php @@ -29,6 +29,8 @@ class DosdeMayoUprisingDayTest extends CommunityOfMadridBaseTestCase implements /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/ConstitutionDayTest.php b/tests/Spain/ConstitutionDayTest.php index cd8555fd7..32de6ed85 100644 --- a/tests/Spain/ConstitutionDayTest.php +++ b/tests/Spain/ConstitutionDayTest.php @@ -34,6 +34,8 @@ class ConstitutionDayTest extends SpainBaseTestCase implements YasumiTestCaseInt /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/EasterMondayTest.php b/tests/Spain/EasterMondayTest.php index ed524cf06..afe71ed5d 100644 --- a/tests/Spain/EasterMondayTest.php +++ b/tests/Spain/EasterMondayTest.php @@ -35,6 +35,8 @@ class EasterMondayTest extends SpainBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -49,6 +51,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +65,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/EpiphanyTest.php b/tests/Spain/EpiphanyTest.php index 857b55f80..1a663a14f 100644 --- a/tests/Spain/EpiphanyTest.php +++ b/tests/Spain/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends SpainBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Extremadura/ExtremaduraDayTest.php b/tests/Spain/Extremadura/ExtremaduraDayTest.php index 69b36deee..0be072ff1 100644 --- a/tests/Spain/Extremadura/ExtremaduraDayTest.php +++ b/tests/Spain/Extremadura/ExtremaduraDayTest.php @@ -34,6 +34,8 @@ class ExtremaduraDayTest extends ExtremaduraBaseTestCase implements YasumiTestCa /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Extremadura/ExtremaduraTest.php b/tests/Spain/Extremadura/ExtremaduraTest.php index 4c8e2fd8c..ac253fc76 100644 --- a/tests/Spain/Extremadura/ExtremaduraTest.php +++ b/tests/Spain/Extremadura/ExtremaduraTest.php @@ -26,6 +26,7 @@ class ExtremaduraTest extends ExtremaduraBaseTestCase /** * Tests if all official holidays in Extremadura (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Extremadura are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Extremadura are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Extremadura are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Extremadura are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Galicia/GaliciaTest.php b/tests/Spain/Galicia/GaliciaTest.php index 287e50426..38e8af34b 100644 --- a/tests/Spain/Galicia/GaliciaTest.php +++ b/tests/Spain/Galicia/GaliciaTest.php @@ -26,6 +26,7 @@ class GaliciaTest extends GaliciaBaseTestCase /** * Tests if all official holidays in Galicia (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Galicia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -59,6 +61,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Galicia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -67,6 +70,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Galicia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -75,6 +79,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Galicia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/Galicia/GalicianLiteratureDayTest.php b/tests/Spain/Galicia/GalicianLiteratureDayTest.php index 5b6d250a5..15e825586 100644 --- a/tests/Spain/Galicia/GalicianLiteratureDayTest.php +++ b/tests/Spain/Galicia/GalicianLiteratureDayTest.php @@ -34,6 +34,8 @@ class GalicianLiteratureDayTest extends GaliciaBaseTestCase implements YasumiTes /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Galicia/stJamesDayTest.php b/tests/Spain/Galicia/stJamesDayTest.php index 612cf48c1..6ca92e0b8 100644 --- a/tests/Spain/Galicia/stJamesDayTest.php +++ b/tests/Spain/Galicia/stJamesDayTest.php @@ -34,6 +34,8 @@ class stJamesDayTest extends GaliciaBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/GoodFridayTest.php b/tests/Spain/GoodFridayTest.php index 26e937249..f8b895451 100644 --- a/tests/Spain/GoodFridayTest.php +++ b/tests/Spain/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends SpainBaseTestCase implements YasumiTestCaseInterfac /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/ImmaculateConceptionTest.php b/tests/Spain/ImmaculateConceptionTest.php index e2218ce14..7983bdc68 100644 --- a/tests/Spain/ImmaculateConceptionTest.php +++ b/tests/Spain/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends SpainBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/InternationalWorkersDayTest.php b/tests/Spain/InternationalWorkersDayTest.php index 69c1406d7..da446a76d 100644 --- a/tests/Spain/InternationalWorkersDayTest.php +++ b/tests/Spain/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends SpainBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/LaRioja/LaRiojaDayTest.php b/tests/Spain/LaRioja/LaRiojaDayTest.php index 6b489ac68..079a682c1 100644 --- a/tests/Spain/LaRioja/LaRiojaDayTest.php +++ b/tests/Spain/LaRioja/LaRiojaDayTest.php @@ -34,6 +34,8 @@ class LaRiojaDayTest extends LaRiojaBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/LaRioja/LaRiojaTest.php b/tests/Spain/LaRioja/LaRiojaTest.php index 8f0f877fe..4c9f881bf 100644 --- a/tests/Spain/LaRioja/LaRiojaTest.php +++ b/tests/Spain/LaRioja/LaRiojaTest.php @@ -26,6 +26,7 @@ class LaRiojaTest extends LaRiojaBaseTestCase /** * Tests if all official holidays in La Rioja (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in La Rioja are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in La Rioja are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in La Rioja are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in La Rioja are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/MaundyThursdayTest.php b/tests/Spain/MaundyThursdayTest.php index ca89b0b93..15e700cad 100644 --- a/tests/Spain/MaundyThursdayTest.php +++ b/tests/Spain/MaundyThursdayTest.php @@ -35,6 +35,8 @@ class MaundyThursdayTest extends SpainBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -49,6 +51,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +65,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Melilla/MelillaTest.php b/tests/Spain/Melilla/MelillaTest.php index 5b08210e6..d2a6a8eeb 100644 --- a/tests/Spain/Melilla/MelillaTest.php +++ b/tests/Spain/Melilla/MelillaTest.php @@ -26,6 +26,7 @@ class MelillaTest extends MelillaBaseTestCase /** * Tests if all official holidays in Melilla (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -45,6 +46,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Melilla are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Melilla are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Melilla are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Melilla are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/NationalDayTest.php b/tests/Spain/NationalDayTest.php index a5b52d615..ab541bdec 100644 --- a/tests/Spain/NationalDayTest.php +++ b/tests/Spain/NationalDayTest.php @@ -34,6 +34,8 @@ class NationalDayTest extends SpainBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/Navarre/NavarreTest.php b/tests/Spain/Navarre/NavarreTest.php index 80ac65b68..05404144e 100644 --- a/tests/Spain/Navarre/NavarreTest.php +++ b/tests/Spain/Navarre/NavarreTest.php @@ -26,6 +26,7 @@ class NavarreTest extends NavarreBaseTestCase /** * Tests if all official holidays in Navarre (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -45,6 +46,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Navarre are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Navarre are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Navarre are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Navarre are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/NewYearsDayTest.php b/tests/Spain/NewYearsDayTest.php index 71cbf13e4..fd1e9fe7c 100644 --- a/tests/Spain/NewYearsDayTest.php +++ b/tests/Spain/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends SpainBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php index 2a9222cf5..f23c001b9 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php @@ -34,6 +34,8 @@ class RegionOfMurciaDayTest extends RegionOfMurciaBaseTestCase implements Yasumi /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php index 3d16d902a..1fd3e7c5f 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php @@ -26,6 +26,7 @@ class RegionOfMurciaTest extends RegionOfMurciaBaseTestCase /** * Tests if all official holidays in the Region of Murcia (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the Region of Murcia are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the Region of Murcia are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the Region of Murcia are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the Region of Murcia are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/SpainTest.php b/tests/Spain/SpainTest.php index 8bc913a45..bd1c4a446 100644 --- a/tests/Spain/SpainTest.php +++ b/tests/Spain/SpainTest.php @@ -26,6 +26,7 @@ class SpainTest extends SpainBaseTestCase /** * Tests if all official holidays in Spain are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -45,6 +46,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Spain are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -53,6 +55,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Spain are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -61,6 +64,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Spain are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -69,6 +73,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Spain are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php index edd92ce0c..e4f8288f0 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php @@ -34,6 +34,8 @@ class ValencianCommunityDayTest extends ValencianCommunityBaseTestCase implement /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php index e597f141d..886108b5b 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php @@ -26,6 +26,7 @@ class ValencianCommunityTest extends ValencianCommunityBaseTestCase /** * Tests if all official holidays in the Valencian Community (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -46,6 +47,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the Valencian Community are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -58,6 +60,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the Valencian Community are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -66,6 +69,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the Valencian Community are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -74,6 +78,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the Valencian Community are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Spain/ValentinesDayTest.php b/tests/Spain/ValentinesDayTest.php index ecf248ce2..a87618409 100644 --- a/tests/Spain/ValentinesDayTest.php +++ b/tests/Spain/ValentinesDayTest.php @@ -33,6 +33,8 @@ class ValentinesDayTest extends SpainBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Spain/stJosephsDayTest.php b/tests/Spain/stJosephsDayTest.php index df8c9135c..f8199800f 100644 --- a/tests/Spain/stJosephsDayTest.php +++ b/tests/Spain/stJosephsDayTest.php @@ -39,6 +39,8 @@ class stJosephsDayTest extends SpainBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -49,6 +51,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -57,6 +60,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -70,6 +74,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/AllSaintsDayTest.php b/tests/Sweden/AllSaintsDayTest.php index 8a2f49e88..7dc9f8d14 100644 --- a/tests/Sweden/AllSaintsDayTest.php +++ b/tests/Sweden/AllSaintsDayTest.php @@ -35,6 +35,8 @@ class AllSaintsDayTest extends SwedenBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -45,6 +47,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -69,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -82,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/AscensionDayTest.php b/tests/Sweden/AscensionDayTest.php index e94091464..353e3d8a6 100644 --- a/tests/Sweden/AscensionDayTest.php +++ b/tests/Sweden/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/ChristmasDayTest.php b/tests/Sweden/ChristmasDayTest.php index 4987424a3..fcba01deb 100644 --- a/tests/Sweden/ChristmasDayTest.php +++ b/tests/Sweden/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends SwedenBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/ChristmasEveTest.php b/tests/Sweden/ChristmasEveTest.php index 06e18e8c3..818bc159d 100644 --- a/tests/Sweden/ChristmasEveTest.php +++ b/tests/Sweden/ChristmasEveTest.php @@ -33,6 +33,8 @@ class ChristmasEveTest extends SwedenBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/EasterMondayTest.php b/tests/Sweden/EasterMondayTest.php index 04a543f50..3db678bdd 100644 --- a/tests/Sweden/EasterMondayTest.php +++ b/tests/Sweden/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/EasterTest.php b/tests/Sweden/EasterTest.php index be3d73877..4fac43847 100644 --- a/tests/Sweden/EasterTest.php +++ b/tests/Sweden/EasterTest.php @@ -29,6 +29,8 @@ class EasterTest extends SwedenBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/EpiphanyTest.php b/tests/Sweden/EpiphanyTest.php index d21f66b4c..3f17bf857 100644 --- a/tests/Sweden/EpiphanyTest.php +++ b/tests/Sweden/EpiphanyTest.php @@ -33,6 +33,8 @@ class EpiphanyTest extends SwedenBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/GoodFridayTest.php b/tests/Sweden/GoodFridayTest.php index b6ecdb119..c89266676 100644 --- a/tests/Sweden/GoodFridayTest.php +++ b/tests/Sweden/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends SwedenBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/InternationalWorkersDayTest.php b/tests/Sweden/InternationalWorkersDayTest.php index d34bb21ff..b9e3b9f5b 100644 --- a/tests/Sweden/InternationalWorkersDayTest.php +++ b/tests/Sweden/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends SwedenBaseTestCase implements YasumiTe * * @param int $year the year for which International Workers' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/Sweden/NationalDayTest.php b/tests/Sweden/NationalDayTest.php index 04a0818ef..c8734f9b9 100644 --- a/tests/Sweden/NationalDayTest.php +++ b/tests/Sweden/NationalDayTest.php @@ -34,6 +34,8 @@ class NationalDayTest extends SwedenBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test on or after establishment. + * @throws \Exception + * @throws \ReflectionException */ public function testHolidayOnAfterEstablishment() { @@ -48,6 +50,7 @@ public function testHolidayOnAfterEstablishment() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test on or after establishment. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -86,6 +91,7 @@ public function testHolidayType() /** * Tests the translated name of the holiday defined in this test on or after establishment. + * @throws \ReflectionException */ public function testTranslationOnAfterNameChange() { diff --git a/tests/Sweden/NewYearsDayTest.php b/tests/Sweden/NewYearsDayTest.php index 9060f9b77..67bf33b70 100644 --- a/tests/Sweden/NewYearsDayTest.php +++ b/tests/Sweden/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends SwedenBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/PentecostTest.php b/tests/Sweden/PentecostTest.php index 50ee3d1ed..edf28997e 100644 --- a/tests/Sweden/PentecostTest.php +++ b/tests/Sweden/PentecostTest.php @@ -29,6 +29,8 @@ class PentecostTest extends SwedenBaseTestCase implements YasumiTestCaseInterfac /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/SecondChristmasDayTest.php b/tests/Sweden/SecondChristmasDayTest.php index 4ed917657..47f673abb 100644 --- a/tests/Sweden/SecondChristmasDayTest.php +++ b/tests/Sweden/SecondChristmasDayTest.php @@ -33,6 +33,8 @@ class SecondChristmasDayTest extends SwedenBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Sweden/SwedenTest.php b/tests/Sweden/SwedenTest.php index 9024e015e..7b647c96f 100644 --- a/tests/Sweden/SwedenTest.php +++ b/tests/Sweden/SwedenTest.php @@ -26,6 +26,7 @@ class SwedenTest extends SwedenBaseTestCase /** * Tests if all official holidays in Sweden (Spain) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -49,6 +50,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Sweden are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -57,6 +59,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Sweden are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -65,6 +68,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Sweden are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -73,6 +77,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Sweden are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Sweden/stJohnsDayTest.php b/tests/Sweden/stJohnsDayTest.php index 0446622f9..97c84e45d 100644 --- a/tests/Sweden/stJohnsDayTest.php +++ b/tests/Sweden/stJohnsDayTest.php @@ -28,6 +28,7 @@ class stJohnsDayTest extends SwedenBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \ReflectionException */ public function testHoliday() { @@ -51,6 +52,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +66,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Aargau/AargauTest.php b/tests/Switzerland/Aargau/AargauTest.php index 32ab43099..b87426e67 100644 --- a/tests/Switzerland/Aargau/AargauTest.php +++ b/tests/Switzerland/Aargau/AargauTest.php @@ -26,6 +26,8 @@ class AargauTest extends AargauBaseTestCase /** * Tests if all official holidays in Aargau (Switzerland) are defined by the provider class + * + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +40,8 @@ public function testOfficialHolidays() /** * Tests if all official holidays in Aargau (Switzerland) are defined by the provider class + * + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -51,6 +55,8 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Aargau (Switzerland) are defined by the provider class + * + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -64,6 +70,8 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Aargau (Switzerland) are defined by the provider class + * + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -72,6 +80,8 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Aargau (Switzerland) are defined by the provider class + * + * @throws \ReflectionException */ public function testBankHolidays() { @@ -80,6 +90,8 @@ public function testBankHolidays() /** * Tests if all other holidays in Aargau (Switzerland) are defined by the provider class + * + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Aargau/AscensionDayTest.php b/tests/Switzerland/Aargau/AscensionDayTest.php index 2fa9b916c..9e3f8776c 100644 --- a/tests/Switzerland/Aargau/AscensionDayTest.php +++ b/tests/Switzerland/Aargau/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends AargauBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Aargau/ChristmasDayTest.php b/tests/Switzerland/Aargau/ChristmasDayTest.php index c72e3f49d..9a2836243 100644 --- a/tests/Switzerland/Aargau/ChristmasDayTest.php +++ b/tests/Switzerland/Aargau/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends AargauBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Aargau/GoodFridayTest.php b/tests/Switzerland/Aargau/GoodFridayTest.php index 99bef711e..7d66c66c4 100644 --- a/tests/Switzerland/Aargau/GoodFridayTest.php +++ b/tests/Switzerland/Aargau/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends AargauBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Aargau/NewYearsDayTest.php b/tests/Switzerland/Aargau/NewYearsDayTest.php index 1ef1c65f2..4697bad49 100644 --- a/tests/Switzerland/Aargau/NewYearsDayTest.php +++ b/tests/Switzerland/Aargau/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends AargauBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php index fcfb48344..6c1468fb8 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php @@ -26,6 +26,7 @@ class AppenzellAusserrhodenTest extends AppenzellAusserrhodenBaseTestCase /** * Tests if all official holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -54,6 +56,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -67,6 +70,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -75,6 +79,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -83,6 +88,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php index 965a8234a..b1f1ebf90 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends AppenzellAusserrhodenBaseTestCase implements Yasu /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php index 23ce29e3d..0c0058313 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends AppenzellAusserrhodenBaseTestCase implements Yasu * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php index 4daace988..e64400d9d 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends AppenzellAusserrhodenBaseTestCase implements Yasu /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php index 1f8b2de3c..76b696f48 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends AppenzellAusserrhodenBaseTestCase implements Yasumi /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php index 61a6be5ca..83108877d 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends AppenzellAusserrhodenBaseTestCase implements Yasum * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php index 3cc4696cd..997a1280f 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends AppenzellAusserrhodenBaseTestCase implements Y /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php index 4adc48213..7abbd3bcf 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends AppenzellAusserrhodenBaseTestCase implements Yas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php index 405bda07b..52e04114a 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php index c3889f50d..f736053a5 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php @@ -26,6 +26,7 @@ class AppenzellInnerrhodenTest extends AppenzellInnerrhodenBaseTestCase /** * Tests if all official holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -58,6 +60,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -71,6 +74,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -79,6 +83,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -87,6 +92,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php index 3fa0b12d1..3d98eb51c 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php index 17c53f738..80351eba7 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends AppenzellInnerrhodenBaseTestCase implements Y * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php index 9a6fdb8d9..d9988b49b 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php index cd00f69a6..bece7658a 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends AppenzellInnerrhodenBaseTestCase implements Yasu /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php index ed1296d72..33ad3ef7e 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php index 0c03e7ffa..3a9cf14d5 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends AppenzellInnerrhodenBaseTestCase implements YasumiT /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php index 71c51583d..16544715e 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends AppenzellInnerrhodenBaseTestCase implemen * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php index 2ecaca4e2..fb616d345 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasumi * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php index d07e3e955..5ddf144b0 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends AppenzellInnerrhodenBaseTestCase implements Ya /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php index f079a1ed5..34aa682ec 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasu * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php index 777309034..570b65245 100644 --- a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php +++ b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends BaselLandschaftBaseTestCase implements YasumiTest /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php index 9713ad2c7..2c8b84b9d 100644 --- a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php +++ b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php @@ -26,6 +26,7 @@ class BaselLandschaftTest extends BaselLandschaftBaseTestCase /** * Tests if all official holidays in BaselLandschaft (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in BaselLandschaft (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -55,6 +57,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in BaselLandschaft (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in BaselLandschaft (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in BaselLandschaft (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in BaselLandschaft (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php index 477bf2f37..9f0b22093 100644 --- a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php +++ b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends BaselLandschaftBaseTestCase implements YasumiTest * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php index 5ad8132e4..d884dc7ca 100644 --- a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends BaselLandschaftBaseTestCase implements YasumiTest /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php index 4852d34d0..b3d9b30fd 100644 --- a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php +++ b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends BaselLandschaftBaseTestCase implements YasumiTestCa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php index 23fb75876..118256210 100644 --- a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php +++ b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends BaselLandschaftBaseTestCase implements YasumiTestC * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php index c3d838ff7..50ead818f 100644 --- a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends BaselLandschaftBaseTestCase implements YasumiT /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php index 7abb91ab1..4fc2c6769 100644 --- a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php +++ b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends BaselLandschaftBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index 11902995c..a0c82a8a7 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends BaselLandschaftBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/AscensionDayTest.php b/tests/Switzerland/BaselStadt/AscensionDayTest.php index 2a286d6e5..0cb37025d 100644 --- a/tests/Switzerland/BaselStadt/AscensionDayTest.php +++ b/tests/Switzerland/BaselStadt/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseI /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/BaselStadtTest.php b/tests/Switzerland/BaselStadt/BaselStadtTest.php index 8e399feec..b6627783f 100644 --- a/tests/Switzerland/BaselStadt/BaselStadtTest.php +++ b/tests/Switzerland/BaselStadt/BaselStadtTest.php @@ -26,6 +26,7 @@ class BaselStadtTest extends BaselStadtBaseTestCase /** * Tests if all official holidays in Basel Stadt (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Basel Stadt (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -55,6 +57,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Basel Stadt (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Basel Stadt (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Basel Stadt (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Basel Stadt (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/BaselStadt/ChristmasDayTest.php b/tests/Switzerland/BaselStadt/ChristmasDayTest.php index 1d9d245df..c8cd7abb5 100644 --- a/tests/Switzerland/BaselStadt/ChristmasDayTest.php +++ b/tests/Switzerland/BaselStadt/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/EasterMondayTest.php b/tests/Switzerland/BaselStadt/EasterMondayTest.php index 792ce51dd..b1db878f2 100644 --- a/tests/Switzerland/BaselStadt/EasterMondayTest.php +++ b/tests/Switzerland/BaselStadt/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends BaselStadtBaseTestCase implements YasumiTestCaseI /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/GoodFridayTest.php b/tests/Switzerland/BaselStadt/GoodFridayTest.php index 6e4ed7567..d174fdd01 100644 --- a/tests/Switzerland/BaselStadt/GoodFridayTest.php +++ b/tests/Switzerland/BaselStadt/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends BaselStadtBaseTestCase implements YasumiTestCaseInt /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/NewYearsDayTest.php b/tests/Switzerland/BaselStadt/NewYearsDayTest.php index 593dce8e3..c37ae1d5b 100644 --- a/tests/Switzerland/BaselStadt/NewYearsDayTest.php +++ b/tests/Switzerland/BaselStadt/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/BaselStadt/PentecostMondayTest.php b/tests/Switzerland/BaselStadt/PentecostMondayTest.php index 2355b5c4f..e83877ef7 100644 --- a/tests/Switzerland/BaselStadt/PentecostMondayTest.php +++ b/tests/Switzerland/BaselStadt/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends BaselStadtBaseTestCase implements YasumiTestCa /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/StStephensDayTest.php b/tests/Switzerland/BaselStadt/StStephensDayTest.php index 10b1e09a5..aadbfc96e 100644 --- a/tests/Switzerland/BaselStadt/StStephensDayTest.php +++ b/tests/Switzerland/BaselStadt/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends BaselStadtBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index 43a9cd1e1..ac52a8f38 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/AscensionDayTest.php b/tests/Switzerland/Bern/AscensionDayTest.php index e7a6511ef..1d9a19dcb 100644 --- a/tests/Switzerland/Bern/AscensionDayTest.php +++ b/tests/Switzerland/Bern/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends BernBaseTestCase implements YasumiTestCaseInterfa /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/BerchtoldsTagTest.php b/tests/Switzerland/Bern/BerchtoldsTagTest.php index b3702b34b..db7019f49 100644 --- a/tests/Switzerland/Bern/BerchtoldsTagTest.php +++ b/tests/Switzerland/Bern/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends BernBaseTestCase implements YasumiTestCaseInterf /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/BernTest.php b/tests/Switzerland/Bern/BernTest.php index 5af751489..7a12411b7 100644 --- a/tests/Switzerland/Bern/BernTest.php +++ b/tests/Switzerland/Bern/BernTest.php @@ -26,6 +26,7 @@ class BernTest extends BernBaseTestCase /** * Tests if all official holidays in Bern (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Bern (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -55,6 +57,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Bern (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Bern (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Bern (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Bern (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Bern/ChristmasDayTest.php b/tests/Switzerland/Bern/ChristmasDayTest.php index 248a1a0b0..dc0290b00 100644 --- a/tests/Switzerland/Bern/ChristmasDayTest.php +++ b/tests/Switzerland/Bern/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends BernBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/EasterMondayTest.php b/tests/Switzerland/Bern/EasterMondayTest.php index f97bff87c..0187000b0 100644 --- a/tests/Switzerland/Bern/EasterMondayTest.php +++ b/tests/Switzerland/Bern/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends BernBaseTestCase implements YasumiTestCaseInterfa /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/GoodFridayTest.php b/tests/Switzerland/Bern/GoodFridayTest.php index a857036f0..f1e316b33 100644 --- a/tests/Switzerland/Bern/GoodFridayTest.php +++ b/tests/Switzerland/Bern/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends BernBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/NewYearsDayTest.php b/tests/Switzerland/Bern/NewYearsDayTest.php index 5bdd10331..a23d91889 100644 --- a/tests/Switzerland/Bern/NewYearsDayTest.php +++ b/tests/Switzerland/Bern/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends BernBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Bern/PentecostMondayTest.php b/tests/Switzerland/Bern/PentecostMondayTest.php index dfd5bdaae..ef4ae6bae 100644 --- a/tests/Switzerland/Bern/PentecostMondayTest.php +++ b/tests/Switzerland/Bern/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends BernBaseTestCase implements YasumiTestCaseInte /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Bern/StStephensDayTest.php b/tests/Switzerland/Bern/StStephensDayTest.php index 796b83390..eb34ee84b 100644 --- a/tests/Switzerland/Bern/StStephensDayTest.php +++ b/tests/Switzerland/Bern/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends BernBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Fribourg/AscensionDayTest.php b/tests/Switzerland/Fribourg/AscensionDayTest.php index dd5f202c3..d2dd01573 100644 --- a/tests/Switzerland/Fribourg/AscensionDayTest.php +++ b/tests/Switzerland/Fribourg/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends FribourgBaseTestCase implements YasumiTestCaseInt /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Fribourg/ChristmasDayTest.php b/tests/Switzerland/Fribourg/ChristmasDayTest.php index 3f5b1c48b..d2d189383 100644 --- a/tests/Switzerland/Fribourg/ChristmasDayTest.php +++ b/tests/Switzerland/Fribourg/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends FribourgBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Fribourg/EasterMondayTest.php b/tests/Switzerland/Fribourg/EasterMondayTest.php index 92a49088e..c78ef2e4a 100644 --- a/tests/Switzerland/Fribourg/EasterMondayTest.php +++ b/tests/Switzerland/Fribourg/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends FribourgBaseTestCase implements YasumiTestCaseInt /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Fribourg/FribourgTest.php b/tests/Switzerland/Fribourg/FribourgTest.php index 9afd156a8..d6ed75cd0 100644 --- a/tests/Switzerland/Fribourg/FribourgTest.php +++ b/tests/Switzerland/Fribourg/FribourgTest.php @@ -26,6 +26,7 @@ class FribourgTest extends FribourgBaseTestCase /** * Tests if all official holidays in Fribourg (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Fribourg (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -53,6 +55,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Fribourg (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -66,6 +69,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Fribourg (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -74,6 +78,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Fribourg (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -82,6 +87,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Fribourg (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Fribourg/GoodFridayTest.php b/tests/Switzerland/Fribourg/GoodFridayTest.php index 329c7d916..2257a0ef6 100644 --- a/tests/Switzerland/Fribourg/GoodFridayTest.php +++ b/tests/Switzerland/Fribourg/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends FribourgBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Fribourg/NewYearsDayTest.php b/tests/Switzerland/Fribourg/NewYearsDayTest.php index 6e7eeae6c..fa2eb8bfe 100644 --- a/tests/Switzerland/Fribourg/NewYearsDayTest.php +++ b/tests/Switzerland/Fribourg/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends FribourgBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Fribourg/PentecostMondayTest.php b/tests/Switzerland/Fribourg/PentecostMondayTest.php index d883dcb8b..7e1f9aadb 100644 --- a/tests/Switzerland/Fribourg/PentecostMondayTest.php +++ b/tests/Switzerland/Fribourg/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends FribourgBaseTestCase implements YasumiTestCase /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/AscensionDayTest.php b/tests/Switzerland/Geneva/AscensionDayTest.php index 2cfd3f293..5687d2991 100644 --- a/tests/Switzerland/Geneva/AscensionDayTest.php +++ b/tests/Switzerland/Geneva/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends GenevaBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/ChristmasDayTest.php b/tests/Switzerland/Geneva/ChristmasDayTest.php index f4412390d..635339e36 100644 --- a/tests/Switzerland/Geneva/ChristmasDayTest.php +++ b/tests/Switzerland/Geneva/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends GenevaBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/EasterMondayTest.php b/tests/Switzerland/Geneva/EasterMondayTest.php index e04b15255..1ff5c5ad0 100644 --- a/tests/Switzerland/Geneva/EasterMondayTest.php +++ b/tests/Switzerland/Geneva/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends GenevaBaseTestCase implements YasumiTestCaseInter /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/GenevaTest.php b/tests/Switzerland/Geneva/GenevaTest.php index 6de4ff92a..e73618690 100644 --- a/tests/Switzerland/Geneva/GenevaTest.php +++ b/tests/Switzerland/Geneva/GenevaTest.php @@ -26,6 +26,7 @@ class GenevaTest extends GenevaBaseTestCase /** * Tests if all official holidays in Geneva (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Geneva (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -59,6 +61,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Geneva (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -76,6 +79,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Geneva (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -84,6 +88,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Geneva (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -92,6 +97,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Geneva (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Geneva/GoodFridayTest.php b/tests/Switzerland/Geneva/GoodFridayTest.php index 60fc5cfdb..108f5608b 100644 --- a/tests/Switzerland/Geneva/GoodFridayTest.php +++ b/tests/Switzerland/Geneva/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends GenevaBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/JeuneGenevoisTest.php b/tests/Switzerland/Geneva/JeuneGenevoisTest.php index dba296136..26411524a 100644 --- a/tests/Switzerland/Geneva/JeuneGenevoisTest.php +++ b/tests/Switzerland/Geneva/JeuneGenevoisTest.php @@ -30,6 +30,9 @@ class JeuneGenevoisTest extends GenevaBaseTestCase implements YasumiTestCaseInte /** * Tests Jeune Genevois on or after 1966 + * + * @throws \ReflectionException + * @throws \Exception */ public function testJeuneGenevoisOnAfter1966() { @@ -45,6 +48,9 @@ public function testJeuneGenevoisOnAfter1966() /** * Tests Jeune Genevois between 1870 and 1965 + * + * @throws \ReflectionException + * @throws \Exception */ public function testJeuneGenevoisBetween1870And1965() { @@ -60,6 +66,9 @@ public function testJeuneGenevoisBetween1870And1965() /** * Tests Jeune Genevois between 1840 and 1869 + * + * @throws \ReflectionException + * @throws \Exception */ public function testJeuneGenevoisBetween1840And1869() { @@ -75,6 +84,7 @@ public function testJeuneGenevoisBetween1840And1869() /** * Tests Jeune Genevois before 1840 + * @throws \ReflectionException */ public function testJeuneGenevoisBefore1840() { @@ -84,6 +94,7 @@ public function testJeuneGenevoisBefore1840() /** * Tests translated name of Jeune Genevois. + * @throws \ReflectionException */ public function testTranslation() { @@ -97,6 +108,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/NewYearsDayTest.php b/tests/Switzerland/Geneva/NewYearsDayTest.php index 51993add3..7160b9356 100644 --- a/tests/Switzerland/Geneva/NewYearsDayTest.php +++ b/tests/Switzerland/Geneva/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends GenevaBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Geneva/PentecostMondayTest.php b/tests/Switzerland/Geneva/PentecostMondayTest.php index daf5a7169..f1c33c36c 100644 --- a/tests/Switzerland/Geneva/PentecostMondayTest.php +++ b/tests/Switzerland/Geneva/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends GenevaBaseTestCase implements YasumiTestCaseIn /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php index 0df9349d7..f47cf471f 100644 --- a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php +++ b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php @@ -29,6 +29,8 @@ class RestaurationGenevoiseTest extends GenevaBaseTestCase implements YasumiTest /** * Tests Restauration Genevoise. + * @throws \Exception + * @throws \ReflectionException */ public function testRestaurationGenevoiseAfter1813() { @@ -44,6 +46,7 @@ public function testRestaurationGenevoiseAfter1813() /** * Tests translated name of Restauration Genevoise. + * @throws \ReflectionException */ public function testTranslation() { @@ -57,6 +60,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/AllSaintsDayTest.php b/tests/Switzerland/Glarus/AllSaintsDayTest.php index 771f764e8..469931444 100644 --- a/tests/Switzerland/Glarus/AllSaintsDayTest.php +++ b/tests/Switzerland/Glarus/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends GlarusBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Glarus/AscensionDayTest.php b/tests/Switzerland/Glarus/AscensionDayTest.php index 519ae8ac2..d9870a1f5 100644 --- a/tests/Switzerland/Glarus/AscensionDayTest.php +++ b/tests/Switzerland/Glarus/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends GlarusBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/BerchtoldsTagTest.php b/tests/Switzerland/Glarus/BerchtoldsTagTest.php index f64592b97..df39b78c4 100644 --- a/tests/Switzerland/Glarus/BerchtoldsTagTest.php +++ b/tests/Switzerland/Glarus/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends GlarusBaseTestCase implements YasumiTestCaseInte /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/ChristmasDayTest.php b/tests/Switzerland/Glarus/ChristmasDayTest.php index 971b65a04..206a3f7db 100644 --- a/tests/Switzerland/Glarus/ChristmasDayTest.php +++ b/tests/Switzerland/Glarus/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends GlarusBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/EasterMondayTest.php b/tests/Switzerland/Glarus/EasterMondayTest.php index 35c8c77a6..94afcaae7 100644 --- a/tests/Switzerland/Glarus/EasterMondayTest.php +++ b/tests/Switzerland/Glarus/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends GlarusBaseTestCase implements YasumiTestCaseInter /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/GlarusTest.php b/tests/Switzerland/Glarus/GlarusTest.php index f31e66218..de96c63c1 100644 --- a/tests/Switzerland/Glarus/GlarusTest.php +++ b/tests/Switzerland/Glarus/GlarusTest.php @@ -26,6 +26,7 @@ class GlarusTest extends GlarusBaseTestCase /** * Tests if all official holidays in Glarus (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Glarus (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -57,6 +59,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Glarus (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -70,6 +73,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Glarus (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -78,6 +82,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Glarus (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -86,6 +91,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Glarus (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Glarus/GoodFridayTest.php b/tests/Switzerland/Glarus/GoodFridayTest.php index a77b3647a..888f1cb00 100644 --- a/tests/Switzerland/Glarus/GoodFridayTest.php +++ b/tests/Switzerland/Glarus/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends GlarusBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/NafelserFahrtTest.php b/tests/Switzerland/Glarus/NafelserFahrtTest.php index f692f5fe0..4a1b615e9 100644 --- a/tests/Switzerland/Glarus/NafelserFahrtTest.php +++ b/tests/Switzerland/Glarus/NafelserFahrtTest.php @@ -34,6 +34,8 @@ class NafelserFahrtTest extends GlarusBaseTestCase implements YasumiTestCaseInte /** * Tests Näfelser Fahrt on or after 1389 + * @throws \ReflectionException + * @throws \Exception */ public function testNafelserFahrtOnAfter1389() { @@ -45,6 +47,7 @@ public function testNafelserFahrtOnAfter1389() /** * Tests Näfelser Fahrt before 1389 + * @throws \ReflectionException */ public function testNafelserFahrtBefore1389() { @@ -54,6 +57,7 @@ public function testNafelserFahrtBefore1389() /** * Tests translated name of Näfelser Fahrt. + * @throws \ReflectionException */ public function testTranslation() { @@ -67,6 +71,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/NewYearsDayTest.php b/tests/Switzerland/Glarus/NewYearsDayTest.php index 621d3dccd..4d3347e00 100644 --- a/tests/Switzerland/Glarus/NewYearsDayTest.php +++ b/tests/Switzerland/Glarus/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends GlarusBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Glarus/PentecostMondayTest.php b/tests/Switzerland/Glarus/PentecostMondayTest.php index da8502102..8f775d1d6 100644 --- a/tests/Switzerland/Glarus/PentecostMondayTest.php +++ b/tests/Switzerland/Glarus/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends GlarusBaseTestCase implements YasumiTestCaseIn /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Glarus/StStephensDayTest.php b/tests/Switzerland/Glarus/StStephensDayTest.php index 816cf8a26..e409e0f51 100644 --- a/tests/Switzerland/Glarus/StStephensDayTest.php +++ b/tests/Switzerland/Glarus/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends GlarusBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Grisons/AscensionDayTest.php b/tests/Switzerland/Grisons/AscensionDayTest.php index a15a7d790..a82e828c7 100644 --- a/tests/Switzerland/Grisons/AscensionDayTest.php +++ b/tests/Switzerland/Grisons/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInte /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Grisons/ChristmasDayTest.php b/tests/Switzerland/Grisons/ChristmasDayTest.php index 9282b447b..5dd5aff83 100644 --- a/tests/Switzerland/Grisons/ChristmasDayTest.php +++ b/tests/Switzerland/Grisons/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Grisons/EasterMondayTest.php b/tests/Switzerland/Grisons/EasterMondayTest.php index 042395dc6..f187e97dc 100644 --- a/tests/Switzerland/Grisons/EasterMondayTest.php +++ b/tests/Switzerland/Grisons/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends GrisonsBaseTestCase implements YasumiTestCaseInte /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Grisons/GoodFridayTest.php b/tests/Switzerland/Grisons/GoodFridayTest.php index 5959a410d..329fa7841 100644 --- a/tests/Switzerland/Grisons/GoodFridayTest.php +++ b/tests/Switzerland/Grisons/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends GrisonsBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Grisons/GrisonsTest.php b/tests/Switzerland/Grisons/GrisonsTest.php index 2fdc77d82..235dd9570 100644 --- a/tests/Switzerland/Grisons/GrisonsTest.php +++ b/tests/Switzerland/Grisons/GrisonsTest.php @@ -26,6 +26,7 @@ class GrisonsTest extends GrisonsBaseTestCase /** * Tests if all official holidays in Grisons (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Grisons (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -54,6 +56,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Grisons (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -67,6 +70,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Grisons (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -75,6 +79,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Grisons (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -83,6 +88,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Grisons (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Grisons/NewYearsDayTest.php b/tests/Switzerland/Grisons/NewYearsDayTest.php index bd4463192..d13c58b1e 100644 --- a/tests/Switzerland/Grisons/NewYearsDayTest.php +++ b/tests/Switzerland/Grisons/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Grisons/PentecostMondayTest.php b/tests/Switzerland/Grisons/PentecostMondayTest.php index 67fbe4088..f497b5e56 100644 --- a/tests/Switzerland/Grisons/PentecostMondayTest.php +++ b/tests/Switzerland/Grisons/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends GrisonsBaseTestCase implements YasumiTestCaseI /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Grisons/StStephensDayTest.php b/tests/Switzerland/Grisons/StStephensDayTest.php index 8c5eb57e0..da5d7c853 100644 --- a/tests/Switzerland/Grisons/StStephensDayTest.php +++ b/tests/Switzerland/Grisons/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/AllSaintsDayTest.php b/tests/Switzerland/Jura/AllSaintsDayTest.php index 71d8a1e43..e57ad07c6 100644 --- a/tests/Switzerland/Jura/AllSaintsDayTest.php +++ b/tests/Switzerland/Jura/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Jura/AscensionDayTest.php b/tests/Switzerland/Jura/AscensionDayTest.php index dbb7dd2a8..4d78c06c3 100644 --- a/tests/Switzerland/Jura/AscensionDayTest.php +++ b/tests/Switzerland/Jura/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/AssumptionOfMaryTest.php b/tests/Switzerland/Jura/AssumptionOfMaryTest.php index 53f0e5f21..1c50de201 100644 --- a/tests/Switzerland/Jura/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Jura/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends JuraBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Jura/BerchtoldsTagTest.php b/tests/Switzerland/Jura/BerchtoldsTagTest.php index 2e9a395ac..359e94ef8 100644 --- a/tests/Switzerland/Jura/BerchtoldsTagTest.php +++ b/tests/Switzerland/Jura/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends JuraBaseTestCase implements YasumiTestCaseInterf /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/ChristmasDayTest.php b/tests/Switzerland/Jura/ChristmasDayTest.php index 15296504c..32dbc1037 100644 --- a/tests/Switzerland/Jura/ChristmasDayTest.php +++ b/tests/Switzerland/Jura/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/CorpusChristiTest.php b/tests/Switzerland/Jura/CorpusChristiTest.php index fbb530786..7eae3fbe8 100644 --- a/tests/Switzerland/Jura/CorpusChristiTest.php +++ b/tests/Switzerland/Jura/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends JuraBaseTestCase implements YasumiTestCaseInterf /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/EasterMondayTest.php b/tests/Switzerland/Jura/EasterMondayTest.php index d0893ded5..24896428a 100644 --- a/tests/Switzerland/Jura/EasterMondayTest.php +++ b/tests/Switzerland/Jura/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/GoodFridayTest.php b/tests/Switzerland/Jura/GoodFridayTest.php index 51e06fee9..e73fe72f8 100644 --- a/tests/Switzerland/Jura/GoodFridayTest.php +++ b/tests/Switzerland/Jura/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends JuraBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/JuraTest.php b/tests/Switzerland/Jura/JuraTest.php index f13b60706..e5918343e 100644 --- a/tests/Switzerland/Jura/JuraTest.php +++ b/tests/Switzerland/Jura/JuraTest.php @@ -26,6 +26,7 @@ class JuraTest extends JuraBaseTestCase /** * Tests if all official holidays in Jura (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Jura (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -59,6 +61,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Jura (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -72,6 +75,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Jura (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -80,6 +84,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Jura (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -88,6 +93,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Jura (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Jura/NewYearsDayTest.php b/tests/Switzerland/Jura/NewYearsDayTest.php index adcdf52f0..9ac5fd013 100644 --- a/tests/Switzerland/Jura/NewYearsDayTest.php +++ b/tests/Switzerland/Jura/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Jura/PentecostMondayTest.php b/tests/Switzerland/Jura/PentecostMondayTest.php index 85dc2f766..d325bb088 100644 --- a/tests/Switzerland/Jura/PentecostMondayTest.php +++ b/tests/Switzerland/Jura/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends JuraBaseTestCase implements YasumiTestCaseInte /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/PlebisciteJurassienTest.php b/tests/Switzerland/Jura/PlebisciteJurassienTest.php index 98b8ca972..3b1cece99 100644 --- a/tests/Switzerland/Jura/PlebisciteJurassienTest.php +++ b/tests/Switzerland/Jura/PlebisciteJurassienTest.php @@ -34,6 +34,8 @@ class PlebisciteJurassienTest extends JuraBaseTestCase implements YasumiTestCase /** * Tests Plébiscite jurassien on or after 1975. + * @throws \Exception + * @throws \ReflectionException */ public function testInstaurationRepubliqueOnAfter1975() { @@ -48,6 +50,7 @@ public function testInstaurationRepubliqueOnAfter1975() /** * Tests Plébiscite jurassien before 1975. + * @throws \ReflectionException */ public function testInstaurationRepubliqueBefore1975() { @@ -60,6 +63,7 @@ public function testInstaurationRepubliqueBefore1975() /** * Tests translated name of Plébiscite jurassien. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index 8f8fb5725..4fc480d9f 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends JuraBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/AllSaintsDayTest.php b/tests/Switzerland/Lucerne/AllSaintsDayTest.php index 4bd9160bb..cb6d273bb 100644 --- a/tests/Switzerland/Lucerne/AllSaintsDayTest.php +++ b/tests/Switzerland/Lucerne/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends LucerneBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Lucerne/AscensionDayTest.php b/tests/Switzerland/Lucerne/AscensionDayTest.php index 947233550..0d3ff8511 100644 --- a/tests/Switzerland/Lucerne/AscensionDayTest.php +++ b/tests/Switzerland/Lucerne/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends LucerneBaseTestCase implements YasumiTestCaseInte /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php index a3a9829e3..c37d156e6 100644 --- a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends LucerneBaseTestCase implements YasumiTestCase * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php index 8d2245c97..828a735ed 100644 --- a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php +++ b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends LucerneBaseTestCase implements YasumiTestCaseInt /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/ChristmasDayTest.php b/tests/Switzerland/Lucerne/ChristmasDayTest.php index 745b580ce..bef215590 100644 --- a/tests/Switzerland/Lucerne/ChristmasDayTest.php +++ b/tests/Switzerland/Lucerne/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends LucerneBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/CorpusChristiTest.php b/tests/Switzerland/Lucerne/CorpusChristiTest.php index 567e1ebbd..535af7a92 100644 --- a/tests/Switzerland/Lucerne/CorpusChristiTest.php +++ b/tests/Switzerland/Lucerne/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends LucerneBaseTestCase implements YasumiTestCaseInt /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/EasterMondayTest.php b/tests/Switzerland/Lucerne/EasterMondayTest.php index 024901f16..ea827d0aa 100644 --- a/tests/Switzerland/Lucerne/EasterMondayTest.php +++ b/tests/Switzerland/Lucerne/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends LucerneBaseTestCase implements YasumiTestCaseInte /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/GoodFridayTest.php b/tests/Switzerland/Lucerne/GoodFridayTest.php index 11f468121..031d4dbd3 100644 --- a/tests/Switzerland/Lucerne/GoodFridayTest.php +++ b/tests/Switzerland/Lucerne/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends LucerneBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php index c79580381..dfdd68e34 100644 --- a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends LucerneBaseTestCase implements YasumiTest * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/LucerneTest.php b/tests/Switzerland/Lucerne/LucerneTest.php index e140dbda4..6300fc8bb 100644 --- a/tests/Switzerland/Lucerne/LucerneTest.php +++ b/tests/Switzerland/Lucerne/LucerneTest.php @@ -26,6 +26,7 @@ class LucerneTest extends LucerneBaseTestCase /** * Tests if all official holidays in Lucerne (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Lucerne (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -59,6 +61,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Lucerne (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -72,6 +75,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Lucerne (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -80,6 +84,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Lucerne (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -88,6 +93,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Lucerne (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Lucerne/NewYearsDayTest.php b/tests/Switzerland/Lucerne/NewYearsDayTest.php index d54702723..d862701ff 100644 --- a/tests/Switzerland/Lucerne/NewYearsDayTest.php +++ b/tests/Switzerland/Lucerne/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends LucerneBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Lucerne/PentecostMondayTest.php b/tests/Switzerland/Lucerne/PentecostMondayTest.php index 98a35ff12..9a411adc0 100644 --- a/tests/Switzerland/Lucerne/PentecostMondayTest.php +++ b/tests/Switzerland/Lucerne/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends LucerneBaseTestCase implements YasumiTestCaseI /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Lucerne/StStephensDayTest.php b/tests/Switzerland/Lucerne/StStephensDayTest.php index 51c479bed..d3a534c9c 100644 --- a/tests/Switzerland/Lucerne/StStephensDayTest.php +++ b/tests/Switzerland/Lucerne/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends LucerneBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/AscensionDayTest.php b/tests/Switzerland/Neuchatel/AscensionDayTest.php index c4d5f1f4e..5c4a343af 100644 --- a/tests/Switzerland/Neuchatel/AscensionDayTest.php +++ b/tests/Switzerland/Neuchatel/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseIn /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php index 69b552f5f..c6b7d7df3 100644 --- a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php +++ b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends NeuchatelBaseTestCase implements YasumiTestCaseI /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/BettagsMontagTest.php b/tests/Switzerland/Neuchatel/BettagsMontagTest.php index 4d56e5ad4..af7d6538b 100644 --- a/tests/Switzerland/Neuchatel/BettagsMontagTest.php +++ b/tests/Switzerland/Neuchatel/BettagsMontagTest.php @@ -30,6 +30,9 @@ class BettagsMontagTest extends NeuchatelBaseTestCase implements YasumiTestCaseI /** * Tests Bettags Montag on or after 1832 + * + * @throws \ReflectionException + * @throws \Exception */ public function testBettagsMontagOnAfter1832() { @@ -45,6 +48,7 @@ public function testBettagsMontagOnAfter1832() /** * Tests Bettags Montag before 1832 + * @throws \ReflectionException */ public function testBettagsMontagBefore1832() { @@ -54,6 +58,7 @@ public function testBettagsMontagBefore1832() /** * Tests translated name of Bettags Montag. + * @throws \ReflectionException */ public function testTranslation() { @@ -67,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/ChristmasDayTest.php b/tests/Switzerland/Neuchatel/ChristmasDayTest.php index d0005aeeb..fa4a2e76d 100644 --- a/tests/Switzerland/Neuchatel/ChristmasDayTest.php +++ b/tests/Switzerland/Neuchatel/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/EasterMondayTest.php b/tests/Switzerland/Neuchatel/EasterMondayTest.php index c27fd45af..742e27d87 100644 --- a/tests/Switzerland/Neuchatel/EasterMondayTest.php +++ b/tests/Switzerland/Neuchatel/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends NeuchatelBaseTestCase implements YasumiTestCaseIn /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/GoodFridayTest.php b/tests/Switzerland/Neuchatel/GoodFridayTest.php index a8e9a148f..9cf1872d6 100644 --- a/tests/Switzerland/Neuchatel/GoodFridayTest.php +++ b/tests/Switzerland/Neuchatel/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends NeuchatelBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php index 48ddbc295..e08933494 100644 --- a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php +++ b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php @@ -34,6 +34,8 @@ class InstaurationRepubliqueTest extends NeuchatelBaseTestCase implements Yasumi /** * Tests Instauration de la République on or after 1849. + * @throws \Exception + * @throws \ReflectionException */ public function testInstaurationRepubliqueOnAfter1849() { @@ -48,6 +50,7 @@ public function testInstaurationRepubliqueOnAfter1849() /** * Tests Instauration de la République before 1849. + * @throws \ReflectionException */ public function testInstaurationRepubliqueBefore1849() { @@ -60,6 +63,7 @@ public function testInstaurationRepubliqueBefore1849() /** * Tests translated name of Instauration de la République. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/NeuchatelTest.php b/tests/Switzerland/Neuchatel/NeuchatelTest.php index 119139bef..5b78fc9ca 100644 --- a/tests/Switzerland/Neuchatel/NeuchatelTest.php +++ b/tests/Switzerland/Neuchatel/NeuchatelTest.php @@ -26,6 +26,7 @@ class NeuchatelTest extends NeuchatelBaseTestCase /** * Tests if all official holidays in Neuchatel (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Neuchatel (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -57,6 +59,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Neuchatel (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -70,6 +73,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Neuchatel (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -78,6 +82,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Neuchatel (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -86,6 +91,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Neuchatel (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Neuchatel/NewYearsDayTest.php b/tests/Switzerland/Neuchatel/NewYearsDayTest.php index 487c57de6..3eb2e135b 100644 --- a/tests/Switzerland/Neuchatel/NewYearsDayTest.php +++ b/tests/Switzerland/Neuchatel/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Neuchatel/PentecostMondayTest.php b/tests/Switzerland/Neuchatel/PentecostMondayTest.php index f702de377..5daeece13 100644 --- a/tests/Switzerland/Neuchatel/PentecostMondayTest.php +++ b/tests/Switzerland/Neuchatel/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends NeuchatelBaseTestCase implements YasumiTestCas /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index 5e039501b..2636a6db9 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php index 9efc19dfa..6a8d59ad9 100644 --- a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Nidwalden/AscensionDayTest.php b/tests/Switzerland/Nidwalden/AscensionDayTest.php index 1dbd1e71f..e3b9729bc 100644 --- a/tests/Switzerland/Nidwalden/AscensionDayTest.php +++ b/tests/Switzerland/Nidwalden/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php index dfaa8136d..3799d3f06 100644 --- a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends NidwaldenBaseTestCase implements YasumiTestCa * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Nidwalden/ChristmasDayTest.php b/tests/Switzerland/Nidwalden/ChristmasDayTest.php index f8f0f7999..7fc54f210 100644 --- a/tests/Switzerland/Nidwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Nidwalden/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/CorpusChristiTest.php b/tests/Switzerland/Nidwalden/CorpusChristiTest.php index 36a44435c..2257c7305 100644 --- a/tests/Switzerland/Nidwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Nidwalden/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends NidwaldenBaseTestCase implements YasumiTestCaseI /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/EasterMondayTest.php b/tests/Switzerland/Nidwalden/EasterMondayTest.php index 6a0908ab3..81d851f43 100644 --- a/tests/Switzerland/Nidwalden/EasterMondayTest.php +++ b/tests/Switzerland/Nidwalden/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/GoodFridayTest.php b/tests/Switzerland/Nidwalden/GoodFridayTest.php index 4f564ba0a..407276dbb 100644 --- a/tests/Switzerland/Nidwalden/GoodFridayTest.php +++ b/tests/Switzerland/Nidwalden/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php index 1c7826f88..2063efe9a 100644 --- a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends NidwaldenBaseTestCase implements YasumiTe * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/NewYearsDayTest.php b/tests/Switzerland/Nidwalden/NewYearsDayTest.php index 62b83acf2..10959f0ad 100644 --- a/tests/Switzerland/Nidwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Nidwalden/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Nidwalden/NidwaldenTest.php b/tests/Switzerland/Nidwalden/NidwaldenTest.php index c18642c57..19fc4894c 100644 --- a/tests/Switzerland/Nidwalden/NidwaldenTest.php +++ b/tests/Switzerland/Nidwalden/NidwaldenTest.php @@ -26,6 +26,7 @@ class NidwaldenTest extends NidwaldenBaseTestCase /** * Tests if all official holidays in Nidwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Nidwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -59,6 +61,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Nidwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -72,6 +75,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Nidwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -80,6 +84,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Nidwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -88,6 +93,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Nidwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Nidwalden/PentecostMondayTest.php b/tests/Switzerland/Nidwalden/PentecostMondayTest.php index 587e2bbd8..97e29d665 100644 --- a/tests/Switzerland/Nidwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Nidwalden/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends NidwaldenBaseTestCase implements YasumiTestCas /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index 26487fb4f..f8958d942 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -35,6 +35,8 @@ class StJosephDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testStJosephDay($year, $expected) { @@ -45,6 +47,7 @@ public function testStJosephDay($year, $expected) * Returns a list of random test dates used for assertion of St. Joseph's Day. * * @return array list of test dates for St. Joseph's Day + * @throws \Exception */ public function StJosephDayDataProvider(): array { @@ -53,6 +56,7 @@ public function StJosephDayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Nidwalden/StStephensDayTest.php b/tests/Switzerland/Nidwalden/StStephensDayTest.php index b1f4053b3..e6862fbd2 100644 --- a/tests/Switzerland/Nidwalden/StStephensDayTest.php +++ b/tests/Switzerland/Nidwalden/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/AllSaintsDayTest.php b/tests/Switzerland/Obwalden/AllSaintsDayTest.php index 1754bb334..454089382 100644 --- a/tests/Switzerland/Obwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Obwalden/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Obwalden/AscensionDayTest.php b/tests/Switzerland/Obwalden/AscensionDayTest.php index 1d75a822b..c3fd74fbc 100644 --- a/tests/Switzerland/Obwalden/AscensionDayTest.php +++ b/tests/Switzerland/Obwalden/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php index c3dbb1756..c3351d96d 100644 --- a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends ObwaldenBaseTestCase implements YasumiTestCas * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php index f2c7927ad..db50b7810 100644 --- a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php +++ b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php index 7fda4ff07..28ad0cf5f 100644 --- a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php +++ b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php @@ -29,6 +29,9 @@ class BruderKlausenFestTest extends ObwaldenBaseTestCase implements YasumiTestCa /** * Tests Bruder-Klausen-Fest on or after 1947 + * + * @throws \ReflectionException + * @throws \Exception */ public function testBruderKlausenFestOnAfter1947() { @@ -41,6 +44,9 @@ public function testBruderKlausenFestOnAfter1947() /** * Tests Bruder-Klausen-Fest between 1649 and 1946 + * + * @throws \ReflectionException + * @throws \Exception */ public function testBruderKlausenFestBetween1649And1946() { @@ -53,6 +59,7 @@ public function testBruderKlausenFestBetween1649And1946() /** * Tests Bruder-Klausen-Fest before 1648 + * @throws \ReflectionException */ public function testBruderKlausenFestBefore1648() { @@ -62,6 +69,7 @@ public function testBruderKlausenFestBefore1648() /** * Tests translated name of Bruder-Klausen-Fest. + * @throws \ReflectionException */ public function testTranslation() { @@ -75,6 +83,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/ChristmasDayTest.php b/tests/Switzerland/Obwalden/ChristmasDayTest.php index 0a8102e16..eed2d7df4 100644 --- a/tests/Switzerland/Obwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Obwalden/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/CorpusChristiTest.php b/tests/Switzerland/Obwalden/CorpusChristiTest.php index 167a82fca..7943123f3 100644 --- a/tests/Switzerland/Obwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Obwalden/CorpusChristiTest.php @@ -31,6 +31,8 @@ class CorpusChristiTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn /** * Tests Corpus Christi. + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +47,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +61,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/EasterMondayTest.php b/tests/Switzerland/Obwalden/EasterMondayTest.php index 0a50a1a54..c09964d5e 100644 --- a/tests/Switzerland/Obwalden/EasterMondayTest.php +++ b/tests/Switzerland/Obwalden/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/GoodFridayTest.php b/tests/Switzerland/Obwalden/GoodFridayTest.php index 8708e82e5..c15df8726 100644 --- a/tests/Switzerland/Obwalden/GoodFridayTest.php +++ b/tests/Switzerland/Obwalden/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php index 5fa596a55..885591ec9 100644 --- a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends ObwaldenBaseTestCase implements YasumiTes * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/NewYearsDayTest.php b/tests/Switzerland/Obwalden/NewYearsDayTest.php index cdc4cc151..993783779 100644 --- a/tests/Switzerland/Obwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Obwalden/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Obwalden/ObwaldenTest.php b/tests/Switzerland/Obwalden/ObwaldenTest.php index e1861f520..aa72e4973 100644 --- a/tests/Switzerland/Obwalden/ObwaldenTest.php +++ b/tests/Switzerland/Obwalden/ObwaldenTest.php @@ -26,6 +26,7 @@ class ObwaldenTest extends ObwaldenBaseTestCase /** * Tests if all official holidays in Obwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Obwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -60,6 +62,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Obwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -73,6 +76,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Obwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -81,6 +85,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Obwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -89,6 +94,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Obwalden (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Obwalden/PentecostMondayTest.php b/tests/Switzerland/Obwalden/PentecostMondayTest.php index 4f4ee9fa5..dd4c2fbf4 100644 --- a/tests/Switzerland/Obwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Obwalden/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends ObwaldenBaseTestCase implements YasumiTestCase /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Obwalden/StStephensDayTest.php b/tests/Switzerland/Obwalden/StStephensDayTest.php index 61ded5fdd..b67582863 100644 --- a/tests/Switzerland/Obwalden/StStephensDayTest.php +++ b/tests/Switzerland/Obwalden/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/AscensionDayTest.php b/tests/Switzerland/Schaffhausen/AscensionDayTest.php index fd833b323..fd82a9222 100644 --- a/tests/Switzerland/Schaffhausen/AscensionDayTest.php +++ b/tests/Switzerland/Schaffhausen/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends SchaffhausenBaseTestCase implements YasumiTestCas /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php index 7dac46d95..59398370e 100644 --- a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php +++ b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends SchaffhausenBaseTestCase implements YasumiTestCa /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php index 4a6b403b9..d6cdd2e02 100644 --- a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php +++ b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends SchaffhausenBaseTestCase implements YasumiTestCas * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/EasterMondayTest.php b/tests/Switzerland/Schaffhausen/EasterMondayTest.php index 7811b7eae..c4c1c9ad7 100644 --- a/tests/Switzerland/Schaffhausen/EasterMondayTest.php +++ b/tests/Switzerland/Schaffhausen/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends SchaffhausenBaseTestCase implements YasumiTestCas /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/GoodFridayTest.php b/tests/Switzerland/Schaffhausen/GoodFridayTest.php index cfddb42c2..fe7fc53f4 100644 --- a/tests/Switzerland/Schaffhausen/GoodFridayTest.php +++ b/tests/Switzerland/Schaffhausen/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends SchaffhausenBaseTestCase implements YasumiTestCaseI /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php index afca590eb..fd9bd2822 100644 --- a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php +++ b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends SchaffhausenBaseTestCase implements YasumiTestCase * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php index 9790e8aa3..2dd42aeaa 100644 --- a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php +++ b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends SchaffhausenBaseTestCase implements YasumiTest /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php index ec3b78729..8d0e2da5d 100644 --- a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php +++ b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php @@ -26,6 +26,7 @@ class SchaffhausenTest extends SchaffhausenBaseTestCase /** * Tests if all official holidays in Schaffhausen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Schaffhausen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -56,6 +58,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Schaffhausen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -69,6 +72,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Schaffhausen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -77,6 +81,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Schaffhausen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -85,6 +90,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Schaffhausen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Schaffhausen/StStephensDayTest.php b/tests/Switzerland/Schaffhausen/StStephensDayTest.php index 862ff7def..1b7306ee6 100644 --- a/tests/Switzerland/Schaffhausen/StStephensDayTest.php +++ b/tests/Switzerland/Schaffhausen/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends SchaffhausenBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index 32b1ea663..7571d2e94 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends SchaffhausenBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/AllSaintsDayTest.php b/tests/Switzerland/Schwyz/AllSaintsDayTest.php index 05eda21f8..8a2278002 100644 --- a/tests/Switzerland/Schwyz/AllSaintsDayTest.php +++ b/tests/Switzerland/Schwyz/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Schwyz/AscensionDayTest.php b/tests/Switzerland/Schwyz/AscensionDayTest.php index abd64a127..1407036e9 100644 --- a/tests/Switzerland/Schwyz/AscensionDayTest.php +++ b/tests/Switzerland/Schwyz/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php index 2bcaea379..943506eb6 100644 --- a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends SchwyzBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Schwyz/ChristmasDayTest.php b/tests/Switzerland/Schwyz/ChristmasDayTest.php index e97204c4f..b4f0ae7a5 100644 --- a/tests/Switzerland/Schwyz/ChristmasDayTest.php +++ b/tests/Switzerland/Schwyz/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/CorpusChristiTest.php b/tests/Switzerland/Schwyz/CorpusChristiTest.php index 1dce481a0..a8ac9ab6d 100644 --- a/tests/Switzerland/Schwyz/CorpusChristiTest.php +++ b/tests/Switzerland/Schwyz/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends SchwyzBaseTestCase implements YasumiTestCaseInte /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/EasterMondayTest.php b/tests/Switzerland/Schwyz/EasterMondayTest.php index f1ed46684..fd8a0291c 100644 --- a/tests/Switzerland/Schwyz/EasterMondayTest.php +++ b/tests/Switzerland/Schwyz/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/EpiphanyTest.php b/tests/Switzerland/Schwyz/EpiphanyTest.php index 1ae1822b9..b398378ff 100644 --- a/tests/Switzerland/Schwyz/EpiphanyTest.php +++ b/tests/Switzerland/Schwyz/EpiphanyTest.php @@ -34,6 +34,8 @@ class EpiphanyTest extends SchwyzBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -44,6 +46,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -52,6 +55,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/GoodFridayTest.php b/tests/Switzerland/Schwyz/GoodFridayTest.php index 34b8beef1..f3c19ef4d 100644 --- a/tests/Switzerland/Schwyz/GoodFridayTest.php +++ b/tests/Switzerland/Schwyz/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php index 6e10bb6db..e5d577fdb 100644 --- a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends SchwyzBaseTestCase implements YasumiTestC * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/NewYearsDayTest.php b/tests/Switzerland/Schwyz/NewYearsDayTest.php index c8be4b478..843326b07 100644 --- a/tests/Switzerland/Schwyz/NewYearsDayTest.php +++ b/tests/Switzerland/Schwyz/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Schwyz/PentecostMondayTest.php b/tests/Switzerland/Schwyz/PentecostMondayTest.php index 2d62095ba..27780499a 100644 --- a/tests/Switzerland/Schwyz/PentecostMondayTest.php +++ b/tests/Switzerland/Schwyz/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends SchwyzBaseTestCase implements YasumiTestCaseIn /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/SchwyzTest.php b/tests/Switzerland/Schwyz/SchwyzTest.php index bb4ac58eb..e5cd97115 100644 --- a/tests/Switzerland/Schwyz/SchwyzTest.php +++ b/tests/Switzerland/Schwyz/SchwyzTest.php @@ -26,6 +26,7 @@ class SchwyzTest extends SchwyzBaseTestCase /** * Tests if all official holidays in Schwyz (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Schwyz (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -60,6 +62,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Schwyz (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -73,6 +76,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Schwyz (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -81,6 +85,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Schwyz (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -89,6 +94,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Schwyz (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index 3f31fa2ce..96128818b 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -35,6 +35,8 @@ class StJosephDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testStJosephDay($year, $expected) { @@ -45,6 +47,7 @@ public function testStJosephDay($year, $expected) * Returns a list of random test dates used for assertion of St. Joseph's Day. * * @return array list of test dates for St. Joseph's Day + * @throws \Exception */ public function StJosephDayDataProvider(): array { @@ -53,6 +56,7 @@ public function StJosephDayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Schwyz/StStephensDayTest.php b/tests/Switzerland/Schwyz/StStephensDayTest.php index 8ec5a3984..50334826c 100644 --- a/tests/Switzerland/Schwyz/StStephensDayTest.php +++ b/tests/Switzerland/Schwyz/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Solothurn/AscensionDayTest.php b/tests/Switzerland/Solothurn/AscensionDayTest.php index 51a42ab07..ed7764299 100644 --- a/tests/Switzerland/Solothurn/AscensionDayTest.php +++ b/tests/Switzerland/Solothurn/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends SolothurnBaseTestCase implements YasumiTestCaseIn /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php index 2193c3cfc..e3a8f09c0 100644 --- a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php +++ b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends SolothurnBaseTestCase implements YasumiTestCaseI /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Solothurn/ChristmasDayTest.php b/tests/Switzerland/Solothurn/ChristmasDayTest.php index 52389048b..cb6a93a12 100644 --- a/tests/Switzerland/Solothurn/ChristmasDayTest.php +++ b/tests/Switzerland/Solothurn/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends SolothurnBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Solothurn/GoodFridayTest.php b/tests/Switzerland/Solothurn/GoodFridayTest.php index 3649151cb..b0f138c68 100644 --- a/tests/Switzerland/Solothurn/GoodFridayTest.php +++ b/tests/Switzerland/Solothurn/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends SolothurnBaseTestCase implements YasumiTestCaseInte /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Solothurn/NewYearsDayTest.php b/tests/Switzerland/Solothurn/NewYearsDayTest.php index e0aa48e84..72fdeb420 100644 --- a/tests/Switzerland/Solothurn/NewYearsDayTest.php +++ b/tests/Switzerland/Solothurn/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends SolothurnBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Solothurn/SolothurnTest.php b/tests/Switzerland/Solothurn/SolothurnTest.php index ce51b0026..082378ede 100644 --- a/tests/Switzerland/Solothurn/SolothurnTest.php +++ b/tests/Switzerland/Solothurn/SolothurnTest.php @@ -26,6 +26,7 @@ class SolothurnTest extends SolothurnBaseTestCase /** * Tests if all official holidays in Solothurn (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -39,6 +40,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Solothurn (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -53,6 +55,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Solothurn (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -66,6 +69,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Solothurn (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -74,6 +78,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Solothurn (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -82,6 +87,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Solothurn (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/StGallen/AllSaintsDayTest.php b/tests/Switzerland/StGallen/AllSaintsDayTest.php index 4ca5129cc..0f3349b6e 100644 --- a/tests/Switzerland/StGallen/AllSaintsDayTest.php +++ b/tests/Switzerland/StGallen/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends StGallenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/StGallen/AscensionDayTest.php b/tests/Switzerland/StGallen/AscensionDayTest.php index 6fe965fa9..5addffcde 100644 --- a/tests/Switzerland/StGallen/AscensionDayTest.php +++ b/tests/Switzerland/StGallen/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends StGallenBaseTestCase implements YasumiTestCaseInt /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/StGallen/ChristmasDayTest.php b/tests/Switzerland/StGallen/ChristmasDayTest.php index f5e78586f..747ef4ea8 100644 --- a/tests/Switzerland/StGallen/ChristmasDayTest.php +++ b/tests/Switzerland/StGallen/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends StGallenBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/StGallen/EasterMondayTest.php b/tests/Switzerland/StGallen/EasterMondayTest.php index fb00ede2d..06380f81d 100644 --- a/tests/Switzerland/StGallen/EasterMondayTest.php +++ b/tests/Switzerland/StGallen/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends StGallenBaseTestCase implements YasumiTestCaseInt /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/StGallen/GoodFridayTest.php b/tests/Switzerland/StGallen/GoodFridayTest.php index acabcba45..a6ca3032e 100644 --- a/tests/Switzerland/StGallen/GoodFridayTest.php +++ b/tests/Switzerland/StGallen/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends StGallenBaseTestCase implements YasumiTestCaseInter /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/StGallen/NewYearsDayTest.php b/tests/Switzerland/StGallen/NewYearsDayTest.php index f946cebcc..e9401544b 100644 --- a/tests/Switzerland/StGallen/NewYearsDayTest.php +++ b/tests/Switzerland/StGallen/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends StGallenBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/StGallen/PentecostMondayTest.php b/tests/Switzerland/StGallen/PentecostMondayTest.php index bdbcc2a91..a2fa82232 100644 --- a/tests/Switzerland/StGallen/PentecostMondayTest.php +++ b/tests/Switzerland/StGallen/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends StGallenBaseTestCase implements YasumiTestCase /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/StGallen/StGallenTest.php b/tests/Switzerland/StGallen/StGallenTest.php index 08874cea9..97db6663a 100644 --- a/tests/Switzerland/StGallen/StGallenTest.php +++ b/tests/Switzerland/StGallen/StGallenTest.php @@ -26,6 +26,7 @@ class StGallenTest extends StGallenBaseTestCase /** * Tests if all official holidays in St. Gallen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in St. Gallen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -55,6 +57,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in St. Gallen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in St. Gallen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in St. Gallen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in St. Gallen (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/StGallen/StStephensDayTest.php b/tests/Switzerland/StGallen/StStephensDayTest.php index e5051f8e1..ec178903c 100644 --- a/tests/Switzerland/StGallen/StStephensDayTest.php +++ b/tests/Switzerland/StGallen/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends StGallenBaseTestCase implements YasumiTestCaseIn * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/SwissNationalDayTest.php b/tests/Switzerland/SwissNationalDayTest.php index d1139b4b7..ee805f1f6 100644 --- a/tests/Switzerland/SwissNationalDayTest.php +++ b/tests/Switzerland/SwissNationalDayTest.php @@ -44,6 +44,8 @@ class SwissNationalDayTest extends SwitzerlandBaseTestCase implements YasumiTest /** * Tests National Day on or after 1994. + * @throws \Exception + * @throws \ReflectionException */ public function testNationalDayOnAfter1994() { @@ -58,6 +60,9 @@ public function testNationalDayOnAfter1994() /** * Tests National Day on or after 1899 and before 1994. + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException */ public function testNationalDayOnAfter1899() { @@ -73,6 +78,9 @@ public function testNationalDayOnAfter1899() /** * Tests National Day on 1891 + * @throws \ReflectionException + * @throws \Exception + * @throws \ReflectionException */ public function testNationalDayOn1891() { @@ -88,6 +96,7 @@ public function testNationalDayOn1891() /** * Tests National Day before 1891. + * @throws \ReflectionException */ public function testNationalDayBefore1891() { @@ -100,6 +109,7 @@ public function testNationalDayBefore1891() /** * Tests National Day between 1891 and 1899. + * @throws \ReflectionException */ public function testNationalDayBetween1891And1899() { @@ -109,6 +119,7 @@ public function testNationalDayBetween1891And1899() /** * Tests translated name of National Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -122,6 +133,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/SwitzerlandTest.php b/tests/Switzerland/SwitzerlandTest.php index b649d5c0e..7bac0bce6 100644 --- a/tests/Switzerland/SwitzerlandTest.php +++ b/tests/Switzerland/SwitzerlandTest.php @@ -26,6 +26,7 @@ class SwitzerlandTest extends SwitzerlandBaseTestCase /** * Tests if all official holidays in Switzerland are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Switzerland are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -51,6 +53,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Switzerland are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -59,6 +62,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Switzerland are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -67,6 +71,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Switzerland are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Thurgau/AscensionDayTest.php b/tests/Switzerland/Thurgau/AscensionDayTest.php index f43f40a95..23d9b1728 100644 --- a/tests/Switzerland/Thurgau/AscensionDayTest.php +++ b/tests/Switzerland/Thurgau/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInte /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php index fea82717b..c10eb2b66 100644 --- a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php +++ b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends ThurgauBaseTestCase implements YasumiTestCaseInt /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/ChristmasDayTest.php b/tests/Switzerland/Thurgau/ChristmasDayTest.php index 2a9b86f05..f3e9f1c39 100644 --- a/tests/Switzerland/Thurgau/ChristmasDayTest.php +++ b/tests/Switzerland/Thurgau/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/EasterMondayTest.php b/tests/Switzerland/Thurgau/EasterMondayTest.php index 79b1d242d..28741430f 100644 --- a/tests/Switzerland/Thurgau/EasterMondayTest.php +++ b/tests/Switzerland/Thurgau/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends ThurgauBaseTestCase implements YasumiTestCaseInte /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/GoodFridayTest.php b/tests/Switzerland/Thurgau/GoodFridayTest.php index 3e08720f2..d7558ac8e 100644 --- a/tests/Switzerland/Thurgau/GoodFridayTest.php +++ b/tests/Switzerland/Thurgau/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends ThurgauBaseTestCase implements YasumiTestCaseInterf /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/NewYearsDayTest.php b/tests/Switzerland/Thurgau/NewYearsDayTest.php index 1612dab4c..8d5ed91b1 100644 --- a/tests/Switzerland/Thurgau/NewYearsDayTest.php +++ b/tests/Switzerland/Thurgau/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Thurgau/PentecostMondayTest.php b/tests/Switzerland/Thurgau/PentecostMondayTest.php index b9b34e3aa..0f103e163 100644 --- a/tests/Switzerland/Thurgau/PentecostMondayTest.php +++ b/tests/Switzerland/Thurgau/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends ThurgauBaseTestCase implements YasumiTestCaseI /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/StStephensDayTest.php b/tests/Switzerland/Thurgau/StStephensDayTest.php index f550dd660..a44a9bd94 100644 --- a/tests/Switzerland/Thurgau/StStephensDayTest.php +++ b/tests/Switzerland/Thurgau/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInt * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Thurgau/ThurgauTest.php b/tests/Switzerland/Thurgau/ThurgauTest.php index f39743a19..fa2ba8097 100644 --- a/tests/Switzerland/Thurgau/ThurgauTest.php +++ b/tests/Switzerland/Thurgau/ThurgauTest.php @@ -26,6 +26,7 @@ class ThurgauTest extends ThurgauBaseTestCase /** * Tests if all official holidays in Thurgau (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Thurgau (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -56,6 +58,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Thurgau (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -69,6 +72,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Thurgau (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -77,6 +81,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Thurgau (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -85,6 +90,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Thurgau (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index efa74dbe2..592c696cd 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/AllSaintsDayTest.php b/tests/Switzerland/Ticino/AllSaintsDayTest.php index 5fd07f50a..e46cf9a7d 100644 --- a/tests/Switzerland/Ticino/AllSaintsDayTest.php +++ b/tests/Switzerland/Ticino/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends TicinoBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Ticino/AscensionDayTest.php b/tests/Switzerland/Ticino/AscensionDayTest.php index 005277a92..579f44eee 100644 --- a/tests/Switzerland/Ticino/AscensionDayTest.php +++ b/tests/Switzerland/Ticino/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends TicinoBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php index 587be65ac..54eddaff8 100644 --- a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends TicinoBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Ticino/ChristmasDayTest.php b/tests/Switzerland/Ticino/ChristmasDayTest.php index 6a39f3a73..1cce9deb7 100644 --- a/tests/Switzerland/Ticino/ChristmasDayTest.php +++ b/tests/Switzerland/Ticino/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends TicinoBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/CorpusChristiTest.php b/tests/Switzerland/Ticino/CorpusChristiTest.php index 3b4b735d9..fba563c76 100644 --- a/tests/Switzerland/Ticino/CorpusChristiTest.php +++ b/tests/Switzerland/Ticino/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends TicinoBaseTestCase implements YasumiTestCaseInte /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/EasterMondayTest.php b/tests/Switzerland/Ticino/EasterMondayTest.php index 576071008..79debc99e 100644 --- a/tests/Switzerland/Ticino/EasterMondayTest.php +++ b/tests/Switzerland/Ticino/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends TicinoBaseTestCase implements YasumiTestCaseInter /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/EpiphanyTest.php b/tests/Switzerland/Ticino/EpiphanyTest.php index 29fd62fa3..665b3f1c9 100644 --- a/tests/Switzerland/Ticino/EpiphanyTest.php +++ b/tests/Switzerland/Ticino/EpiphanyTest.php @@ -34,6 +34,8 @@ class EpiphanyTest extends TicinoBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -44,6 +46,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -52,6 +55,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php index 1ec82dfcd..4f61c1404 100644 --- a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends TicinoBaseTestCase implements YasumiTestC * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/NewYearsDayTest.php b/tests/Switzerland/Ticino/NewYearsDayTest.php index 8a30c1383..88dbf2fe6 100644 --- a/tests/Switzerland/Ticino/NewYearsDayTest.php +++ b/tests/Switzerland/Ticino/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Ticino/PentecostMondayTest.php b/tests/Switzerland/Ticino/PentecostMondayTest.php index d967e090e..bea9dbac5 100644 --- a/tests/Switzerland/Ticino/PentecostMondayTest.php +++ b/tests/Switzerland/Ticino/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends TicinoBaseTestCase implements YasumiTestCaseIn /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index 223bb43be..b3ce8d7e9 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -35,6 +35,8 @@ class StJosephDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testStJosephDay($year, $expected) { @@ -45,6 +47,7 @@ public function testStJosephDay($year, $expected) * Returns a list of random test dates used for assertion of St. Joseph's Day. * * @return array list of test dates for St. Joseph's Day + * @throws \Exception */ public function StJosephDayDataProvider(): array { @@ -53,6 +56,7 @@ public function StJosephDayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index 975a6d131..643929b1c 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -33,6 +33,8 @@ class StPeterPaulTest extends TicinoBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which Feast of Saints Peter and Paul needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testStPeterPaul($year, $expected) { @@ -43,6 +45,7 @@ public function testStPeterPaul($year, $expected) * Returns a list of random test dates used for assertion of Feast of Saints Peter and Paul. * * @return array list of test dates for Feast of Saints Peter and Paul + * @throws \Exception */ public function StPeterPaulDataProvider(): array { @@ -51,6 +54,7 @@ public function StPeterPaulDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/StStephensDayTest.php b/tests/Switzerland/Ticino/StStephensDayTest.php index 484b326ee..90876887b 100644 --- a/tests/Switzerland/Ticino/StStephensDayTest.php +++ b/tests/Switzerland/Ticino/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends TicinoBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Ticino/TicinoTest.php b/tests/Switzerland/Ticino/TicinoTest.php index e4e208f27..ea6a6ae0d 100644 --- a/tests/Switzerland/Ticino/TicinoTest.php +++ b/tests/Switzerland/Ticino/TicinoTest.php @@ -26,6 +26,7 @@ class TicinoTest extends TicinoBaseTestCase /** * Tests if all official holidays in Ticino (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Ticino (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -61,6 +63,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Ticino (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -74,6 +77,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Ticino (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -82,6 +86,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Ticino (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -90,6 +95,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Ticino (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index 34619138a..928b937b4 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/AllSaintsDayTest.php b/tests/Switzerland/Uri/AllSaintsDayTest.php index 847c19f6b..61be93240 100644 --- a/tests/Switzerland/Uri/AllSaintsDayTest.php +++ b/tests/Switzerland/Uri/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends UriBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Uri/AscensionDayTest.php b/tests/Switzerland/Uri/AscensionDayTest.php index 6634479c5..6c4f6a1f7 100644 --- a/tests/Switzerland/Uri/AscensionDayTest.php +++ b/tests/Switzerland/Uri/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends UriBaseTestCase implements YasumiTestCaseInterfac /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/AssumptionOfMaryTest.php b/tests/Switzerland/Uri/AssumptionOfMaryTest.php index 2e0086513..08feac444 100644 --- a/tests/Switzerland/Uri/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Uri/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends UriBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Uri/ChristmasDayTest.php b/tests/Switzerland/Uri/ChristmasDayTest.php index 5f4b1dfde..202c25693 100644 --- a/tests/Switzerland/Uri/ChristmasDayTest.php +++ b/tests/Switzerland/Uri/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends UriBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/CorpusChristiTest.php b/tests/Switzerland/Uri/CorpusChristiTest.php index 6e6473712..4084b8378 100644 --- a/tests/Switzerland/Uri/CorpusChristiTest.php +++ b/tests/Switzerland/Uri/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends UriBaseTestCase implements YasumiTestCaseInterfa /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/EasterMondayTest.php b/tests/Switzerland/Uri/EasterMondayTest.php index 25f096a77..c566444a5 100644 --- a/tests/Switzerland/Uri/EasterMondayTest.php +++ b/tests/Switzerland/Uri/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends UriBaseTestCase implements YasumiTestCaseInterfac /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/EpiphanyTest.php b/tests/Switzerland/Uri/EpiphanyTest.php index 4d33cec0b..46cddc981 100644 --- a/tests/Switzerland/Uri/EpiphanyTest.php +++ b/tests/Switzerland/Uri/EpiphanyTest.php @@ -34,6 +34,8 @@ class EpiphanyTest extends UriBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -44,6 +46,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -52,6 +55,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -65,6 +69,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/GoodFridayTest.php b/tests/Switzerland/Uri/GoodFridayTest.php index acfa00cfa..5a79514e0 100644 --- a/tests/Switzerland/Uri/GoodFridayTest.php +++ b/tests/Switzerland/Uri/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends UriBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/ImmaculateConceptionTest.php b/tests/Switzerland/Uri/ImmaculateConceptionTest.php index 174bbdfb0..2de619fc5 100644 --- a/tests/Switzerland/Uri/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Uri/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends UriBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/NewYearsDayTest.php b/tests/Switzerland/Uri/NewYearsDayTest.php index e1b2a48e8..036c9cfdd 100644 --- a/tests/Switzerland/Uri/NewYearsDayTest.php +++ b/tests/Switzerland/Uri/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends UriBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Uri/PentecostMondayTest.php b/tests/Switzerland/Uri/PentecostMondayTest.php index 1bee16e17..6989c5ad0 100644 --- a/tests/Switzerland/Uri/PentecostMondayTest.php +++ b/tests/Switzerland/Uri/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends UriBaseTestCase implements YasumiTestCaseInter /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index ae9d95bc5..3699e5897 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -35,6 +35,8 @@ class StJosephDayTest extends UriBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testStJosephDay($year, $expected) { @@ -45,6 +47,7 @@ public function testStJosephDay($year, $expected) * Returns a list of random test dates used for assertion of St. Joseph's Day. * * @return array list of test dates for St. Joseph's Day + * @throws \Exception */ public function StJosephDayDataProvider(): array { @@ -53,6 +56,7 @@ public function StJosephDayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/StStephensDayTest.php b/tests/Switzerland/Uri/StStephensDayTest.php index f64049d4d..63ef6f913 100644 --- a/tests/Switzerland/Uri/StStephensDayTest.php +++ b/tests/Switzerland/Uri/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends UriBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Uri/UriTest.php b/tests/Switzerland/Uri/UriTest.php index f5b26a4f3..668c766e3 100644 --- a/tests/Switzerland/Uri/UriTest.php +++ b/tests/Switzerland/Uri/UriTest.php @@ -26,6 +26,7 @@ class UriTest extends UriBaseTestCase /** * Tests if all official holidays in Uri (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Uri (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -60,6 +62,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Uri (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -73,6 +76,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Uri (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -81,6 +85,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Uri (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -89,6 +94,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Uri (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Valais/AllSaintsDayTest.php b/tests/Switzerland/Valais/AllSaintsDayTest.php index 09320492c..c38570f0b 100644 --- a/tests/Switzerland/Valais/AllSaintsDayTest.php +++ b/tests/Switzerland/Valais/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends ValaisBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Valais/AscensionDayTest.php b/tests/Switzerland/Valais/AscensionDayTest.php index 66b0c2924..814a6aeeb 100644 --- a/tests/Switzerland/Valais/AscensionDayTest.php +++ b/tests/Switzerland/Valais/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends ValaisBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Valais/AssumptionOfMaryTest.php b/tests/Switzerland/Valais/AssumptionOfMaryTest.php index 63d80b7bb..ba8ae777c 100644 --- a/tests/Switzerland/Valais/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Valais/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends ValaisBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Valais/ChristmasDayTest.php b/tests/Switzerland/Valais/ChristmasDayTest.php index b906d9b70..f7fde4779 100644 --- a/tests/Switzerland/Valais/ChristmasDayTest.php +++ b/tests/Switzerland/Valais/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends ValaisBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Valais/CorpusChristiTest.php b/tests/Switzerland/Valais/CorpusChristiTest.php index 8ed688702..4f7830621 100644 --- a/tests/Switzerland/Valais/CorpusChristiTest.php +++ b/tests/Switzerland/Valais/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends ValaisBaseTestCase implements YasumiTestCaseInte /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Valais/ImmaculateConceptionTest.php b/tests/Switzerland/Valais/ImmaculateConceptionTest.php index e2863849c..ea28bde09 100644 --- a/tests/Switzerland/Valais/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Valais/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends ValaisBaseTestCase implements YasumiTestC * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Valais/NewYearsDayTest.php b/tests/Switzerland/Valais/NewYearsDayTest.php index ab7ca1f5e..07f3751e3 100644 --- a/tests/Switzerland/Valais/NewYearsDayTest.php +++ b/tests/Switzerland/Valais/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends ValaisBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index a045b2d0d..89efb36c0 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -35,6 +35,8 @@ class StJosephDayTest extends ValaisBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which St. Joseph's Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testStJosephDay($year, $expected) { @@ -45,6 +47,7 @@ public function testStJosephDay($year, $expected) * Returns a list of random test dates used for assertion of St. Joseph's Day. * * @return array list of test dates for St. Joseph's Day + * @throws \Exception */ public function StJosephDayDataProvider(): array { @@ -53,6 +56,7 @@ public function StJosephDayDataProvider(): array /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -66,6 +70,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Valais/ValaisTest.php b/tests/Switzerland/Valais/ValaisTest.php index a438ef04b..4c8373c46 100644 --- a/tests/Switzerland/Valais/ValaisTest.php +++ b/tests/Switzerland/Valais/ValaisTest.php @@ -26,6 +26,7 @@ class ValaisTest extends ValaisBaseTestCase /** * Tests if all official holidays in Valais (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Valais (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -55,6 +57,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Valais (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Valais (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Valais (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Valais (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Vaud/AscensionDayTest.php b/tests/Switzerland/Vaud/AscensionDayTest.php index 7e57f5434..d185e694e 100644 --- a/tests/Switzerland/Vaud/AscensionDayTest.php +++ b/tests/Switzerland/Vaud/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends VaudBaseTestCase implements YasumiTestCaseInterfa /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/BerchtoldsTagTest.php b/tests/Switzerland/Vaud/BerchtoldsTagTest.php index 490e9b72e..c386333b7 100644 --- a/tests/Switzerland/Vaud/BerchtoldsTagTest.php +++ b/tests/Switzerland/Vaud/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends VaudBaseTestCase implements YasumiTestCaseInterf /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/BettagsMontagTest.php b/tests/Switzerland/Vaud/BettagsMontagTest.php index 58a9f36e1..efe53667b 100644 --- a/tests/Switzerland/Vaud/BettagsMontagTest.php +++ b/tests/Switzerland/Vaud/BettagsMontagTest.php @@ -30,6 +30,9 @@ class BettagsMontagTest extends VaudBaseTestCase implements YasumiTestCaseInterf /** * Tests Bettags Montag on or after 1832 + * @throws \ReflectionException + * + * @throws \Exception */ public function testBettagsMontagOnAfter1832() { @@ -45,6 +48,7 @@ public function testBettagsMontagOnAfter1832() /** * Tests Bettags Montag before 1832 + * @throws \ReflectionException */ public function testBettagsMontagBefore1832() { @@ -54,6 +58,7 @@ public function testBettagsMontagBefore1832() /** * Tests translated name of Bettags Montag. + * @throws \ReflectionException */ public function testTranslation() { @@ -67,6 +72,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/ChristmasDayTest.php b/tests/Switzerland/Vaud/ChristmasDayTest.php index 822e0a3db..56a160634 100644 --- a/tests/Switzerland/Vaud/ChristmasDayTest.php +++ b/tests/Switzerland/Vaud/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends VaudBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/EasterMondayTest.php b/tests/Switzerland/Vaud/EasterMondayTest.php index 980e842c5..8e8b738e1 100644 --- a/tests/Switzerland/Vaud/EasterMondayTest.php +++ b/tests/Switzerland/Vaud/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends VaudBaseTestCase implements YasumiTestCaseInterfa /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/GoodFridayTest.php b/tests/Switzerland/Vaud/GoodFridayTest.php index 5bfdd10a9..a3f4bf620 100644 --- a/tests/Switzerland/Vaud/GoodFridayTest.php +++ b/tests/Switzerland/Vaud/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends VaudBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/NewYearsDayTest.php b/tests/Switzerland/Vaud/NewYearsDayTest.php index 50c3ad6c4..120568462 100644 --- a/tests/Switzerland/Vaud/NewYearsDayTest.php +++ b/tests/Switzerland/Vaud/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends VaudBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Vaud/PentecostMondayTest.php b/tests/Switzerland/Vaud/PentecostMondayTest.php index bd04e71d5..90676acd6 100644 --- a/tests/Switzerland/Vaud/PentecostMondayTest.php +++ b/tests/Switzerland/Vaud/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends VaudBaseTestCase implements YasumiTestCaseInte /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Vaud/VaudTest.php b/tests/Switzerland/Vaud/VaudTest.php index ad69463a8..9282662f7 100644 --- a/tests/Switzerland/Vaud/VaudTest.php +++ b/tests/Switzerland/Vaud/VaudTest.php @@ -26,6 +26,7 @@ class VaudTest extends VaudBaseTestCase /** * Tests if all official holidays in Vaud (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Vaud (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -55,6 +57,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Vaud (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -68,6 +71,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Vaud (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -76,6 +80,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Vaud (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -84,6 +89,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Vaud (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Zug/AllSaintsDayTest.php b/tests/Switzerland/Zug/AllSaintsDayTest.php index 1caef5288..c0b241e1b 100644 --- a/tests/Switzerland/Zug/AllSaintsDayTest.php +++ b/tests/Switzerland/Zug/AllSaintsDayTest.php @@ -33,6 +33,8 @@ class AllSaintsDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which All Saints' Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAllSaintsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testAllSaintsDay($year, $expected) /** * Tests translated name of All Saints' Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of All Saints' Day. * * @return array list of test dates for All Saints' Day + * @throws \Exception */ public function AllSaintsDayDataProvider(): array { diff --git a/tests/Switzerland/Zug/AscensionDayTest.php b/tests/Switzerland/Zug/AscensionDayTest.php index 26c56445f..6649372a4 100644 --- a/tests/Switzerland/Zug/AscensionDayTest.php +++ b/tests/Switzerland/Zug/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/AssumptionOfMaryTest.php b/tests/Switzerland/Zug/AssumptionOfMaryTest.php index b8effabf2..d72f6643f 100644 --- a/tests/Switzerland/Zug/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Zug/AssumptionOfMaryTest.php @@ -33,6 +33,8 @@ class AssumptionOfMaryTest extends ZugBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the day of the Assumption of Mary needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testAssumptionOfMary($year, $expected) { @@ -41,6 +43,7 @@ public function testAssumptionOfMary($year, $expected) /** * Tests translated name of the day of the Assumption of Mary. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of the day of the Assumption of Mary. * * @return array list of test dates for the day of the Assumption of Mary + * @throws \Exception */ public function AssumptionOfMaryDataProvider(): array { diff --git a/tests/Switzerland/Zug/BerchtoldsTagTest.php b/tests/Switzerland/Zug/BerchtoldsTagTest.php index bc8f62f3d..5461cc1b5 100644 --- a/tests/Switzerland/Zug/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zug/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends ZugBaseTestCase implements YasumiTestCaseInterfa /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/ChristmasDayTest.php b/tests/Switzerland/Zug/ChristmasDayTest.php index 7d95d1deb..de9ea0d87 100644 --- a/tests/Switzerland/Zug/ChristmasDayTest.php +++ b/tests/Switzerland/Zug/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/CorpusChristiTest.php b/tests/Switzerland/Zug/CorpusChristiTest.php index 095ce61a5..26792ab6a 100644 --- a/tests/Switzerland/Zug/CorpusChristiTest.php +++ b/tests/Switzerland/Zug/CorpusChristiTest.php @@ -31,6 +31,9 @@ class CorpusChristiTest extends ZugBaseTestCase implements YasumiTestCaseInterfa /** * Tests Corpus Christi. + * + * @throws \Exception + * @throws \ReflectionException */ public function testCorpusChristi() { @@ -45,6 +48,7 @@ public function testCorpusChristi() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -58,6 +62,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/EasterMondayTest.php b/tests/Switzerland/Zug/EasterMondayTest.php index ee7050c31..8b78e97e2 100644 --- a/tests/Switzerland/Zug/EasterMondayTest.php +++ b/tests/Switzerland/Zug/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/GoodFridayTest.php b/tests/Switzerland/Zug/GoodFridayTest.php index fd82419bd..7ef528c3c 100644 --- a/tests/Switzerland/Zug/GoodFridayTest.php +++ b/tests/Switzerland/Zug/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends ZugBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/ImmaculateConceptionTest.php b/tests/Switzerland/Zug/ImmaculateConceptionTest.php index 28c172ae9..eae67b4ad 100644 --- a/tests/Switzerland/Zug/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Zug/ImmaculateConceptionTest.php @@ -33,6 +33,8 @@ class ImmaculateConceptionTest extends ZugBaseTestCase implements YasumiTestCase * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test. * * @return array list of test dates for the day of the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/NewYearsDayTest.php b/tests/Switzerland/Zug/NewYearsDayTest.php index 515ab93e0..d471400a4 100644 --- a/tests/Switzerland/Zug/NewYearsDayTest.php +++ b/tests/Switzerland/Zug/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends ZugBaseTestCase implements YasumiTestCaseInterface * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Zug/PentecostMondayTest.php b/tests/Switzerland/Zug/PentecostMondayTest.php index 5aea7a482..754ef8ed3 100644 --- a/tests/Switzerland/Zug/PentecostMondayTest.php +++ b/tests/Switzerland/Zug/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends ZugBaseTestCase implements YasumiTestCaseInter /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/StStephensDayTest.php b/tests/Switzerland/Zug/StStephensDayTest.php index 7cff5306e..f7ac371b3 100644 --- a/tests/Switzerland/Zug/StStephensDayTest.php +++ b/tests/Switzerland/Zug/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zug/ZugTest.php b/tests/Switzerland/Zug/ZugTest.php index f12fa4c45..756d5addb 100644 --- a/tests/Switzerland/Zug/ZugTest.php +++ b/tests/Switzerland/Zug/ZugTest.php @@ -26,6 +26,7 @@ class ZugTest extends ZugBaseTestCase /** * Tests if all official holidays in Zug (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Zug (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -59,6 +61,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Zug (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -72,6 +75,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Zug (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -80,6 +84,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Zug (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -88,6 +93,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Zug (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Switzerland/Zurich/AscensionDayTest.php b/tests/Switzerland/Zurich/AscensionDayTest.php index 1dd6763f4..7922dd83f 100644 --- a/tests/Switzerland/Zurich/AscensionDayTest.php +++ b/tests/Switzerland/Zurich/AscensionDayTest.php @@ -29,6 +29,8 @@ class AscensionDayTest extends ZurichBaseTestCase implements YasumiTestCaseInter /** * Tests Ascension Day. + * @throws \Exception + * @throws \ReflectionException */ public function testAscensionDay() { @@ -43,6 +45,7 @@ public function testAscensionDay() /** * Tests translated name of Ascension Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/BerchtoldsTagTest.php b/tests/Switzerland/Zurich/BerchtoldsTagTest.php index 33e2d02ed..ed54669eb 100644 --- a/tests/Switzerland/Zurich/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zurich/BerchtoldsTagTest.php @@ -29,6 +29,9 @@ class BerchtoldsTagTest extends ZurichBaseTestCase implements YasumiTestCaseInte /** * Tests BerchtoldsTag + * + * @throws \ReflectionException + * @throws \Exception */ public function testBerchtoldsTag() { @@ -41,6 +44,7 @@ public function testBerchtoldsTag() /** * Tests translated name of BerchtoldsTag. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +58,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/ChristmasDayTest.php b/tests/Switzerland/Zurich/ChristmasDayTest.php index 52a6d9a24..daef82d0f 100644 --- a/tests/Switzerland/Zurich/ChristmasDayTest.php +++ b/tests/Switzerland/Zurich/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends ZurichBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of Christmas Day. * * @return array list of test dates for Christmas Day + * @throws \Exception */ public function ChristmasDayDataProvider(): array { @@ -51,6 +54,7 @@ public function ChristmasDayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/EasterMondayTest.php b/tests/Switzerland/Zurich/EasterMondayTest.php index 5e3db262b..8131b4bca 100644 --- a/tests/Switzerland/Zurich/EasterMondayTest.php +++ b/tests/Switzerland/Zurich/EasterMondayTest.php @@ -29,6 +29,8 @@ class EasterMondayTest extends ZurichBaseTestCase implements YasumiTestCaseInter /** * Tests Easter Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testEasterMonday() { @@ -43,6 +45,7 @@ public function testEasterMonday() /** * Tests translated name of Easter Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/GoodFridayTest.php b/tests/Switzerland/Zurich/GoodFridayTest.php index 26b081e78..e995f258d 100644 --- a/tests/Switzerland/Zurich/GoodFridayTest.php +++ b/tests/Switzerland/Zurich/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends ZurichBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/NewYearsDayTest.php b/tests/Switzerland/Zurich/NewYearsDayTest.php index 0d9025932..2d1c203e1 100644 --- a/tests/Switzerland/Zurich/NewYearsDayTest.php +++ b/tests/Switzerland/Zurich/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends ZurichBaseTestCase implements YasumiTestCaseInterf * * @param int $year the year for which New Years Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testNewYearsDay($year, $expected) { @@ -41,6 +43,7 @@ public function testNewYearsDay($year, $expected) /** * Tests translated name of New Years Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of New Years Day. * * @return array list of test dates for New Years Day + * @throws \Exception */ public function NewYearsDayDataProvider(): array { diff --git a/tests/Switzerland/Zurich/PentecostMondayTest.php b/tests/Switzerland/Zurich/PentecostMondayTest.php index 72e010c3d..3c0ecce33 100644 --- a/tests/Switzerland/Zurich/PentecostMondayTest.php +++ b/tests/Switzerland/Zurich/PentecostMondayTest.php @@ -29,6 +29,8 @@ class PentecostMondayTest extends ZurichBaseTestCase implements YasumiTestCaseIn /** * Tests Pentecost Monday. + * @throws \Exception + * @throws \ReflectionException */ public function testPentecostMonday() { @@ -43,6 +45,7 @@ public function testPentecostMonday() /** * Tests translated name of Pentecost Monday. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/StStephensDayTest.php b/tests/Switzerland/Zurich/StStephensDayTest.php index 75ffbdf16..3ce9c4427 100644 --- a/tests/Switzerland/Zurich/StStephensDayTest.php +++ b/tests/Switzerland/Zurich/StStephensDayTest.php @@ -33,6 +33,8 @@ class StStephensDayTest extends ZurichBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index d31e773ec..618cc2b9b 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -34,6 +34,9 @@ class WorkersDayTest extends ZurichBaseTestCase implements YasumiTestCaseInterfa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -45,6 +48,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -61,6 +65,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -74,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Switzerland/Zurich/ZurichTest.php b/tests/Switzerland/Zurich/ZurichTest.php index 7635189a5..8b8e9347b 100644 --- a/tests/Switzerland/Zurich/ZurichTest.php +++ b/tests/Switzerland/Zurich/ZurichTest.php @@ -26,6 +26,7 @@ class ZurichTest extends ZurichBaseTestCase /** * Tests if all official holidays in Zurich (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -38,6 +39,7 @@ public function testOfficialHolidays() /** * Tests if all regional holidays in Zurich (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testRegionalHolidays() { @@ -56,6 +58,7 @@ public function testRegionalHolidays() /** * Tests if all observed holidays in Zurich (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -69,6 +72,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Zurich (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -77,6 +81,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Zurich (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -85,6 +90,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Zurich (Switzerland) are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/USA/ChristmasDayTest.php b/tests/USA/ChristmasDayTest.php index 3bdc64c28..ab1680f90 100644 --- a/tests/USA/ChristmasDayTest.php +++ b/tests/USA/ChristmasDayTest.php @@ -29,6 +29,8 @@ class ChristmasDayTest extends USABaseTestCase implements YasumiTestCaseInterfac /** * Tests Christmas Day. Christmas Day is celebrated on December 25th. + * @throws \Exception + * @throws \ReflectionException */ public function testChristmasDay() { @@ -43,6 +45,8 @@ public function testChristmasDay() /** * Tests Christmas Day substituted on Monday (when Christmas Day falls on Sunday). + * @throws \Exception + * @throws \ReflectionException */ public function testChristmasDaySubstitutedMonday() { @@ -58,6 +62,8 @@ public function testChristmasDaySubstitutedMonday() /** * Tests Christmas Day substituted on Monday (when Christmas Day falls on Saturday). + * @throws \Exception + * @throws \ReflectionException */ public function testChristmasDaySubstitutedFriday() { @@ -73,6 +79,7 @@ public function testChristmasDaySubstitutedFriday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -86,6 +93,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/ColumbusDayTest.php b/tests/USA/ColumbusDayTest.php index c2d197597..b0a1b4d6f 100644 --- a/tests/USA/ColumbusDayTest.php +++ b/tests/USA/ColumbusDayTest.php @@ -35,6 +35,8 @@ class ColumbusDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * Tests Columbus Day on or after 1970. Columbus Day was established in 1937 on October 12th, but has been fixed to * the second Monday in October since 1970. + * @throws \Exception + * @throws \ReflectionException */ public function testColumbusDayOnAfter1970() { @@ -50,6 +52,8 @@ public function testColumbusDayOnAfter1970() /** * Tests Columbus Day between 1937 and 1969. Columbus Day was established in 1937 on October 12th, but has been * fixed to the second Monday in October since 1970. + * @throws \Exception + * @throws \ReflectionException */ public function testColumbusBetween1937And1969() { @@ -65,6 +69,7 @@ public function testColumbusBetween1937And1969() /** * Tests Columbus Day before 1937. Columbus Day was established in 1937 on October 12th, but has been fixed to * the second Monday in October since 1970. + * @throws \ReflectionException */ public function testColumbusDayBefore1937() { @@ -77,6 +82,7 @@ public function testColumbusDayBefore1937() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -90,6 +96,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/IndependenceDayTest.php b/tests/USA/IndependenceDayTest.php index c397daab7..92e8ca6ae 100644 --- a/tests/USA/IndependenceDayTest.php +++ b/tests/USA/IndependenceDayTest.php @@ -34,6 +34,8 @@ class IndependenceDayTest extends USABaseTestCase implements YasumiTestCaseInter /** * Tests Independence Day on or after 1776. Independence Day is celebrated since 1776 on July 4th. + * @throws \Exception + * @throws \ReflectionException */ public function testIndependenceDayOnAfter1776() { @@ -48,6 +50,8 @@ public function testIndependenceDayOnAfter1776() /** * Tests Independence Day on or after 1776 when substituted on Monday (when Independence Day falls on Sunday) + * @throws \Exception + * @throws \ReflectionException */ public function testIndependenceDayOnAfter1776SubstitutedMonday() { @@ -62,6 +66,8 @@ public function testIndependenceDayOnAfter1776SubstitutedMonday() /** * Tests Independence Day on or after 1776 when substituted on Friday (when Independence Day falls on Saturday) + * @throws \Exception + * @throws \ReflectionException */ public function testIndependenceDayOnAfter1776SubstitutedFriday() { @@ -76,6 +82,7 @@ public function testIndependenceDayOnAfter1776SubstitutedFriday() /** * Tests Independence Day before 1776. Independence Day is celebrated since 1776 on July 4th. + * @throws \ReflectionException */ public function testIndependenceDayBefore1776() { @@ -88,6 +95,7 @@ public function testIndependenceDayBefore1776() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -101,6 +109,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/LabourDayTest.php b/tests/USA/LabourDayTest.php index bc1104ef1..a041f0c50 100644 --- a/tests/USA/LabourDayTest.php +++ b/tests/USA/LabourDayTest.php @@ -34,6 +34,8 @@ class LabourDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * Tests Labour Day on or after 1887. Labour Day was established since 1887 on the first Monday of September. + * @throws \Exception + * @throws \ReflectionException */ public function testLabourDayOnAfter1887() { @@ -48,6 +50,7 @@ public function testLabourDayOnAfter1887() /** * Tests Labour Day before 1887. Labour Day was established since 1887 on the first Monday of September. + * @throws \ReflectionException */ public function testLabourDayBefore1887() { @@ -60,6 +63,7 @@ public function testLabourDayBefore1887() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/MartinLutherKingDayTest.php b/tests/USA/MartinLutherKingDayTest.php index 1469a80aa..df7b7a718 100644 --- a/tests/USA/MartinLutherKingDayTest.php +++ b/tests/USA/MartinLutherKingDayTest.php @@ -35,6 +35,8 @@ class MartinLutherKingDayTest extends USABaseTestCase implements YasumiTestCaseI /** * Tests Dr. Martin Luther King Day on or after 1986. Dr. Martin Luther King Day was established since 1986 on the * third Monday of January. + * @throws \Exception + * @throws \ReflectionException */ public function testMartinLutherKingDayOnAfter1986() { @@ -50,6 +52,7 @@ public function testMartinLutherKingDayOnAfter1986() /** * Tests Dr. Martin Luther King Day before 1986. Dr. Martin Luther King Day was established since 1996 on the third * Monday of January. + * @throws \ReflectionException */ public function testMartinLutherKingDayBefore1986() { @@ -62,6 +65,7 @@ public function testMartinLutherKingDayBefore1986() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -75,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/MemorialDayTest.php b/tests/USA/MemorialDayTest.php index de7fabdc3..46c00eb60 100644 --- a/tests/USA/MemorialDayTest.php +++ b/tests/USA/MemorialDayTest.php @@ -35,6 +35,8 @@ class MemorialDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * Tests Memorial Day on or after 1968. Memorial Day was established since 1865 on May 30 and was changed in 1968 * to the last Monday in May. + * @throws \Exception + * @throws \ReflectionException */ public function testMemorialDayOnAfter1968() { @@ -50,6 +52,8 @@ public function testMemorialDayOnAfter1968() /** * Tests Memorial Day between 1865 and 1967. Memorial Day was established since 1865 on May 30 and was changed in * 1968 to the last Monday in May. + * @throws \Exception + * @throws \ReflectionException */ public function testMemorialDayBetween1865And1967() { @@ -65,6 +69,7 @@ public function testMemorialDayBetween1865And1967() /** * Tests Memorial Day before 1865. Memorial Day was established since 1865 on May 30 and was changed in 1968 to the * last Monday in May. + * @throws \ReflectionException */ public function testMemorialDayBefore1865() { @@ -77,6 +82,7 @@ public function testMemorialDayBefore1865() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -90,6 +96,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/NewYearsDayTest.php b/tests/USA/NewYearsDayTest.php index ed56aead0..5820185b8 100644 --- a/tests/USA/NewYearsDayTest.php +++ b/tests/USA/NewYearsDayTest.php @@ -29,6 +29,8 @@ class NewYearsDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * Tests New Years Day. + * @throws \Exception + * @throws \ReflectionException */ public function testNewYearsDay() { @@ -43,6 +45,8 @@ public function testNewYearsDay() /** * Tests New Years Day when substituted on Monday (when New Years Day falls on Sunday). + * @throws \Exception + * @throws \ReflectionException */ public function testNewYearsDaySubstitutedMonday() { @@ -57,6 +61,8 @@ public function testNewYearsDaySubstitutedMonday() /** * Tests New Years Day when substituted on Friday (when New Years Day falls on Saturday). + * @throws \Exception + * @throws \ReflectionException */ public function testNewYearsDaySubstitutedFriday() { @@ -72,6 +78,7 @@ public function testNewYearsDaySubstitutedFriday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -85,6 +92,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/ThanksgivingDayTest.php b/tests/USA/ThanksgivingDayTest.php index 8674770bb..0db55b22a 100644 --- a/tests/USA/ThanksgivingDayTest.php +++ b/tests/USA/ThanksgivingDayTest.php @@ -35,6 +35,8 @@ class ThanksgivingDayTest extends USABaseTestCase implements YasumiTestCaseInter /** * Tests Thanksgiving Day on or after 1863. Thanksgiving Day is celebrated since 1863 on the fourth Thursday * of November. + * @throws \Exception + * @throws \ReflectionException */ public function testThanksgivingDayOnAfter1863() { @@ -50,6 +52,7 @@ public function testThanksgivingDayOnAfter1863() /** * Tests Thanksgiving Day before 1863. ThanksgivingDay Day is celebrated since 1863 on the fourth Thursday * of November. + * @throws \ReflectionException */ public function testThanksgivingDayBefore1863() { @@ -62,6 +65,7 @@ public function testThanksgivingDayBefore1863() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -75,6 +79,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/USATest.php b/tests/USA/USATest.php index 74f53f3b5..ba282ebcd 100644 --- a/tests/USA/USATest.php +++ b/tests/USA/USATest.php @@ -26,6 +26,7 @@ class USATest extends USABaseTestCase /** * Tests if all official holidays in the USA are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -45,6 +46,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the USA are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -53,6 +55,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the USA are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -61,6 +64,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the USA are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -69,6 +73,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the USA are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/USA/VeteransDayTest.php b/tests/USA/VeteransDayTest.php index 6d405bf41..f45995c15 100644 --- a/tests/USA/VeteransDayTest.php +++ b/tests/USA/VeteransDayTest.php @@ -35,6 +35,8 @@ class VeteransDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * Tests Veterans Day on or after 1919. Veterans Day was established in 1919 on November 11. + * @throws \Exception + * @throws \ReflectionException */ public function testVeteransDayOnAfter1919() { @@ -49,6 +51,7 @@ public function testVeteransDayOnAfter1919() /** * Tests Veterans Day before 1919. Veterans Day was established in 1919 on November 11. + * @throws \ReflectionException */ public function testVeteransDayBefore1919() { @@ -61,6 +64,7 @@ public function testVeteransDayBefore1919() /** * Tests name of Veterans Day before 1954. Veterans Day was named 'Armistice Day' before 1954. + * @throws \ReflectionException */ public function testVeteransDayNameBefore1954() { @@ -73,6 +77,7 @@ public function testVeteransDayNameBefore1954() /** * Tests name of Veterans Day after 1954. Veterans Day was named 'Armistice Day' before 1954. + * @throws \ReflectionException */ public function testVeteransDayNameAfter1954() { @@ -85,6 +90,7 @@ public function testVeteransDayNameAfter1954() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -98,6 +104,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/USA/WashingtonsBirthdayTest.php b/tests/USA/WashingtonsBirthdayTest.php index 21013ddbc..47a446088 100644 --- a/tests/USA/WashingtonsBirthdayTest.php +++ b/tests/USA/WashingtonsBirthdayTest.php @@ -35,6 +35,8 @@ class WashingtonsBirthdayTest extends USABaseTestCase implements YasumiTestCaseI /** * Tests Washington's Birthday on or after 1968. Washington's Birthday was established since 1879 on February 22 * and was changed in 1968 to the third Monday in February. + * @throws \Exception + * @throws \ReflectionException */ public function testWashingtonsBirthdayOnAfter1968() { @@ -50,6 +52,8 @@ public function testWashingtonsBirthdayOnAfter1968() /** * Tests Washington's Birthday between 1879 and 1967. Washington's Birthday was established since 1879 on February * 22 and was changed in 1968 to the third Monday in February. + * @throws \Exception + * @throws \ReflectionException */ public function testWashingtonsBirthdayBetween1879And1967() { @@ -65,6 +69,7 @@ public function testWashingtonsBirthdayBetween1879And1967() /** * Tests Washington's Birthday before 1879. Washington's Birthday was established since 1879 on February 22 and was * changed in 1968 to the third Monday in February. + * @throws \ReflectionException */ public function testWashingtonsBirthdayBefore1879() { @@ -77,6 +82,7 @@ public function testWashingtonsBirthdayBefore1879() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -90,6 +96,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/ChristmasDayTest.php b/tests/Ukraine/ChristmasDayTest.php index 4c29561c7..b9e92435a 100644 --- a/tests/Ukraine/ChristmasDayTest.php +++ b/tests/Ukraine/ChristmasDayTest.php @@ -33,6 +33,8 @@ class ChristmasDayTest extends UkraineBaseTestCase implements YasumiTestCaseInte * * @param int $year the year for which Christmas Day needs to be tested * @param DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testChristmasDay($year, $expected) { @@ -43,6 +45,7 @@ public function testChristmasDay($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests translated name of Christmas Day. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/ConstitutionDayTest.php b/tests/Ukraine/ConstitutionDayTest.php index 2e30100f3..7cb2db392 100644 --- a/tests/Ukraine/ConstitutionDayTest.php +++ b/tests/Ukraine/ConstitutionDayTest.php @@ -26,6 +26,10 @@ class ConstitutionDayTest extends UkraineBaseTestCase implements YasumiTestCaseI */ const HOLIDAY = 'constitutionDay'; + /** + * @throws \ReflectionException + * @throws \Exception + */ public function testHoliday() { $year = 2020; @@ -39,6 +43,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -47,6 +52,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/DefenderOfUkraineDayTest.php b/tests/Ukraine/DefenderOfUkraineDayTest.php index 4bac7cdd5..44d97660b 100644 --- a/tests/Ukraine/DefenderOfUkraineDayTest.php +++ b/tests/Ukraine/DefenderOfUkraineDayTest.php @@ -26,6 +26,10 @@ class DefenderOfUkraineDayTest extends UkraineBaseTestCase implements YasumiTest */ const HOLIDAY = 'defenderOfUkraineDay'; + /** + * @throws \ReflectionException + * @throws \Exception + */ public function testHoliday() { $year = 2020; @@ -39,6 +43,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -52,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/EasterTest.php b/tests/Ukraine/EasterTest.php index c1f7138e6..d0f69f649 100644 --- a/tests/Ukraine/EasterTest.php +++ b/tests/Ukraine/EasterTest.php @@ -30,6 +30,8 @@ class EasterTest extends UkraineBaseTestCase implements YasumiTestCaseInterface /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -44,6 +46,7 @@ public function testHoliday() /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -57,6 +60,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/IndependenceDayTest.php b/tests/Ukraine/IndependenceDayTest.php index a5fb847ef..e199f3f5d 100644 --- a/tests/Ukraine/IndependenceDayTest.php +++ b/tests/Ukraine/IndependenceDayTest.php @@ -26,6 +26,10 @@ class IndependenceDayTest extends UkraineBaseTestCase implements YasumiTestCaseI */ const HOLIDAY = 'independenceDay'; + /** + * @throws \ReflectionException + * @throws \Exception + */ public function testHoliday() { $year = 2020; @@ -39,6 +43,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -47,6 +52,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/InternationalWomensDayTest.php b/tests/Ukraine/InternationalWomensDayTest.php index 9cc029089..ae96cc4db 100644 --- a/tests/Ukraine/InternationalWomensDayTest.php +++ b/tests/Ukraine/InternationalWomensDayTest.php @@ -31,6 +31,8 @@ class InternationalWomensDayTest extends UkraineBaseTestCase implements YasumiTe * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -49,6 +52,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/InternationalWorkersDayTest.php b/tests/Ukraine/InternationalWorkersDayTest.php index 8e4850a39..ba26389b7 100644 --- a/tests/Ukraine/InternationalWorkersDayTest.php +++ b/tests/Ukraine/InternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class InternationalWorkersDayTest extends UkraineBaseTestCase implements YasumiT * * @param int $year the year for which International Workers' Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testInternationalWorkersDay($year, $expected) /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function InternationalWorkersDayDataProvider(): array { diff --git a/tests/Ukraine/NewYearsDayTest.php b/tests/Ukraine/NewYearsDayTest.php index a699f9d1a..d8fa422f1 100644 --- a/tests/Ukraine/NewYearsDayTest.php +++ b/tests/Ukraine/NewYearsDayTest.php @@ -33,6 +33,8 @@ class NewYearsDayTest extends UkraineBaseTestCase implements YasumiTestCaseInter * * @param int $year the year for which the holiday defined in this test needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -43,6 +45,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -51,6 +54,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -64,6 +68,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/PentecostTest.php b/tests/Ukraine/PentecostTest.php index ac6345ebf..10b9f4679 100644 --- a/tests/Ukraine/PentecostTest.php +++ b/tests/Ukraine/PentecostTest.php @@ -30,6 +30,8 @@ class PentecostTest extends UkraineBaseTestCase implements YasumiTestCaseInterfa /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -44,6 +46,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -57,6 +60,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/Ukraine/SecondInternationalWorkersDayTest.php b/tests/Ukraine/SecondInternationalWorkersDayTest.php index f6014f6c5..baf4c8482 100644 --- a/tests/Ukraine/SecondInternationalWorkersDayTest.php +++ b/tests/Ukraine/SecondInternationalWorkersDayTest.php @@ -33,6 +33,8 @@ class SecondInternationalWorkersDayTest extends UkraineBaseTestCase implements Y * * @param int $year the year for which International Workers' Day needs to be tested * @param \DateTime $expected the expected date + * + * @throws \ReflectionException */ public function testSecondInternationalWorkersDay($year, $expected) { @@ -41,6 +43,7 @@ public function testSecondInternationalWorkersDay($year, $expected) /** * Tests translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -54,6 +57,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { @@ -64,6 +68,7 @@ public function testHolidayType() * Returns a list of random test dates used for assertion of International Workers' Day. * * @return array list of test dates for International Workers' Day + * @throws \Exception */ public function SecondInternationalWorkersDayDataProvider(): array { diff --git a/tests/Ukraine/UkraineTest.php b/tests/Ukraine/UkraineTest.php index 1e0c85032..4d2231c7e 100644 --- a/tests/Ukraine/UkraineTest.php +++ b/tests/Ukraine/UkraineTest.php @@ -27,6 +27,7 @@ class UkraineTest extends UkraineBaseTestCase /** * Tests if all official holidays in Ukraine are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -47,6 +48,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in Ukraine are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -55,6 +57,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in Ukraine are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -63,6 +66,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in Ukraine are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -71,6 +75,7 @@ public function testBankHolidays() /** * Tests if all other holidays in Ukraine are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/Ukraine/VictoryDayTest.php b/tests/Ukraine/VictoryDayTest.php index 45c405f5d..8c27306b4 100644 --- a/tests/Ukraine/VictoryDayTest.php +++ b/tests/Ukraine/VictoryDayTest.php @@ -31,6 +31,8 @@ class VictoryDayTest extends UkraineBaseTestCase implements YasumiTestCaseInterf * * @param int $year * @param \DateTime $expected + * + * @throws \ReflectionException */ public function testHoliday($year, $expected) { @@ -41,6 +43,7 @@ public function testHoliday($year, $expected) * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -49,6 +52,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -62,6 +66,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index f74f105b9..a08baca5f 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -35,6 +35,9 @@ class BoxingDayTest extends UnitedKingdomBaseTestCase implements YasumiTestCaseI * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -52,6 +55,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -69,6 +73,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -82,6 +87,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index 579cf4f03..2e55582da 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -35,6 +35,9 @@ class ChristmasDayTest extends UnitedKingdomBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -52,6 +55,7 @@ public function testHoliday($year, $expected) * Returns a list of test dates * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -69,6 +73,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -82,6 +87,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index c142d3ef1..0f48510bd 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -35,6 +35,9 @@ class EasterMondayTest extends UnitedKingdomBaseTestCase implements YasumiTestCa * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHoliday($year, $expected) { @@ -69,6 +72,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -82,6 +86,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/GoodFridayTest.php b/tests/UnitedKingdom/GoodFridayTest.php index 6ffe6336c..651c8131e 100644 --- a/tests/UnitedKingdom/GoodFridayTest.php +++ b/tests/UnitedKingdom/GoodFridayTest.php @@ -29,6 +29,8 @@ class GoodFridayTest extends UnitedKingdomBaseTestCase implements YasumiTestCase /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -43,6 +45,7 @@ public function testHoliday() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -56,6 +59,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/MayDayBankHolidayTest.php b/tests/UnitedKingdom/MayDayBankHolidayTest.php index d75c895db..5ed67baeb 100644 --- a/tests/UnitedKingdom/MayDayBankHolidayTest.php +++ b/tests/UnitedKingdom/MayDayBankHolidayTest.php @@ -34,6 +34,8 @@ class MayDayBankHolidayTest extends UnitedKingdomBaseTestCase implements YasumiT /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -48,6 +50,7 @@ public function testHoliday() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 95122e3b6..0d78f2cb2 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -44,6 +44,9 @@ class NewYearsDayTest extends UnitedKingdomBaseTestCase implements YasumiTestCas * * @param int $year the year for which the holiday defined in this test needs to be tested * @param string $expected the expected date + * + * @throws \ReflectionException + * @throws \Exception */ public function testHolidayOnAfterEstablishment($year, $expected) { @@ -57,6 +60,7 @@ public function testHolidayOnAfterEstablishment($year, $expected) /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -69,6 +73,7 @@ public function testHolidayBeforeEstablishment() /** * Tests that the holiday defined in this test is of the type 'observance' before the year it was changed. + * @throws \ReflectionException */ public function testHolidayIsObservedTypeBeforeChange() { @@ -84,6 +89,7 @@ public function testHolidayIsObservedTypeBeforeChange() * Returns a list of random test dates used for assertion of the holiday defined in this test * * @return array list of test dates for the holiday defined in this test + * @throws \Exception */ public function HolidayDataProvider(): array { @@ -92,6 +98,7 @@ public function HolidayDataProvider(): array /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -105,6 +112,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/SpringBankHolidayTest.php b/tests/UnitedKingdom/SpringBankHolidayTest.php index 95f75f76f..9c2d9e230 100644 --- a/tests/UnitedKingdom/SpringBankHolidayTest.php +++ b/tests/UnitedKingdom/SpringBankHolidayTest.php @@ -34,6 +34,8 @@ class SpringBankHolidayTest extends UnitedKingdomBaseTestCase implements YasumiT /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -48,6 +50,7 @@ public function testHoliday() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/SummerBankHolidayTest.php b/tests/UnitedKingdom/SummerBankHolidayTest.php index 99b14a136..7b71816e0 100644 --- a/tests/UnitedKingdom/SummerBankHolidayTest.php +++ b/tests/UnitedKingdom/SummerBankHolidayTest.php @@ -34,6 +34,8 @@ class SummerBankHolidayTest extends UnitedKingdomBaseTestCase implements YasumiT /** * Tests the holiday defined in this test. + * @throws \Exception + * @throws \ReflectionException */ public function testHoliday() { @@ -48,6 +50,7 @@ public function testHoliday() /** * Tests the holiday defined in this test before establishment. + * @throws \ReflectionException */ public function testHolidayBeforeEstablishment() { @@ -60,6 +63,7 @@ public function testHolidayBeforeEstablishment() /** * Tests the translated name of the holiday defined in this test. + * @throws \ReflectionException */ public function testTranslation() { @@ -73,6 +77,7 @@ public function testTranslation() /** * Tests type of the holiday defined in this test. + * @throws \ReflectionException */ public function testHolidayType() { diff --git a/tests/UnitedKingdom/UnitedKingdomTest.php b/tests/UnitedKingdom/UnitedKingdomTest.php index 762ffdf02..b62d2a9cf 100644 --- a/tests/UnitedKingdom/UnitedKingdomTest.php +++ b/tests/UnitedKingdom/UnitedKingdomTest.php @@ -26,6 +26,7 @@ class UnitedKingdomTest extends UnitedKingdomBaseTestCase /** * Tests if all official holidays in the United Kingdom are defined by the provider class + * @throws \ReflectionException */ public function testOfficialHolidays() { @@ -37,6 +38,7 @@ public function testOfficialHolidays() /** * Tests if all observed holidays in the United Kingdom are defined by the provider class + * @throws \ReflectionException */ public function testObservedHolidays() { @@ -45,6 +47,7 @@ public function testObservedHolidays() /** * Tests if all seasonal holidays in the United Kingdom are defined by the provider class + * @throws \ReflectionException */ public function testSeasonalHolidays() { @@ -53,6 +56,7 @@ public function testSeasonalHolidays() /** * Tests if all bank holidays in the United Kingdom are defined by the provider class + * @throws \ReflectionException */ public function testBankHolidays() { @@ -67,6 +71,7 @@ public function testBankHolidays() /** * Tests if all other holidays in the United Kingdom are defined by the provider class + * @throws \ReflectionException */ public function testOtherHolidays() { diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index 077871b5f..d93d9073e 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -232,6 +232,7 @@ public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek * @param int $range year range from which dates will be generated (default: 1000) * * @return array list of random test dates used for assertion of holidays. + * @throws \Exception */ public function generateRandomDates($month, $day, $timezone = 'UTC', $iterations = 10, $range = 1000): array { @@ -443,6 +444,7 @@ public function generateRandomPentecostDates($timezone = 'UTC', $iterations = 10 * @param int $range year range from which dates will be generated (default: 1000) * * @return array list of random test dates used for assertion of holidays. + * @throws \Exception */ public function generateRandomDatesWithHolidayMovedToMonday( $month, @@ -469,6 +471,7 @@ public function generateRandomDatesWithHolidayMovedToMonday( * @param int $range year range from which dates will be generated (default: 1000) * * @return array list of random test dates used for assertion of holidays with applied callback. + * @throws \Exception */ public function generateRandomDatesWithModifier( $month, From 3e97dd3d4cbc26ab40048051442dd8691ad312fb Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 11:53:11 +0900 Subject: [PATCH 119/132] Added access modifier for some constants. Visibility defaults to public access however always better to show the intention. Signed-off-by: Sacha Telgenhof --- tests/Australia/ACT/CanberraDayTest.php | 4 ++-- tests/Australia/ACT/EasterSaturdayTest.php | 2 +- tests/Australia/ACT/EasterSundayTest.php | 2 +- tests/Australia/ACT/LabourDayTest.php | 2 +- tests/Australia/ACT/QueensBirthdayTest.php | 4 ++-- tests/Australia/ACT/ReconciliationDayTest.php | 4 ++-- tests/Australia/AnzacDayTest.php | 4 ++-- tests/Australia/AustraliaBaseTestCase.php | 2 +- tests/Australia/AustraliaDayTest.php | 2 +- tests/Australia/BoxingDayTest.php | 4 ++-- tests/Australia/ChristmasDayTest.php | 4 ++-- tests/Australia/EasterMondayTest.php | 4 ++-- tests/Australia/GoodFridayTest.php | 2 +- tests/Australia/NSW/BankHolidayTest.php | 2 +- tests/Australia/NSW/EasterSaturdayTest.php | 2 +- tests/Australia/NSW/EasterSundayTest.php | 2 +- tests/Australia/NSW/LabourDayTest.php | 2 +- tests/Australia/NSW/QueensBirthdayTest.php | 4 ++-- tests/Australia/NT/EasterSaturdayTest.php | 2 +- tests/Australia/NT/MayDayTest.php | 2 +- tests/Australia/NT/PicnicDayTest.php | 2 +- tests/Australia/NT/QueensBirthdayTest.php | 4 ++-- tests/Australia/NewYearsDayTest.php | 4 ++-- tests/Australia/Queensland/Brisbane/PeoplesDayTest.php | 2 +- tests/Australia/Queensland/LabourDayTest.php | 2 +- tests/Australia/Queensland/QueensBirthdayTest.php | 4 ++-- tests/Australia/SA/AdelaideCupDayTest.php | 4 ++-- tests/Australia/SA/ChristmasDayTest.php | 4 ++-- tests/Australia/SA/EasterSaturdayTest.php | 2 +- tests/Australia/SA/LabourDayTest.php | 2 +- tests/Australia/SA/ProclamationDayTest.php | 2 +- tests/Australia/SA/QueensBirthdayTest.php | 4 ++-- .../Australia/Tasmania/CentralNorth/DevonportShowTest.php | 2 +- tests/Australia/Tasmania/EightHourDayTest.php | 2 +- .../Tasmania/FlindersIsland/FlindersIslandShowTest.php | 2 +- .../Australia/Tasmania/KingIsland/KingIslandShowTest.php | 2 +- tests/Australia/Tasmania/Northeast/LauncestonShowTest.php | 2 +- tests/Australia/Tasmania/Northwest/BurnieShowTest.php | 2 +- .../Tasmania/Northwest/CircularHead/AGFESTTest.php | 2 +- tests/Australia/Tasmania/QueensBirthdayTest.php | 4 ++-- tests/Australia/Tasmania/RecreationDayTest.php | 2 +- tests/Australia/Tasmania/South/HobartShowTest.php | 2 +- .../Tasmania/South/Southeast/HobartRegattaTest.php | 2 +- tests/Australia/Victoria/AFLGrandFinalFridayTest.php | 6 +++--- tests/Australia/Victoria/EasterSaturdayTest.php | 2 +- tests/Australia/Victoria/EasterSundayTest.php | 2 +- tests/Australia/Victoria/LabourDayTest.php | 2 +- tests/Australia/Victoria/MelbourneCupDayTest.php | 4 ++-- tests/Australia/Victoria/QueensBirthdayTest.php | 4 ++-- tests/Australia/WA/LabourDayTest.php | 2 +- tests/Australia/WA/QueensBirthdayTest.php | 4 ++-- tests/Australia/WA/WesternAustraliaDayTest.php | 2 +- tests/Austria/AllSaintsDayTest.php | 2 +- tests/Austria/AscensionDayTest.php | 2 +- tests/Austria/AssumptionOfMaryTest.php | 2 +- tests/Austria/AustriaBaseTestCase.php | 6 +++--- tests/Austria/ChristmasTest.php | 2 +- tests/Austria/CorpusChristiTest.php | 2 +- tests/Austria/EasterMondayTest.php | 2 +- tests/Austria/EasterTest.php | 2 +- tests/Austria/EpiphanyTest.php | 2 +- tests/Austria/ImmaculateConceptionTest.php | 2 +- tests/Austria/InternationalWorkersDayTest.php | 2 +- tests/Austria/NationalDayTest.php | 4 ++-- tests/Austria/NewYearsDayTest.php | 2 +- tests/Austria/PentecostMondayTest.php | 2 +- tests/Austria/PentecostTest.php | 2 +- tests/Austria/SecondChristmasDayTest.php | 2 +- tests/Base/TranslationsTest.php | 2 +- tests/Base/YasumiTest.php | 4 ++-- tests/Base/YasumiWorkdayTest.php | 2 +- tests/Belgium/AllSaintsDayTest.php | 2 +- tests/Belgium/ArmisticeDayTest.php | 2 +- tests/Belgium/AscensionDayTest.php | 2 +- tests/Belgium/AssumptionOfMaryTest.php | 2 +- tests/Belgium/BelgiumBaseTestCase.php | 6 +++--- tests/Belgium/ChristmasTest.php | 2 +- tests/Belgium/EasterMondayTest.php | 2 +- tests/Belgium/EasterTest.php | 2 +- tests/Belgium/InternationalWorkersDayTest.php | 2 +- tests/Belgium/NationalDayTest.php | 2 +- tests/Belgium/NewYearsDayTest.php | 2 +- tests/Belgium/PentecostTest.php | 2 +- tests/Belgium/pentecostMondayTest.php | 2 +- tests/Bosnia/BosniaBaseTestCase.php | 6 +++--- tests/Bosnia/ChristmasDayTest.php | 2 +- tests/Bosnia/DayAfterNewYearsDay.php | 2 +- tests/Bosnia/EasterTest.php | 2 +- tests/Bosnia/IndependenceDayTest.php | 4 ++-- tests/Bosnia/InternationalWorkersDayTest.php | 2 +- tests/Bosnia/NewYearsDayTest.php | 2 +- tests/Bosnia/OrthodoxChristmasDay.php | 2 +- tests/Bosnia/SecondLabourDay.php | 2 +- tests/Bosnia/StatehoodDayTest.php | 4 ++-- tests/Brazil/AllSoulsDayTest.php | 4 ++-- tests/Brazil/AshWednesdayTest.php | 2 +- tests/Brazil/BrazilBaseTestCase.php | 6 +++--- tests/Brazil/CarnavalMondayTest.php | 4 ++-- tests/Brazil/CarnavalTuesdayTest.php | 4 ++-- tests/Brazil/ChristmasDayTest.php | 2 +- tests/Brazil/CorpusChristiTest.php | 2 +- tests/Brazil/EasterTest.php | 2 +- tests/Brazil/GoodFridayTest.php | 2 +- tests/Brazil/IndependenceDayTest.php | 4 ++-- tests/Brazil/InternationalWorkersDayTest.php | 2 +- tests/Brazil/NewYearsDayTest.php | 2 +- tests/Brazil/OurLadyOfAparecidaDayTest.php | 4 ++-- tests/Brazil/ProclamationOfRepublicDayTest.php | 4 ++-- tests/Brazil/TiradentesDayTest.php | 4 ++-- tests/Croatia/AllSaintsDayTest.php | 2 +- tests/Croatia/AntifascistStruggleDayTest.php | 4 ++-- tests/Croatia/AssumptionOfMaryTest.php | 2 +- tests/Croatia/ChristmasDayTest.php | 2 +- tests/Croatia/CorpusChristiTest.php | 2 +- tests/Croatia/CroatiaBaseTestCase.php | 6 +++--- tests/Croatia/EasterMondayTest.php | 2 +- tests/Croatia/EasterTest.php | 2 +- tests/Croatia/EpiphanyTest.php | 2 +- tests/Croatia/HomelandThanksgivingDayTest.php | 4 ++-- tests/Croatia/IndependenceDayTest.php | 4 ++-- tests/Croatia/InternationalWorkersDayTest.php | 2 +- tests/Croatia/NewYearsDayTest.php | 2 +- tests/Croatia/StStephensDayTest.php | 2 +- tests/Croatia/StatehoodDayTest.php | 4 ++-- tests/CzechRepublic/ChristmasDayTest.php | 2 +- tests/CzechRepublic/ChristmasEveTest.php | 2 +- tests/CzechRepublic/CzechRepublicBaseTestCase.php | 6 +++--- tests/CzechRepublic/CzechStateHoodDayTest.php | 2 +- tests/CzechRepublic/EasterMondayTest.php | 2 +- tests/CzechRepublic/GoodFridayTest.php | 2 +- .../CzechRepublic/IndependentCzechoslovakStateDayTest.php | 2 +- tests/CzechRepublic/InternationalWorkersDayTest.php | 2 +- tests/CzechRepublic/JanHusDayTest.php | 2 +- tests/CzechRepublic/NewYearsDayTest.php | 2 +- tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php | 2 +- tests/CzechRepublic/SecondChristmasDayTest.php | 2 +- .../StruggleForFreedomAndDemocracyDayTest.php | 2 +- tests/CzechRepublic/VictoryInEuropeDayTest.php | 2 +- tests/Denmark/AscensionDayTest.php | 2 +- tests/Denmark/ChristmasDayTest.php | 2 +- tests/Denmark/ChristmasEveTest.php | 2 +- tests/Denmark/ConstitutionDayTest.php | 4 ++-- tests/Denmark/DenmarkBaseTestCase.php | 6 +++--- tests/Denmark/EasterMondayTest.php | 2 +- tests/Denmark/EasterTest.php | 2 +- tests/Denmark/GoodFridayTest.php | 2 +- tests/Denmark/GreatPrayerDayTest.php | 4 ++-- tests/Denmark/InternationalWorkersDayTest.php | 2 +- tests/Denmark/MaundyThursdayTest.php | 2 +- tests/Denmark/NewYearsDayTest.php | 2 +- tests/Denmark/NewYearsEveTest.php | 2 +- tests/Denmark/PentecostMondayTest.php | 2 +- tests/Denmark/PentecostTest.php | 2 +- tests/Denmark/SecondChristmasDayTest.php | 2 +- tests/Denmark/SummerTimeTest.php | 2 +- tests/Denmark/WinterTimeTest.php | 2 +- tests/Estonia/ChristmasDayTest.php | 2 +- tests/Estonia/ChristmasEveDayTest.php | 2 +- tests/Estonia/EasterDayTest.php | 2 +- tests/Estonia/EstoniaBaseTestCase.php | 6 +++--- tests/Estonia/GoodFridayDayTest.php | 2 +- tests/Estonia/IndependenceDayTest.php | 2 +- tests/Estonia/InternationalWorkersDayTest.php | 2 +- tests/Estonia/NewYearsDayTest.php | 2 +- tests/Estonia/PentecostTest.php | 2 +- tests/Estonia/RestorationOfIndependenceDayTest.php | 2 +- tests/Estonia/SecondChristmasDayTest.php | 2 +- tests/Estonia/StJohnsDayTest.php | 2 +- tests/Estonia/VictoryDayTest.php | 2 +- tests/Finland/AllSaintsDayTest.php | 2 +- tests/Finland/AscensionDayTest.php | 2 +- tests/Finland/ChristmasDayTest.php | 2 +- tests/Finland/EasterMondayTest.php | 2 +- tests/Finland/EasterTest.php | 2 +- tests/Finland/EpiphanyTest.php | 2 +- tests/Finland/FinlandBaseTestCase.php | 6 +++--- tests/Finland/GoodFridayTest.php | 2 +- tests/Finland/IndependenceDayTest.php | 4 ++-- tests/Finland/InternationalWorkersDayTest.php | 2 +- tests/Finland/NewYearsDayTest.php | 2 +- tests/Finland/PentecostTest.php | 2 +- tests/Finland/SecondChristmasDayTest.php | 2 +- tests/Finland/stJohnsDayTest.php | 4 ++-- tests/France/AllSaintsDayTest.php | 2 +- tests/France/ArmisticeDayTest.php | 4 ++-- tests/France/AscensionDayTest.php | 2 +- tests/France/AssumptionOfMaryTest.php | 2 +- tests/France/BasRhin/BasRhinBaseTestCase.php | 6 +++--- tests/France/BasRhin/GoodFridayTest.php | 2 +- tests/France/BasRhin/stStephensDayTest.php | 2 +- tests/France/BastilleDayTest.php | 4 ++-- tests/France/ChristmasDayTest.php | 2 +- tests/France/EasterMondayTest.php | 2 +- tests/France/FranceBaseTestCase.php | 6 +++--- tests/France/HautRhin/GoodFridayTest.php | 2 +- tests/France/HautRhin/HautRhinBaseTestCase.php | 6 +++--- tests/France/HautRhin/stStephensDayTest.php | 2 +- tests/France/InternationalWorkersDayTest.php | 2 +- tests/France/Moselle/GoodFridayTest.php | 2 +- tests/France/Moselle/MoselleBaseTestCase.php | 6 +++--- tests/France/Moselle/stStephensDayTest.php | 2 +- tests/France/NewYearsDayTest.php | 2 +- tests/France/PentecostMondayTest.php | 2 +- tests/France/VictoryInEuropeDayTest.php | 4 ++-- tests/Germany/AscensionDayTest.php | 2 +- tests/Germany/BadenWurttemberg/AllSaintsDayTest.php | 2 +- .../BadenWurttemberg/BadenWurttembergBaseTestCase.php | 4 ++-- tests/Germany/BadenWurttemberg/CorpusChristiTest.php | 2 +- tests/Germany/BadenWurttemberg/EpiphanyTest.php | 2 +- tests/Germany/Bavaria/AllSaintsDayTest.php | 2 +- tests/Germany/Bavaria/BavariaBaseTestCase.php | 4 ++-- tests/Germany/Bavaria/CorpusChristiTest.php | 2 +- tests/Germany/Bavaria/EpiphanyTest.php | 2 +- tests/Germany/Berlin/BerlinBaseTestCase.php | 4 ++-- tests/Germany/Brandenburg/BrandenburgBaseTestCase.php | 4 ++-- tests/Germany/Brandenburg/ReformationDayTest.php | 4 ++-- tests/Germany/Bremen/BremenBaseTestCase.php | 4 ++-- tests/Germany/Bremen/ReformationDayTest.php | 4 ++-- tests/Germany/ChristmasTest.php | 2 +- tests/Germany/EasterMondayTest.php | 2 +- tests/Germany/GermanUnityDayTest.php | 4 ++-- tests/Germany/GermanyBaseTestCase.php | 8 ++++---- tests/Germany/GoodFridayTest.php | 2 +- tests/Germany/Hamburg/DayOfReformationTest.php | 4 ++-- tests/Germany/Hamburg/HamburgBaseTestCase.php | 4 ++-- tests/Germany/Hesse/CorpusChristiTest.php | 2 +- tests/Germany/Hesse/HesseBaseTestCase.php | 4 ++-- tests/Germany/InternationalWorkersDayTest.php | 2 +- tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php | 4 ++-- tests/Germany/LowerSaxony/ReformationDayTest.php | 4 ++-- .../MecklenburgWesternPomeraniaBaseTestCase.php | 4 ++-- .../MecklenburgWesternPomerania/ReformationDayTest.php | 4 ++-- tests/Germany/NewYearsDayTest.php | 2 +- tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php | 2 +- tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php | 2 +- .../NorthRhineWestphaliaBaseTestCase.php | 4 ++-- tests/Germany/PentecostMondayTest.php | 2 +- tests/Germany/ReformationDay2017Test.php | 4 ++-- tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php | 2 +- tests/Germany/RhinelandPalatinate/CorpusChristiTest.php | 2 +- .../RhinelandPalatinateBaseTestCase.php | 4 ++-- tests/Germany/Saarland/AllSaintsDayTest.php | 2 +- tests/Germany/Saarland/AssumptionOfMaryTest.php | 2 +- tests/Germany/Saarland/CorpusChristiTest.php | 2 +- tests/Germany/Saarland/SaarlandBaseTestCase.php | 4 ++-- tests/Germany/Saxony/ReformationDayTest.php | 4 ++-- tests/Germany/Saxony/RepentanceAndPrayerDayTest.php | 4 ++-- tests/Germany/Saxony/SaxonyBaseTestCase.php | 4 ++-- tests/Germany/SaxonyAnhalt/EpiphanyTest.php | 2 +- tests/Germany/SaxonyAnhalt/ReformationDayTest.php | 4 ++-- tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php | 4 ++-- tests/Germany/SchleswigHolstein/ReformationDayTest.php | 4 ++-- .../SchleswigHolstein/SchleswigHolsteinBaseTestCase.php | 4 ++-- tests/Germany/SecondChristmasDayTest.php | 2 +- tests/Germany/Thuringia/ReformationDayTest.php | 4 ++-- tests/Germany/Thuringia/ThuringiaBaseTestCase.php | 4 ++-- tests/Greece/AnnunciationTest.php | 2 +- tests/Greece/AscensionDayTest.php | 2 +- tests/Greece/AssumptionOfMaryTest.php | 2 +- tests/Greece/ChristmasDayTest.php | 2 +- tests/Greece/CleanMondayTest.php | 2 +- tests/Greece/EasterMondayTest.php | 2 +- tests/Greece/EasterTest.php | 2 +- tests/Greece/EpiphanyTest.php | 2 +- tests/Greece/GreeceBaseTestCase.php | 6 +++--- tests/Greece/IndepencenceDayTest.php | 4 ++-- tests/Greece/InternationalWorkersDayTest.php | 2 +- tests/Greece/NewYearsDayTest.php | 2 +- tests/Greece/OhiDayTest.php | 4 ++-- tests/Greece/PentecostMondayTest.php | 2 +- tests/Greece/PentecostTest.php | 2 +- tests/Greece/PolytechnioTest.php | 4 ++-- tests/Greece/ThreeHolyHierarchsTest.php | 2 +- tests/Greece/goodFridayTest.php | 2 +- tests/Hungary/AllSaintsDayTest.php | 2 +- tests/Hungary/ChristmasTest.php | 2 +- tests/Hungary/EasterMondayTest.php | 2 +- tests/Hungary/EasterTest.php | 2 +- tests/Hungary/HungaryBaseTestCase.php | 6 +++--- tests/Hungary/InternationalWorkersDayTest.php | 2 +- tests/Hungary/MemorialDay1848Test.php | 4 ++-- tests/Hungary/MemorialDay1956Test.php | 4 ++-- tests/Hungary/NewYearsDayTest.php | 2 +- tests/Hungary/PentecostMondayTest.php | 2 +- tests/Hungary/PentecostTest.php | 2 +- tests/Hungary/SecondChristmasDayTest.php | 2 +- tests/Hungary/StateFoundationDayTest.php | 4 ++-- tests/Ireland/AugustHolidayTest.php | 2 +- tests/Ireland/ChristmasDayTest.php | 2 +- tests/Ireland/EasterMondayTest.php | 2 +- tests/Ireland/EasterTest.php | 2 +- tests/Ireland/GoodFridayTest.php | 2 +- tests/Ireland/IrelandBaseTestCase.php | 8 ++++---- tests/Ireland/JuneHolidayTest.php | 4 ++-- tests/Ireland/MayDayTest.php | 4 ++-- tests/Ireland/NewYearsDayTest.php | 4 ++-- tests/Ireland/OctoberHolidayTest.php | 4 ++-- tests/Ireland/PentecostTest.php | 2 +- tests/Ireland/StPatricksDayTest.php | 4 ++-- tests/Ireland/StStephensDayTest.php | 2 +- tests/Ireland/pentecostMondayTest.php | 4 ++-- tests/Italy/AllSaintsDayTest.php | 2 +- tests/Italy/AssumptionOfMaryTest.php | 2 +- tests/Italy/ChristmasTest.php | 2 +- tests/Italy/EasterMondayTest.php | 2 +- tests/Italy/EasterTest.php | 2 +- tests/Italy/EpiphanyTest.php | 2 +- tests/Italy/ImmaculateConceptionTest.php | 2 +- tests/Italy/InternationalWorkersDayTest.php | 2 +- tests/Italy/ItalyBaseTestCase.php | 6 +++--- tests/Italy/LiberationDayTest.php | 4 ++-- tests/Italy/NewYearsDayTest.php | 2 +- tests/Italy/RepublicDayTest.php | 4 ++-- tests/Italy/stStephensDayTest.php | 2 +- tests/Japan/AutumnalEquinoxDayTest.php | 4 ++-- tests/Japan/ChildrensDayTest.php | 4 ++-- tests/Japan/ComingOfAgeDayTest.php | 4 ++-- tests/Japan/ConstitutionMemorialDayTest.php | 4 ++-- tests/Japan/CultureDayTest.php | 4 ++-- tests/Japan/EmperorsBirthdayTest.php | 4 ++-- tests/Japan/GreeneryDayTest.php | 4 ++-- tests/Japan/HealthAndSportsDayTest.php | 4 ++-- tests/Japan/JapanBaseTestCase.php | 8 ++++---- tests/Japan/LabourThanksgivingDayTest.php | 4 ++-- tests/Japan/MarineDayTest.php | 4 ++-- tests/Japan/MountainDayTest.php | 4 ++-- tests/Japan/NationalFoundationDayTest.php | 4 ++-- tests/Japan/NewYearsDayTest.php | 4 ++-- tests/Japan/PublicBridgeDayTest.php | 2 +- tests/Japan/RespectForTheAgedDayTest.php | 4 ++-- tests/Japan/ShowaDayTest.php | 4 ++-- tests/Japan/VernalEquinoxDayTest.php | 4 ++-- tests/Latvia/ChristmasDayTest.php | 2 +- tests/Latvia/ChristmasEveDayTest.php | 2 +- tests/Latvia/EasterDayTest.php | 2 +- tests/Latvia/EasterMondayDayTest.php | 2 +- tests/Latvia/GoodFridayDayTest.php | 2 +- tests/Latvia/InternationalWorkersDayTest.php | 2 +- tests/Latvia/LatviaBaseTestCase.php | 6 +++--- tests/Latvia/MidsummerEveDayTest.php | 2 +- tests/Latvia/NewYearsDayTest.php | 2 +- tests/Latvia/NewYearsEveDayTest.php | 2 +- tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php | 2 +- tests/Latvia/RestorationOfIndependenceDayTest.php | 2 +- tests/Latvia/SecondChristmasDayTest.php | 2 +- tests/Latvia/StJohnsDayTest.php | 2 +- tests/Lithuania/AllSaintsDayTest.php | 2 +- tests/Lithuania/AssumptionOfMaryDayTest.php | 2 +- tests/Lithuania/ChristmasDayTest.php | 2 +- tests/Lithuania/ChristmasEveDayTest.php | 2 +- tests/Lithuania/EasterDayTest.php | 2 +- tests/Lithuania/EasterMondayDayTest.php | 2 +- tests/Lithuania/InternationalWorkersDayTest.php | 2 +- tests/Lithuania/LithuaniaBaseTestCase.php | 6 +++--- tests/Lithuania/NewYearsDayTest.php | 2 +- .../RestorationOfIndependenceOfLithuaniaDayTest.php | 2 +- .../Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php | 2 +- tests/Lithuania/SecondChristmasDayTest.php | 2 +- tests/Lithuania/StJohnsDayTest.php | 2 +- tests/Lithuania/StatehoodDayTest.php | 2 +- tests/Netherlands/AscensionDayTest.php | 2 +- tests/Netherlands/AshWednesdayTest.php | 2 +- tests/Netherlands/ChristmasDayTest.php | 2 +- tests/Netherlands/CommemorationDayTest.php | 4 ++-- tests/Netherlands/EasterMondayTest.php | 2 +- tests/Netherlands/EasterTest.php | 2 +- tests/Netherlands/EpiphanyTest.php | 2 +- tests/Netherlands/FathersDayTest.php | 2 +- tests/Netherlands/GoodFridayTest.php | 2 +- tests/Netherlands/HalloweenTest.php | 2 +- tests/Netherlands/InternationalWorkersDayTest.php | 2 +- tests/Netherlands/KingsDayTest.php | 4 ++-- tests/Netherlands/LiberationDayTest.php | 4 ++-- tests/Netherlands/MothersDayTest.php | 2 +- tests/Netherlands/NetherlandsBaseTestCase.php | 6 +++--- tests/Netherlands/NewYearsDayTest.php | 2 +- tests/Netherlands/PentecostTest.php | 2 +- tests/Netherlands/QueensDayTest.php | 2 +- tests/Netherlands/SummertimeTest.php | 2 +- tests/Netherlands/ValentinesDayTest.php | 2 +- tests/Netherlands/WintertimeTest.php | 2 +- tests/Netherlands/WorldAnimalDayTest.php | 4 ++-- tests/Netherlands/carnivalDayTest.php | 2 +- tests/Netherlands/pentecostMondayTest.php | 2 +- tests/Netherlands/princesDayTest.php | 2 +- tests/Netherlands/secondCarnivalDay.php | 2 +- tests/Netherlands/secondChristmasdayTest.php | 2 +- tests/Netherlands/stMartinsDayTest.php | 2 +- tests/Netherlands/stNicholasDayTest.php | 2 +- tests/Netherlands/thirdCarnivalDay.php | 2 +- tests/NewZealand/AnzacDayTest.php | 4 ++-- tests/NewZealand/BoxingDayTest.php | 2 +- tests/NewZealand/ChristmasDayTest.php | 2 +- tests/NewZealand/DayAfterNewYearsDayTest.php | 2 +- tests/NewZealand/EasterMondayTest.php | 2 +- tests/NewZealand/GoodFridayTest.php | 2 +- tests/NewZealand/LabourDayTest.php | 4 ++-- tests/NewZealand/NewYearsDayTest.php | 2 +- tests/NewZealand/NewZealandBaseTestCase.php | 6 +++--- tests/NewZealand/QueensBirthdayTest.php | 4 ++-- tests/NewZealand/WaitangiDayTest.php | 4 ++-- tests/Norway/AscensionDayTest.php | 2 +- tests/Norway/ChristmasDayTest.php | 2 +- tests/Norway/ConstitutionDayTest.php | 4 ++-- tests/Norway/EasterMondayTest.php | 2 +- tests/Norway/EasterTest.php | 2 +- tests/Norway/GoodFridayTest.php | 2 +- tests/Norway/InternationalWorkersDayTest.php | 2 +- tests/Norway/MaundyThursdayTest.php | 2 +- tests/Norway/NewYearsDayTest.php | 2 +- tests/Norway/NorwayBaseTestCase.php | 6 +++--- tests/Norway/PentecostMondayTest.php | 2 +- tests/Norway/PentecostTest.php | 2 +- tests/Norway/SecondChristmasDayTest.php | 2 +- tests/Poland/AllSaintsDayTest.php | 2 +- tests/Poland/AssumptionOfMaryTest.php | 2 +- tests/Poland/ChristmasTest.php | 2 +- tests/Poland/ConstitutionDayTest.php | 4 ++-- tests/Poland/CorpusChristiTest.php | 2 +- tests/Poland/EasterMondayTest.php | 2 +- tests/Poland/EasterTest.php | 2 +- tests/Poland/EpiphanyTest.php | 2 +- tests/Poland/IndependenceDayTest.php | 4 ++-- tests/Poland/InternationalWorkersDayTest.php | 2 +- tests/Poland/NewYearsDayTest.php | 2 +- tests/Poland/PentecostTest.php | 2 +- tests/Poland/PolandBaseTestCase.php | 6 +++--- tests/Poland/SecondChristmasDayTest.php | 2 +- tests/Portugal/AllSaintsDayTest.php | 6 +++--- tests/Portugal/AssumptionOfMaryTest.php | 2 +- tests/Portugal/CarnationRevolutionDayTest.php | 4 ++-- tests/Portugal/ChristmasTest.php | 2 +- tests/Portugal/CorpusChristiTest.php | 6 +++--- tests/Portugal/EasterTest.php | 2 +- tests/Portugal/GoodFridayTest.php | 2 +- tests/Portugal/ImmaculateConceptionTest.php | 2 +- tests/Portugal/InternationalWorkersDayTest.php | 2 +- tests/Portugal/NewYearsDayTest.php | 2 +- tests/Portugal/PortugalBaseTestCase.php | 6 +++--- tests/Portugal/PortugalDayTest.php | 6 +++--- tests/Portugal/PortugueseRepublicDayTest.php | 4 ++-- tests/Portugal/RestorationOfIndependenceTest.php | 8 ++++---- tests/Romania/AssumptionOfMaryTest.php | 4 ++-- tests/Romania/ChildrensDayTest.php | 4 ++-- tests/Romania/ChristmasDayTest.php | 2 +- tests/Romania/ConstantinBrancusiDayTest.php | 4 ++-- tests/Romania/DayAfterNewYearsDayTest.php | 2 +- tests/Romania/EasterMondayTest.php | 2 +- tests/Romania/EasterTest.php | 2 +- tests/Romania/InternationalWorkersDayTest.php | 2 +- tests/Romania/NationalDayTest.php | 4 ++-- tests/Romania/NewYearsDayTest.php | 2 +- tests/Romania/PentecostMondayTest.php | 4 ++-- tests/Romania/PentecostTest.php | 4 ++-- tests/Romania/RomaniaBaseTestCase.php | 6 +++--- tests/Romania/SecondChristmasDayTest.php | 2 +- tests/Romania/StAndrewDayTest.php | 4 ++-- tests/Romania/UnitedPrincipalitiesDayTest.php | 4 ++-- tests/Russia/DefenceOfTheFatherlandDayTest.php | 2 +- tests/Russia/InternationalWomensDayTest.php | 2 +- tests/Russia/NewYearHolidaysDay2Test.php | 2 +- tests/Russia/NewYearHolidaysDay3Test.php | 2 +- tests/Russia/NewYearHolidaysDay4Test.php | 2 +- tests/Russia/NewYearHolidaysDay5Test.php | 2 +- tests/Russia/NewYearHolidaysDay6Test.php | 2 +- tests/Russia/NewYearHolidaysDay8Test.php | 2 +- tests/Russia/NewYearsDayTest.php | 2 +- tests/Russia/OrthodoxChristmasDayTest.php | 2 +- tests/Russia/RussiaBaseTestCase.php | 6 +++--- tests/Russia/RussiaDayTest.php | 2 +- tests/Russia/SpringAndLabourDayTest.php | 2 +- tests/Russia/UnityDayTest.php | 2 +- tests/Russia/VictoryDayTest.php | 2 +- tests/Slovakia/AllSaintsDayTest.php | 2 +- tests/Slovakia/ChristmasDayTest.php | 2 +- tests/Slovakia/ChristmasEveTest.php | 2 +- tests/Slovakia/EasterMondayTest.php | 2 +- tests/Slovakia/EpiphanyTest.php | 2 +- tests/Slovakia/GoodFridayTest.php | 2 +- tests/Slovakia/InternationalWorkersDayTest.php | 2 +- tests/Slovakia/NewYearsDayTest.php | 2 +- tests/Slovakia/OurLadyOfSorrowsDayTest.php | 2 +- tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php | 2 +- tests/Slovakia/SecondChristmasDayTest.php | 2 +- tests/Slovakia/SlovakConstitutionDayTest.php | 2 +- tests/Slovakia/SlovakNationalUprisingDayTest.php | 2 +- tests/Slovakia/SlovakiaBaseTestCase.php | 6 +++--- tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php | 2 +- tests/Slovakia/VictoryInEuropeDayTest.php | 2 +- tests/SouthAfrica/ChristmasDayTest.php | 4 ++-- tests/SouthAfrica/FamilyDayTest.php | 4 ++-- tests/SouthAfrica/FreedomDayTest.php | 4 ++-- tests/SouthAfrica/GoodFridayTest.php | 4 ++-- tests/SouthAfrica/HeritageDayTest.php | 4 ++-- tests/SouthAfrica/HumanRightsDayTest.php | 4 ++-- tests/SouthAfrica/MunicipalElections2016DayTest.php | 4 ++-- tests/SouthAfrica/NationalWomensDayTest.php | 4 ++-- tests/SouthAfrica/NewYearsDayTest.php | 4 ++-- tests/SouthAfrica/ReconciliationDayTest.php | 4 ++-- tests/SouthAfrica/SecondChristmasDayTest.php | 4 ++-- tests/SouthAfrica/SouthAfricaBaseTestCase.php | 6 +++--- tests/SouthAfrica/SubstituteDayOfGoodwillTest.php | 4 ++-- tests/SouthAfrica/WorkersDayTest.php | 4 ++-- tests/SouthAfrica/YouthDayTest.php | 4 ++-- tests/Spain/AllSaintsDayTest.php | 2 +- tests/Spain/Andalusia/AndalusiaBaseTestCase.php | 4 ++-- tests/Spain/Andalusia/AndalusiaDayTest.php | 4 ++-- tests/Spain/Aragon/AragonBaseTestCase.php | 4 ++-- tests/Spain/Aragon/StGeorgesDayTest.php | 2 +- tests/Spain/AssumptionOfMaryTest.php | 2 +- tests/Spain/Asturias/AsturiasBaseTestCase.php | 4 ++-- tests/Spain/Asturias/AsturiasDayTest.php | 4 ++-- .../Spain/BalearicIslands/BalearicIslandsBaseTestCase.php | 4 ++-- tests/Spain/BalearicIslands/BalearicIslandsDayTest.php | 4 ++-- tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php | 4 ++-- tests/Spain/BasqueCountry/BasqueCountryDayTest.php | 6 +++--- tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php | 4 ++-- tests/Spain/CanaryIslands/CanaryIslandsDayTest.php | 4 ++-- tests/Spain/Cantabria/CantabriaBaseTestCase.php | 4 ++-- tests/Spain/Cantabria/CantabriaDayTest.php | 4 ++-- tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php | 4 ++-- tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php | 4 ++-- .../CastillaLaMancha/CastillaLaManchaBaseTestCase.php | 4 ++-- tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php | 4 ++-- tests/Spain/Catalonia/CataloniaBaseTestCase.php | 4 ++-- tests/Spain/Catalonia/nationalCataloniaDayTest.php | 4 ++-- tests/Spain/Catalonia/stJohnsDayTest.php | 2 +- tests/Spain/Ceuta/CeutaBaseTestCase.php | 4 ++-- tests/Spain/Ceuta/ceutaDayTest.php | 4 ++-- tests/Spain/ChristmasTest.php | 2 +- .../CommunityOfMadrid/CommunityOfMadridBaseTestCase.php | 4 ++-- .../Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php | 2 +- tests/Spain/ConstitutionDayTest.php | 4 ++-- tests/Spain/EasterMondayTest.php | 4 ++-- tests/Spain/EpiphanyTest.php | 2 +- tests/Spain/Extremadura/ExtremaduraBaseTestCase.php | 4 ++-- tests/Spain/Extremadura/ExtremaduraDayTest.php | 4 ++-- tests/Spain/Galicia/GaliciaBaseTestCase.php | 4 ++-- tests/Spain/Galicia/GalicianLiteratureDayTest.php | 4 ++-- tests/Spain/Galicia/stJamesDayTest.php | 4 ++-- tests/Spain/GoodFridayTest.php | 2 +- tests/Spain/ImmaculateConceptionTest.php | 2 +- tests/Spain/InternationalWorkersDayTest.php | 2 +- tests/Spain/LaRioja/LaRiojaBaseTestCase.php | 4 ++-- tests/Spain/LaRioja/LaRiojaDayTest.php | 4 ++-- tests/Spain/MaundyThursdayTest.php | 4 ++-- tests/Spain/Melilla/MelillaBaseTestCase.php | 4 ++-- tests/Spain/NationalDayTest.php | 4 ++-- tests/Spain/Navarre/NavarreBaseTestCase.php | 4 ++-- tests/Spain/NewYearsDayTest.php | 2 +- tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php | 4 ++-- tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php | 4 ++-- tests/Spain/SpainBaseTestCase.php | 6 +++--- .../ValencianCommunity/ValencianCommunityBaseTestCase.php | 4 ++-- .../ValencianCommunity/ValencianCommunityDayTest.php | 4 ++-- tests/Spain/ValentinesDayTest.php | 2 +- tests/Spain/stJosephsDayTest.php | 4 ++-- tests/Sweden/AllSaintsDayTest.php | 2 +- tests/Sweden/AscensionDayTest.php | 2 +- tests/Sweden/ChristmasDayTest.php | 2 +- tests/Sweden/ChristmasEveTest.php | 2 +- tests/Sweden/EasterMondayTest.php | 2 +- tests/Sweden/EasterTest.php | 2 +- tests/Sweden/EpiphanyTest.php | 2 +- tests/Sweden/GoodFridayTest.php | 2 +- tests/Sweden/InternationalWorkersDayTest.php | 2 +- tests/Sweden/NationalDayTest.php | 4 ++-- tests/Sweden/NewYearsDayTest.php | 2 +- tests/Sweden/PentecostTest.php | 2 +- tests/Sweden/SecondChristmasDayTest.php | 2 +- tests/Sweden/SwedenBaseTestCase.php | 6 +++--- tests/Sweden/stJohnsDayTest.php | 2 +- tests/Switzerland/Aargau/AargauBaseTestCase.php | 6 +++--- tests/Switzerland/Aargau/AscensionDayTest.php | 2 +- tests/Switzerland/Aargau/ChristmasDayTest.php | 2 +- tests/Switzerland/Aargau/GoodFridayTest.php | 2 +- tests/Switzerland/Aargau/NewYearsDayTest.php | 2 +- .../AppenzellAusserrhodenBaseTestCase.php | 6 +++--- .../AppenzellAusserrhoden/AscensionDayTest.php | 2 +- .../AppenzellAusserrhoden/ChristmasDayTest.php | 2 +- .../AppenzellAusserrhoden/EasterMondayTest.php | 2 +- .../Switzerland/AppenzellAusserrhoden/GoodFridayTest.php | 2 +- .../Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php | 2 +- .../AppenzellAusserrhoden/PentecostMondayTest.php | 2 +- .../AppenzellAusserrhoden/StStephensDayTest.php | 2 +- .../Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php | 2 +- .../AppenzellInnerrhodenBaseTestCase.php | 6 +++--- .../Switzerland/AppenzellInnerrhoden/AscensionDayTest.php | 2 +- .../AppenzellInnerrhoden/AssumptionOfMaryTest.php | 2 +- .../Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php | 2 +- .../AppenzellInnerrhoden/CorpusChristiTest.php | 2 +- .../Switzerland/AppenzellInnerrhoden/EasterMondayTest.php | 2 +- tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php | 2 +- .../AppenzellInnerrhoden/ImmaculateConceptionTest.php | 2 +- .../Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php | 2 +- .../AppenzellInnerrhoden/PentecostMondayTest.php | 2 +- .../AppenzellInnerrhoden/StStephensDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/AscensionDayTest.php | 2 +- .../BaselLandschaft/BaselLandschaftBaseTestCase.php | 6 +++--- tests/Switzerland/BaselLandschaft/ChristmasDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/EasterMondayTest.php | 2 +- tests/Switzerland/BaselLandschaft/GoodFridayTest.php | 2 +- tests/Switzerland/BaselLandschaft/NewYearsDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/PentecostMondayTest.php | 2 +- tests/Switzerland/BaselLandschaft/StStephensDayTest.php | 2 +- tests/Switzerland/BaselLandschaft/WorkersDayTest.php | 2 +- tests/Switzerland/BaselStadt/AscensionDayTest.php | 2 +- tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php | 6 +++--- tests/Switzerland/BaselStadt/ChristmasDayTest.php | 2 +- tests/Switzerland/BaselStadt/EasterMondayTest.php | 2 +- tests/Switzerland/BaselStadt/GoodFridayTest.php | 2 +- tests/Switzerland/BaselStadt/NewYearsDayTest.php | 2 +- tests/Switzerland/BaselStadt/PentecostMondayTest.php | 2 +- tests/Switzerland/BaselStadt/StStephensDayTest.php | 2 +- tests/Switzerland/BaselStadt/WorkersDayTest.php | 2 +- tests/Switzerland/Bern/AscensionDayTest.php | 2 +- tests/Switzerland/Bern/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Bern/BernBaseTestCase.php | 6 +++--- tests/Switzerland/Bern/ChristmasDayTest.php | 2 +- tests/Switzerland/Bern/EasterMondayTest.php | 2 +- tests/Switzerland/Bern/GoodFridayTest.php | 2 +- tests/Switzerland/Bern/NewYearsDayTest.php | 2 +- tests/Switzerland/Bern/PentecostMondayTest.php | 2 +- tests/Switzerland/Bern/StStephensDayTest.php | 2 +- tests/Switzerland/Fribourg/AscensionDayTest.php | 2 +- tests/Switzerland/Fribourg/ChristmasDayTest.php | 2 +- tests/Switzerland/Fribourg/EasterMondayTest.php | 2 +- tests/Switzerland/Fribourg/FribourgBaseTestCase.php | 6 +++--- tests/Switzerland/Fribourg/GoodFridayTest.php | 2 +- tests/Switzerland/Fribourg/NewYearsDayTest.php | 2 +- tests/Switzerland/Fribourg/PentecostMondayTest.php | 2 +- tests/Switzerland/Geneva/AscensionDayTest.php | 2 +- tests/Switzerland/Geneva/ChristmasDayTest.php | 2 +- tests/Switzerland/Geneva/EasterMondayTest.php | 2 +- tests/Switzerland/Geneva/GenevaBaseTestCase.php | 6 +++--- tests/Switzerland/Geneva/GoodFridayTest.php | 2 +- tests/Switzerland/Geneva/JeuneGenevoisTest.php | 2 +- tests/Switzerland/Geneva/NewYearsDayTest.php | 2 +- tests/Switzerland/Geneva/PentecostMondayTest.php | 2 +- tests/Switzerland/Geneva/RestaurationGenevoiseTest.php | 2 +- tests/Switzerland/Glarus/AllSaintsDayTest.php | 2 +- tests/Switzerland/Glarus/AscensionDayTest.php | 2 +- tests/Switzerland/Glarus/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Glarus/ChristmasDayTest.php | 2 +- tests/Switzerland/Glarus/EasterMondayTest.php | 2 +- tests/Switzerland/Glarus/GlarusBaseTestCase.php | 6 +++--- tests/Switzerland/Glarus/GoodFridayTest.php | 2 +- tests/Switzerland/Glarus/NafelserFahrtTest.php | 4 ++-- tests/Switzerland/Glarus/NewYearsDayTest.php | 2 +- tests/Switzerland/Glarus/PentecostMondayTest.php | 2 +- tests/Switzerland/Glarus/StStephensDayTest.php | 2 +- tests/Switzerland/Grisons/AscensionDayTest.php | 2 +- tests/Switzerland/Grisons/ChristmasDayTest.php | 2 +- tests/Switzerland/Grisons/EasterMondayTest.php | 2 +- tests/Switzerland/Grisons/GoodFridayTest.php | 2 +- tests/Switzerland/Grisons/GrisonsBaseTestCase.php | 6 +++--- tests/Switzerland/Grisons/NewYearsDayTest.php | 2 +- tests/Switzerland/Grisons/PentecostMondayTest.php | 2 +- tests/Switzerland/Grisons/StStephensDayTest.php | 2 +- tests/Switzerland/Jura/AllSaintsDayTest.php | 2 +- tests/Switzerland/Jura/AscensionDayTest.php | 2 +- tests/Switzerland/Jura/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Jura/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Jura/ChristmasDayTest.php | 2 +- tests/Switzerland/Jura/CorpusChristiTest.php | 2 +- tests/Switzerland/Jura/EasterMondayTest.php | 2 +- tests/Switzerland/Jura/GoodFridayTest.php | 2 +- tests/Switzerland/Jura/JuraBaseTestCase.php | 6 +++--- tests/Switzerland/Jura/NewYearsDayTest.php | 2 +- tests/Switzerland/Jura/PentecostMondayTest.php | 2 +- tests/Switzerland/Jura/PlebisciteJurassienTest.php | 4 ++-- tests/Switzerland/Jura/WorkersDayTest.php | 2 +- tests/Switzerland/Lucerne/AllSaintsDayTest.php | 2 +- tests/Switzerland/Lucerne/AscensionDayTest.php | 2 +- tests/Switzerland/Lucerne/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Lucerne/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Lucerne/ChristmasDayTest.php | 2 +- tests/Switzerland/Lucerne/CorpusChristiTest.php | 2 +- tests/Switzerland/Lucerne/EasterMondayTest.php | 2 +- tests/Switzerland/Lucerne/GoodFridayTest.php | 2 +- tests/Switzerland/Lucerne/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Lucerne/LucerneBaseTestCase.php | 6 +++--- tests/Switzerland/Lucerne/NewYearsDayTest.php | 2 +- tests/Switzerland/Lucerne/PentecostMondayTest.php | 2 +- tests/Switzerland/Lucerne/StStephensDayTest.php | 2 +- tests/Switzerland/Neuchatel/AscensionDayTest.php | 2 +- tests/Switzerland/Neuchatel/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Neuchatel/BettagsMontagTest.php | 2 +- tests/Switzerland/Neuchatel/ChristmasDayTest.php | 2 +- tests/Switzerland/Neuchatel/EasterMondayTest.php | 2 +- tests/Switzerland/Neuchatel/GoodFridayTest.php | 2 +- .../Switzerland/Neuchatel/InstaurationRepubliqueTest.php | 4 ++-- tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php | 6 +++--- tests/Switzerland/Neuchatel/NewYearsDayTest.php | 2 +- tests/Switzerland/Neuchatel/PentecostMondayTest.php | 2 +- tests/Switzerland/Neuchatel/WorkersDayTest.php | 2 +- tests/Switzerland/Nidwalden/AllSaintsDayTest.php | 2 +- tests/Switzerland/Nidwalden/AscensionDayTest.php | 2 +- tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Nidwalden/ChristmasDayTest.php | 2 +- tests/Switzerland/Nidwalden/CorpusChristiTest.php | 2 +- tests/Switzerland/Nidwalden/EasterMondayTest.php | 2 +- tests/Switzerland/Nidwalden/GoodFridayTest.php | 2 +- tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Nidwalden/NewYearsDayTest.php | 2 +- tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php | 6 +++--- tests/Switzerland/Nidwalden/PentecostMondayTest.php | 2 +- tests/Switzerland/Nidwalden/StJosephDayTest.php | 2 +- tests/Switzerland/Nidwalden/StStephensDayTest.php | 2 +- tests/Switzerland/Obwalden/AllSaintsDayTest.php | 2 +- tests/Switzerland/Obwalden/AscensionDayTest.php | 2 +- tests/Switzerland/Obwalden/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Obwalden/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Obwalden/BruderKlausenFestTest.php | 2 +- tests/Switzerland/Obwalden/ChristmasDayTest.php | 2 +- tests/Switzerland/Obwalden/CorpusChristiTest.php | 2 +- tests/Switzerland/Obwalden/EasterMondayTest.php | 2 +- tests/Switzerland/Obwalden/GoodFridayTest.php | 2 +- tests/Switzerland/Obwalden/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Obwalden/NewYearsDayTest.php | 2 +- tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php | 6 +++--- tests/Switzerland/Obwalden/PentecostMondayTest.php | 2 +- tests/Switzerland/Obwalden/StStephensDayTest.php | 2 +- tests/Switzerland/Schaffhausen/AscensionDayTest.php | 2 +- tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Schaffhausen/ChristmasDayTest.php | 2 +- tests/Switzerland/Schaffhausen/EasterMondayTest.php | 2 +- tests/Switzerland/Schaffhausen/GoodFridayTest.php | 2 +- tests/Switzerland/Schaffhausen/NewYearsDayTest.php | 2 +- tests/Switzerland/Schaffhausen/PentecostMondayTest.php | 2 +- .../Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php | 6 +++--- tests/Switzerland/Schaffhausen/StStephensDayTest.php | 2 +- tests/Switzerland/Schaffhausen/WorkersDayTest.php | 2 +- tests/Switzerland/Schwyz/AllSaintsDayTest.php | 2 +- tests/Switzerland/Schwyz/AscensionDayTest.php | 2 +- tests/Switzerland/Schwyz/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Schwyz/ChristmasDayTest.php | 2 +- tests/Switzerland/Schwyz/CorpusChristiTest.php | 2 +- tests/Switzerland/Schwyz/EasterMondayTest.php | 2 +- tests/Switzerland/Schwyz/EpiphanyTest.php | 2 +- tests/Switzerland/Schwyz/GoodFridayTest.php | 2 +- tests/Switzerland/Schwyz/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Schwyz/NewYearsDayTest.php | 2 +- tests/Switzerland/Schwyz/PentecostMondayTest.php | 2 +- tests/Switzerland/Schwyz/SchwyzBaseTestCase.php | 6 +++--- tests/Switzerland/Schwyz/StJosephDayTest.php | 2 +- tests/Switzerland/Schwyz/StStephensDayTest.php | 2 +- tests/Switzerland/Solothurn/AscensionDayTest.php | 2 +- tests/Switzerland/Solothurn/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Solothurn/ChristmasDayTest.php | 2 +- tests/Switzerland/Solothurn/GoodFridayTest.php | 2 +- tests/Switzerland/Solothurn/NewYearsDayTest.php | 2 +- tests/Switzerland/Solothurn/SolothurnBaseTestCase.php | 6 +++--- tests/Switzerland/StGallen/AllSaintsDayTest.php | 2 +- tests/Switzerland/StGallen/AscensionDayTest.php | 2 +- tests/Switzerland/StGallen/ChristmasDayTest.php | 2 +- tests/Switzerland/StGallen/EasterMondayTest.php | 2 +- tests/Switzerland/StGallen/GoodFridayTest.php | 2 +- tests/Switzerland/StGallen/NewYearsDayTest.php | 2 +- tests/Switzerland/StGallen/PentecostMondayTest.php | 2 +- tests/Switzerland/StGallen/StGallenBaseTestCase.php | 6 +++--- tests/Switzerland/StGallen/StStephensDayTest.php | 2 +- tests/Switzerland/SwissNationalDayTest.php | 8 ++++---- tests/Switzerland/SwitzerlandBaseTestCase.php | 6 +++--- tests/Switzerland/Thurgau/AscensionDayTest.php | 2 +- tests/Switzerland/Thurgau/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Thurgau/ChristmasDayTest.php | 2 +- tests/Switzerland/Thurgau/EasterMondayTest.php | 2 +- tests/Switzerland/Thurgau/GoodFridayTest.php | 2 +- tests/Switzerland/Thurgau/NewYearsDayTest.php | 2 +- tests/Switzerland/Thurgau/PentecostMondayTest.php | 2 +- tests/Switzerland/Thurgau/StStephensDayTest.php | 2 +- tests/Switzerland/Thurgau/ThurgauBaseTestCase.php | 6 +++--- tests/Switzerland/Thurgau/WorkersDayTest.php | 2 +- tests/Switzerland/Ticino/AllSaintsDayTest.php | 2 +- tests/Switzerland/Ticino/AscensionDayTest.php | 2 +- tests/Switzerland/Ticino/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Ticino/ChristmasDayTest.php | 2 +- tests/Switzerland/Ticino/CorpusChristiTest.php | 2 +- tests/Switzerland/Ticino/EasterMondayTest.php | 2 +- tests/Switzerland/Ticino/EpiphanyTest.php | 2 +- tests/Switzerland/Ticino/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Ticino/NewYearsDayTest.php | 2 +- tests/Switzerland/Ticino/PentecostMondayTest.php | 2 +- tests/Switzerland/Ticino/StJosephDayTest.php | 2 +- tests/Switzerland/Ticino/StPeterPaulTest.php | 2 +- tests/Switzerland/Ticino/StStephensDayTest.php | 2 +- tests/Switzerland/Ticino/TicinoBaseTestCase.php | 6 +++--- tests/Switzerland/Ticino/WorkersDayTest.php | 2 +- tests/Switzerland/Uri/AllSaintsDayTest.php | 2 +- tests/Switzerland/Uri/AscensionDayTest.php | 2 +- tests/Switzerland/Uri/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Uri/ChristmasDayTest.php | 2 +- tests/Switzerland/Uri/CorpusChristiTest.php | 2 +- tests/Switzerland/Uri/EasterMondayTest.php | 2 +- tests/Switzerland/Uri/EpiphanyTest.php | 2 +- tests/Switzerland/Uri/GoodFridayTest.php | 2 +- tests/Switzerland/Uri/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Uri/NewYearsDayTest.php | 2 +- tests/Switzerland/Uri/PentecostMondayTest.php | 2 +- tests/Switzerland/Uri/StJosephDayTest.php | 2 +- tests/Switzerland/Uri/StStephensDayTest.php | 2 +- tests/Switzerland/Uri/UriBaseTestCase.php | 6 +++--- tests/Switzerland/Valais/AllSaintsDayTest.php | 2 +- tests/Switzerland/Valais/AscensionDayTest.php | 2 +- tests/Switzerland/Valais/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Valais/ChristmasDayTest.php | 2 +- tests/Switzerland/Valais/CorpusChristiTest.php | 2 +- tests/Switzerland/Valais/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Valais/NewYearsDayTest.php | 2 +- tests/Switzerland/Valais/StJosephDayTest.php | 2 +- tests/Switzerland/Valais/ValaisBaseTestCase.php | 6 +++--- tests/Switzerland/Vaud/AscensionDayTest.php | 2 +- tests/Switzerland/Vaud/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Vaud/BettagsMontagTest.php | 2 +- tests/Switzerland/Vaud/ChristmasDayTest.php | 2 +- tests/Switzerland/Vaud/EasterMondayTest.php | 2 +- tests/Switzerland/Vaud/GoodFridayTest.php | 2 +- tests/Switzerland/Vaud/NewYearsDayTest.php | 2 +- tests/Switzerland/Vaud/PentecostMondayTest.php | 2 +- tests/Switzerland/Vaud/VaudBaseTestCase.php | 6 +++--- tests/Switzerland/Zug/AllSaintsDayTest.php | 2 +- tests/Switzerland/Zug/AscensionDayTest.php | 2 +- tests/Switzerland/Zug/AssumptionOfMaryTest.php | 2 +- tests/Switzerland/Zug/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Zug/ChristmasDayTest.php | 2 +- tests/Switzerland/Zug/CorpusChristiTest.php | 2 +- tests/Switzerland/Zug/EasterMondayTest.php | 2 +- tests/Switzerland/Zug/GoodFridayTest.php | 2 +- tests/Switzerland/Zug/ImmaculateConceptionTest.php | 2 +- tests/Switzerland/Zug/NewYearsDayTest.php | 2 +- tests/Switzerland/Zug/PentecostMondayTest.php | 2 +- tests/Switzerland/Zug/StStephensDayTest.php | 2 +- tests/Switzerland/Zug/ZugBaseTestCase.php | 6 +++--- tests/Switzerland/Zurich/AscensionDayTest.php | 2 +- tests/Switzerland/Zurich/BerchtoldsTagTest.php | 2 +- tests/Switzerland/Zurich/ChristmasDayTest.php | 2 +- tests/Switzerland/Zurich/EasterMondayTest.php | 2 +- tests/Switzerland/Zurich/GoodFridayTest.php | 2 +- tests/Switzerland/Zurich/NewYearsDayTest.php | 2 +- tests/Switzerland/Zurich/PentecostMondayTest.php | 2 +- tests/Switzerland/Zurich/StStephensDayTest.php | 2 +- tests/Switzerland/Zurich/WorkersDayTest.php | 2 +- tests/Switzerland/Zurich/ZurichBaseTestCase.php | 6 +++--- tests/USA/ChristmasDayTest.php | 2 +- tests/USA/ColumbusDayTest.php | 4 ++-- tests/USA/IndependenceDayTest.php | 4 ++-- tests/USA/LabourDayTest.php | 4 ++-- tests/USA/MartinLutherKingDayTest.php | 4 ++-- tests/USA/MemorialDayTest.php | 4 ++-- tests/USA/NewYearsDayTest.php | 2 +- tests/USA/ThanksgivingDayTest.php | 4 ++-- tests/USA/USABaseTestCase.php | 6 +++--- tests/USA/VeteransDayTest.php | 4 ++-- tests/USA/WashingtonsBirthdayTest.php | 4 ++-- tests/Ukraine/ChristmasDayTest.php | 2 +- tests/Ukraine/ConstitutionDayTest.php | 2 +- tests/Ukraine/DefenderOfUkraineDayTest.php | 2 +- tests/Ukraine/EasterTest.php | 2 +- tests/Ukraine/IndependenceDayTest.php | 2 +- tests/Ukraine/InternationalWomensDayTest.php | 2 +- tests/Ukraine/InternationalWorkersDayTest.php | 2 +- tests/Ukraine/NewYearsDayTest.php | 2 +- tests/Ukraine/PentecostTest.php | 2 +- tests/Ukraine/SecondInternationalWorkersDayTest.php | 2 +- tests/Ukraine/UkraineBaseTestCase.php | 6 +++--- tests/Ukraine/VictoryDayTest.php | 2 +- tests/UnitedKingdom/BoxingDayTest.php | 2 +- tests/UnitedKingdom/ChristmasDayTest.php | 2 +- tests/UnitedKingdom/EasterMondayTest.php | 2 +- tests/UnitedKingdom/GoodFridayTest.php | 2 +- tests/UnitedKingdom/MayDayBankHolidayTest.php | 4 ++-- tests/UnitedKingdom/NewYearsDayTest.php | 6 +++--- tests/UnitedKingdom/SpringBankHolidayTest.php | 4 ++-- tests/UnitedKingdom/SummerBankHolidayTest.php | 4 ++-- tests/UnitedKingdom/UnitedKingdomBaseTestCase.php | 8 ++++---- 876 files changed, 1209 insertions(+), 1209 deletions(-) diff --git a/tests/Australia/ACT/CanberraDayTest.php b/tests/Australia/ACT/CanberraDayTest.php index fd6815cfe..f757df470 100644 --- a/tests/Australia/ACT/CanberraDayTest.php +++ b/tests/Australia/ACT/CanberraDayTest.php @@ -25,12 +25,12 @@ class CanberraDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'canberraDay'; + public const HOLIDAY = 'canberraDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1913; + public const ESTABLISHMENT_YEAR = 1913; /** * Tests Canberra Day diff --git a/tests/Australia/ACT/EasterSaturdayTest.php b/tests/Australia/ACT/EasterSaturdayTest.php index edf80ca39..655c145ba 100644 --- a/tests/Australia/ACT/EasterSaturdayTest.php +++ b/tests/Australia/ACT/EasterSaturdayTest.php @@ -26,7 +26,7 @@ class EasterSaturdayTest extends ACTBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'easterSaturday'; + public const HOLIDAY = 'easterSaturday'; /** * Tests Easter Saturday diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php index 1dc329264..b750ff8ff 100644 --- a/tests/Australia/ACT/EasterSundayTest.php +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -25,7 +25,7 @@ class EasterSundayTest extends ACTBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter Sunday diff --git a/tests/Australia/ACT/LabourDayTest.php b/tests/Australia/ACT/LabourDayTest.php index 54b759703..2da6a30d9 100644 --- a/tests/Australia/ACT/LabourDayTest.php +++ b/tests/Australia/ACT/LabourDayTest.php @@ -25,7 +25,7 @@ class LabourDayTest extends ACTBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * Tests Labour Day diff --git a/tests/Australia/ACT/QueensBirthdayTest.php b/tests/Australia/ACT/QueensBirthdayTest.php index 89aa6c37a..24cb99f61 100644 --- a/tests/Australia/ACT/QueensBirthdayTest.php +++ b/tests/Australia/ACT/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends ACTBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/ACT/ReconciliationDayTest.php b/tests/Australia/ACT/ReconciliationDayTest.php index b5574a3c2..179a3457d 100644 --- a/tests/Australia/ACT/ReconciliationDayTest.php +++ b/tests/Australia/ACT/ReconciliationDayTest.php @@ -25,12 +25,12 @@ class ReconciliationDayTest extends ACTBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'reconciliationDay'; + public const HOLIDAY = 'reconciliationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2018; + public const ESTABLISHMENT_YEAR = 2018; /** * Tests Reconciliation Day diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index 168e93246..bc061c7b5 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -25,12 +25,12 @@ class AnzacDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'anzacDay'; + public const HOLIDAY = 'anzacDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1921; + public const ESTABLISHMENT_YEAR = 1921; /** * Tests ANZAC Day diff --git a/tests/Australia/AustraliaBaseTestCase.php b/tests/Australia/AustraliaBaseTestCase.php index 77aed2af0..3f9b406a8 100644 --- a/tests/Australia/AustraliaBaseTestCase.php +++ b/tests/Australia/AustraliaBaseTestCase.php @@ -25,7 +25,7 @@ abstract class AustraliaBaseTestCase extends TestCase /** * Locale that is considered common for this provider */ - const LOCALE = 'en_AU'; + public const LOCALE = 'en_AU'; /** * Name of the region (e.g. country / state) to be tested */ diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index be9bb0651..3ada88ce0 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -25,7 +25,7 @@ class AustraliaDayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'australiaDay'; + public const HOLIDAY = 'australiaDay'; /** * Tests Australia Day diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index 0e54ddf92..f4369b260 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -25,8 +25,8 @@ class BoxingDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'secondChristmasDay'; - const HOLIDAY2 = 'secondChristmasHoliday'; + public const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY2 = 'secondChristmasHoliday'; /** * Tests Boxing Day diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index 257ca95e2..40dbd917a 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -25,8 +25,8 @@ class ChristmasDayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; - const HOLIDAY2 = 'christmasHoliday'; + public const HOLIDAY = 'christmasDay'; + public const HOLIDAY2 = 'christmasHoliday'; /** * Tests Christmas Day diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index 0981cad03..4e3307b8c 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -26,8 +26,8 @@ class EasterMondayTest extends AustraliaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; - const HOLIDAY2 = 'easterTuesday'; + public const HOLIDAY = 'easterMonday'; + public const HOLIDAY2 = 'easterTuesday'; /** * Tests Easter Monday diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index 6ff1d103e..0aef08e59 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -26,7 +26,7 @@ class GoodFridayTest extends AustraliaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests Good Friday diff --git a/tests/Australia/NSW/BankHolidayTest.php b/tests/Australia/NSW/BankHolidayTest.php index f1f15edf8..c81394160 100644 --- a/tests/Australia/NSW/BankHolidayTest.php +++ b/tests/Australia/NSW/BankHolidayTest.php @@ -25,7 +25,7 @@ class BankHolidayTest extends NSWBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'bankHoliday'; + public const HOLIDAY = 'bankHoliday'; /** * Tests Bank Holiday diff --git a/tests/Australia/NSW/EasterSaturdayTest.php b/tests/Australia/NSW/EasterSaturdayTest.php index 451bacbe6..3d0da139b 100644 --- a/tests/Australia/NSW/EasterSaturdayTest.php +++ b/tests/Australia/NSW/EasterSaturdayTest.php @@ -26,7 +26,7 @@ class EasterSaturdayTest extends NSWBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'easterSaturday'; + public const HOLIDAY = 'easterSaturday'; /** * Tests Easter Saturday diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php index d8a102deb..2d357edf7 100644 --- a/tests/Australia/NSW/EasterSundayTest.php +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -25,7 +25,7 @@ class EasterSundayTest extends NSWBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter Sunday diff --git a/tests/Australia/NSW/LabourDayTest.php b/tests/Australia/NSW/LabourDayTest.php index e94a984c9..2a72030e2 100644 --- a/tests/Australia/NSW/LabourDayTest.php +++ b/tests/Australia/NSW/LabourDayTest.php @@ -25,7 +25,7 @@ class LabourDayTest extends NSWBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * Tests Labour Day diff --git a/tests/Australia/NSW/QueensBirthdayTest.php b/tests/Australia/NSW/QueensBirthdayTest.php index 90b3a4917..a90e66681 100644 --- a/tests/Australia/NSW/QueensBirthdayTest.php +++ b/tests/Australia/NSW/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends NSWBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/NT/EasterSaturdayTest.php b/tests/Australia/NT/EasterSaturdayTest.php index c2cf876b3..151c855d7 100644 --- a/tests/Australia/NT/EasterSaturdayTest.php +++ b/tests/Australia/NT/EasterSaturdayTest.php @@ -26,7 +26,7 @@ class EasterSaturdayTest extends NTBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'easterSaturday'; + public const HOLIDAY = 'easterSaturday'; /** * Tests Easter Saturday diff --git a/tests/Australia/NT/MayDayTest.php b/tests/Australia/NT/MayDayTest.php index 4cefa2c89..c8062ba3b 100644 --- a/tests/Australia/NT/MayDayTest.php +++ b/tests/Australia/NT/MayDayTest.php @@ -25,7 +25,7 @@ class MayDayTest extends NTBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'mayDay'; + public const HOLIDAY = 'mayDay'; /** * Tests May Day diff --git a/tests/Australia/NT/PicnicDayTest.php b/tests/Australia/NT/PicnicDayTest.php index 8b31ae725..92214435b 100644 --- a/tests/Australia/NT/PicnicDayTest.php +++ b/tests/Australia/NT/PicnicDayTest.php @@ -25,7 +25,7 @@ class PicnicDayTest extends NTBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'picnicDay'; + public const HOLIDAY = 'picnicDay'; /** * Tests Picnic Day diff --git a/tests/Australia/NT/QueensBirthdayTest.php b/tests/Australia/NT/QueensBirthdayTest.php index f53dce6e8..3a03c4467 100644 --- a/tests/Australia/NT/QueensBirthdayTest.php +++ b/tests/Australia/NT/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends NTBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index e33854d67..009726e5d 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -25,8 +25,8 @@ class NewYearsDayTest extends AustraliaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; - const HOLIDAY2 = 'newYearsHoliday'; + public const HOLIDAY = 'newYearsDay'; + public const HOLIDAY2 = 'newYearsHoliday'; /** * Tests New Years Day diff --git a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php index cc7099847..2f10b9f6f 100644 --- a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php +++ b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php @@ -25,7 +25,7 @@ class PeoplesDayTest extends BrisbaneBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'peoplesDay'; + public const HOLIDAY = 'peoplesDay'; /** * Tests Ekka People's Day diff --git a/tests/Australia/Queensland/LabourDayTest.php b/tests/Australia/Queensland/LabourDayTest.php index b0804feff..543ee6c32 100644 --- a/tests/Australia/Queensland/LabourDayTest.php +++ b/tests/Australia/Queensland/LabourDayTest.php @@ -25,7 +25,7 @@ class LabourDayTest extends QueenslandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * Tests Labour Day diff --git a/tests/Australia/Queensland/QueensBirthdayTest.php b/tests/Australia/Queensland/QueensBirthdayTest.php index b872452bf..bcacec4fa 100644 --- a/tests/Australia/Queensland/QueensBirthdayTest.php +++ b/tests/Australia/Queensland/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends QueenslandBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/SA/AdelaideCupDayTest.php b/tests/Australia/SA/AdelaideCupDayTest.php index 73f7f2f14..7c717bf0d 100644 --- a/tests/Australia/SA/AdelaideCupDayTest.php +++ b/tests/Australia/SA/AdelaideCupDayTest.php @@ -25,12 +25,12 @@ class AdelaideCupDayTest extends SABaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'adelaideCup'; + public const HOLIDAY = 'adelaideCup'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1973; + public const ESTABLISHMENT_YEAR = 1973; /** * Tests Adelaide Cup Day diff --git a/tests/Australia/SA/ChristmasDayTest.php b/tests/Australia/SA/ChristmasDayTest.php index 771ac4d27..079cc23a3 100644 --- a/tests/Australia/SA/ChristmasDayTest.php +++ b/tests/Australia/SA/ChristmasDayTest.php @@ -25,8 +25,8 @@ class ChristmasDayTest extends SABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; - const HOLIDAY2 = 'christmasHoliday'; + public const HOLIDAY = 'christmasDay'; + public const HOLIDAY2 = 'christmasHoliday'; /** * Tests Christmas Day diff --git a/tests/Australia/SA/EasterSaturdayTest.php b/tests/Australia/SA/EasterSaturdayTest.php index 3eeaabc9a..a13cd2ff6 100644 --- a/tests/Australia/SA/EasterSaturdayTest.php +++ b/tests/Australia/SA/EasterSaturdayTest.php @@ -26,7 +26,7 @@ class EasterSaturdayTest extends SABaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'easterSaturday'; + public const HOLIDAY = 'easterSaturday'; /** * Tests Easter Saturday diff --git a/tests/Australia/SA/LabourDayTest.php b/tests/Australia/SA/LabourDayTest.php index 81e94b44a..97a8c461c 100644 --- a/tests/Australia/SA/LabourDayTest.php +++ b/tests/Australia/SA/LabourDayTest.php @@ -25,7 +25,7 @@ class LabourDayTest extends SABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * Tests Labour Day diff --git a/tests/Australia/SA/ProclamationDayTest.php b/tests/Australia/SA/ProclamationDayTest.php index b47d793d1..8513b3ce6 100644 --- a/tests/Australia/SA/ProclamationDayTest.php +++ b/tests/Australia/SA/ProclamationDayTest.php @@ -25,7 +25,7 @@ class ProclamationDayTest extends SABaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'proclamationDay'; + public const HOLIDAY = 'proclamationDay'; /** * Tests Proclamation Day diff --git a/tests/Australia/SA/QueensBirthdayTest.php b/tests/Australia/SA/QueensBirthdayTest.php index d7987795c..aae9d487c 100644 --- a/tests/Australia/SA/QueensBirthdayTest.php +++ b/tests/Australia/SA/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends SABaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php index 5d35c27b0..7a7c8b6ad 100644 --- a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php +++ b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php @@ -25,7 +25,7 @@ class DevonportShowTest extends CentralNorthBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'devonportShow'; + public const HOLIDAY = 'devonportShow'; /** * Tests Devonport Show Day diff --git a/tests/Australia/Tasmania/EightHourDayTest.php b/tests/Australia/Tasmania/EightHourDayTest.php index aa132a5e2..56c2f39fd 100644 --- a/tests/Australia/Tasmania/EightHourDayTest.php +++ b/tests/Australia/Tasmania/EightHourDayTest.php @@ -25,7 +25,7 @@ class EightHourDayTest extends TasmaniaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'eightHourDay'; + public const HOLIDAY = 'eightHourDay'; /** * Tests Eight Hour Day diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php index c0c328eb1..e38630fcb 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php @@ -25,7 +25,7 @@ class FlindersIslandShowTest extends FlindersIslandBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'flindersIslandShow'; + public const HOLIDAY = 'flindersIslandShow'; /** * Tests Flinders Island Show Day diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php index 0db02ca3f..d68723cc1 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php @@ -25,7 +25,7 @@ class KingIslandShowTest extends KingIslandBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'kingIslandShow'; + public const HOLIDAY = 'kingIslandShow'; /** * Tests King Island Show Day diff --git a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php index e98c1d708..7a2ccd5f2 100644 --- a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php +++ b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php @@ -25,7 +25,7 @@ class LauncestonShowTest extends NortheastBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'launcestonShow'; + public const HOLIDAY = 'launcestonShow'; /** * Tests Launceston Show Day diff --git a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php index 319720dd7..89f4bad5e 100644 --- a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php +++ b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php @@ -25,7 +25,7 @@ class BurnieShowTest extends NorthwestBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'burnieShow'; + public const HOLIDAY = 'burnieShow'; /** * Tests Burnie Show Day diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php index 566c162f9..3bd036700 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php @@ -25,7 +25,7 @@ class AGFESTTest extends CircularHeadBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'agfest'; + public const HOLIDAY = 'agfest'; /** * Tests AGFEST diff --git a/tests/Australia/Tasmania/QueensBirthdayTest.php b/tests/Australia/Tasmania/QueensBirthdayTest.php index 283f705a3..d7764cd48 100644 --- a/tests/Australia/Tasmania/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends TasmaniaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/Tasmania/RecreationDayTest.php b/tests/Australia/Tasmania/RecreationDayTest.php index 5ff54b052..1b8ebe98d 100644 --- a/tests/Australia/Tasmania/RecreationDayTest.php +++ b/tests/Australia/Tasmania/RecreationDayTest.php @@ -25,7 +25,7 @@ class RecreationDayTest extends TasmaniaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'recreationDay'; + public const HOLIDAY = 'recreationDay'; /** * Tests Recreation Day diff --git a/tests/Australia/Tasmania/South/HobartShowTest.php b/tests/Australia/Tasmania/South/HobartShowTest.php index 3d169cc31..d5a50a31a 100644 --- a/tests/Australia/Tasmania/South/HobartShowTest.php +++ b/tests/Australia/Tasmania/South/HobartShowTest.php @@ -25,7 +25,7 @@ class HobartShowTest extends SouthBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'hobartShow'; + public const HOLIDAY = 'hobartShow'; /** * Tests Royal Hobart Show Day diff --git a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php index ac924d39b..eb7cbb349 100644 --- a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php +++ b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php @@ -25,7 +25,7 @@ class HobartRegattaTest extends SoutheastBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'hobartRegatta'; + public const HOLIDAY = 'hobartRegatta'; /** * Tests Royal Hobart Regatta diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index 0e0e390f3..54b869881 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -25,10 +25,10 @@ class AFLGrandFinalFridayTest extends VictoriaBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'aflGrandFinalFriday'; + public const HOLIDAY = 'aflGrandFinalFriday'; - const ESTABLISHMENT_YEAR = 2015; - const LAST_KNOWN_YEAR = 2018; + public const ESTABLISHMENT_YEAR = 2015; + public const LAST_KNOWN_YEAR = 2018; /** * Tests AFL Grand Final Friday diff --git a/tests/Australia/Victoria/EasterSaturdayTest.php b/tests/Australia/Victoria/EasterSaturdayTest.php index e3670262d..ca6d3d774 100644 --- a/tests/Australia/Victoria/EasterSaturdayTest.php +++ b/tests/Australia/Victoria/EasterSaturdayTest.php @@ -26,7 +26,7 @@ class EasterSaturdayTest extends VictoriaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'easterSaturday'; + public const HOLIDAY = 'easterSaturday'; /** * Tests Easter Saturday diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php index d30630823..df7d22f7f 100644 --- a/tests/Australia/Victoria/EasterSundayTest.php +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -25,7 +25,7 @@ class EasterSundayTest extends VictoriaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter Sunday diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index 96987c190..89f990311 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -25,7 +25,7 @@ class LabourDayTest extends VictoriaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * Tests Labour Day diff --git a/tests/Australia/Victoria/MelbourneCupDayTest.php b/tests/Australia/Victoria/MelbourneCupDayTest.php index ede7a68e7..cfdaaba19 100644 --- a/tests/Australia/Victoria/MelbourneCupDayTest.php +++ b/tests/Australia/Victoria/MelbourneCupDayTest.php @@ -25,12 +25,12 @@ class MelbourneCupDayTest extends VictoriaBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'melbourneCup'; + public const HOLIDAY = 'melbourneCup'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1877; + public const ESTABLISHMENT_YEAR = 1877; /** * Tests Melbourne Cup Day diff --git a/tests/Australia/Victoria/QueensBirthdayTest.php b/tests/Australia/Victoria/QueensBirthdayTest.php index 16b2c566d..f70a85d4c 100644 --- a/tests/Australia/Victoria/QueensBirthdayTest.php +++ b/tests/Australia/Victoria/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends VictoriaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/WA/LabourDayTest.php b/tests/Australia/WA/LabourDayTest.php index de32ceab2..c70ec383e 100644 --- a/tests/Australia/WA/LabourDayTest.php +++ b/tests/Australia/WA/LabourDayTest.php @@ -25,7 +25,7 @@ class LabourDayTest extends WABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * Tests Labour Day diff --git a/tests/Australia/WA/QueensBirthdayTest.php b/tests/Australia/WA/QueensBirthdayTest.php index 3b3b6e25e..76495e0ab 100644 --- a/tests/Australia/WA/QueensBirthdayTest.php +++ b/tests/Australia/WA/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends WABaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Queen's Birthday diff --git a/tests/Australia/WA/WesternAustraliaDayTest.php b/tests/Australia/WA/WesternAustraliaDayTest.php index ff334d434..7f02dde92 100644 --- a/tests/Australia/WA/WesternAustraliaDayTest.php +++ b/tests/Australia/WA/WesternAustraliaDayTest.php @@ -25,7 +25,7 @@ class WesternAustraliaDayTest extends WABaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'westernAustraliaDay'; + public const HOLIDAY = 'westernAustraliaDay'; /** * Tests Western Australia Day diff --git a/tests/Austria/AllSaintsDayTest.php b/tests/Austria/AllSaintsDayTest.php index 93d91c6ff..d6ea284e9 100644 --- a/tests/Austria/AllSaintsDayTest.php +++ b/tests/Austria/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends AustriaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/AscensionDayTest.php b/tests/Austria/AscensionDayTest.php index a5bdeac36..bbb853347 100644 --- a/tests/Austria/AscensionDayTest.php +++ b/tests/Austria/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends AustriaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/AssumptionOfMaryTest.php b/tests/Austria/AssumptionOfMaryTest.php index a4d269db0..00be0791a 100644 --- a/tests/Austria/AssumptionOfMaryTest.php +++ b/tests/Austria/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends AustriaBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/AustriaBaseTestCase.php b/tests/Austria/AustriaBaseTestCase.php index 0d66287e1..daa68b8f9 100644 --- a/tests/Austria/AustriaBaseTestCase.php +++ b/tests/Austria/AustriaBaseTestCase.php @@ -25,15 +25,15 @@ abstract class AustriaBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Austria'; + public const REGION = 'Austria'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Vienna'; + public const TIMEZONE = 'Europe/Vienna'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_AT'; + public const LOCALE = 'de_AT'; } diff --git a/tests/Austria/ChristmasTest.php b/tests/Austria/ChristmasTest.php index 5cf0b6b6f..46d86c235 100644 --- a/tests/Austria/ChristmasTest.php +++ b/tests/Austria/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends AustriaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/CorpusChristiTest.php b/tests/Austria/CorpusChristiTest.php index a86664783..c3a2e042a 100644 --- a/tests/Austria/CorpusChristiTest.php +++ b/tests/Austria/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends AustriaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/EasterMondayTest.php b/tests/Austria/EasterMondayTest.php index 8a9e9987b..af6a4a222 100644 --- a/tests/Austria/EasterMondayTest.php +++ b/tests/Austria/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends AustriaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/EasterTest.php b/tests/Austria/EasterTest.php index d2d9c8f5e..e8137a393 100644 --- a/tests/Austria/EasterTest.php +++ b/tests/Austria/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends AustriaBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/EpiphanyTest.php b/tests/Austria/EpiphanyTest.php index 1e5c9a8c9..7bb136062 100644 --- a/tests/Austria/EpiphanyTest.php +++ b/tests/Austria/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends AustriaBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/ImmaculateConceptionTest.php b/tests/Austria/ImmaculateConceptionTest.php index c09058265..e4e3acdcd 100644 --- a/tests/Austria/ImmaculateConceptionTest.php +++ b/tests/Austria/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends AustriaBaseTestCase implements YasumiTest /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/InternationalWorkersDayTest.php b/tests/Austria/InternationalWorkersDayTest.php index b0ccc1d8a..98b1d4dc6 100644 --- a/tests/Austria/InternationalWorkersDayTest.php +++ b/tests/Austria/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends AustriaBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/NationalDayTest.php b/tests/Austria/NationalDayTest.php index 277b0c852..2c7391381 100644 --- a/tests/Austria/NationalDayTest.php +++ b/tests/Austria/NationalDayTest.php @@ -25,12 +25,12 @@ class NationalDayTest extends AustriaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'nationalDay'; + public const HOLIDAY = 'nationalDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1955; + public const ESTABLISHMENT_YEAR = 1955; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Austria/NewYearsDayTest.php b/tests/Austria/NewYearsDayTest.php index 3929e2587..985613200 100644 --- a/tests/Austria/NewYearsDayTest.php +++ b/tests/Austria/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends AustriaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/PentecostMondayTest.php b/tests/Austria/PentecostMondayTest.php index 7768feec9..b534e6b08 100644 --- a/tests/Austria/PentecostMondayTest.php +++ b/tests/Austria/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends AustriaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/PentecostTest.php b/tests/Austria/PentecostTest.php index 975f9b27b..f2e4e0f12 100644 --- a/tests/Austria/PentecostTest.php +++ b/tests/Austria/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends AustriaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Austria/SecondChristmasDayTest.php b/tests/Austria/SecondChristmasDayTest.php index ceaa9ea50..d75279224 100644 --- a/tests/Austria/SecondChristmasDayTest.php +++ b/tests/Austria/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends AustriaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index 93f916c09..8c16cd6a4 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -24,7 +24,7 @@ */ class TranslationsTest extends TestCase { - const LOCALES = [ + public const LOCALES = [ 'en_US', 'nl_NL', 'pl_PL', diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index bcfd0c7f2..7f608dd26 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -30,12 +30,12 @@ class YasumiTest extends TestCase /** * The lower year limit supported by Yasumi */ - const YEAR_LOWER_BOUND = 1000; + public const YEAR_LOWER_BOUND = 1000; /** * The upper year limit supported by Yasumi */ - const YEAR_UPPER_BOUND = 9999; + public const YEAR_UPPER_BOUND = 9999; /** * Tests that an InvalidArgumentException is thrown in case an invalid year is given. diff --git a/tests/Base/YasumiWorkdayTest.php b/tests/Base/YasumiWorkdayTest.php index 07d5d7deb..3218139b3 100644 --- a/tests/Base/YasumiWorkdayTest.php +++ b/tests/Base/YasumiWorkdayTest.php @@ -17,7 +17,7 @@ class YasumiWorkdayTest extends TestCase { - const FORMAT_DATE = 'Y-m-d'; + public const FORMAT_DATE = 'Y-m-d'; /** * Tests that the nextWorkingDay function returns an object that implements the DateTimeInterface (e.g. DateTime) diff --git a/tests/Belgium/AllSaintsDayTest.php b/tests/Belgium/AllSaintsDayTest.php index 51d95b185..e6b5f86a1 100644 --- a/tests/Belgium/AllSaintsDayTest.php +++ b/tests/Belgium/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte /** * TThe name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/ArmisticeDayTest.php b/tests/Belgium/ArmisticeDayTest.php index 52079835b..84e25eafe 100644 --- a/tests/Belgium/ArmisticeDayTest.php +++ b/tests/Belgium/ArmisticeDayTest.php @@ -24,7 +24,7 @@ class ArmisticeDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'armisticeDay'; + public const HOLIDAY = 'armisticeDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/AscensionDayTest.php b/tests/Belgium/AscensionDayTest.php index fec0f8605..0d9326d1f 100644 --- a/tests/Belgium/AscensionDayTest.php +++ b/tests/Belgium/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/AssumptionOfMaryTest.php b/tests/Belgium/AssumptionOfMaryTest.php index 3e19ba217..46fcc15a7 100644 --- a/tests/Belgium/AssumptionOfMaryTest.php +++ b/tests/Belgium/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends BelgiumBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/BelgiumBaseTestCase.php b/tests/Belgium/BelgiumBaseTestCase.php index 5231353d8..89705572a 100644 --- a/tests/Belgium/BelgiumBaseTestCase.php +++ b/tests/Belgium/BelgiumBaseTestCase.php @@ -25,15 +25,15 @@ abstract class BelgiumBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Belgium'; + public const REGION = 'Belgium'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Brussels'; + public const TIMEZONE = 'Europe/Brussels'; /** * Locale that is considered common for this provider */ - const LOCALE = 'nl_BE'; + public const LOCALE = 'nl_BE'; } diff --git a/tests/Belgium/ChristmasTest.php b/tests/Belgium/ChristmasTest.php index d95609a54..4bedd8b77 100644 --- a/tests/Belgium/ChristmasTest.php +++ b/tests/Belgium/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends BelgiumBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/EasterMondayTest.php b/tests/Belgium/EasterMondayTest.php index 7e118eb76..091d943d8 100644 --- a/tests/Belgium/EasterMondayTest.php +++ b/tests/Belgium/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends BelgiumBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/EasterTest.php b/tests/Belgium/EasterTest.php index c08ea4f8b..7fe22a4b7 100644 --- a/tests/Belgium/EasterTest.php +++ b/tests/Belgium/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends BelgiumBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter. diff --git a/tests/Belgium/InternationalWorkersDayTest.php b/tests/Belgium/InternationalWorkersDayTest.php index a151f7ade..4f905db95 100644 --- a/tests/Belgium/InternationalWorkersDayTest.php +++ b/tests/Belgium/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends BelgiumBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/NationalDayTest.php b/tests/Belgium/NationalDayTest.php index 502f48474..f16559950 100644 --- a/tests/Belgium/NationalDayTest.php +++ b/tests/Belgium/NationalDayTest.php @@ -24,7 +24,7 @@ class NationalDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'nationalDay'; + public const HOLIDAY = 'nationalDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/NewYearsDayTest.php b/tests/Belgium/NewYearsDayTest.php index 41b6b1b26..da00c5907 100644 --- a/tests/Belgium/NewYearsDayTest.php +++ b/tests/Belgium/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends BelgiumBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Belgium/PentecostTest.php b/tests/Belgium/PentecostTest.php index a4f9b6960..a8734290d 100644 --- a/tests/Belgium/PentecostTest.php +++ b/tests/Belgium/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends BelgiumBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests Pentecost. diff --git a/tests/Belgium/pentecostMondayTest.php b/tests/Belgium/pentecostMondayTest.php index 765853870..6c3643b8e 100644 --- a/tests/Belgium/pentecostMondayTest.php +++ b/tests/Belgium/pentecostMondayTest.php @@ -25,7 +25,7 @@ class pentecostMondayTest extends BelgiumBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Bosnia/BosniaBaseTestCase.php b/tests/Bosnia/BosniaBaseTestCase.php index 58c36ddb7..5e2f5ea21 100644 --- a/tests/Bosnia/BosniaBaseTestCase.php +++ b/tests/Bosnia/BosniaBaseTestCase.php @@ -27,15 +27,15 @@ abstract class BosniaBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Bosnia'; + public const REGION = 'Bosnia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Sarajevo'; + public const TIMEZONE = 'Europe/Sarajevo'; /** * Locale that is considered common for this provider */ - const LOCALE = 'bs_Latn_BA'; + public const LOCALE = 'bs_Latn_BA'; } diff --git a/tests/Bosnia/ChristmasDayTest.php b/tests/Bosnia/ChristmasDayTest.php index a2200c1d8..26c4429cb 100644 --- a/tests/Bosnia/ChristmasDayTest.php +++ b/tests/Bosnia/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends BosniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Bosnia/DayAfterNewYearsDay.php b/tests/Bosnia/DayAfterNewYearsDay.php index 59360b400..e10752647 100644 --- a/tests/Bosnia/DayAfterNewYearsDay.php +++ b/tests/Bosnia/DayAfterNewYearsDay.php @@ -24,7 +24,7 @@ class DayAfterNewYearsDay extends BosniaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'dayAfterNewYearsDay'; + public const HOLIDAY = 'dayAfterNewYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Bosnia/EasterTest.php b/tests/Bosnia/EasterTest.php index 88af25429..f4e09b915 100644 --- a/tests/Bosnia/EasterTest.php +++ b/tests/Bosnia/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends BosniaBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Bosnia/IndependenceDayTest.php b/tests/Bosnia/IndependenceDayTest.php index aad9c78c9..d3e49d73a 100644 --- a/tests/Bosnia/IndependenceDayTest.php +++ b/tests/Bosnia/IndependenceDayTest.php @@ -25,12 +25,12 @@ class IndependenceDayTest extends BosniaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1992; + public const ESTABLISHMENT_YEAR = 1992; /** * Tests Independence Day on or after 1992. diff --git a/tests/Bosnia/InternationalWorkersDayTest.php b/tests/Bosnia/InternationalWorkersDayTest.php index ab55d6090..dcd2a66e2 100644 --- a/tests/Bosnia/InternationalWorkersDayTest.php +++ b/tests/Bosnia/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends BosniaBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Bosnia/NewYearsDayTest.php b/tests/Bosnia/NewYearsDayTest.php index a5aec7920..5b5566d47 100644 --- a/tests/Bosnia/NewYearsDayTest.php +++ b/tests/Bosnia/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends BosniaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php index 09e42bb78..435dcb639 100644 --- a/tests/Bosnia/OrthodoxChristmasDay.php +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -23,7 +23,7 @@ class OrthodoxChristmasDay extends BosniaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'orthodoxChristmasDay'; + public const HOLIDAY = 'orthodoxChristmasDay'; /** diff --git a/tests/Bosnia/SecondLabourDay.php b/tests/Bosnia/SecondLabourDay.php index ad514541d..44ade5864 100644 --- a/tests/Bosnia/SecondLabourDay.php +++ b/tests/Bosnia/SecondLabourDay.php @@ -24,7 +24,7 @@ class SecondLabourDay extends BosniaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondLabourDay'; + public const HOLIDAY = 'secondLabourDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Bosnia/StatehoodDayTest.php b/tests/Bosnia/StatehoodDayTest.php index 18cb81529..5a582eec6 100644 --- a/tests/Bosnia/StatehoodDayTest.php +++ b/tests/Bosnia/StatehoodDayTest.php @@ -25,12 +25,12 @@ class StatehoodDayTest extends BosniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'statehoodDay'; + public const HOLIDAY = 'statehoodDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1943; + public const ESTABLISHMENT_YEAR = 1943; /** * Tests Statehood Day on or after 1943. diff --git a/tests/Brazil/AllSoulsDayTest.php b/tests/Brazil/AllSoulsDayTest.php index 1e0424530..338bdee2f 100644 --- a/tests/Brazil/AllSoulsDayTest.php +++ b/tests/Brazil/AllSoulsDayTest.php @@ -25,12 +25,12 @@ class AllSoulsDayTest extends BrazilBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'allSoulsDay'; + public const HOLIDAY = 'allSoulsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1300; + public const ESTABLISHMENT_YEAR = 1300; /** * Tests Dia dos Finados on or after 1300. diff --git a/tests/Brazil/AshWednesdayTest.php b/tests/Brazil/AshWednesdayTest.php index d2ac6ff26..8b1dd9e94 100644 --- a/tests/Brazil/AshWednesdayTest.php +++ b/tests/Brazil/AshWednesdayTest.php @@ -25,7 +25,7 @@ class AshWednesdayTest extends BrazilBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ashWednesday'; + public const HOLIDAY = 'ashWednesday'; /** * Tests the holiday defined in this test. diff --git a/tests/Brazil/BrazilBaseTestCase.php b/tests/Brazil/BrazilBaseTestCase.php index 3180648de..ce86a11ba 100644 --- a/tests/Brazil/BrazilBaseTestCase.php +++ b/tests/Brazil/BrazilBaseTestCase.php @@ -25,15 +25,15 @@ abstract class BrazilBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Brazil'; + public const REGION = 'Brazil'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'America/Fortaleza'; + public const TIMEZONE = 'America/Fortaleza'; /** * Locale that is considered common for this provider */ - const LOCALE = 'pt_BR'; + public const LOCALE = 'pt_BR'; } diff --git a/tests/Brazil/CarnavalMondayTest.php b/tests/Brazil/CarnavalMondayTest.php index ec32162bf..d8fe3c295 100644 --- a/tests/Brazil/CarnavalMondayTest.php +++ b/tests/Brazil/CarnavalMondayTest.php @@ -27,12 +27,12 @@ class CarnavalMondayTest extends BrazilBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'carnavalMonday'; + public const HOLIDAY = 'carnavalMonday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1700; + public const ESTABLISHMENT_YEAR = 1700; /** * Tests Carnaval Monday on or after 1700. diff --git a/tests/Brazil/CarnavalTuesdayTest.php b/tests/Brazil/CarnavalTuesdayTest.php index 908abfbe0..be0276ba5 100644 --- a/tests/Brazil/CarnavalTuesdayTest.php +++ b/tests/Brazil/CarnavalTuesdayTest.php @@ -27,12 +27,12 @@ class CarnavalTuesdayTest extends BrazilBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'carnavalTuesday'; + public const HOLIDAY = 'carnavalTuesday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1700; + public const ESTABLISHMENT_YEAR = 1700; /** * Tests Carnaval Tuesday on or after 1700. diff --git a/tests/Brazil/ChristmasDayTest.php b/tests/Brazil/ChristmasDayTest.php index 6fb1f5599..31a93f888 100644 --- a/tests/Brazil/ChristmasDayTest.php +++ b/tests/Brazil/ChristmasDayTest.php @@ -25,7 +25,7 @@ class ChristmasDayTest extends BrazilBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Brazil/CorpusChristiTest.php b/tests/Brazil/CorpusChristiTest.php index 8e8f49c68..04e9bb3ee 100644 --- a/tests/Brazil/CorpusChristiTest.php +++ b/tests/Brazil/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends BrazilBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Brazil/EasterTest.php b/tests/Brazil/EasterTest.php index e21021648..1542e320e 100644 --- a/tests/Brazil/EasterTest.php +++ b/tests/Brazil/EasterTest.php @@ -26,7 +26,7 @@ class EasterTest extends BrazilBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter. diff --git a/tests/Brazil/GoodFridayTest.php b/tests/Brazil/GoodFridayTest.php index a07d06078..068d3a167 100644 --- a/tests/Brazil/GoodFridayTest.php +++ b/tests/Brazil/GoodFridayTest.php @@ -27,7 +27,7 @@ class GoodFridayTest extends BrazilBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests Good Friday. diff --git a/tests/Brazil/IndependenceDayTest.php b/tests/Brazil/IndependenceDayTest.php index 24a58dec3..b252c71cc 100644 --- a/tests/Brazil/IndependenceDayTest.php +++ b/tests/Brazil/IndependenceDayTest.php @@ -25,12 +25,12 @@ class IndependenceDayTest extends BrazilBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1822; + public const ESTABLISHMENT_YEAR = 1822; /** * Tests Dia da independência do Brasil on or after 1822. diff --git a/tests/Brazil/InternationalWorkersDayTest.php b/tests/Brazil/InternationalWorkersDayTest.php index 9b2b1d529..9c3d12054 100644 --- a/tests/Brazil/InternationalWorkersDayTest.php +++ b/tests/Brazil/InternationalWorkersDayTest.php @@ -25,7 +25,7 @@ class InternationalWorkersDayTest extends BrazilBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Brazil/NewYearsDayTest.php b/tests/Brazil/NewYearsDayTest.php index b2a8dd7cc..bc68af396 100644 --- a/tests/Brazil/NewYearsDayTest.php +++ b/tests/Brazil/NewYearsDayTest.php @@ -25,7 +25,7 @@ class NewYearsDayTest extends BrazilBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Brazil/OurLadyOfAparecidaDayTest.php b/tests/Brazil/OurLadyOfAparecidaDayTest.php index 937feec16..4157d8772 100644 --- a/tests/Brazil/OurLadyOfAparecidaDayTest.php +++ b/tests/Brazil/OurLadyOfAparecidaDayTest.php @@ -25,12 +25,12 @@ class OurLadyOfAparecidaDayTest extends BrazilBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'ourLadyOfAparecidaDay'; + public const HOLIDAY = 'ourLadyOfAparecidaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1980; + public const ESTABLISHMENT_YEAR = 1980; /** * Tests Nossa Senhora Aparecida on or after 1980. diff --git a/tests/Brazil/ProclamationOfRepublicDayTest.php b/tests/Brazil/ProclamationOfRepublicDayTest.php index b3626a23d..a1f40a94b 100644 --- a/tests/Brazil/ProclamationOfRepublicDayTest.php +++ b/tests/Brazil/ProclamationOfRepublicDayTest.php @@ -25,12 +25,12 @@ class ProclamationOfRepublicDayTest extends BrazilBaseTestCase implements Yasumi /** * The name of the holiday */ - const HOLIDAY = 'proclamationOfRepublicDay'; + public const HOLIDAY = 'proclamationOfRepublicDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1889; + public const ESTABLISHMENT_YEAR = 1889; /** * Tests Proclamação da República on or after 1889. diff --git a/tests/Brazil/TiradentesDayTest.php b/tests/Brazil/TiradentesDayTest.php index 505653bb5..8d6ef34d2 100644 --- a/tests/Brazil/TiradentesDayTest.php +++ b/tests/Brazil/TiradentesDayTest.php @@ -25,12 +25,12 @@ class TiradentesDayTest extends BrazilBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'tiradentesDay'; + public const HOLIDAY = 'tiradentesDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1792; + public const ESTABLISHMENT_YEAR = 1792; /** * Tests Dia de Tiradentes on or after 1792. diff --git a/tests/Croatia/AllSaintsDayTest.php b/tests/Croatia/AllSaintsDayTest.php index dc9b2f291..b33a946bf 100644 --- a/tests/Croatia/AllSaintsDayTest.php +++ b/tests/Croatia/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/AntifascistStruggleDayTest.php b/tests/Croatia/AntifascistStruggleDayTest.php index ca4616792..ae1fa5cf7 100644 --- a/tests/Croatia/AntifascistStruggleDayTest.php +++ b/tests/Croatia/AntifascistStruggleDayTest.php @@ -25,12 +25,12 @@ class AntifascistStruggleDayTest extends CroatiaBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'antifascistStruggleDay'; + public const HOLIDAY = 'antifascistStruggleDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1941; + public const ESTABLISHMENT_YEAR = 1941; /** * Tests Day of Antifascist Struggle on or after 1941. diff --git a/tests/Croatia/AssumptionOfMaryTest.php b/tests/Croatia/AssumptionOfMaryTest.php index 43afc4e21..b00427a9a 100644 --- a/tests/Croatia/AssumptionOfMaryTest.php +++ b/tests/Croatia/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends CroatiaBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/ChristmasDayTest.php b/tests/Croatia/ChristmasDayTest.php index d22d1824b..2cc74042f 100644 --- a/tests/Croatia/ChristmasDayTest.php +++ b/tests/Croatia/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/CorpusChristiTest.php b/tests/Croatia/CorpusChristiTest.php index e524f95e1..92854ea41 100644 --- a/tests/Croatia/CorpusChristiTest.php +++ b/tests/Croatia/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends CroatiaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Croatia/CroatiaBaseTestCase.php b/tests/Croatia/CroatiaBaseTestCase.php index 85909d4d9..e92b2ce37 100644 --- a/tests/Croatia/CroatiaBaseTestCase.php +++ b/tests/Croatia/CroatiaBaseTestCase.php @@ -27,15 +27,15 @@ abstract class CroatiaBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Croatia'; + public const REGION = 'Croatia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zagreb'; + public const TIMEZONE = 'Europe/Zagreb'; /** * Locale that is considered common for this provider */ - const LOCALE = 'hr_HR'; + public const LOCALE = 'hr_HR'; } diff --git a/tests/Croatia/EasterMondayTest.php b/tests/Croatia/EasterMondayTest.php index 35e0cbe65..aef5299ac 100644 --- a/tests/Croatia/EasterMondayTest.php +++ b/tests/Croatia/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/EasterTest.php b/tests/Croatia/EasterTest.php index a709c2e22..9454db1c9 100644 --- a/tests/Croatia/EasterTest.php +++ b/tests/Croatia/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends CroatiaBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/EpiphanyTest.php b/tests/Croatia/EpiphanyTest.php index f0920e54d..0025f85b9 100644 --- a/tests/Croatia/EpiphanyTest.php +++ b/tests/Croatia/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends CroatiaBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/HomelandThanksgivingDayTest.php b/tests/Croatia/HomelandThanksgivingDayTest.php index bd69efd0c..875221563 100644 --- a/tests/Croatia/HomelandThanksgivingDayTest.php +++ b/tests/Croatia/HomelandThanksgivingDayTest.php @@ -25,12 +25,12 @@ class HomelandThanksgivingDayTest extends CroatiaBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'homelandThanksgiving'; + public const HOLIDAY = 'homelandThanksgiving'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1995; + public const ESTABLISHMENT_YEAR = 1995; /** * Tests Homeland Thanksgiving Day on or after 1995. diff --git a/tests/Croatia/IndependenceDayTest.php b/tests/Croatia/IndependenceDayTest.php index 99acac401..e5370cdff 100644 --- a/tests/Croatia/IndependenceDayTest.php +++ b/tests/Croatia/IndependenceDayTest.php @@ -25,12 +25,12 @@ class IndependenceDayTest extends CroatiaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1991; + public const ESTABLISHMENT_YEAR = 1991; /** * Tests Independence Day on or after 1991. diff --git a/tests/Croatia/InternationalWorkersDayTest.php b/tests/Croatia/InternationalWorkersDayTest.php index 8c869d27d..04d86a6be 100644 --- a/tests/Croatia/InternationalWorkersDayTest.php +++ b/tests/Croatia/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends CroatiaBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/NewYearsDayTest.php b/tests/Croatia/NewYearsDayTest.php index 7c9965be4..a87249bc9 100644 --- a/tests/Croatia/NewYearsDayTest.php +++ b/tests/Croatia/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Croatia/StStephensDayTest.php b/tests/Croatia/StStephensDayTest.php index 1a1af0016..78424f352 100644 --- a/tests/Croatia/StStephensDayTest.php +++ b/tests/Croatia/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the day of St. Stephen's Day. diff --git a/tests/Croatia/StatehoodDayTest.php b/tests/Croatia/StatehoodDayTest.php index 36d8ac74d..2cb47a823 100644 --- a/tests/Croatia/StatehoodDayTest.php +++ b/tests/Croatia/StatehoodDayTest.php @@ -25,12 +25,12 @@ class StatehoodDayTest extends CroatiaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'statehoodDay'; + public const HOLIDAY = 'statehoodDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1991; + public const ESTABLISHMENT_YEAR = 1991; /** * Tests Statehood Day on or after 1991. diff --git a/tests/CzechRepublic/ChristmasDayTest.php b/tests/CzechRepublic/ChristmasDayTest.php index e284b371f..1d9783e89 100644 --- a/tests/CzechRepublic/ChristmasDayTest.php +++ b/tests/CzechRepublic/ChristmasDayTest.php @@ -28,7 +28,7 @@ class ChristmasDayTest extends CzechRepublicBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/CzechRepublic/ChristmasEveTest.php b/tests/CzechRepublic/ChristmasEveTest.php index a5778a235..8d34dbe26 100644 --- a/tests/CzechRepublic/ChristmasEveTest.php +++ b/tests/CzechRepublic/ChristmasEveTest.php @@ -28,7 +28,7 @@ class ChristmasEveTest extends CzechRepublicBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** * Tests Christmas Eve. diff --git a/tests/CzechRepublic/CzechRepublicBaseTestCase.php b/tests/CzechRepublic/CzechRepublicBaseTestCase.php index 4e6551700..dbc3956ca 100644 --- a/tests/CzechRepublic/CzechRepublicBaseTestCase.php +++ b/tests/CzechRepublic/CzechRepublicBaseTestCase.php @@ -29,15 +29,15 @@ abstract class CzechRepublicBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'CzechRepublic'; + public const REGION = 'CzechRepublic'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Prague'; + public const TIMEZONE = 'Europe/Prague'; /** * Locale that is considered common for this provider */ - const LOCALE = 'cs_CZ'; + public const LOCALE = 'cs_CZ'; } diff --git a/tests/CzechRepublic/CzechStateHoodDayTest.php b/tests/CzechRepublic/CzechStateHoodDayTest.php index b15defe00..991780935 100644 --- a/tests/CzechRepublic/CzechStateHoodDayTest.php +++ b/tests/CzechRepublic/CzechStateHoodDayTest.php @@ -28,7 +28,7 @@ class CzechStateHoodDayTest extends CzechRepublicBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'czechStateHoodDay'; + public const HOLIDAY = 'czechStateHoodDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/EasterMondayTest.php b/tests/CzechRepublic/EasterMondayTest.php index 8abd60961..243394e0d 100644 --- a/tests/CzechRepublic/EasterMondayTest.php +++ b/tests/CzechRepublic/EasterMondayTest.php @@ -29,7 +29,7 @@ class EasterMondayTest extends CzechRepublicBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/GoodFridayTest.php b/tests/CzechRepublic/GoodFridayTest.php index 7d5773008..c2de4e79f 100644 --- a/tests/CzechRepublic/GoodFridayTest.php +++ b/tests/CzechRepublic/GoodFridayTest.php @@ -29,7 +29,7 @@ class GoodFridayTest extends CzechRepublicBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests Good Friday. diff --git a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php index fe907cf91..a1f58c85d 100644 --- a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php +++ b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php @@ -24,7 +24,7 @@ class IndependentCzechoslovakStateDayTest extends CzechRepublicBaseTestCase impl /** * The name of the holiday */ - const HOLIDAY = 'independentCzechoslovakStateDay'; + public const HOLIDAY = 'independentCzechoslovakStateDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/InternationalWorkersDayTest.php b/tests/CzechRepublic/InternationalWorkersDayTest.php index e91695b5e..b3896baa1 100644 --- a/tests/CzechRepublic/InternationalWorkersDayTest.php +++ b/tests/CzechRepublic/InternationalWorkersDayTest.php @@ -28,7 +28,7 @@ class InternationalWorkersDayTest extends CzechRepublicBaseTestCase implements Y /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/CzechRepublic/JanHusDayTest.php b/tests/CzechRepublic/JanHusDayTest.php index 18329d92d..d3ec3d420 100644 --- a/tests/CzechRepublic/JanHusDayTest.php +++ b/tests/CzechRepublic/JanHusDayTest.php @@ -24,7 +24,7 @@ class JanHusDayTest extends CzechRepublicBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'janHusDay'; + public const HOLIDAY = 'janHusDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/NewYearsDayTest.php b/tests/CzechRepublic/NewYearsDayTest.php index dc34f9ae2..9226521a2 100644 --- a/tests/CzechRepublic/NewYearsDayTest.php +++ b/tests/CzechRepublic/NewYearsDayTest.php @@ -28,7 +28,7 @@ class NewYearsDayTest extends CzechRepublicBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php index cbf8cf118..dbdf602ee 100644 --- a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php @@ -28,7 +28,7 @@ class SaintsCyrilAndMethodiusDayTest extends CzechRepublicBaseTestCase implement /** * The name of the holiday */ - const HOLIDAY = 'saintsCyrilAndMethodiusDay'; + public const HOLIDAY = 'saintsCyrilAndMethodiusDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/SecondChristmasDayTest.php b/tests/CzechRepublic/SecondChristmasDayTest.php index e32916252..a5b32bbe9 100644 --- a/tests/CzechRepublic/SecondChristmasDayTest.php +++ b/tests/CzechRepublic/SecondChristmasDayTest.php @@ -28,7 +28,7 @@ class SecondChristmasDayTest extends CzechRepublicBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php index f41dc8dcd..0167e24d8 100644 --- a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php @@ -24,7 +24,7 @@ class StruggleForFreedomAndDemocracyDayTest extends CzechRepublicBaseTestCase im /** * The name of the holiday */ - const HOLIDAY = 'struggleForFreedomAndDemocracyDay'; + public const HOLIDAY = 'struggleForFreedomAndDemocracyDay'; /** * Tests the holiday defined in this test. diff --git a/tests/CzechRepublic/VictoryInEuropeDayTest.php b/tests/CzechRepublic/VictoryInEuropeDayTest.php index c2fd54950..422c871b8 100644 --- a/tests/CzechRepublic/VictoryInEuropeDayTest.php +++ b/tests/CzechRepublic/VictoryInEuropeDayTest.php @@ -28,7 +28,7 @@ class VictoryInEuropeDayTest extends CzechRepublicBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'victoryInEuropeDay'; + public const HOLIDAY = 'victoryInEuropeDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/AscensionDayTest.php b/tests/Denmark/AscensionDayTest.php index f5d55a5b3..0e36390e6 100644 --- a/tests/Denmark/AscensionDayTest.php +++ b/tests/Denmark/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 9bf177125..830b9ab0b 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/ChristmasEveTest.php b/tests/Denmark/ChristmasEveTest.php index 29ff6c8bd..29cc3d70d 100644 --- a/tests/Denmark/ChristmasEveTest.php +++ b/tests/Denmark/ChristmasEveTest.php @@ -24,7 +24,7 @@ class ChristmasEveTest extends DenmarkBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/ConstitutionDayTest.php b/tests/Denmark/ConstitutionDayTest.php index 3ee9503b0..693a12689 100644 --- a/tests/Denmark/ConstitutionDayTest.php +++ b/tests/Denmark/ConstitutionDayTest.php @@ -25,12 +25,12 @@ class ConstitutionDayTest extends DenmarkBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'constitutionDay'; + public const HOLIDAY = 'constitutionDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1849; + public const ESTABLISHMENT_YEAR = 1849; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Denmark/DenmarkBaseTestCase.php b/tests/Denmark/DenmarkBaseTestCase.php index 6cb32f869..ee4959fd7 100644 --- a/tests/Denmark/DenmarkBaseTestCase.php +++ b/tests/Denmark/DenmarkBaseTestCase.php @@ -25,15 +25,15 @@ abstract class DenmarkBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Denmark'; + public const REGION = 'Denmark'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Copenhagen'; + public const TIMEZONE = 'Europe/Copenhagen'; /** * Locale that is considered common for this provider */ - const LOCALE = 'da_DK'; + public const LOCALE = 'da_DK'; } diff --git a/tests/Denmark/EasterMondayTest.php b/tests/Denmark/EasterMondayTest.php index f75f06579..2e1e1fc8c 100644 --- a/tests/Denmark/EasterMondayTest.php +++ b/tests/Denmark/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends DenmarkBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/EasterTest.php b/tests/Denmark/EasterTest.php index 066820ac1..71d9a9583 100644 --- a/tests/Denmark/EasterTest.php +++ b/tests/Denmark/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends DenmarkBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/GoodFridayTest.php b/tests/Denmark/GoodFridayTest.php index e4a2ea66f..e619b81e5 100644 --- a/tests/Denmark/GoodFridayTest.php +++ b/tests/Denmark/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends DenmarkBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/GreatPrayerDayTest.php b/tests/Denmark/GreatPrayerDayTest.php index 602d9c178..403f067bb 100644 --- a/tests/Denmark/GreatPrayerDayTest.php +++ b/tests/Denmark/GreatPrayerDayTest.php @@ -25,12 +25,12 @@ class GreatPrayerDayTest extends DenmarkBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'greatPrayerDay'; + public const HOLIDAY = 'greatPrayerDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1686; + public const ESTABLISHMENT_YEAR = 1686; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Denmark/InternationalWorkersDayTest.php b/tests/Denmark/InternationalWorkersDayTest.php index 72cf644e1..21599834d 100644 --- a/tests/Denmark/InternationalWorkersDayTest.php +++ b/tests/Denmark/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends DenmarkBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Denmark/MaundyThursdayTest.php b/tests/Denmark/MaundyThursdayTest.php index d04ee44a6..f35000e80 100644 --- a/tests/Denmark/MaundyThursdayTest.php +++ b/tests/Denmark/MaundyThursdayTest.php @@ -25,7 +25,7 @@ class MaundyThursdayTest extends DenmarkBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'maundyThursday'; + public const HOLIDAY = 'maundyThursday'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/NewYearsDayTest.php b/tests/Denmark/NewYearsDayTest.php index 00672a47c..fbad872ec 100644 --- a/tests/Denmark/NewYearsDayTest.php +++ b/tests/Denmark/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends DenmarkBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/NewYearsEveTest.php b/tests/Denmark/NewYearsEveTest.php index 5199ca172..7b518da2d 100644 --- a/tests/Denmark/NewYearsEveTest.php +++ b/tests/Denmark/NewYearsEveTest.php @@ -24,7 +24,7 @@ class NewYearsEveTest extends DenmarkBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsEve'; + public const HOLIDAY = 'newYearsEve'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/PentecostMondayTest.php b/tests/Denmark/PentecostMondayTest.php index 217d54656..c1b6f857f 100644 --- a/tests/Denmark/PentecostMondayTest.php +++ b/tests/Denmark/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends DenmarkBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/PentecostTest.php b/tests/Denmark/PentecostTest.php index aca5a5aa2..5bf5f8e0b 100644 --- a/tests/Denmark/PentecostTest.php +++ b/tests/Denmark/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends DenmarkBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/SecondChristmasDayTest.php b/tests/Denmark/SecondChristmasDayTest.php index c1f0e5a66..3cbd709c7 100644 --- a/tests/Denmark/SecondChristmasDayTest.php +++ b/tests/Denmark/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends DenmarkBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php index 23f6c9124..d9d5df2a5 100644 --- a/tests/Denmark/SummerTimeTest.php +++ b/tests/Denmark/SummerTimeTest.php @@ -25,7 +25,7 @@ class SummerTimeTest extends DenmarkBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'summerTime'; + public const HOLIDAY = 'summerTime'; /** * Tests the holiday defined in this test. diff --git a/tests/Denmark/WinterTimeTest.php b/tests/Denmark/WinterTimeTest.php index 9b27fb81d..6f103cea3 100644 --- a/tests/Denmark/WinterTimeTest.php +++ b/tests/Denmark/WinterTimeTest.php @@ -25,7 +25,7 @@ class WinterTimeTest extends DenmarkBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'winterTime'; + public const HOLIDAY = 'winterTime'; /** * Tests the holiday defined in this test. diff --git a/tests/Estonia/ChristmasDayTest.php b/tests/Estonia/ChristmasDayTest.php index bbb396bc0..46c26dad3 100644 --- a/tests/Estonia/ChristmasDayTest.php +++ b/tests/Estonia/ChristmasDayTest.php @@ -26,7 +26,7 @@ class ChristmasDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * @return array diff --git a/tests/Estonia/ChristmasEveDayTest.php b/tests/Estonia/ChristmasEveDayTest.php index 3f8ff65c4..9c5b550ad 100644 --- a/tests/Estonia/ChristmasEveDayTest.php +++ b/tests/Estonia/ChristmasEveDayTest.php @@ -26,7 +26,7 @@ class ChristmasEveDayTest extends EstoniaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** * @return array diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index 10e4fdb82..dbd124f2f 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -26,7 +26,7 @@ class EasterDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * @return array diff --git a/tests/Estonia/EstoniaBaseTestCase.php b/tests/Estonia/EstoniaBaseTestCase.php index 453ebd3c0..454a57d66 100644 --- a/tests/Estonia/EstoniaBaseTestCase.php +++ b/tests/Estonia/EstoniaBaseTestCase.php @@ -28,15 +28,15 @@ abstract class EstoniaBaseTestCase extends TestCase /** * Name of the country to be tested */ - const REGION = 'Estonia'; + public const REGION = 'Estonia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Tallinn'; + public const TIMEZONE = 'Europe/Tallinn'; /** * Locale that is considered common for this provider */ - const LOCALE = 'et_EE'; + public const LOCALE = 'et_EE'; } diff --git a/tests/Estonia/GoodFridayDayTest.php b/tests/Estonia/GoodFridayDayTest.php index 06b5d500d..b08517799 100644 --- a/tests/Estonia/GoodFridayDayTest.php +++ b/tests/Estonia/GoodFridayDayTest.php @@ -26,7 +26,7 @@ class GoodFridayDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * @return array diff --git a/tests/Estonia/IndependenceDayTest.php b/tests/Estonia/IndependenceDayTest.php index 003a9928d..43fdd4a7a 100644 --- a/tests/Estonia/IndependenceDayTest.php +++ b/tests/Estonia/IndependenceDayTest.php @@ -27,7 +27,7 @@ class IndependenceDayTest extends EstoniaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * Test if holiday is not defined before diff --git a/tests/Estonia/InternationalWorkersDayTest.php b/tests/Estonia/InternationalWorkersDayTest.php index 2b23a1976..3b59db730 100644 --- a/tests/Estonia/InternationalWorkersDayTest.php +++ b/tests/Estonia/InternationalWorkersDayTest.php @@ -26,7 +26,7 @@ class InternationalWorkersDayTest extends EstoniaBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * @return array diff --git a/tests/Estonia/NewYearsDayTest.php b/tests/Estonia/NewYearsDayTest.php index 9ca4072dc..e12c835aa 100644 --- a/tests/Estonia/NewYearsDayTest.php +++ b/tests/Estonia/NewYearsDayTest.php @@ -26,7 +26,7 @@ class NewYearsDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * @return array diff --git a/tests/Estonia/PentecostTest.php b/tests/Estonia/PentecostTest.php index 515697936..7b8bd2d06 100644 --- a/tests/Estonia/PentecostTest.php +++ b/tests/Estonia/PentecostTest.php @@ -26,7 +26,7 @@ class PentecostTest extends EstoniaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * @return array diff --git a/tests/Estonia/RestorationOfIndependenceDayTest.php b/tests/Estonia/RestorationOfIndependenceDayTest.php index 865e55ff9..7ef04471d 100644 --- a/tests/Estonia/RestorationOfIndependenceDayTest.php +++ b/tests/Estonia/RestorationOfIndependenceDayTest.php @@ -27,7 +27,7 @@ class RestorationOfIndependenceDayTest extends EstoniaBaseTestCase implements Ya /** * The name of the holiday to be tested */ - const HOLIDAY = 'restorationOfIndependenceDay'; + public const HOLIDAY = 'restorationOfIndependenceDay'; /** * Test if holiday is not defined before diff --git a/tests/Estonia/SecondChristmasDayTest.php b/tests/Estonia/SecondChristmasDayTest.php index 817c14ac1..fa4227178 100644 --- a/tests/Estonia/SecondChristmasDayTest.php +++ b/tests/Estonia/SecondChristmasDayTest.php @@ -26,7 +26,7 @@ class SecondChristmasDayTest extends EstoniaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * @return array diff --git a/tests/Estonia/StJohnsDayTest.php b/tests/Estonia/StJohnsDayTest.php index 948fded65..5e8834f4f 100644 --- a/tests/Estonia/StJohnsDayTest.php +++ b/tests/Estonia/StJohnsDayTest.php @@ -26,7 +26,7 @@ class StJohnsDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJohnsDay'; + public const HOLIDAY = 'stJohnsDay'; /** * @return array diff --git a/tests/Estonia/VictoryDayTest.php b/tests/Estonia/VictoryDayTest.php index 5ef152431..5d62ef70d 100644 --- a/tests/Estonia/VictoryDayTest.php +++ b/tests/Estonia/VictoryDayTest.php @@ -27,7 +27,7 @@ class VictoryDayTest extends EstoniaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'victoryDay'; + public const HOLIDAY = 'victoryDay'; /** * Test if holiday is not defined before diff --git a/tests/Finland/AllSaintsDayTest.php b/tests/Finland/AllSaintsDayTest.php index 6ae64cd71..002a7e21d 100644 --- a/tests/Finland/AllSaintsDayTest.php +++ b/tests/Finland/AllSaintsDayTest.php @@ -26,7 +26,7 @@ class AllSaintsDayTest extends FinlandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/AscensionDayTest.php b/tests/Finland/AscensionDayTest.php index 69200decf..b3d9f5bc9 100644 --- a/tests/Finland/AscensionDayTest.php +++ b/tests/Finland/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends FinlandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/ChristmasDayTest.php b/tests/Finland/ChristmasDayTest.php index 03d914abd..e3ffbf857 100644 --- a/tests/Finland/ChristmasDayTest.php +++ b/tests/Finland/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends FinlandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/EasterMondayTest.php b/tests/Finland/EasterMondayTest.php index 9d36da287..1444ae862 100644 --- a/tests/Finland/EasterMondayTest.php +++ b/tests/Finland/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends FinlandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/EasterTest.php b/tests/Finland/EasterTest.php index a1fc29b72..e2d1b8c22 100644 --- a/tests/Finland/EasterTest.php +++ b/tests/Finland/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends FinlandBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/EpiphanyTest.php b/tests/Finland/EpiphanyTest.php index 42068c417..92705a62b 100644 --- a/tests/Finland/EpiphanyTest.php +++ b/tests/Finland/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends FinlandBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/FinlandBaseTestCase.php b/tests/Finland/FinlandBaseTestCase.php index dcac8aab5..92670eb79 100644 --- a/tests/Finland/FinlandBaseTestCase.php +++ b/tests/Finland/FinlandBaseTestCase.php @@ -25,15 +25,15 @@ abstract class FinlandBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Finland'; + public const REGION = 'Finland'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Helsinki'; + public const TIMEZONE = 'Europe/Helsinki'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fi_FI'; + public const LOCALE = 'fi_FI'; } diff --git a/tests/Finland/GoodFridayTest.php b/tests/Finland/GoodFridayTest.php index 8e3b705cc..e096ee17b 100644 --- a/tests/Finland/GoodFridayTest.php +++ b/tests/Finland/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends FinlandBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/IndependenceDayTest.php b/tests/Finland/IndependenceDayTest.php index 3ff01f80e..65634f766 100644 --- a/tests/Finland/IndependenceDayTest.php +++ b/tests/Finland/IndependenceDayTest.php @@ -25,12 +25,12 @@ class IndependenceDayTest extends FinlandBaseTestCase implements YasumiTestCaseI /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1917; + public const ESTABLISHMENT_YEAR = 1917; /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Finland/InternationalWorkersDayTest.php b/tests/Finland/InternationalWorkersDayTest.php index ca7976741..072f69812 100644 --- a/tests/Finland/InternationalWorkersDayTest.php +++ b/tests/Finland/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends FinlandBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/NewYearsDayTest.php b/tests/Finland/NewYearsDayTest.php index f2f7dd67e..84597a13a 100644 --- a/tests/Finland/NewYearsDayTest.php +++ b/tests/Finland/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends FinlandBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/PentecostTest.php b/tests/Finland/PentecostTest.php index 15744e5ee..0fc218934 100644 --- a/tests/Finland/PentecostTest.php +++ b/tests/Finland/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends FinlandBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/SecondChristmasDayTest.php b/tests/Finland/SecondChristmasDayTest.php index 20f00b434..5e650d3dc 100644 --- a/tests/Finland/SecondChristmasDayTest.php +++ b/tests/Finland/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends FinlandBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Finland/stJohnsDayTest.php b/tests/Finland/stJohnsDayTest.php index 5f35708da..4f1be3ce8 100644 --- a/tests/Finland/stJohnsDayTest.php +++ b/tests/Finland/stJohnsDayTest.php @@ -30,12 +30,12 @@ class stJohnsDayTest extends FinlandBaseTestCase implements YasumiTestCaseInterf /** * The year in which the holiday was adjusted */ - const ADJUSTMENT_YEAR = 1955; + public const ADJUSTMENT_YEAR = 1955; /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJohnsDay'; + public const HOLIDAY = 'stJohnsDay'; /** * Tests the holiday before it was adjusted. diff --git a/tests/France/AllSaintsDayTest.php b/tests/France/AllSaintsDayTest.php index e49b82801..10f86c139 100644 --- a/tests/France/AllSaintsDayTest.php +++ b/tests/France/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/France/ArmisticeDayTest.php b/tests/France/ArmisticeDayTest.php index 9422cfa7e..27c060ad2 100644 --- a/tests/France/ArmisticeDayTest.php +++ b/tests/France/ArmisticeDayTest.php @@ -25,12 +25,12 @@ class ArmisticeDayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'armisticeDay'; + public const HOLIDAY = 'armisticeDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1919; + public const ESTABLISHMENT_YEAR = 1919; /** * Tests Armistice Day on or after 1919. diff --git a/tests/France/AscensionDayTest.php b/tests/France/AscensionDayTest.php index e06e4cb81..946e5e11d 100644 --- a/tests/France/AscensionDayTest.php +++ b/tests/France/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/France/AssumptionOfMaryTest.php b/tests/France/AssumptionOfMaryTest.php index 712985b84..b124fb280 100644 --- a/tests/France/AssumptionOfMaryTest.php +++ b/tests/France/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends FranceBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/France/BasRhin/BasRhinBaseTestCase.php b/tests/France/BasRhin/BasRhinBaseTestCase.php index cfae88e66..0a5d29c39 100644 --- a/tests/France/BasRhin/BasRhinBaseTestCase.php +++ b/tests/France/BasRhin/BasRhinBaseTestCase.php @@ -25,15 +25,15 @@ abstract class BasRhinBaseTestCase extends FranceBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'France/BasRhin'; + public const REGION = 'France/BasRhin'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Paris'; + public const TIMEZONE = 'Europe/Paris'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_FR'; + public const LOCALE = 'fr_FR'; } diff --git a/tests/France/BasRhin/GoodFridayTest.php b/tests/France/BasRhin/GoodFridayTest.php index 8ab9404ce..2705547c0 100644 --- a/tests/France/BasRhin/GoodFridayTest.php +++ b/tests/France/BasRhin/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends BasRhinBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/France/BasRhin/stStephensDayTest.php b/tests/France/BasRhin/stStephensDayTest.php index 614d4c475..69b009b0f 100644 --- a/tests/France/BasRhin/stStephensDayTest.php +++ b/tests/France/BasRhin/stStephensDayTest.php @@ -24,7 +24,7 @@ class stStephensDayTest extends BasRhinBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/France/BastilleDayTest.php b/tests/France/BastilleDayTest.php index d19fd90c7..fb49e4da3 100644 --- a/tests/France/BastilleDayTest.php +++ b/tests/France/BastilleDayTest.php @@ -25,12 +25,12 @@ class BastilleDayTest extends FranceBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'bastilleDay'; + public const HOLIDAY = 'bastilleDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1790; + public const ESTABLISHMENT_YEAR = 1790; /** * Tests Bastille Day on or after 1790. diff --git a/tests/France/ChristmasDayTest.php b/tests/France/ChristmasDayTest.php index baa2d578a..81cd72fe0 100644 --- a/tests/France/ChristmasDayTest.php +++ b/tests/France/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/France/EasterMondayTest.php b/tests/France/EasterMondayTest.php index 175690e02..91804dc6d 100644 --- a/tests/France/EasterMondayTest.php +++ b/tests/France/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends FranceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/France/FranceBaseTestCase.php b/tests/France/FranceBaseTestCase.php index d97d81a06..7388c319f 100644 --- a/tests/France/FranceBaseTestCase.php +++ b/tests/France/FranceBaseTestCase.php @@ -25,15 +25,15 @@ abstract class FranceBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'France'; + public const REGION = 'France'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Paris'; + public const TIMEZONE = 'Europe/Paris'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_FR'; + public const LOCALE = 'fr_FR'; } diff --git a/tests/France/HautRhin/GoodFridayTest.php b/tests/France/HautRhin/GoodFridayTest.php index 04111ad53..a49d51d77 100644 --- a/tests/France/HautRhin/GoodFridayTest.php +++ b/tests/France/HautRhin/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends HautRhinBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/France/HautRhin/HautRhinBaseTestCase.php b/tests/France/HautRhin/HautRhinBaseTestCase.php index cab14849f..cc4a51c32 100644 --- a/tests/France/HautRhin/HautRhinBaseTestCase.php +++ b/tests/France/HautRhin/HautRhinBaseTestCase.php @@ -25,15 +25,15 @@ abstract class HautRhinBaseTestCase extends FranceBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'France/HautRhin'; + public const REGION = 'France/HautRhin'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Paris'; + public const TIMEZONE = 'Europe/Paris'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_FR'; + public const LOCALE = 'fr_FR'; } diff --git a/tests/France/HautRhin/stStephensDayTest.php b/tests/France/HautRhin/stStephensDayTest.php index c2a1d8761..a9f1e345a 100644 --- a/tests/France/HautRhin/stStephensDayTest.php +++ b/tests/France/HautRhin/stStephensDayTest.php @@ -24,7 +24,7 @@ class stStephensDayTest extends HautRhinBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/France/InternationalWorkersDayTest.php b/tests/France/InternationalWorkersDayTest.php index 6d6e8eacf..97a1db15a 100644 --- a/tests/France/InternationalWorkersDayTest.php +++ b/tests/France/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends FranceBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/France/Moselle/GoodFridayTest.php b/tests/France/Moselle/GoodFridayTest.php index 7496beb69..dc915951a 100644 --- a/tests/France/Moselle/GoodFridayTest.php +++ b/tests/France/Moselle/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends MoselleBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/France/Moselle/MoselleBaseTestCase.php b/tests/France/Moselle/MoselleBaseTestCase.php index a7f213ba9..83c731a03 100644 --- a/tests/France/Moselle/MoselleBaseTestCase.php +++ b/tests/France/Moselle/MoselleBaseTestCase.php @@ -25,15 +25,15 @@ abstract class MoselleBaseTestCase extends FranceBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'France/Moselle'; + public const REGION = 'France/Moselle'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Paris'; + public const TIMEZONE = 'Europe/Paris'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_FR'; + public const LOCALE = 'fr_FR'; } diff --git a/tests/France/Moselle/stStephensDayTest.php b/tests/France/Moselle/stStephensDayTest.php index 203b25760..3609fe169 100644 --- a/tests/France/Moselle/stStephensDayTest.php +++ b/tests/France/Moselle/stStephensDayTest.php @@ -24,7 +24,7 @@ class stStephensDayTest extends MoselleBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/France/NewYearsDayTest.php b/tests/France/NewYearsDayTest.php index 058bff983..5a745b790 100644 --- a/tests/France/NewYearsDayTest.php +++ b/tests/France/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends FranceBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/France/PentecostMondayTest.php b/tests/France/PentecostMondayTest.php index 39b7e0e37..b9c9b1272 100644 --- a/tests/France/PentecostMondayTest.php +++ b/tests/France/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends FranceBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/France/VictoryInEuropeDayTest.php b/tests/France/VictoryInEuropeDayTest.php index d07dd3cb9..239e5b60a 100644 --- a/tests/France/VictoryInEuropeDayTest.php +++ b/tests/France/VictoryInEuropeDayTest.php @@ -25,12 +25,12 @@ class VictoryInEuropeDayTest extends FranceBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'victoryInEuropeDay'; + public const HOLIDAY = 'victoryInEuropeDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1945; + public const ESTABLISHMENT_YEAR = 1945; /** * Tests Victory In Europe Day on or after 1945. diff --git a/tests/Germany/AscensionDayTest.php b/tests/Germany/AscensionDayTest.php index 0729f15a0..1212848d8 100644 --- a/tests/Germany/AscensionDayTest.php +++ b/tests/Germany/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends GermanyBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php index ddb7b4de0..22a72f757 100644 --- a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php +++ b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends BadenWurttembergBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php b/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php index b2d138b4d..1ecef8e05 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BadenWurttembergBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/BadenWurttemberg'; + public const REGION = 'Germany/BadenWurttemberg'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php index dff344421..5fcf33d1e 100644 --- a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php +++ b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends BadenWurttembergBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Germany/BadenWurttemberg/EpiphanyTest.php b/tests/Germany/BadenWurttemberg/EpiphanyTest.php index 0e7e7227c..df812d4c4 100644 --- a/tests/Germany/BadenWurttemberg/EpiphanyTest.php +++ b/tests/Germany/BadenWurttemberg/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends BadenWurttembergBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Bavaria/AllSaintsDayTest.php b/tests/Germany/Bavaria/AllSaintsDayTest.php index 4f34684d1..dc6325932 100644 --- a/tests/Germany/Bavaria/AllSaintsDayTest.php +++ b/tests/Germany/Bavaria/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends BavariaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Bavaria/BavariaBaseTestCase.php b/tests/Germany/Bavaria/BavariaBaseTestCase.php index 9b8f90b3c..6be212e4c 100644 --- a/tests/Germany/Bavaria/BavariaBaseTestCase.php +++ b/tests/Germany/Bavaria/BavariaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BavariaBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Bavaria'; + public const REGION = 'Germany/Bavaria'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Bavaria/CorpusChristiTest.php b/tests/Germany/Bavaria/CorpusChristiTest.php index 90929ee16..687ca65d0 100644 --- a/tests/Germany/Bavaria/CorpusChristiTest.php +++ b/tests/Germany/Bavaria/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends BavariaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Germany/Bavaria/EpiphanyTest.php b/tests/Germany/Bavaria/EpiphanyTest.php index e9d1b14d1..f7a55c4ea 100644 --- a/tests/Germany/Bavaria/EpiphanyTest.php +++ b/tests/Germany/Bavaria/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends BavariaBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** diff --git a/tests/Germany/Berlin/BerlinBaseTestCase.php b/tests/Germany/Berlin/BerlinBaseTestCase.php index 83e35560d..74c71edbd 100644 --- a/tests/Germany/Berlin/BerlinBaseTestCase.php +++ b/tests/Germany/Berlin/BerlinBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BerlinBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Berlin'; + public const REGION = 'Germany/Berlin'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php b/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php index 5df1a1d46..d45926843 100644 --- a/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php +++ b/tests/Germany/Brandenburg/BrandenburgBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BrandenburgBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Brandenburg'; + public const REGION = 'Germany/Brandenburg'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Brandenburg/ReformationDayTest.php b/tests/Germany/Brandenburg/ReformationDayTest.php index a946c8b4c..79d88252d 100644 --- a/tests/Germany/Brandenburg/ReformationDayTest.php +++ b/tests/Germany/Brandenburg/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends BrandenburgBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1517; + public const ESTABLISHMENT_YEAR = 1517; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Bremen/BremenBaseTestCase.php b/tests/Germany/Bremen/BremenBaseTestCase.php index abb6b6527..fac3179fa 100644 --- a/tests/Germany/Bremen/BremenBaseTestCase.php +++ b/tests/Germany/Bremen/BremenBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BremenBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Bremen'; + public const REGION = 'Germany/Bremen'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Bremen/ReformationDayTest.php b/tests/Germany/Bremen/ReformationDayTest.php index 6ccf1620d..d438df914 100644 --- a/tests/Germany/Bremen/ReformationDayTest.php +++ b/tests/Germany/Bremen/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends BremenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2018; + public const ESTABLISHMENT_YEAR = 2018; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/ChristmasTest.php b/tests/Germany/ChristmasTest.php index 5692fcf27..a970bf085 100644 --- a/tests/Germany/ChristmasTest.php +++ b/tests/Germany/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends GermanyBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Germany/EasterMondayTest.php b/tests/Germany/EasterMondayTest.php index 13533668d..25d9d7537 100644 --- a/tests/Germany/EasterMondayTest.php +++ b/tests/Germany/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends GermanyBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/GermanUnityDayTest.php b/tests/Germany/GermanUnityDayTest.php index 3b85cb0df..816627b46 100644 --- a/tests/Germany/GermanUnityDayTest.php +++ b/tests/Germany/GermanUnityDayTest.php @@ -25,12 +25,12 @@ class GermanUnityDayTest extends GermanyBaseTestCase implements YasumiTestCaseIn /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1990; + public const ESTABLISHMENT_YEAR = 1990; /** * The name of the holiday */ - const HOLIDAY = 'germanUnityDay'; + public const HOLIDAY = 'germanUnityDay'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Germany/GermanyBaseTestCase.php b/tests/Germany/GermanyBaseTestCase.php index 667be2289..f4ca1c67d 100644 --- a/tests/Germany/GermanyBaseTestCase.php +++ b/tests/Germany/GermanyBaseTestCase.php @@ -25,20 +25,20 @@ abstract class GermanyBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany'; + public const REGION = 'Germany'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_DE'; + public const LOCALE = 'de_DE'; /** * Number of iterations to be used for the various unit tests of this provider */ - const TEST_ITERATIONS = 50; + public const TEST_ITERATIONS = 50; } diff --git a/tests/Germany/GoodFridayTest.php b/tests/Germany/GoodFridayTest.php index e1a75b14b..5f9009d64 100644 --- a/tests/Germany/GoodFridayTest.php +++ b/tests/Germany/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends GermanyBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests Good Friday. diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index 9dc4dda74..5cbacb4fe 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -25,12 +25,12 @@ class DayOfReformationTest extends HamburgBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'dayOfReformation'; + public const HOLIDAY = 'dayOfReformation'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2018; + public const ESTABLISHMENT_YEAR = 2018; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Hamburg/HamburgBaseTestCase.php b/tests/Germany/Hamburg/HamburgBaseTestCase.php index 3e6d05c8c..9277a38aa 100644 --- a/tests/Germany/Hamburg/HamburgBaseTestCase.php +++ b/tests/Germany/Hamburg/HamburgBaseTestCase.php @@ -25,10 +25,10 @@ abstract class HamburgBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Hamburg'; + public const REGION = 'Germany/Hamburg'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Hesse/CorpusChristiTest.php b/tests/Germany/Hesse/CorpusChristiTest.php index bdb055cd8..785fe605a 100644 --- a/tests/Germany/Hesse/CorpusChristiTest.php +++ b/tests/Germany/Hesse/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends HesseBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Germany/Hesse/HesseBaseTestCase.php b/tests/Germany/Hesse/HesseBaseTestCase.php index db7ed9407..370fc7195 100644 --- a/tests/Germany/Hesse/HesseBaseTestCase.php +++ b/tests/Germany/Hesse/HesseBaseTestCase.php @@ -25,10 +25,10 @@ abstract class HesseBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Hesse'; + public const REGION = 'Germany/Hesse'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/InternationalWorkersDayTest.php b/tests/Germany/InternationalWorkersDayTest.php index dc1e2f499..2758b7288 100644 --- a/tests/Germany/InternationalWorkersDayTest.php +++ b/tests/Germany/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends GermanyBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php b/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php index 6035a5b1e..52914be26 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyBaseTestCase.php @@ -25,10 +25,10 @@ abstract class LowerSaxonyBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/LowerSaxony'; + public const REGION = 'Germany/LowerSaxony'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/LowerSaxony/ReformationDayTest.php b/tests/Germany/LowerSaxony/ReformationDayTest.php index 28ff0d2ae..08116dad2 100644 --- a/tests/Germany/LowerSaxony/ReformationDayTest.php +++ b/tests/Germany/LowerSaxony/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends LowerSaxonyBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2018; + public const ESTABLISHMENT_YEAR = 2018; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php index 6ca8b95ed..fd3f42a59 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class MecklenburgWesternPomeraniaBaseTestCase extends GermanyBaseTestCa /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/MecklenburgWesternPomerania'; + public const REGION = 'Germany/MecklenburgWesternPomerania'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php index 1801b777f..b6802e5b7 100644 --- a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends MecklenburgWesternPomeraniaBaseTestCase impleme /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1517; + public const ESTABLISHMENT_YEAR = 1517; /** * Returns a list of random test dates used for assertion of the holiday defined in this test diff --git a/tests/Germany/NewYearsDayTest.php b/tests/Germany/NewYearsDayTest.php index 0ddbd68cb..6f4a9f7fa 100644 --- a/tests/Germany/NewYearsDayTest.php +++ b/tests/Germany/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends GermanyBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php index 5bee82012..21cfc04bd 100644 --- a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends NorthRhineWestphaliaBaseTestCase implements Yasum /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php index 7c17463ac..3976b61e3 100644 --- a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php +++ b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends NorthRhineWestphaliaBaseTestCase implements Yasu /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php index 7f6e9dd58..03442f811 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class NorthRhineWestphaliaBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/NorthRhineWestphalia'; + public const REGION = 'Germany/NorthRhineWestphalia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/PentecostMondayTest.php b/tests/Germany/PentecostMondayTest.php index 2404206d7..e861574c3 100644 --- a/tests/Germany/PentecostMondayTest.php +++ b/tests/Germany/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends GermanyBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/ReformationDay2017Test.php b/tests/Germany/ReformationDay2017Test.php index fe1ac2c75..46a9e5a29 100644 --- a/tests/Germany/ReformationDay2017Test.php +++ b/tests/Germany/ReformationDay2017Test.php @@ -25,12 +25,12 @@ class ReformationDay2017Test extends GermanyBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was established */ - const ESTABLISHMENT_YEAR = 2017; + public const ESTABLISHMENT_YEAR = 2017; /** * Test the holiday defined in this test upon establishment diff --git a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php index ee3bc3206..6a6a16751 100644 --- a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php +++ b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends RhinelandPalatinateBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php index d3d1a6717..bda903705 100644 --- a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php +++ b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends RhinelandPalatinateBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php index aff5a392d..9aa231be0 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateBaseTestCase.php @@ -25,10 +25,10 @@ abstract class RhinelandPalatinateBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/RhinelandPalatinate'; + public const REGION = 'Germany/RhinelandPalatinate'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Saarland/AllSaintsDayTest.php b/tests/Germany/Saarland/AllSaintsDayTest.php index bb0e54161..b80429999 100644 --- a/tests/Germany/Saarland/AllSaintsDayTest.php +++ b/tests/Germany/Saarland/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends SaarlandBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Saarland/AssumptionOfMaryTest.php b/tests/Germany/Saarland/AssumptionOfMaryTest.php index 167a3ae37..e7cb1c345 100644 --- a/tests/Germany/Saarland/AssumptionOfMaryTest.php +++ b/tests/Germany/Saarland/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends SaarlandBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Saarland/CorpusChristiTest.php b/tests/Germany/Saarland/CorpusChristiTest.php index 5f3e7c3e2..31fb393b4 100644 --- a/tests/Germany/Saarland/CorpusChristiTest.php +++ b/tests/Germany/Saarland/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends SaarlandBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Germany/Saarland/SaarlandBaseTestCase.php b/tests/Germany/Saarland/SaarlandBaseTestCase.php index 3cba439ed..c3e62361f 100644 --- a/tests/Germany/Saarland/SaarlandBaseTestCase.php +++ b/tests/Germany/Saarland/SaarlandBaseTestCase.php @@ -25,10 +25,10 @@ abstract class SaarlandBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Saarland'; + public const REGION = 'Germany/Saarland'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/Saxony/ReformationDayTest.php b/tests/Germany/Saxony/ReformationDayTest.php index d943e737b..a02995ca2 100644 --- a/tests/Germany/Saxony/ReformationDayTest.php +++ b/tests/Germany/Saxony/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends SaxonyBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1517; + public const ESTABLISHMENT_YEAR = 1517; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php index 6f77218d0..85375258b 100644 --- a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php +++ b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php @@ -30,12 +30,12 @@ class RepentanceAndPrayerDayTest extends SaxonyBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'repentanceAndPrayerDay'; + public const HOLIDAY = 'repentanceAndPrayerDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1995; + public const ESTABLISHMENT_YEAR = 1995; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Germany/Saxony/SaxonyBaseTestCase.php b/tests/Germany/Saxony/SaxonyBaseTestCase.php index 9f0d5d6dc..7bf7266bd 100644 --- a/tests/Germany/Saxony/SaxonyBaseTestCase.php +++ b/tests/Germany/Saxony/SaxonyBaseTestCase.php @@ -25,10 +25,10 @@ abstract class SaxonyBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Saxony'; + public const REGION = 'Germany/Saxony'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php index 8098983b3..7abdf4c88 100644 --- a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php +++ b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends SaxonyAnhaltBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** diff --git a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php index 6effb9c47..564aa40a8 100644 --- a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php +++ b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends SaxonyAnhaltBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1517; + public const ESTABLISHMENT_YEAR = 1517; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php index b1f35d4a9..ccf42d107 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltBaseTestCase.php @@ -25,10 +25,10 @@ abstract class SaxonyAnhaltBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/SaxonyAnhalt'; + public const REGION = 'Germany/SaxonyAnhalt'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/SchleswigHolstein/ReformationDayTest.php b/tests/Germany/SchleswigHolstein/ReformationDayTest.php index 6b50efeaa..5b492cf58 100644 --- a/tests/Germany/SchleswigHolstein/ReformationDayTest.php +++ b/tests/Germany/SchleswigHolstein/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends SchleswigHolsteinBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2018; + public const ESTABLISHMENT_YEAR = 2018; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php index 80ece2339..bd7e3c751 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinBaseTestCase.php @@ -25,10 +25,10 @@ abstract class SchleswigHolsteinBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/SchleswigHolstein'; + public const REGION = 'Germany/SchleswigHolstein'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Germany/SecondChristmasDayTest.php b/tests/Germany/SecondChristmasDayTest.php index 6c891c206..889aa64c8 100644 --- a/tests/Germany/SecondChristmasDayTest.php +++ b/tests/Germany/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends GermanyBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Thuringia/ReformationDayTest.php b/tests/Germany/Thuringia/ReformationDayTest.php index a982fa027..f0c369464 100644 --- a/tests/Germany/Thuringia/ReformationDayTest.php +++ b/tests/Germany/Thuringia/ReformationDayTest.php @@ -25,12 +25,12 @@ class ReformationDayTest extends ThuringiaBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'reformationDay'; + public const HOLIDAY = 'reformationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1517; + public const ESTABLISHMENT_YEAR = 1517; /** * Tests the holiday defined in this test. diff --git a/tests/Germany/Thuringia/ThuringiaBaseTestCase.php b/tests/Germany/Thuringia/ThuringiaBaseTestCase.php index 442c379f2..a892a877d 100644 --- a/tests/Germany/Thuringia/ThuringiaBaseTestCase.php +++ b/tests/Germany/Thuringia/ThuringiaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class ThuringiaBaseTestCase extends GermanyBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Germany/Thuringia'; + public const REGION = 'Germany/Thuringia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Berlin'; + public const TIMEZONE = 'Europe/Berlin'; } diff --git a/tests/Greece/AnnunciationTest.php b/tests/Greece/AnnunciationTest.php index 98eebc0bd..f454b6924 100644 --- a/tests/Greece/AnnunciationTest.php +++ b/tests/Greece/AnnunciationTest.php @@ -24,7 +24,7 @@ class AnnunciationTest extends GreeceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'annunciation'; + public const HOLIDAY = 'annunciation'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/AscensionDayTest.php b/tests/Greece/AscensionDayTest.php index 532c68355..704fcaa0e 100644 --- a/tests/Greece/AscensionDayTest.php +++ b/tests/Greece/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends GreeceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/AssumptionOfMaryTest.php b/tests/Greece/AssumptionOfMaryTest.php index 505a9122e..c4ca394cc 100644 --- a/tests/Greece/AssumptionOfMaryTest.php +++ b/tests/Greece/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends GreeceBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/ChristmasDayTest.php b/tests/Greece/ChristmasDayTest.php index 3cc8b1ce0..371dc35fa 100644 --- a/tests/Greece/ChristmasDayTest.php +++ b/tests/Greece/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends GreeceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/CleanMondayTest.php b/tests/Greece/CleanMondayTest.php index a14414d05..e8d3e998c 100644 --- a/tests/Greece/CleanMondayTest.php +++ b/tests/Greece/CleanMondayTest.php @@ -25,7 +25,7 @@ class CleanMondayTest extends GreeceBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'cleanMonday'; + public const HOLIDAY = 'cleanMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/EasterMondayTest.php b/tests/Greece/EasterMondayTest.php index 8d443689e..8eaa604e7 100644 --- a/tests/Greece/EasterMondayTest.php +++ b/tests/Greece/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends GreeceBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/EasterTest.php b/tests/Greece/EasterTest.php index b679b838a..9e1c61df0 100644 --- a/tests/Greece/EasterTest.php +++ b/tests/Greece/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends GreeceBaseTestCase implements YasumiTestCaseInterface /** * The name of the first holiday of Easter */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/EpiphanyTest.php b/tests/Greece/EpiphanyTest.php index 12aad19c7..771dcf95b 100644 --- a/tests/Greece/EpiphanyTest.php +++ b/tests/Greece/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends GreeceBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/GreeceBaseTestCase.php b/tests/Greece/GreeceBaseTestCase.php index b93d4b411..7b77a4807 100644 --- a/tests/Greece/GreeceBaseTestCase.php +++ b/tests/Greece/GreeceBaseTestCase.php @@ -25,15 +25,15 @@ abstract class GreeceBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Greece'; + public const REGION = 'Greece'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Athens'; + public const TIMEZONE = 'Europe/Athens'; /** * Locale that is considered common for this provider */ - const LOCALE = 'el_GR'; + public const LOCALE = 'el_GR'; } diff --git a/tests/Greece/IndepencenceDayTest.php b/tests/Greece/IndepencenceDayTest.php index ac8c5f2fe..3fb2290a0 100644 --- a/tests/Greece/IndepencenceDayTest.php +++ b/tests/Greece/IndepencenceDayTest.php @@ -25,12 +25,12 @@ class IndepencenceDayTest extends GreeceBaseTestCase implements YasumiTestCaseIn /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1821; + public const ESTABLISHMENT_YEAR = 1821; /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/InternationalWorkersDayTest.php b/tests/Greece/InternationalWorkersDayTest.php index 11c23a149..1337507c7 100644 --- a/tests/Greece/InternationalWorkersDayTest.php +++ b/tests/Greece/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends GreeceBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/NewYearsDayTest.php b/tests/Greece/NewYearsDayTest.php index 6933359cd..0ae851d65 100644 --- a/tests/Greece/NewYearsDayTest.php +++ b/tests/Greece/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends GreeceBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/OhiDayTest.php b/tests/Greece/OhiDayTest.php index c1198addc..30bd10524 100644 --- a/tests/Greece/OhiDayTest.php +++ b/tests/Greece/OhiDayTest.php @@ -25,12 +25,12 @@ class OhiDayTest extends GreeceBaseTestCase implements YasumiTestCaseInterface /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1940; + public const ESTABLISHMENT_YEAR = 1940; /** * The name of the holiday */ - const HOLIDAY = 'ohiDay'; + public const HOLIDAY = 'ohiDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/PentecostMondayTest.php b/tests/Greece/PentecostMondayTest.php index 6d1fc63c6..be6dd09da 100644 --- a/tests/Greece/PentecostMondayTest.php +++ b/tests/Greece/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends GreeceBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/PentecostTest.php b/tests/Greece/PentecostTest.php index 4cc535829..01fb44bd5 100644 --- a/tests/Greece/PentecostTest.php +++ b/tests/Greece/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends GreeceBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/PolytechnioTest.php b/tests/Greece/PolytechnioTest.php index 2a4020022..e7a03e487 100644 --- a/tests/Greece/PolytechnioTest.php +++ b/tests/Greece/PolytechnioTest.php @@ -25,12 +25,12 @@ class PolytechnioTest extends GreeceBaseTestCase implements YasumiTestCaseInterf /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1973; + public const ESTABLISHMENT_YEAR = 1973; /** * The name of the holiday */ - const HOLIDAY = 'polytechnio'; + public const HOLIDAY = 'polytechnio'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/ThreeHolyHierarchsTest.php b/tests/Greece/ThreeHolyHierarchsTest.php index 0bc72d273..780ee85ec 100644 --- a/tests/Greece/ThreeHolyHierarchsTest.php +++ b/tests/Greece/ThreeHolyHierarchsTest.php @@ -24,7 +24,7 @@ class ThreeHolyHierarchsTest extends GreeceBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'threeHolyHierarchs'; + public const HOLIDAY = 'threeHolyHierarchs'; /** * Tests the holiday defined in this test. diff --git a/tests/Greece/goodFridayTest.php b/tests/Greece/goodFridayTest.php index 1ad270be4..f7e0db5ba 100644 --- a/tests/Greece/goodFridayTest.php +++ b/tests/Greece/goodFridayTest.php @@ -25,7 +25,7 @@ class goodFridayTest extends GreeceBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/AllSaintsDayTest.php b/tests/Hungary/AllSaintsDayTest.php index 1674995d8..8dbf8d0c4 100644 --- a/tests/Hungary/AllSaintsDayTest.php +++ b/tests/Hungary/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends HungaryBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/ChristmasTest.php b/tests/Hungary/ChristmasTest.php index f95a4264b..aa85b38cb 100644 --- a/tests/Hungary/ChristmasTest.php +++ b/tests/Hungary/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends HungaryBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/EasterMondayTest.php b/tests/Hungary/EasterMondayTest.php index f21d2bc52..aaad5fd1f 100644 --- a/tests/Hungary/EasterMondayTest.php +++ b/tests/Hungary/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends HungaryBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/EasterTest.php b/tests/Hungary/EasterTest.php index 12b9f0355..ba74438bb 100644 --- a/tests/Hungary/EasterTest.php +++ b/tests/Hungary/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends HungaryBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/HungaryBaseTestCase.php b/tests/Hungary/HungaryBaseTestCase.php index a20d965f6..9076a709f 100644 --- a/tests/Hungary/HungaryBaseTestCase.php +++ b/tests/Hungary/HungaryBaseTestCase.php @@ -25,15 +25,15 @@ abstract class HungaryBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Hungary'; + public const REGION = 'Hungary'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Budapest'; + public const TIMEZONE = 'Europe/Budapest'; /** * Locale that is considered common for this provider */ - const LOCALE = 'hu_HU'; + public const LOCALE = 'hu_HU'; } diff --git a/tests/Hungary/InternationalWorkersDayTest.php b/tests/Hungary/InternationalWorkersDayTest.php index 4f5131dbc..e0b368418 100644 --- a/tests/Hungary/InternationalWorkersDayTest.php +++ b/tests/Hungary/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends HungaryBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/MemorialDay1848Test.php b/tests/Hungary/MemorialDay1848Test.php index 4aa8d8f55..0df623476 100644 --- a/tests/Hungary/MemorialDay1848Test.php +++ b/tests/Hungary/MemorialDay1848Test.php @@ -25,12 +25,12 @@ class MemorialDay1848Test extends HungaryBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'memorialDay1848'; + public const HOLIDAY = 'memorialDay1848'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1927; + public const ESTABLISHMENT_YEAR = 1927; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Hungary/MemorialDay1956Test.php b/tests/Hungary/MemorialDay1956Test.php index d3a92f6b2..e51f46326 100644 --- a/tests/Hungary/MemorialDay1956Test.php +++ b/tests/Hungary/MemorialDay1956Test.php @@ -25,12 +25,12 @@ class MemorialDay1956Test extends HungaryBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'memorialDay1956'; + public const HOLIDAY = 'memorialDay1956'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1991; + public const ESTABLISHMENT_YEAR = 1991; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Hungary/NewYearsDayTest.php b/tests/Hungary/NewYearsDayTest.php index fb3695784..41bba75fa 100644 --- a/tests/Hungary/NewYearsDayTest.php +++ b/tests/Hungary/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends HungaryBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/PentecostMondayTest.php b/tests/Hungary/PentecostMondayTest.php index 12229cca6..667b7c541 100644 --- a/tests/Hungary/PentecostMondayTest.php +++ b/tests/Hungary/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends HungaryBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/PentecostTest.php b/tests/Hungary/PentecostTest.php index 692520482..6342f6d45 100644 --- a/tests/Hungary/PentecostTest.php +++ b/tests/Hungary/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends HungaryBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/SecondChristmasDayTest.php b/tests/Hungary/SecondChristmasDayTest.php index 9dc7118dc..71db8267c 100644 --- a/tests/Hungary/SecondChristmasDayTest.php +++ b/tests/Hungary/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends HungaryBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Hungary/StateFoundationDayTest.php b/tests/Hungary/StateFoundationDayTest.php index eab8db48f..e8305aaf3 100644 --- a/tests/Hungary/StateFoundationDayTest.php +++ b/tests/Hungary/StateFoundationDayTest.php @@ -25,12 +25,12 @@ class StateFoundationDayTest extends HungaryBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'stateFoundation'; + public const HOLIDAY = 'stateFoundation'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1891; + public const ESTABLISHMENT_YEAR = 1891; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Ireland/AugustHolidayTest.php b/tests/Ireland/AugustHolidayTest.php index b3633ab47..3f6b33789 100644 --- a/tests/Ireland/AugustHolidayTest.php +++ b/tests/Ireland/AugustHolidayTest.php @@ -25,7 +25,7 @@ class AugustHolidayTest extends IrelandBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'augustHoliday'; + public const HOLIDAY = 'augustHoliday'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index a92f267d7..cdc41485c 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -25,7 +25,7 @@ class ChristmasDayTest extends IrelandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index 74ce759ad..1608b6a77 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -26,7 +26,7 @@ class EasterMondayTest extends IrelandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index cb44cec30..ee7b93e47 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends IrelandBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index d39f9f9a0..38625c811 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -26,7 +26,7 @@ class GoodFridayTest extends IrelandBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/IrelandBaseTestCase.php b/tests/Ireland/IrelandBaseTestCase.php index 9d9f6ea36..6aa00aac8 100644 --- a/tests/Ireland/IrelandBaseTestCase.php +++ b/tests/Ireland/IrelandBaseTestCase.php @@ -25,20 +25,20 @@ abstract class IrelandBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Ireland'; + public const REGION = 'Ireland'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Dublin'; + public const TIMEZONE = 'Europe/Dublin'; /** * Locale that is considered common for this provider */ - const LOCALE = 'en_IE'; + public const LOCALE = 'en_IE'; /** * Number of iterations to be used for the various unit test of this provider */ - const TEST_ITERATIONS = 50; + public const TEST_ITERATIONS = 50; } diff --git a/tests/Ireland/JuneHolidayTest.php b/tests/Ireland/JuneHolidayTest.php index de6a56f40..d1dcdc8da 100644 --- a/tests/Ireland/JuneHolidayTest.php +++ b/tests/Ireland/JuneHolidayTest.php @@ -25,12 +25,12 @@ class JuneHolidayTest extends IrelandBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'juneHoliday'; + public const HOLIDAY = 'juneHoliday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1974; + public const ESTABLISHMENT_YEAR = 1974; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/MayDayTest.php b/tests/Ireland/MayDayTest.php index dc3ce3d5c..238dd5fc8 100644 --- a/tests/Ireland/MayDayTest.php +++ b/tests/Ireland/MayDayTest.php @@ -25,12 +25,12 @@ class MayDayTest extends IrelandBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'mayDay'; + public const HOLIDAY = 'mayDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index 9c25fee10..047083a0e 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -25,12 +25,12 @@ class NewYearsDayTest extends IrelandBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1974; + public const ESTABLISHMENT_YEAR = 1974; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/OctoberHolidayTest.php b/tests/Ireland/OctoberHolidayTest.php index be5c75a9c..268f4db56 100644 --- a/tests/Ireland/OctoberHolidayTest.php +++ b/tests/Ireland/OctoberHolidayTest.php @@ -25,12 +25,12 @@ class OctoberHolidayTest extends IrelandBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'octoberHoliday'; + public const HOLIDAY = 'octoberHoliday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1977; + public const ESTABLISHMENT_YEAR = 1977; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index d5c3e2b07..e0e1decfb 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -26,7 +26,7 @@ class PentecostTest extends IrelandBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index f3e1b7bcb..a76425de8 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -25,12 +25,12 @@ class StPatricksDayTest extends IrelandBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'stPatricksDay'; + public const HOLIDAY = 'stPatricksDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1903; + public const ESTABLISHMENT_YEAR = 1903; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index 4de3da05b..fc834c4b9 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -25,7 +25,7 @@ class StStephensDayTest extends IrelandBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index b2914e4d7..817ce84ae 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -26,12 +26,12 @@ class pentecostMondayTest extends IrelandBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * The year in which the holiday was abolished */ - const ABOLISHMENT_YEAR = 1973; + public const ABOLISHMENT_YEAR = 1973; /** * Tests the holiday defined in this test. diff --git a/tests/Italy/AllSaintsDayTest.php b/tests/Italy/AllSaintsDayTest.php index c409494fe..540bdd725 100644 --- a/tests/Italy/AllSaintsDayTest.php +++ b/tests/Italy/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends ItalyBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Italy/AssumptionOfMaryTest.php b/tests/Italy/AssumptionOfMaryTest.php index d05c150cb..9b6011237 100644 --- a/tests/Italy/AssumptionOfMaryTest.php +++ b/tests/Italy/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends ItalyBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Italy/ChristmasTest.php b/tests/Italy/ChristmasTest.php index 061013e10..c5fa4ea79 100644 --- a/tests/Italy/ChristmasTest.php +++ b/tests/Italy/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends ItalyBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Italy/EasterMondayTest.php b/tests/Italy/EasterMondayTest.php index e2d4edd44..2fad60e75 100644 --- a/tests/Italy/EasterMondayTest.php +++ b/tests/Italy/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends ItalyBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Italy/EasterTest.php b/tests/Italy/EasterTest.php index 05466a2d9..68eabf3fb 100644 --- a/tests/Italy/EasterTest.php +++ b/tests/Italy/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends ItalyBaseTestCase implements YasumiTestCaseInterface /** * The name of the first holiday of Easter */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter. diff --git a/tests/Italy/EpiphanyTest.php b/tests/Italy/EpiphanyTest.php index b68bc7556..fe6c7cc07 100644 --- a/tests/Italy/EpiphanyTest.php +++ b/tests/Italy/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends ItalyBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests Epiphany. diff --git a/tests/Italy/ImmaculateConceptionTest.php b/tests/Italy/ImmaculateConceptionTest.php index 5d6211e69..20c48eb0d 100644 --- a/tests/Italy/ImmaculateConceptionTest.php +++ b/tests/Italy/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends ItalyBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the day of Immaculate Conception. diff --git a/tests/Italy/InternationalWorkersDayTest.php b/tests/Italy/InternationalWorkersDayTest.php index b3a7b9cac..2fb198bd1 100644 --- a/tests/Italy/InternationalWorkersDayTest.php +++ b/tests/Italy/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends ItalyBaseTestCase implements YasumiTes /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Italy/ItalyBaseTestCase.php b/tests/Italy/ItalyBaseTestCase.php index 08d860459..09c2485bf 100644 --- a/tests/Italy/ItalyBaseTestCase.php +++ b/tests/Italy/ItalyBaseTestCase.php @@ -25,15 +25,15 @@ abstract class ItalyBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Italy'; + public const REGION = 'Italy'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Rome'; + public const TIMEZONE = 'Europe/Rome'; /** * Locale that is considered common for this provider */ - const LOCALE = 'it_IT'; + public const LOCALE = 'it_IT'; } diff --git a/tests/Italy/LiberationDayTest.php b/tests/Italy/LiberationDayTest.php index 1d1b5be76..33328b998 100644 --- a/tests/Italy/LiberationDayTest.php +++ b/tests/Italy/LiberationDayTest.php @@ -32,12 +32,12 @@ class LiberationDayTest extends ItalyBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'liberationDay'; + public const HOLIDAY = 'liberationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1949; + public const ESTABLISHMENT_YEAR = 1949; /** * Tests Liberation Day on or after 1949. diff --git a/tests/Italy/NewYearsDayTest.php b/tests/Italy/NewYearsDayTest.php index b2f8d0855..cc09d206e 100644 --- a/tests/Italy/NewYearsDayTest.php +++ b/tests/Italy/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends ItalyBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Italy/RepublicDayTest.php b/tests/Italy/RepublicDayTest.php index a581a9189..aceec4962 100644 --- a/tests/Italy/RepublicDayTest.php +++ b/tests/Italy/RepublicDayTest.php @@ -32,12 +32,12 @@ class RepublicDayTest extends ItalyBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'republicDay'; + public const HOLIDAY = 'republicDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1946; + public const ESTABLISHMENT_YEAR = 1946; /** * Tests Republic Day on or after 1946. diff --git a/tests/Italy/stStephensDayTest.php b/tests/Italy/stStephensDayTest.php index 09a4af11b..9ae62e23c 100644 --- a/tests/Italy/stStephensDayTest.php +++ b/tests/Italy/stStephensDayTest.php @@ -24,7 +24,7 @@ class stStephensDayTest extends ItalyBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the day of St. Stephen's Day. diff --git a/tests/Japan/AutumnalEquinoxDayTest.php b/tests/Japan/AutumnalEquinoxDayTest.php index 607e20f3a..4b631b78e 100644 --- a/tests/Japan/AutumnalEquinoxDayTest.php +++ b/tests/Japan/AutumnalEquinoxDayTest.php @@ -25,12 +25,12 @@ class AutumnalEquinoxDayTest extends JapanBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'autumnalEquinoxDay'; + public const HOLIDAY = 'autumnalEquinoxDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Vernal Equinox Day after 2150. This national holiday was established in 1948 as a day on which to honor diff --git a/tests/Japan/ChildrensDayTest.php b/tests/Japan/ChildrensDayTest.php index d1479f901..5bc1880cb 100644 --- a/tests/Japan/ChildrensDayTest.php +++ b/tests/Japan/ChildrensDayTest.php @@ -25,12 +25,12 @@ class ChildrensDayTest extends JapanBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'childrensDay'; + public const HOLIDAY = 'childrensDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Children's Day after 1948. Children's Day was established after 1948 diff --git a/tests/Japan/ComingOfAgeDayTest.php b/tests/Japan/ComingOfAgeDayTest.php index f2eef3189..0bbe69914 100644 --- a/tests/Japan/ComingOfAgeDayTest.php +++ b/tests/Japan/ComingOfAgeDayTest.php @@ -25,12 +25,12 @@ class ComingOfAgeDayTest extends JapanBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'comingOfAgeDay'; + public const HOLIDAY = 'comingOfAgeDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Coming of Age Day after 2000. Coming of Age Day was established after 1948 on January 15th. After 2000 it diff --git a/tests/Japan/ConstitutionMemorialDayTest.php b/tests/Japan/ConstitutionMemorialDayTest.php index 91a48506e..549b7f981 100644 --- a/tests/Japan/ConstitutionMemorialDayTest.php +++ b/tests/Japan/ConstitutionMemorialDayTest.php @@ -25,12 +25,12 @@ class ConstitutionMemorialDayTest extends JapanBaseTestCase implements YasumiTes /** * The name of the holiday */ - const HOLIDAY = 'constitutionMemorialDay'; + public const HOLIDAY = 'constitutionMemorialDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Constitution Memorial Day after 1948. Constitution Memorial Day was established after 1948 diff --git a/tests/Japan/CultureDayTest.php b/tests/Japan/CultureDayTest.php index db82bde07..81809cd7d 100644 --- a/tests/Japan/CultureDayTest.php +++ b/tests/Japan/CultureDayTest.php @@ -25,12 +25,12 @@ class CultureDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'cultureDay'; + public const HOLIDAY = 'cultureDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Culture Day after 1948. Culture Day Day was established after 1948 diff --git a/tests/Japan/EmperorsBirthdayTest.php b/tests/Japan/EmperorsBirthdayTest.php index 2737aec0a..91b1e9d43 100644 --- a/tests/Japan/EmperorsBirthdayTest.php +++ b/tests/Japan/EmperorsBirthdayTest.php @@ -25,12 +25,12 @@ class EmperorsBirthdayTest extends JapanBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'emperorsBirthday'; + public const HOLIDAY = 'emperorsBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1989; + public const ESTABLISHMENT_YEAR = 1989; /** * Tests the Emperors Birthday after 1989. The Emperors Birthday is on December 23rd and celebrated as such since diff --git a/tests/Japan/GreeneryDayTest.php b/tests/Japan/GreeneryDayTest.php index ddbd59adb..a7587f3c3 100644 --- a/tests/Japan/GreeneryDayTest.php +++ b/tests/Japan/GreeneryDayTest.php @@ -25,12 +25,12 @@ class GreeneryDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday defined in the test */ - const HOLIDAY = 'greeneryDay'; + public const HOLIDAY = 'greeneryDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1989; + public const ESTABLISHMENT_YEAR = 1989; /** * Tests Greenery Day after 2007. Greenery Day was established from 1989 on April 29th. After 2007 diff --git a/tests/Japan/HealthAndSportsDayTest.php b/tests/Japan/HealthAndSportsDayTest.php index f1544ce96..af7649d6a 100644 --- a/tests/Japan/HealthAndSportsDayTest.php +++ b/tests/Japan/HealthAndSportsDayTest.php @@ -25,12 +25,12 @@ class HealthAndSportsDayTest extends JapanBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'healthandSportsDay'; + public const HOLIDAY = 'healthandSportsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1996; + public const ESTABLISHMENT_YEAR = 1996; /** * Tests Health And Sports Day in 2020. Health And Sports Day in 2020 is July 24th for the Olympic Games. diff --git a/tests/Japan/JapanBaseTestCase.php b/tests/Japan/JapanBaseTestCase.php index 0595a3157..88ccb825a 100644 --- a/tests/Japan/JapanBaseTestCase.php +++ b/tests/Japan/JapanBaseTestCase.php @@ -25,20 +25,20 @@ abstract class JapanBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Japan'; + public const REGION = 'Japan'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Asia/Tokyo'; + public const TIMEZONE = 'Asia/Tokyo'; /** * Prefix for short name used when holiday is substituted */ - const SUBSTITUTE_PREFIX = 'substituteHoliday:'; + public const SUBSTITUTE_PREFIX = 'substituteHoliday:'; /** * Locale that is considered common for this provider */ - const LOCALE = 'ja_JP'; + public const LOCALE = 'ja_JP'; } diff --git a/tests/Japan/LabourThanksgivingDayTest.php b/tests/Japan/LabourThanksgivingDayTest.php index 400f617fb..6d08144e8 100644 --- a/tests/Japan/LabourThanksgivingDayTest.php +++ b/tests/Japan/LabourThanksgivingDayTest.php @@ -25,12 +25,12 @@ class LabourThanksgivingDayTest extends JapanBaseTestCase implements YasumiTestC /** * The name of the holiday */ - const HOLIDAY = 'laborThanksgivingDay'; + public const HOLIDAY = 'laborThanksgivingDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Labor Thanksgiving Day after 1948. Labor Thanksgiving Day is held on November 23rd and established since diff --git a/tests/Japan/MarineDayTest.php b/tests/Japan/MarineDayTest.php index b17f5ca84..22cfc184c 100644 --- a/tests/Japan/MarineDayTest.php +++ b/tests/Japan/MarineDayTest.php @@ -25,12 +25,12 @@ class MarineDayTest extends JapanBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'marineDay'; + public const HOLIDAY = 'marineDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1996; + public const ESTABLISHMENT_YEAR = 1996; /** * Tests Marine Day in 2020. Marine Day in 2020 is July 23th for the Olympic Games. diff --git a/tests/Japan/MountainDayTest.php b/tests/Japan/MountainDayTest.php index b02d3c16c..54cdcf9bc 100644 --- a/tests/Japan/MountainDayTest.php +++ b/tests/Japan/MountainDayTest.php @@ -25,12 +25,12 @@ class MountainDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'mountainDay'; + public const HOLIDAY = 'mountainDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2016; + public const ESTABLISHMENT_YEAR = 2016; /** * Tests Mountain Day in 2020. Mountain Day in 2020 is August 10th for the Olympic Games. diff --git a/tests/Japan/NationalFoundationDayTest.php b/tests/Japan/NationalFoundationDayTest.php index 65fb23576..56313bbde 100644 --- a/tests/Japan/NationalFoundationDayTest.php +++ b/tests/Japan/NationalFoundationDayTest.php @@ -25,12 +25,12 @@ class NationalFoundationDayTest extends JapanBaseTestCase implements YasumiTestC /** * The name of the holiday */ - const HOLIDAY = 'nationalFoundationDay'; + public const HOLIDAY = 'nationalFoundationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1966; + public const ESTABLISHMENT_YEAR = 1966; /** * Tests National Foundation Day after 1966. National Foundation day was established after 1966 diff --git a/tests/Japan/NewYearsDayTest.php b/tests/Japan/NewYearsDayTest.php index 688fda4b6..aea8afc35 100644 --- a/tests/Japan/NewYearsDayTest.php +++ b/tests/Japan/NewYearsDayTest.php @@ -25,12 +25,12 @@ class NewYearsDayTest extends JapanBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests New Years Day after 1948. New Years Day was established after 1948 diff --git a/tests/Japan/PublicBridgeDayTest.php b/tests/Japan/PublicBridgeDayTest.php index 98f9533b0..71a97fb2d 100644 --- a/tests/Japan/PublicBridgeDayTest.php +++ b/tests/Japan/PublicBridgeDayTest.php @@ -25,7 +25,7 @@ class PublicBridgeDayTest extends JapanBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'bridgeDay'; + public const HOLIDAY = 'bridgeDay'; /** * @var number representing the calendar year to be tested against */ diff --git a/tests/Japan/RespectForTheAgedDayTest.php b/tests/Japan/RespectForTheAgedDayTest.php index f8aee57a3..b5cfba4e4 100644 --- a/tests/Japan/RespectForTheAgedDayTest.php +++ b/tests/Japan/RespectForTheAgedDayTest.php @@ -25,12 +25,12 @@ class RespectForTheAgedDayTest extends JapanBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'respectfortheAgedDay'; + public const HOLIDAY = 'respectfortheAgedDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1996; + public const ESTABLISHMENT_YEAR = 1996; /** * Tests Respect for the Aged Day after 2003. Respect for the Aged Day was established since 1996 on September diff --git a/tests/Japan/ShowaDayTest.php b/tests/Japan/ShowaDayTest.php index 551e1aa20..86967e1a6 100644 --- a/tests/Japan/ShowaDayTest.php +++ b/tests/Japan/ShowaDayTest.php @@ -25,12 +25,12 @@ class ShowaDayTest extends JapanBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday defined in the test */ - const HOLIDAY = 'showaDay'; + public const HOLIDAY = 'showaDay'; /** * The year in which the holiday defined in the test was first established */ - const ESTABLISHMENT_YEAR = 2007; + public const ESTABLISHMENT_YEAR = 2007; /** * Tests the holiday defined in the test on or after establishment. diff --git a/tests/Japan/VernalEquinoxDayTest.php b/tests/Japan/VernalEquinoxDayTest.php index 3646d2295..2fbbfc3eb 100644 --- a/tests/Japan/VernalEquinoxDayTest.php +++ b/tests/Japan/VernalEquinoxDayTest.php @@ -25,12 +25,12 @@ class VernalEquinoxDayTest extends JapanBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'vernalEquinoxDay'; + public const HOLIDAY = 'vernalEquinoxDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1948; + public const ESTABLISHMENT_YEAR = 1948; /** * Tests Vernal Equinox Day after 2150. This national holiday was established in 1948 as a day for the admiration diff --git a/tests/Latvia/ChristmasDayTest.php b/tests/Latvia/ChristmasDayTest.php index d910c5cfe..26fbf97cb 100644 --- a/tests/Latvia/ChristmasDayTest.php +++ b/tests/Latvia/ChristmasDayTest.php @@ -26,7 +26,7 @@ class ChristmasDayTest extends LatviaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * @return array diff --git a/tests/Latvia/ChristmasEveDayTest.php b/tests/Latvia/ChristmasEveDayTest.php index 97d608892..1d1c2a46a 100644 --- a/tests/Latvia/ChristmasEveDayTest.php +++ b/tests/Latvia/ChristmasEveDayTest.php @@ -26,7 +26,7 @@ class ChristmasEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** * @return array diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index 3de649b72..f8ecaceca 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -26,7 +26,7 @@ class EasterDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * @return array diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index eefb4fefc..7143d7cfe 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -26,7 +26,7 @@ class EasterMondayDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * @return array diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index a3516f33a..b9424056a 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -26,7 +26,7 @@ class GoodFridayDayTest extends LatviaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * @return array diff --git a/tests/Latvia/InternationalWorkersDayTest.php b/tests/Latvia/InternationalWorkersDayTest.php index a22541535..4c85b187b 100644 --- a/tests/Latvia/InternationalWorkersDayTest.php +++ b/tests/Latvia/InternationalWorkersDayTest.php @@ -26,7 +26,7 @@ class InternationalWorkersDayTest extends LatviaBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * @return array diff --git a/tests/Latvia/LatviaBaseTestCase.php b/tests/Latvia/LatviaBaseTestCase.php index 2360502d4..69b959567 100644 --- a/tests/Latvia/LatviaBaseTestCase.php +++ b/tests/Latvia/LatviaBaseTestCase.php @@ -28,15 +28,15 @@ abstract class LatviaBaseTestCase extends TestCase /** * Name of the country to be tested */ - const REGION = 'Latvia'; + public const REGION = 'Latvia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Riga'; + public const TIMEZONE = 'Europe/Riga'; /** * Locale that is considered common for this provider */ - const LOCALE = 'lv_LV'; + public const LOCALE = 'lv_LV'; } diff --git a/tests/Latvia/MidsummerEveDayTest.php b/tests/Latvia/MidsummerEveDayTest.php index 77e98a85a..4b35ee5c2 100644 --- a/tests/Latvia/MidsummerEveDayTest.php +++ b/tests/Latvia/MidsummerEveDayTest.php @@ -26,7 +26,7 @@ class MidsummerEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'midsummerEveDay'; + public const HOLIDAY = 'midsummerEveDay'; /** * @return array diff --git a/tests/Latvia/NewYearsDayTest.php b/tests/Latvia/NewYearsDayTest.php index f61d1190a..52ea1bd53 100644 --- a/tests/Latvia/NewYearsDayTest.php +++ b/tests/Latvia/NewYearsDayTest.php @@ -26,7 +26,7 @@ class NewYearsDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * @return array diff --git a/tests/Latvia/NewYearsEveDayTest.php b/tests/Latvia/NewYearsEveDayTest.php index 4103da3a6..5d1ba82a8 100644 --- a/tests/Latvia/NewYearsEveDayTest.php +++ b/tests/Latvia/NewYearsEveDayTest.php @@ -26,7 +26,7 @@ class NewYearsEveDayTest extends LatviaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsEve'; + public const HOLIDAY = 'newYearsEve'; /** * @return array diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index fd8487112..5d8b8a7e6 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -27,7 +27,7 @@ class ProclamationOfTheRepublicOfLatviaDayTest extends LatviaBaseTestCase implem /** * The name of the holiday to be tested */ - const HOLIDAY = 'proclamationOfTheRepublicOfLatviaDay'; + public const HOLIDAY = 'proclamationOfTheRepublicOfLatviaDay'; /** * Test if holiday is not defined before proclamation diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index 93f566136..908af1185 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -27,7 +27,7 @@ class RestorationOfIndependenceDayTest extends LatviaBaseTestCase implements Yas /** * The name of the holiday to be tested */ - const HOLIDAY = 'restorationOfIndependenceOfLatviaDay'; + public const HOLIDAY = 'restorationOfIndependenceOfLatviaDay'; /** * Test if holiday is not defined before restoration diff --git a/tests/Latvia/SecondChristmasDayTest.php b/tests/Latvia/SecondChristmasDayTest.php index d92abe576..dcb713ca2 100644 --- a/tests/Latvia/SecondChristmasDayTest.php +++ b/tests/Latvia/SecondChristmasDayTest.php @@ -26,7 +26,7 @@ class SecondChristmasDayTest extends LatviaBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * @return array diff --git a/tests/Latvia/StJohnsDayTest.php b/tests/Latvia/StJohnsDayTest.php index 38aac0a66..dd341cb41 100644 --- a/tests/Latvia/StJohnsDayTest.php +++ b/tests/Latvia/StJohnsDayTest.php @@ -26,7 +26,7 @@ class StJohnsDayTest extends LatviaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJohnsDay'; + public const HOLIDAY = 'stJohnsDay'; /** * @return array diff --git a/tests/Lithuania/AllSaintsDayTest.php b/tests/Lithuania/AllSaintsDayTest.php index 4cc9806fa..5325a73ca 100644 --- a/tests/Lithuania/AllSaintsDayTest.php +++ b/tests/Lithuania/AllSaintsDayTest.php @@ -26,7 +26,7 @@ class AllSaintsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * @return array diff --git a/tests/Lithuania/AssumptionOfMaryDayTest.php b/tests/Lithuania/AssumptionOfMaryDayTest.php index f878e0fc3..43b771639 100644 --- a/tests/Lithuania/AssumptionOfMaryDayTest.php +++ b/tests/Lithuania/AssumptionOfMaryDayTest.php @@ -26,7 +26,7 @@ class AssumptionOfMaryDayTest extends LithuaniaBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * @return array diff --git a/tests/Lithuania/ChristmasDayTest.php b/tests/Lithuania/ChristmasDayTest.php index 745d629b4..20e2de18a 100644 --- a/tests/Lithuania/ChristmasDayTest.php +++ b/tests/Lithuania/ChristmasDayTest.php @@ -26,7 +26,7 @@ class ChristmasDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * @return array diff --git a/tests/Lithuania/ChristmasEveDayTest.php b/tests/Lithuania/ChristmasEveDayTest.php index 3144c886a..9e2b4a104 100644 --- a/tests/Lithuania/ChristmasEveDayTest.php +++ b/tests/Lithuania/ChristmasEveDayTest.php @@ -26,7 +26,7 @@ class ChristmasEveDayTest extends LithuaniaBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** * @return array diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index 036b65041..8e47eb06f 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -26,7 +26,7 @@ class EasterDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * @return array diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index 4023c0214..7de0b3ea1 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -26,7 +26,7 @@ class EasterMondayDayTest extends LithuaniaBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * @return array diff --git a/tests/Lithuania/InternationalWorkersDayTest.php b/tests/Lithuania/InternationalWorkersDayTest.php index 08517de56..c42d3a8c9 100644 --- a/tests/Lithuania/InternationalWorkersDayTest.php +++ b/tests/Lithuania/InternationalWorkersDayTest.php @@ -26,7 +26,7 @@ class InternationalWorkersDayTest extends LithuaniaBaseTestCase implements Yasum /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * @return array diff --git a/tests/Lithuania/LithuaniaBaseTestCase.php b/tests/Lithuania/LithuaniaBaseTestCase.php index 58d233949..761dbc054 100644 --- a/tests/Lithuania/LithuaniaBaseTestCase.php +++ b/tests/Lithuania/LithuaniaBaseTestCase.php @@ -28,15 +28,15 @@ abstract class LithuaniaBaseTestCase extends TestCase /** * Name of the country to be tested */ - const REGION = 'Lithuania'; + public const REGION = 'Lithuania'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Vilnius'; + public const TIMEZONE = 'Europe/Vilnius'; /** * Locale that is considered common for this provider */ - const LOCALE = 'lt_LT'; + public const LOCALE = 'lt_LT'; } diff --git a/tests/Lithuania/NewYearsDayTest.php b/tests/Lithuania/NewYearsDayTest.php index 84971fbf9..a601efc29 100644 --- a/tests/Lithuania/NewYearsDayTest.php +++ b/tests/Lithuania/NewYearsDayTest.php @@ -26,7 +26,7 @@ class NewYearsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * @return array diff --git a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php index 9382ac167..62811c5d3 100644 --- a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php @@ -27,7 +27,7 @@ class RestorationOfIndependenceOfLithuaniaDayTest extends LithuaniaBaseTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'restorationOfIndependenceOfLithuaniaDay'; + public const HOLIDAY = 'restorationOfIndependenceOfLithuaniaDay'; /** * Test if holiday is not defined before restoration diff --git a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php index 23df22457..f3b707ab1 100644 --- a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php @@ -27,7 +27,7 @@ class RestorationOfTheStateOfLithuaniaDayTest extends LithuaniaBaseTestCase impl /** * The name of the holiday to be tested */ - const HOLIDAY = 'restorationOfTheStateOfLithuaniaDay'; + public const HOLIDAY = 'restorationOfTheStateOfLithuaniaDay'; /** * Test if holiday is not defined before restoration diff --git a/tests/Lithuania/SecondChristmasDayTest.php b/tests/Lithuania/SecondChristmasDayTest.php index 0cb8d2be6..2e599b35e 100644 --- a/tests/Lithuania/SecondChristmasDayTest.php +++ b/tests/Lithuania/SecondChristmasDayTest.php @@ -26,7 +26,7 @@ class SecondChristmasDayTest extends LithuaniaBaseTestCase implements YasumiTest /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * @return array diff --git a/tests/Lithuania/StJohnsDayTest.php b/tests/Lithuania/StJohnsDayTest.php index 81f1e8ac1..11320b1a4 100644 --- a/tests/Lithuania/StJohnsDayTest.php +++ b/tests/Lithuania/StJohnsDayTest.php @@ -26,7 +26,7 @@ class StJohnsDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJohnsDay'; + public const HOLIDAY = 'stJohnsDay'; /** * @return array diff --git a/tests/Lithuania/StatehoodDayTest.php b/tests/Lithuania/StatehoodDayTest.php index 78f3e5e1d..1e740c9b2 100644 --- a/tests/Lithuania/StatehoodDayTest.php +++ b/tests/Lithuania/StatehoodDayTest.php @@ -27,7 +27,7 @@ class StatehoodDayTest extends LithuaniaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'statehoodDay'; + public const HOLIDAY = 'statehoodDay'; /** * Test if holiday is not defined before restoration diff --git a/tests/Netherlands/AscensionDayTest.php b/tests/Netherlands/AscensionDayTest.php index 4e58930eb..0b519a291 100644 --- a/tests/Netherlands/AscensionDayTest.php +++ b/tests/Netherlands/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/AshWednesdayTest.php b/tests/Netherlands/AshWednesdayTest.php index 579eb959c..b9ac129d7 100644 --- a/tests/Netherlands/AshWednesdayTest.php +++ b/tests/Netherlands/AshWednesdayTest.php @@ -25,7 +25,7 @@ class AshWednesdayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'ashWednesday'; + public const HOLIDAY = 'ashWednesday'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/ChristmasDayTest.php b/tests/Netherlands/ChristmasDayTest.php index 2c9f73e48..c1a0c0e9e 100644 --- a/tests/Netherlands/ChristmasDayTest.php +++ b/tests/Netherlands/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/CommemorationDayTest.php b/tests/Netherlands/CommemorationDayTest.php index 3b97a43c2..cd6eb98a6 100644 --- a/tests/Netherlands/CommemorationDayTest.php +++ b/tests/Netherlands/CommemorationDayTest.php @@ -25,12 +25,12 @@ class CommemorationDayTest extends NetherlandsBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'commemorationDay'; + public const HOLIDAY = 'commemorationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1947; + public const ESTABLISHMENT_YEAR = 1947; /** * Tests Commemoration Day before 1947. Commemoration Day was established after WWII in 1947. diff --git a/tests/Netherlands/EasterMondayTest.php b/tests/Netherlands/EasterMondayTest.php index a4d86f7f1..d74908550 100644 --- a/tests/Netherlands/EasterMondayTest.php +++ b/tests/Netherlands/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/EasterTest.php b/tests/Netherlands/EasterTest.php index 6711ff09f..c851b1b79 100644 --- a/tests/Netherlands/EasterTest.php +++ b/tests/Netherlands/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends NetherlandsBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests Easter. diff --git a/tests/Netherlands/EpiphanyTest.php b/tests/Netherlands/EpiphanyTest.php index 67753586e..99dc5a5e4 100644 --- a/tests/Netherlands/EpiphanyTest.php +++ b/tests/Netherlands/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends NetherlandsBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests Epiphany. diff --git a/tests/Netherlands/FathersDayTest.php b/tests/Netherlands/FathersDayTest.php index 2e5030888..1c2e8cb31 100644 --- a/tests/Netherlands/FathersDayTest.php +++ b/tests/Netherlands/FathersDayTest.php @@ -25,7 +25,7 @@ class FathersDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'fathersDay'; + public const HOLIDAY = 'fathersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/GoodFridayTest.php b/tests/Netherlands/GoodFridayTest.php index 7e41393f4..aa4305e78 100644 --- a/tests/Netherlands/GoodFridayTest.php +++ b/tests/Netherlands/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests Good Friday. diff --git a/tests/Netherlands/HalloweenTest.php b/tests/Netherlands/HalloweenTest.php index 44c106ee1..1de93b24e 100644 --- a/tests/Netherlands/HalloweenTest.php +++ b/tests/Netherlands/HalloweenTest.php @@ -24,7 +24,7 @@ class HalloweenTest extends NetherlandsBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'halloween'; + public const HOLIDAY = 'halloween'; /** * Tests Halloween. diff --git a/tests/Netherlands/InternationalWorkersDayTest.php b/tests/Netherlands/InternationalWorkersDayTest.php index 391694cd2..5ab38eee1 100644 --- a/tests/Netherlands/InternationalWorkersDayTest.php +++ b/tests/Netherlands/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends NetherlandsBaseTestCase implements Yas /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Netherlands/KingsDayTest.php b/tests/Netherlands/KingsDayTest.php index 8d05f9002..cf2eeb395 100644 --- a/tests/Netherlands/KingsDayTest.php +++ b/tests/Netherlands/KingsDayTest.php @@ -25,12 +25,12 @@ class KingsDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'kingsDay'; + public const HOLIDAY = 'kingsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2014; + public const ESTABLISHMENT_YEAR = 2014; /** * Tests Kings Day on or after 2014. King's Day is celebrated from 2014 onwards on April 27th. diff --git a/tests/Netherlands/LiberationDayTest.php b/tests/Netherlands/LiberationDayTest.php index f5ebb4aab..940adc336 100644 --- a/tests/Netherlands/LiberationDayTest.php +++ b/tests/Netherlands/LiberationDayTest.php @@ -25,12 +25,12 @@ class LiberationDayTest extends NetherlandsBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'liberationDay'; + public const HOLIDAY = 'liberationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1947; + public const ESTABLISHMENT_YEAR = 1947; /** * Tests Liberation Day before 1947. Liberation Day was established after WWII in 1947. diff --git a/tests/Netherlands/MothersDayTest.php b/tests/Netherlands/MothersDayTest.php index 54a6debec..844cd7306 100644 --- a/tests/Netherlands/MothersDayTest.php +++ b/tests/Netherlands/MothersDayTest.php @@ -25,7 +25,7 @@ class MothersDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'mothersDay'; + public const HOLIDAY = 'mothersDay'; /** * Tests Mother's Day. diff --git a/tests/Netherlands/NetherlandsBaseTestCase.php b/tests/Netherlands/NetherlandsBaseTestCase.php index f9cb4eac2..25b8b02b4 100644 --- a/tests/Netherlands/NetherlandsBaseTestCase.php +++ b/tests/Netherlands/NetherlandsBaseTestCase.php @@ -25,15 +25,15 @@ abstract class NetherlandsBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Netherlands'; + public const REGION = 'Netherlands'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Amsterdam'; + public const TIMEZONE = 'Europe/Amsterdam'; /** * Locale that is considered common for this provider */ - const LOCALE = 'nl_NL'; + public const LOCALE = 'nl_NL'; } diff --git a/tests/Netherlands/NewYearsDayTest.php b/tests/Netherlands/NewYearsDayTest.php index cc8376fe6..7639b74ae 100644 --- a/tests/Netherlands/NewYearsDayTest.php +++ b/tests/Netherlands/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Netherlands/PentecostTest.php b/tests/Netherlands/PentecostTest.php index 8210dba92..5b02abcb5 100644 --- a/tests/Netherlands/PentecostTest.php +++ b/tests/Netherlands/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends NetherlandsBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/QueensDayTest.php b/tests/Netherlands/QueensDayTest.php index 83b452de8..85d02383d 100644 --- a/tests/Netherlands/QueensDayTest.php +++ b/tests/Netherlands/QueensDayTest.php @@ -25,7 +25,7 @@ class QueensDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'queensDay'; + public const HOLIDAY = 'queensDay'; /** * Tests Queens Day between 1891 and 1948. diff --git a/tests/Netherlands/SummertimeTest.php b/tests/Netherlands/SummertimeTest.php index e98803781..1ae96644d 100644 --- a/tests/Netherlands/SummertimeTest.php +++ b/tests/Netherlands/SummertimeTest.php @@ -25,7 +25,7 @@ class SummertimeTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'summerTime'; + public const HOLIDAY = 'summerTime'; /** * Tests Summertime. diff --git a/tests/Netherlands/ValentinesDayTest.php b/tests/Netherlands/ValentinesDayTest.php index 344ab4fd5..eedd6cf27 100644 --- a/tests/Netherlands/ValentinesDayTest.php +++ b/tests/Netherlands/ValentinesDayTest.php @@ -24,7 +24,7 @@ class ValentinesDayTest extends NetherlandsBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'valentinesDay'; + public const HOLIDAY = 'valentinesDay'; /** * Tests Valentines Day. diff --git a/tests/Netherlands/WintertimeTest.php b/tests/Netherlands/WintertimeTest.php index a0594dc95..c25070739 100644 --- a/tests/Netherlands/WintertimeTest.php +++ b/tests/Netherlands/WintertimeTest.php @@ -25,7 +25,7 @@ class WintertimeTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'winterTime'; + public const HOLIDAY = 'winterTime'; /** * Tests Wintertime. diff --git a/tests/Netherlands/WorldAnimalDayTest.php b/tests/Netherlands/WorldAnimalDayTest.php index 0733ee26c..4b8da85be 100644 --- a/tests/Netherlands/WorldAnimalDayTest.php +++ b/tests/Netherlands/WorldAnimalDayTest.php @@ -25,12 +25,12 @@ class WorldAnimalDayTest extends NetherlandsBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'worldAnimalDay'; + public const HOLIDAY = 'worldAnimalDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1931; + public const ESTABLISHMENT_YEAR = 1931; /** * Tests World Animal Day on or after 1931. diff --git a/tests/Netherlands/carnivalDayTest.php b/tests/Netherlands/carnivalDayTest.php index a806b9248..38f9b9f25 100644 --- a/tests/Netherlands/carnivalDayTest.php +++ b/tests/Netherlands/carnivalDayTest.php @@ -26,7 +26,7 @@ class carnivalDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'carnivalDay'; + public const HOLIDAY = 'carnivalDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/pentecostMondayTest.php b/tests/Netherlands/pentecostMondayTest.php index 28dfbee12..ae587268c 100644 --- a/tests/Netherlands/pentecostMondayTest.php +++ b/tests/Netherlands/pentecostMondayTest.php @@ -25,7 +25,7 @@ class pentecostMondayTest extends NetherlandsBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Netherlands/princesDayTest.php b/tests/Netherlands/princesDayTest.php index 32db9f77f..dd89fd68c 100644 --- a/tests/Netherlands/princesDayTest.php +++ b/tests/Netherlands/princesDayTest.php @@ -25,7 +25,7 @@ class princesDayTest extends NetherlandsBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'princesDay'; + public const HOLIDAY = 'princesDay'; /** * Tests Prince's Day. diff --git a/tests/Netherlands/secondCarnivalDay.php b/tests/Netherlands/secondCarnivalDay.php index 027cd8a1f..7771088dc 100644 --- a/tests/Netherlands/secondCarnivalDay.php +++ b/tests/Netherlands/secondCarnivalDay.php @@ -26,7 +26,7 @@ class secondCarnivalDay extends NetherlandsBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondCarnivalDay'; + public const HOLIDAY = 'secondCarnivalDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/secondChristmasdayTest.php b/tests/Netherlands/secondChristmasdayTest.php index 90d6b9e1a..c8c6eeb55 100644 --- a/tests/Netherlands/secondChristmasdayTest.php +++ b/tests/Netherlands/secondChristmasdayTest.php @@ -24,7 +24,7 @@ class secondChristmasdayTest extends NetherlandsBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Netherlands/stMartinsDayTest.php b/tests/Netherlands/stMartinsDayTest.php index 37ac9707f..02dd13591 100644 --- a/tests/Netherlands/stMartinsDayTest.php +++ b/tests/Netherlands/stMartinsDayTest.php @@ -24,7 +24,7 @@ class stMartinsDayTest extends NetherlandsBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'stMartinsDay'; + public const HOLIDAY = 'stMartinsDay'; /** * Tests Sint Martins Day. diff --git a/tests/Netherlands/stNicholasDayTest.php b/tests/Netherlands/stNicholasDayTest.php index ea1fe2e2e..db4e990bb 100644 --- a/tests/Netherlands/stNicholasDayTest.php +++ b/tests/Netherlands/stNicholasDayTest.php @@ -25,7 +25,7 @@ class stNicholasDayTest extends NetherlandsBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'stNicholasDay'; + public const HOLIDAY = 'stNicholasDay'; /** * Tests Sint Nicholas Day. diff --git a/tests/Netherlands/thirdCarnivalDay.php b/tests/Netherlands/thirdCarnivalDay.php index 06ff9fd2c..c3fa911f8 100644 --- a/tests/Netherlands/thirdCarnivalDay.php +++ b/tests/Netherlands/thirdCarnivalDay.php @@ -26,7 +26,7 @@ class thirdCarnivalDay extends NetherlandsBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'thirdCarnivalDay'; + public const HOLIDAY = 'thirdCarnivalDay'; /** * Tests the holiday defined in this test. diff --git a/tests/NewZealand/AnzacDayTest.php b/tests/NewZealand/AnzacDayTest.php index a4c616eaf..2910fa16f 100644 --- a/tests/NewZealand/AnzacDayTest.php +++ b/tests/NewZealand/AnzacDayTest.php @@ -25,12 +25,12 @@ class AnzacDayTest extends NewZealandBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'anzacDay'; + public const HOLIDAY = 'anzacDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1921; + public const ESTABLISHMENT_YEAR = 1921; /** * Tests ANZAC Day diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index f76962d7e..b16dce813 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -26,7 +26,7 @@ class BoxingDayTest extends NewZealandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests Boxing Day diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index 2e9704e60..0beaeae8d 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -26,7 +26,7 @@ class ChristmasDayTest extends NewZealandBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day diff --git a/tests/NewZealand/DayAfterNewYearsDayTest.php b/tests/NewZealand/DayAfterNewYearsDayTest.php index cbda1c3dd..743f81ace 100644 --- a/tests/NewZealand/DayAfterNewYearsDayTest.php +++ b/tests/NewZealand/DayAfterNewYearsDayTest.php @@ -26,7 +26,7 @@ class DayAfterNewYearsDayTest extends NewZealandBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'dayAfterNewYearsDay'; + public const HOLIDAY = 'dayAfterNewYearsDay'; /** * Tests Day After New Years Day diff --git a/tests/NewZealand/EasterMondayTest.php b/tests/NewZealand/EasterMondayTest.php index 035a30490..9f62592ca 100644 --- a/tests/NewZealand/EasterMondayTest.php +++ b/tests/NewZealand/EasterMondayTest.php @@ -26,7 +26,7 @@ class EasterMondayTest extends NewZealandBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday diff --git a/tests/NewZealand/GoodFridayTest.php b/tests/NewZealand/GoodFridayTest.php index f05691c4d..e7cc8af4f 100644 --- a/tests/NewZealand/GoodFridayTest.php +++ b/tests/NewZealand/GoodFridayTest.php @@ -26,7 +26,7 @@ class GoodFridayTest extends NewZealandBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests Good Friday diff --git a/tests/NewZealand/LabourDayTest.php b/tests/NewZealand/LabourDayTest.php index d9b85aa6e..5480d527c 100644 --- a/tests/NewZealand/LabourDayTest.php +++ b/tests/NewZealand/LabourDayTest.php @@ -25,12 +25,12 @@ class LabourDayTest extends NewZealandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1900; + public const ESTABLISHMENT_YEAR = 1900; /** * Tests Labour Day diff --git a/tests/NewZealand/NewYearsDayTest.php b/tests/NewZealand/NewYearsDayTest.php index 5c135fe30..b9c909327 100644 --- a/tests/NewZealand/NewYearsDayTest.php +++ b/tests/NewZealand/NewYearsDayTest.php @@ -26,7 +26,7 @@ class NewYearsDayTest extends NewZealandBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day diff --git a/tests/NewZealand/NewZealandBaseTestCase.php b/tests/NewZealand/NewZealandBaseTestCase.php index 113891277..dcd2e9598 100644 --- a/tests/NewZealand/NewZealandBaseTestCase.php +++ b/tests/NewZealand/NewZealandBaseTestCase.php @@ -25,15 +25,15 @@ abstract class NewZealandBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'NewZealand'; + public const REGION = 'NewZealand'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Pacific/Auckland'; + public const TIMEZONE = 'Pacific/Auckland'; /** * Locale that is considered common for this provider */ - const LOCALE = 'en_NZ'; + public const LOCALE = 'en_NZ'; } diff --git a/tests/NewZealand/QueensBirthdayTest.php b/tests/NewZealand/QueensBirthdayTest.php index 0b1681693..adefbab62 100644 --- a/tests/NewZealand/QueensBirthdayTest.php +++ b/tests/NewZealand/QueensBirthdayTest.php @@ -25,12 +25,12 @@ class QueensBirthdayTest extends NewZealandBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'queensBirthday'; + public const HOLIDAY = 'queensBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1952; + public const ESTABLISHMENT_YEAR = 1952; /** * Tests Queens Birthday diff --git a/tests/NewZealand/WaitangiDayTest.php b/tests/NewZealand/WaitangiDayTest.php index 6c08d81f7..3fa7f6bde 100644 --- a/tests/NewZealand/WaitangiDayTest.php +++ b/tests/NewZealand/WaitangiDayTest.php @@ -25,12 +25,12 @@ class WaitangiDayTest extends NewZealandBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'waitangiDay'; + public const HOLIDAY = 'waitangiDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1974; + public const ESTABLISHMENT_YEAR = 1974; /** * Tests Waitangi Day diff --git a/tests/Norway/AscensionDayTest.php b/tests/Norway/AscensionDayTest.php index 87d86dfa2..8188d6bca 100644 --- a/tests/Norway/AscensionDayTest.php +++ b/tests/Norway/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends NorwayBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Norway/ChristmasDayTest.php b/tests/Norway/ChristmasDayTest.php index 66147b86c..9cdad398b 100644 --- a/tests/Norway/ChristmasDayTest.php +++ b/tests/Norway/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends NorwayBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/ConstitutionDayTest.php b/tests/Norway/ConstitutionDayTest.php index f29825396..659d09ef6 100644 --- a/tests/Norway/ConstitutionDayTest.php +++ b/tests/Norway/ConstitutionDayTest.php @@ -25,12 +25,12 @@ class ConstitutionDayTest extends NorwayBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'constitutionDay'; + public const HOLIDAY = 'constitutionDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1836; + public const ESTABLISHMENT_YEAR = 1836; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Norway/EasterMondayTest.php b/tests/Norway/EasterMondayTest.php index 038e6170d..283293c4f 100644 --- a/tests/Norway/EasterMondayTest.php +++ b/tests/Norway/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends NorwayBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/EasterTest.php b/tests/Norway/EasterTest.php index f819dc706..69a2fd9b4 100644 --- a/tests/Norway/EasterTest.php +++ b/tests/Norway/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends NorwayBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/GoodFridayTest.php b/tests/Norway/GoodFridayTest.php index 3c37809b8..fd455440e 100644 --- a/tests/Norway/GoodFridayTest.php +++ b/tests/Norway/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends NorwayBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/InternationalWorkersDayTest.php b/tests/Norway/InternationalWorkersDayTest.php index a0d3ef25f..b6c66f644 100644 --- a/tests/Norway/InternationalWorkersDayTest.php +++ b/tests/Norway/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends NorwayBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Norway/MaundyThursdayTest.php b/tests/Norway/MaundyThursdayTest.php index 3eee7e8a5..0dbfc4720 100644 --- a/tests/Norway/MaundyThursdayTest.php +++ b/tests/Norway/MaundyThursdayTest.php @@ -25,7 +25,7 @@ class MaundyThursdayTest extends NorwayBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'maundyThursday'; + public const HOLIDAY = 'maundyThursday'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/NewYearsDayTest.php b/tests/Norway/NewYearsDayTest.php index f984ae6ba..e2b21ef29 100644 --- a/tests/Norway/NewYearsDayTest.php +++ b/tests/Norway/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends NorwayBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/NorwayBaseTestCase.php b/tests/Norway/NorwayBaseTestCase.php index c5875bd93..c9b0bb3c7 100644 --- a/tests/Norway/NorwayBaseTestCase.php +++ b/tests/Norway/NorwayBaseTestCase.php @@ -25,15 +25,15 @@ abstract class NorwayBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Norway'; + public const REGION = 'Norway'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Oslo'; + public const TIMEZONE = 'Europe/Oslo'; /** * Locale that is considered common for this provider */ - const LOCALE = 'nb_NO'; + public const LOCALE = 'nb_NO'; } diff --git a/tests/Norway/PentecostMondayTest.php b/tests/Norway/PentecostMondayTest.php index 9575024a3..e02e97241 100644 --- a/tests/Norway/PentecostMondayTest.php +++ b/tests/Norway/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends NorwayBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/PentecostTest.php b/tests/Norway/PentecostTest.php index 40f20b573..2f94d2dc1 100644 --- a/tests/Norway/PentecostTest.php +++ b/tests/Norway/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends NorwayBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Norway/SecondChristmasDayTest.php b/tests/Norway/SecondChristmasDayTest.php index 9811e66e2..bd479a90b 100644 --- a/tests/Norway/SecondChristmasDayTest.php +++ b/tests/Norway/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends NorwayBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/AllSaintsDayTest.php b/tests/Poland/AllSaintsDayTest.php index cde0ce840..47c601780 100644 --- a/tests/Poland/AllSaintsDayTest.php +++ b/tests/Poland/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends PolandBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/AssumptionOfMaryTest.php b/tests/Poland/AssumptionOfMaryTest.php index 4777e9693..b681fff8e 100644 --- a/tests/Poland/AssumptionOfMaryTest.php +++ b/tests/Poland/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends PolandBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/ChristmasTest.php b/tests/Poland/ChristmasTest.php index e86e1d83c..4cdedadd6 100644 --- a/tests/Poland/ChristmasTest.php +++ b/tests/Poland/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends PolandBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Poland/ConstitutionDayTest.php b/tests/Poland/ConstitutionDayTest.php index 390ee6c17..2b1be965b 100644 --- a/tests/Poland/ConstitutionDayTest.php +++ b/tests/Poland/ConstitutionDayTest.php @@ -25,12 +25,12 @@ class ConstitutionDayTest extends PolandBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'constitutionDay'; + public const HOLIDAY = 'constitutionDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1791; + public const ESTABLISHMENT_YEAR = 1791; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Poland/CorpusChristiTest.php b/tests/Poland/CorpusChristiTest.php index 2584269d6..4afb6d388 100644 --- a/tests/Poland/CorpusChristiTest.php +++ b/tests/Poland/CorpusChristiTest.php @@ -25,7 +25,7 @@ class CorpusChristiTest extends PolandBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/EasterMondayTest.php b/tests/Poland/EasterMondayTest.php index 1f0def165..bcbdbeedd 100644 --- a/tests/Poland/EasterMondayTest.php +++ b/tests/Poland/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends PolandBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/EasterTest.php b/tests/Poland/EasterTest.php index 4c2fa119e..7d9a4d983 100644 --- a/tests/Poland/EasterTest.php +++ b/tests/Poland/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends PolandBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/EpiphanyTest.php b/tests/Poland/EpiphanyTest.php index 82b0ef918..dbc82f658 100644 --- a/tests/Poland/EpiphanyTest.php +++ b/tests/Poland/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends PolandBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests Epiphany. diff --git a/tests/Poland/IndependenceDayTest.php b/tests/Poland/IndependenceDayTest.php index c9d4e47d7..f4421bc45 100644 --- a/tests/Poland/IndependenceDayTest.php +++ b/tests/Poland/IndependenceDayTest.php @@ -25,12 +25,12 @@ class IndependenceDayTest extends PolandBaseTestCase implements YasumiTestCaseIn /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1918; + public const ESTABLISHMENT_YEAR = 1918; /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Poland/InternationalWorkersDayTest.php b/tests/Poland/InternationalWorkersDayTest.php index d52789a29..4ec7b95e9 100644 --- a/tests/Poland/InternationalWorkersDayTest.php +++ b/tests/Poland/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends PolandBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Poland/NewYearsDayTest.php b/tests/Poland/NewYearsDayTest.php index e78f45831..2c772b9a2 100644 --- a/tests/Poland/NewYearsDayTest.php +++ b/tests/Poland/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends PolandBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/PentecostTest.php b/tests/Poland/PentecostTest.php index db91ab567..75bef478d 100644 --- a/tests/Poland/PentecostTest.php +++ b/tests/Poland/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends PolandBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Poland/PolandBaseTestCase.php b/tests/Poland/PolandBaseTestCase.php index 8583e7e2f..bfb029a85 100644 --- a/tests/Poland/PolandBaseTestCase.php +++ b/tests/Poland/PolandBaseTestCase.php @@ -25,15 +25,15 @@ abstract class PolandBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Poland'; + public const REGION = 'Poland'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Warsaw'; + public const TIMEZONE = 'Europe/Warsaw'; /** * Locale that is considered common for this provider */ - const LOCALE = 'pl_PL'; + public const LOCALE = 'pl_PL'; } diff --git a/tests/Poland/SecondChristmasDayTest.php b/tests/Poland/SecondChristmasDayTest.php index c4ee40391..05ed45948 100644 --- a/tests/Poland/SecondChristmasDayTest.php +++ b/tests/Poland/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends PolandBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/AllSaintsDayTest.php b/tests/Portugal/AllSaintsDayTest.php index a16dcfef1..492e9de5d 100644 --- a/tests/Portugal/AllSaintsDayTest.php +++ b/tests/Portugal/AllSaintsDayTest.php @@ -25,17 +25,17 @@ class AllSaintsDayTest extends PortugalBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Holiday was abolished by the portuguese government in 2014. */ - const HOLIDAY_YEAR_ABOLISHED = 2014; + public const HOLIDAY_YEAR_ABOLISHED = 2014; /** * Holiday was restored by the portuguese government in 2016. */ - const HOLIDAY_YEAR_RESTORED = 2016; + public const HOLIDAY_YEAR_RESTORED = 2016; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/AssumptionOfMaryTest.php b/tests/Portugal/AssumptionOfMaryTest.php index 506ae535e..3b74f048d 100644 --- a/tests/Portugal/AssumptionOfMaryTest.php +++ b/tests/Portugal/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends PortugalBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/CarnationRevolutionDayTest.php b/tests/Portugal/CarnationRevolutionDayTest.php index 87f7e31ad..6ccb79a81 100644 --- a/tests/Portugal/CarnationRevolutionDayTest.php +++ b/tests/Portugal/CarnationRevolutionDayTest.php @@ -25,12 +25,12 @@ class CarnationRevolutionDayTest extends PortugalBaseTestCase implements YasumiT /** * The year in which the holiday was established */ - const ESTABLISHMENT_YEAR = 1974; + public const ESTABLISHMENT_YEAR = 1974; /** * The name of the holiday to be tested */ - const HOLIDAY = '25thApril'; + public const HOLIDAY = '25thApril'; /** * Test that the holiday is valid after the year of establishment diff --git a/tests/Portugal/ChristmasTest.php b/tests/Portugal/ChristmasTest.php index 449d22d96..0124161cd 100644 --- a/tests/Portugal/ChristmasTest.php +++ b/tests/Portugal/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends PortugalBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Portugal/CorpusChristiTest.php b/tests/Portugal/CorpusChristiTest.php index 6007463f1..e6d28f758 100644 --- a/tests/Portugal/CorpusChristiTest.php +++ b/tests/Portugal/CorpusChristiTest.php @@ -25,17 +25,17 @@ class CorpusChristiTest extends PortugalBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Holiday was abolished by the portuguese government in 2014. */ - const HOLIDAY_YEAR_ABOLISHED = 2014; + public const HOLIDAY_YEAR_ABOLISHED = 2014; /** * Holiday was restored by the portuguese government in 2016. */ - const HOLIDAY_YEAR_RESTORED = 2016; + public const HOLIDAY_YEAR_RESTORED = 2016; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/EasterTest.php b/tests/Portugal/EasterTest.php index 94c456e15..8b97195bf 100644 --- a/tests/Portugal/EasterTest.php +++ b/tests/Portugal/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends PortugalBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/GoodFridayTest.php b/tests/Portugal/GoodFridayTest.php index e044092a6..0e02ad716 100644 --- a/tests/Portugal/GoodFridayTest.php +++ b/tests/Portugal/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends PortugalBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/ImmaculateConceptionTest.php b/tests/Portugal/ImmaculateConceptionTest.php index 73ea20227..06a4ebdba 100644 --- a/tests/Portugal/ImmaculateConceptionTest.php +++ b/tests/Portugal/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends PortugalBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/InternationalWorkersDayTest.php b/tests/Portugal/InternationalWorkersDayTest.php index 10c12567e..737bad77a 100644 --- a/tests/Portugal/InternationalWorkersDayTest.php +++ b/tests/Portugal/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends PortugalBaseTestCase implements Yasumi /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Portugal/NewYearsDayTest.php b/tests/Portugal/NewYearsDayTest.php index eb5c0fa76..354656a61 100644 --- a/tests/Portugal/NewYearsDayTest.php +++ b/tests/Portugal/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends PortugalBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Portugal/PortugalBaseTestCase.php b/tests/Portugal/PortugalBaseTestCase.php index b02cd78b9..b02f16342 100644 --- a/tests/Portugal/PortugalBaseTestCase.php +++ b/tests/Portugal/PortugalBaseTestCase.php @@ -25,15 +25,15 @@ abstract class PortugalBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Portugal'; + public const REGION = 'Portugal'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Lisbon'; + public const TIMEZONE = 'Europe/Lisbon'; /** * Locale that is considered common for this provider */ - const LOCALE = 'pt_PT'; + public const LOCALE = 'pt_PT'; } diff --git a/tests/Portugal/PortugalDayTest.php b/tests/Portugal/PortugalDayTest.php index 74653a6c7..aac275b04 100644 --- a/tests/Portugal/PortugalDayTest.php +++ b/tests/Portugal/PortugalDayTest.php @@ -26,17 +26,17 @@ class PortugalDayTest extends PortugalBaseTestCase implements YasumiTestCaseInte /** * The year in which the holiday was abolished */ - const ESTABLISHMENT_YEAR_BEFORE = 1932; + public const ESTABLISHMENT_YEAR_BEFORE = 1932; /** * The year in which the holiday was restored */ - const ESTABLISHMENT_YEAR_AFTER = 1974; + public const ESTABLISHMENT_YEAR_AFTER = 1974; /** * The name of the holiday to be tested */ - const HOLIDAY = 'portugalDay'; + public const HOLIDAY = 'portugalDay'; /** * Tests the holiday defined in this test before it was abolished. diff --git a/tests/Portugal/PortugueseRepublicDayTest.php b/tests/Portugal/PortugueseRepublicDayTest.php index 8221ddd08..74cbd34a9 100644 --- a/tests/Portugal/PortugueseRepublicDayTest.php +++ b/tests/Portugal/PortugueseRepublicDayTest.php @@ -25,12 +25,12 @@ class PortugueseRepublicDayTest extends PortugalBaseTestCase implements YasumiTe /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1910; + public const ESTABLISHMENT_YEAR = 1910; /** * The name of the holiday to be tested */ - const HOLIDAY = 'portugueseRepublic'; + public const HOLIDAY = 'portugueseRepublic'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Portugal/RestorationOfIndependenceTest.php b/tests/Portugal/RestorationOfIndependenceTest.php index f51a3673d..e75f7d6db 100644 --- a/tests/Portugal/RestorationOfIndependenceTest.php +++ b/tests/Portugal/RestorationOfIndependenceTest.php @@ -25,22 +25,22 @@ class RestorationOfIndependenceTest extends PortugalBaseTestCase implements Yasu /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1850; + public const ESTABLISHMENT_YEAR = 1850; /** * Holiday was abolished by the portuguese government in 2014. */ - const HOLIDAY_YEAR_ABOLISHED = 2014; + public const HOLIDAY_YEAR_ABOLISHED = 2014; /** * Holiday was restored by the portuguese government in 2016. */ - const HOLIDAY_YEAR_RESTORED = 2016; + public const HOLIDAY_YEAR_RESTORED = 2016; /** * The name of the holiday to be tested */ - const HOLIDAY = 'restorationOfIndependence'; + public const HOLIDAY = 'restorationOfIndependence'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Romania/AssumptionOfMaryTest.php b/tests/Romania/AssumptionOfMaryTest.php index 8dab2d554..368a5b8ea 100644 --- a/tests/Romania/AssumptionOfMaryTest.php +++ b/tests/Romania/AssumptionOfMaryTest.php @@ -25,12 +25,12 @@ class AssumptionOfMaryTest extends RomaniaBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2008; + public const ESTABLISHMENT_YEAR = 2008; /** * Tests Assumption Of Mary Day on or after 2008. diff --git a/tests/Romania/ChildrensDayTest.php b/tests/Romania/ChildrensDayTest.php index 85e0712f8..7d662cefc 100644 --- a/tests/Romania/ChildrensDayTest.php +++ b/tests/Romania/ChildrensDayTest.php @@ -25,12 +25,12 @@ class ChildrensDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'childrensDay'; + public const HOLIDAY = 'childrensDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1950; + public const ESTABLISHMENT_YEAR = 1950; /** * Tests Children's Day on or after 1950. diff --git a/tests/Romania/ChristmasDayTest.php b/tests/Romania/ChristmasDayTest.php index 5c37bd43a..c571de1e5 100644 --- a/tests/Romania/ChristmasDayTest.php +++ b/tests/Romania/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Romania/ConstantinBrancusiDayTest.php b/tests/Romania/ConstantinBrancusiDayTest.php index 86fd66f4f..5a058d4e4 100644 --- a/tests/Romania/ConstantinBrancusiDayTest.php +++ b/tests/Romania/ConstantinBrancusiDayTest.php @@ -25,12 +25,12 @@ class ConstantinBrancusiDayTest extends RomaniaBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'constantinBrancusiDay'; + public const HOLIDAY = 'constantinBrancusiDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2016; + public const ESTABLISHMENT_YEAR = 2016; /** * Tests Constantin Brancusi Day on or after 2016. diff --git a/tests/Romania/DayAfterNewYearsDayTest.php b/tests/Romania/DayAfterNewYearsDayTest.php index b35f158f6..6d8bf5a93 100644 --- a/tests/Romania/DayAfterNewYearsDayTest.php +++ b/tests/Romania/DayAfterNewYearsDayTest.php @@ -24,7 +24,7 @@ class DayAfterNewYearsDayTest extends RomaniaBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'dayAfterNewYearsDay'; + public const HOLIDAY = 'dayAfterNewYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Romania/EasterMondayTest.php b/tests/Romania/EasterMondayTest.php index d19cce7dc..176507d4c 100755 --- a/tests/Romania/EasterMondayTest.php +++ b/tests/Romania/EasterMondayTest.php @@ -26,7 +26,7 @@ class EasterMondayTest extends RomaniaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Romania/EasterTest.php b/tests/Romania/EasterTest.php index cc4a3cbad..fc5a99427 100755 --- a/tests/Romania/EasterTest.php +++ b/tests/Romania/EasterTest.php @@ -26,7 +26,7 @@ class EasterTest extends RomaniaBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Romania/InternationalWorkersDayTest.php b/tests/Romania/InternationalWorkersDayTest.php index a714a2b5f..ada2aa18c 100755 --- a/tests/Romania/InternationalWorkersDayTest.php +++ b/tests/Romania/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends RomaniaBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Romania/NationalDayTest.php b/tests/Romania/NationalDayTest.php index bbb0d8bfb..27b7e4b0e 100644 --- a/tests/Romania/NationalDayTest.php +++ b/tests/Romania/NationalDayTest.php @@ -25,12 +25,12 @@ class NationalDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'nationalDay'; + public const HOLIDAY = 'nationalDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1866; + public const ESTABLISHMENT_YEAR = 1866; /** * Tests National Day on or after 1990. diff --git a/tests/Romania/NewYearsDayTest.php b/tests/Romania/NewYearsDayTest.php index 7099db6f8..120309853 100644 --- a/tests/Romania/NewYearsDayTest.php +++ b/tests/Romania/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Romania/PentecostMondayTest.php b/tests/Romania/PentecostMondayTest.php index 5bd784cde..c1a28fc60 100644 --- a/tests/Romania/PentecostMondayTest.php +++ b/tests/Romania/PentecostMondayTest.php @@ -26,12 +26,12 @@ class PentecostMondayTest extends RomaniaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2008; + public const ESTABLISHMENT_YEAR = 2008; /** * Tests the Pentecost Monday Day on and after 2008. diff --git a/tests/Romania/PentecostTest.php b/tests/Romania/PentecostTest.php index c7a415547..0653ba4dd 100644 --- a/tests/Romania/PentecostTest.php +++ b/tests/Romania/PentecostTest.php @@ -26,12 +26,12 @@ class PentecostTest extends RomaniaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2008; + public const ESTABLISHMENT_YEAR = 2008; /** * Tests the Pentecost Day on and after 2008. diff --git a/tests/Romania/RomaniaBaseTestCase.php b/tests/Romania/RomaniaBaseTestCase.php index 0d1bc4b30..73dc32d9c 100755 --- a/tests/Romania/RomaniaBaseTestCase.php +++ b/tests/Romania/RomaniaBaseTestCase.php @@ -26,15 +26,15 @@ class RomaniaBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Romania'; + public const REGION = 'Romania'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Bucharest'; + public const TIMEZONE = 'Europe/Bucharest'; /** * Locale that is considered common for this provider */ - const LOCALE = 'ro_RO'; + public const LOCALE = 'ro_RO'; } diff --git a/tests/Romania/SecondChristmasDayTest.php b/tests/Romania/SecondChristmasDayTest.php index 134380d0a..51d203ef8 100644 --- a/tests/Romania/SecondChristmasDayTest.php +++ b/tests/Romania/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends RomaniaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Romania/StAndrewDayTest.php b/tests/Romania/StAndrewDayTest.php index 4fb4b396a..35c0657ff 100644 --- a/tests/Romania/StAndrewDayTest.php +++ b/tests/Romania/StAndrewDayTest.php @@ -25,12 +25,12 @@ class StAndrewDayTest extends RomaniaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'stAndrewDay'; + public const HOLIDAY = 'stAndrewDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2012; + public const ESTABLISHMENT_YEAR = 2012; /** * Tests Saint Andrew Day on or after 2012. diff --git a/tests/Romania/UnitedPrincipalitiesDayTest.php b/tests/Romania/UnitedPrincipalitiesDayTest.php index 4a3331b16..db5dad57f 100644 --- a/tests/Romania/UnitedPrincipalitiesDayTest.php +++ b/tests/Romania/UnitedPrincipalitiesDayTest.php @@ -25,12 +25,12 @@ class UnitedPrincipalitiesDayTest extends RomaniaBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'unitedPrincipalitiesDay'; + public const HOLIDAY = 'unitedPrincipalitiesDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2015; + public const ESTABLISHMENT_YEAR = 2015; /** * Tests united Principalities Day on or after 2015. diff --git a/tests/Russia/DefenceOfTheFatherlandDayTest.php b/tests/Russia/DefenceOfTheFatherlandDayTest.php index 88c526e24..dc24a1f57 100644 --- a/tests/Russia/DefenceOfTheFatherlandDayTest.php +++ b/tests/Russia/DefenceOfTheFatherlandDayTest.php @@ -26,7 +26,7 @@ class DefenceOfTheFatherlandDayTest extends RussiaBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'defenceOfTheFatherlandDay'; + public const HOLIDAY = 'defenceOfTheFatherlandDay'; /** * Test if holiday is not defined before diff --git a/tests/Russia/InternationalWomensDayTest.php b/tests/Russia/InternationalWomensDayTest.php index 2b734f4b2..9b7b0a4ee 100644 --- a/tests/Russia/InternationalWomensDayTest.php +++ b/tests/Russia/InternationalWomensDayTest.php @@ -26,7 +26,7 @@ class InternationalWomensDayTest extends RussiaBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWomensDay'; + public const HOLIDAY = 'internationalWomensDay'; /** * @return array diff --git a/tests/Russia/NewYearHolidaysDay2Test.php b/tests/Russia/NewYearHolidaysDay2Test.php index 140f82b50..1046181c2 100644 --- a/tests/Russia/NewYearHolidaysDay2Test.php +++ b/tests/Russia/NewYearHolidaysDay2Test.php @@ -26,7 +26,7 @@ class NewYearHolidaysDay2Test extends RussiaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearHolidaysDay2'; + public const HOLIDAY = 'newYearHolidaysDay2'; /** * @return array diff --git a/tests/Russia/NewYearHolidaysDay3Test.php b/tests/Russia/NewYearHolidaysDay3Test.php index e7fb0b56b..c41ead1ed 100644 --- a/tests/Russia/NewYearHolidaysDay3Test.php +++ b/tests/Russia/NewYearHolidaysDay3Test.php @@ -26,7 +26,7 @@ class NewYearHolidaysDay3Test extends RussiaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearHolidaysDay3'; + public const HOLIDAY = 'newYearHolidaysDay3'; /** * @return array diff --git a/tests/Russia/NewYearHolidaysDay4Test.php b/tests/Russia/NewYearHolidaysDay4Test.php index da03373b7..cfee1b11e 100644 --- a/tests/Russia/NewYearHolidaysDay4Test.php +++ b/tests/Russia/NewYearHolidaysDay4Test.php @@ -25,7 +25,7 @@ class NewYearHolidaysDay4Test extends RussiaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearHolidaysDay4'; + public const HOLIDAY = 'newYearHolidaysDay4'; /** * @return array diff --git a/tests/Russia/NewYearHolidaysDay5Test.php b/tests/Russia/NewYearHolidaysDay5Test.php index 4457f959b..2186322f8 100644 --- a/tests/Russia/NewYearHolidaysDay5Test.php +++ b/tests/Russia/NewYearHolidaysDay5Test.php @@ -26,7 +26,7 @@ class NewYearHolidaysDay5Test extends RussiaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearHolidaysDay5'; + public const HOLIDAY = 'newYearHolidaysDay5'; /** * @return array diff --git a/tests/Russia/NewYearHolidaysDay6Test.php b/tests/Russia/NewYearHolidaysDay6Test.php index 0c3ec353c..7afe4494a 100644 --- a/tests/Russia/NewYearHolidaysDay6Test.php +++ b/tests/Russia/NewYearHolidaysDay6Test.php @@ -26,7 +26,7 @@ class NewYearHolidaysDay6Test extends RussiaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearHolidaysDay6'; + public const HOLIDAY = 'newYearHolidaysDay6'; /** * @return array diff --git a/tests/Russia/NewYearHolidaysDay8Test.php b/tests/Russia/NewYearHolidaysDay8Test.php index 56175f150..8adf232e0 100644 --- a/tests/Russia/NewYearHolidaysDay8Test.php +++ b/tests/Russia/NewYearHolidaysDay8Test.php @@ -25,7 +25,7 @@ class NewYearHolidaysDay8Test extends RussiaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearHolidaysDay8'; + public const HOLIDAY = 'newYearHolidaysDay8'; /** * @return array diff --git a/tests/Russia/NewYearsDayTest.php b/tests/Russia/NewYearsDayTest.php index a734118e9..3121b4db7 100644 --- a/tests/Russia/NewYearsDayTest.php +++ b/tests/Russia/NewYearsDayTest.php @@ -26,7 +26,7 @@ class NewYearsDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * @return array diff --git a/tests/Russia/OrthodoxChristmasDayTest.php b/tests/Russia/OrthodoxChristmasDayTest.php index 65725b842..0a0085151 100644 --- a/tests/Russia/OrthodoxChristmasDayTest.php +++ b/tests/Russia/OrthodoxChristmasDayTest.php @@ -26,7 +26,7 @@ class OrthodoxChristmasDayTest extends RussiaBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'orthodoxChristmasDay'; + public const HOLIDAY = 'orthodoxChristmasDay'; /** * @return array diff --git a/tests/Russia/RussiaBaseTestCase.php b/tests/Russia/RussiaBaseTestCase.php index d5c12af55..0b7d0c954 100644 --- a/tests/Russia/RussiaBaseTestCase.php +++ b/tests/Russia/RussiaBaseTestCase.php @@ -28,15 +28,15 @@ abstract class RussiaBaseTestCase extends TestCase /** * Name of the country to be tested */ - const REGION = 'Russia'; + public const REGION = 'Russia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Moscow'; + public const TIMEZONE = 'Europe/Moscow'; /** * Locale that is considered common for this provider */ - const LOCALE = 'ru_RU'; + public const LOCALE = 'ru_RU'; } diff --git a/tests/Russia/RussiaDayTest.php b/tests/Russia/RussiaDayTest.php index 0826c6757..c63445a6c 100644 --- a/tests/Russia/RussiaDayTest.php +++ b/tests/Russia/RussiaDayTest.php @@ -27,7 +27,7 @@ class RussiaDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'russiaDay'; + public const HOLIDAY = 'russiaDay'; /** * Test if holiday is not defined before diff --git a/tests/Russia/SpringAndLabourDayTest.php b/tests/Russia/SpringAndLabourDayTest.php index a5799f8e4..e0804aa47 100644 --- a/tests/Russia/SpringAndLabourDayTest.php +++ b/tests/Russia/SpringAndLabourDayTest.php @@ -26,7 +26,7 @@ class SpringAndLabourDayTest extends RussiaBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'springAndLabourDay'; + public const HOLIDAY = 'springAndLabourDay'; /** * @return array diff --git a/tests/Russia/UnityDayTest.php b/tests/Russia/UnityDayTest.php index 64eaaf98e..c01061c95 100644 --- a/tests/Russia/UnityDayTest.php +++ b/tests/Russia/UnityDayTest.php @@ -27,7 +27,7 @@ class UnityDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'unityDay'; + public const HOLIDAY = 'unityDay'; /** * Test if holiday is not defined before diff --git a/tests/Russia/VictoryDayTest.php b/tests/Russia/VictoryDayTest.php index 1cfd0756e..13cb67f10 100644 --- a/tests/Russia/VictoryDayTest.php +++ b/tests/Russia/VictoryDayTest.php @@ -26,7 +26,7 @@ class VictoryDayTest extends RussiaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'victoryDay'; + public const HOLIDAY = 'victoryDay'; /** * @return array diff --git a/tests/Slovakia/AllSaintsDayTest.php b/tests/Slovakia/AllSaintsDayTest.php index af6a9f0c8..75f69bf74 100644 --- a/tests/Slovakia/AllSaintsDayTest.php +++ b/tests/Slovakia/AllSaintsDayTest.php @@ -30,7 +30,7 @@ class AllSaintsDayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** diff --git a/tests/Slovakia/ChristmasDayTest.php b/tests/Slovakia/ChristmasDayTest.php index 6273e11c0..14539bb1c 100644 --- a/tests/Slovakia/ChristmasDayTest.php +++ b/tests/Slovakia/ChristmasDayTest.php @@ -30,7 +30,7 @@ class ChristmasDayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** diff --git a/tests/Slovakia/ChristmasEveTest.php b/tests/Slovakia/ChristmasEveTest.php index 32609f359..c1073d02b 100644 --- a/tests/Slovakia/ChristmasEveTest.php +++ b/tests/Slovakia/ChristmasEveTest.php @@ -30,7 +30,7 @@ class ChristmasEveTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** diff --git a/tests/Slovakia/EasterMondayTest.php b/tests/Slovakia/EasterMondayTest.php index 1109c6ab1..1bd042f9c 100644 --- a/tests/Slovakia/EasterMondayTest.php +++ b/tests/Slovakia/EasterMondayTest.php @@ -31,7 +31,7 @@ class EasterMondayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** diff --git a/tests/Slovakia/EpiphanyTest.php b/tests/Slovakia/EpiphanyTest.php index d1c8f39dc..1b7a32b15 100644 --- a/tests/Slovakia/EpiphanyTest.php +++ b/tests/Slovakia/EpiphanyTest.php @@ -30,7 +30,7 @@ class EpiphanyTest extends SlovakiaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** diff --git a/tests/Slovakia/GoodFridayTest.php b/tests/Slovakia/GoodFridayTest.php index 2403caa1e..7d3a0c5d0 100644 --- a/tests/Slovakia/GoodFridayTest.php +++ b/tests/Slovakia/GoodFridayTest.php @@ -31,7 +31,7 @@ class GoodFridayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** diff --git a/tests/Slovakia/InternationalWorkersDayTest.php b/tests/Slovakia/InternationalWorkersDayTest.php index 55e18e492..1f953dea3 100644 --- a/tests/Slovakia/InternationalWorkersDayTest.php +++ b/tests/Slovakia/InternationalWorkersDayTest.php @@ -30,7 +30,7 @@ class InternationalWorkersDayTest extends SlovakiaBaseTestCase implements Yasumi /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** diff --git a/tests/Slovakia/NewYearsDayTest.php b/tests/Slovakia/NewYearsDayTest.php index 91ecc2859..43d17e6b8 100644 --- a/tests/Slovakia/NewYearsDayTest.php +++ b/tests/Slovakia/NewYearsDayTest.php @@ -30,7 +30,7 @@ class NewYearsDayTest extends SlovakiaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** diff --git a/tests/Slovakia/OurLadyOfSorrowsDayTest.php b/tests/Slovakia/OurLadyOfSorrowsDayTest.php index 166025590..c178b778d 100644 --- a/tests/Slovakia/OurLadyOfSorrowsDayTest.php +++ b/tests/Slovakia/OurLadyOfSorrowsDayTest.php @@ -30,7 +30,7 @@ class OurLadyOfSorrowsDayTest extends SlovakiaBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'ourLadyOfSorrowsDay'; + public const HOLIDAY = 'ourLadyOfSorrowsDay'; /** diff --git a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php index 1e6945419..96b55f660 100644 --- a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php @@ -30,7 +30,7 @@ class SaintsCyrilAndMethodiusDayTest extends SlovakiaBaseTestCase implements Yas /** * The name of the holiday to be tested */ - const HOLIDAY = 'saintsCyrilAndMethodiusDay'; + public const HOLIDAY = 'saintsCyrilAndMethodiusDay'; /** diff --git a/tests/Slovakia/SecondChristmasDayTest.php b/tests/Slovakia/SecondChristmasDayTest.php index 5b531ed7b..589df2839 100644 --- a/tests/Slovakia/SecondChristmasDayTest.php +++ b/tests/Slovakia/SecondChristmasDayTest.php @@ -30,7 +30,7 @@ class SecondChristmasDayTest extends SlovakiaBaseTestCase implements YasumiTestC /** * The name of the holiday */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** diff --git a/tests/Slovakia/SlovakConstitutionDayTest.php b/tests/Slovakia/SlovakConstitutionDayTest.php index b5e0f270e..7e191349b 100644 --- a/tests/Slovakia/SlovakConstitutionDayTest.php +++ b/tests/Slovakia/SlovakConstitutionDayTest.php @@ -30,7 +30,7 @@ class SlovakConstitutionDayTest extends SlovakiaBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'slovakConstitutionDay'; + public const HOLIDAY = 'slovakConstitutionDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Slovakia/SlovakNationalUprisingDayTest.php b/tests/Slovakia/SlovakNationalUprisingDayTest.php index bd9545a93..4ff4620c2 100644 --- a/tests/Slovakia/SlovakNationalUprisingDayTest.php +++ b/tests/Slovakia/SlovakNationalUprisingDayTest.php @@ -30,7 +30,7 @@ class SlovakNationalUprisingDayTest extends SlovakiaBaseTestCase implements Yasu /** * The name of the holiday to be tested */ - const HOLIDAY = 'slovakNationalUprisingDay'; + public const HOLIDAY = 'slovakNationalUprisingDay'; /** diff --git a/tests/Slovakia/SlovakiaBaseTestCase.php b/tests/Slovakia/SlovakiaBaseTestCase.php index 3c312dd7e..bff5cabb0 100644 --- a/tests/Slovakia/SlovakiaBaseTestCase.php +++ b/tests/Slovakia/SlovakiaBaseTestCase.php @@ -31,15 +31,15 @@ abstract class SlovakiaBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Slovakia'; + public const REGION = 'Slovakia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Bratislava'; + public const TIMEZONE = 'Europe/Bratislava'; /** * Locale that is considered common for this provider */ - const LOCALE = 'sk_SK'; + public const LOCALE = 'sk_SK'; } diff --git a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php index 36f1455ae..bdd0a9b3f 100644 --- a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php @@ -30,7 +30,7 @@ class StruggleForFreedomAndDemocracyDayTest extends SlovakiaBaseTestCase impleme /** * The name of the holiday to be tested */ - const HOLIDAY = 'struggleForFreedomAndDemocracyDay'; + public const HOLIDAY = 'struggleForFreedomAndDemocracyDay'; /** diff --git a/tests/Slovakia/VictoryInEuropeDayTest.php b/tests/Slovakia/VictoryInEuropeDayTest.php index 1723e4e45..4f3add8af 100644 --- a/tests/Slovakia/VictoryInEuropeDayTest.php +++ b/tests/Slovakia/VictoryInEuropeDayTest.php @@ -30,7 +30,7 @@ class VictoryInEuropeDayTest extends SlovakiaBaseTestCase implements YasumiTestC /** * The name of the holiday */ - const HOLIDAY = 'victoryInEuropeDay'; + public const HOLIDAY = 'victoryInEuropeDay'; /** diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index 74ae46958..87a5f75b0 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -30,12 +30,12 @@ class ChristmasDayTest extends SouthAfricaBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index 001e6acb6..7d4824316 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -30,12 +30,12 @@ class FamilyDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'familyDay'; + public const HOLIDAY = 'familyDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index 473f90761..57da49fbc 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -30,12 +30,12 @@ class FreedomDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'freedomDay'; + public const HOLIDAY = 'freedomDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index 8a5637dbc..ee1490d6d 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -30,12 +30,12 @@ class GoodFridayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index 041493e0e..579f99a55 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -30,12 +30,12 @@ class HeritageDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'heritageDay'; + public const HOLIDAY = 'heritageDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index 37a56303e..6e18ca02b 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -30,12 +30,12 @@ class HumanRightsDayTest extends SouthAfricaBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'humanRightsDay'; + public const HOLIDAY = 'humanRightsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/MunicipalElections2016DayTest.php b/tests/SouthAfrica/MunicipalElections2016DayTest.php index 15d56fdc9..3ceda1b98 100644 --- a/tests/SouthAfrica/MunicipalElections2016DayTest.php +++ b/tests/SouthAfrica/MunicipalElections2016DayTest.php @@ -29,12 +29,12 @@ class MunicipalElections2016DayTest extends SouthAfricaBaseTestCase implements Y /** * The name of the holiday to be tested */ - const HOLIDAY = '2016MunicipalElectionsDay'; + public const HOLIDAY = '2016MunicipalElectionsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2016; + public const ESTABLISHMENT_YEAR = 2016; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index cc87e5ae1..34bc25ddc 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -30,12 +30,12 @@ class NationalWomensDayTest extends SouthAfricaBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'nationalWomensDay'; + public const HOLIDAY = 'nationalWomensDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index c7a09fa72..a321e5e48 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -30,12 +30,12 @@ class NewYearsDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index 8f0281279..888eba4f8 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -30,12 +30,12 @@ class ReconciliationDayTest extends SouthAfricaBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'reconciliationDay'; + public const HOLIDAY = 'reconciliationDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index a2f6031aa..4e8dbeac7 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -30,12 +30,12 @@ class SecondChristmasDayTest extends SouthAfricaBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/SouthAfricaBaseTestCase.php b/tests/SouthAfrica/SouthAfricaBaseTestCase.php index a941edaa7..f7a322161 100644 --- a/tests/SouthAfrica/SouthAfricaBaseTestCase.php +++ b/tests/SouthAfrica/SouthAfricaBaseTestCase.php @@ -29,15 +29,15 @@ abstract class SouthAfricaBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'SouthAfrica'; + public const REGION = 'SouthAfrica'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Africa/Johannesburg'; + public const TIMEZONE = 'Africa/Johannesburg'; /** * Locale that is considered common for this provider */ - const LOCALE = 'en_ZA'; + public const LOCALE = 'en_ZA'; } diff --git a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php index 5ec90c151..c4240ef8a 100644 --- a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php +++ b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php @@ -29,12 +29,12 @@ class SubstituteDayOfGoodwillTest extends SouthAfricaBaseTestCase implements Yas /** * The name of the holiday to be tested */ - const HOLIDAY = 'substituteDayOfGoodwill'; + public const HOLIDAY = 'substituteDayOfGoodwill'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2016; + public const ESTABLISHMENT_YEAR = 2016; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index b08997a9a..5f6f06c1f 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -30,12 +30,12 @@ class WorkersDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index b671d486e..2e788fbc2 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -30,12 +30,12 @@ class YouthDayTest extends SouthAfricaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'youthDay'; + public const HOLIDAY = 'youthDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1994; + public const ESTABLISHMENT_YEAR = 1994; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/AllSaintsDayTest.php b/tests/Spain/AllSaintsDayTest.php index 6ad8bbb69..a51b2a488 100644 --- a/tests/Spain/AllSaintsDayTest.php +++ b/tests/Spain/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends SpainBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/Andalusia/AndalusiaBaseTestCase.php b/tests/Spain/Andalusia/AndalusiaBaseTestCase.php index cae633285..b39fa1100 100644 --- a/tests/Spain/Andalusia/AndalusiaBaseTestCase.php +++ b/tests/Spain/Andalusia/AndalusiaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class AndalusiaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Andalusia'; + public const REGION = 'Spain/Andalusia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Andalusia/AndalusiaDayTest.php b/tests/Spain/Andalusia/AndalusiaDayTest.php index 0d0978306..89cb17e00 100644 --- a/tests/Spain/Andalusia/AndalusiaDayTest.php +++ b/tests/Spain/Andalusia/AndalusiaDayTest.php @@ -25,12 +25,12 @@ class AndalusiaDayTest extends AndalusiaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'andalusiaDay'; + public const HOLIDAY = 'andalusiaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1980; + public const ESTABLISHMENT_YEAR = 1980; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Aragon/AragonBaseTestCase.php b/tests/Spain/Aragon/AragonBaseTestCase.php index 32518283a..8c4de7cdb 100644 --- a/tests/Spain/Aragon/AragonBaseTestCase.php +++ b/tests/Spain/Aragon/AragonBaseTestCase.php @@ -25,10 +25,10 @@ abstract class AragonBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Aragon'; + public const REGION = 'Spain/Aragon'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Aragon/StGeorgesDayTest.php b/tests/Spain/Aragon/StGeorgesDayTest.php index 6a116170d..1b773ffc7 100644 --- a/tests/Spain/Aragon/StGeorgesDayTest.php +++ b/tests/Spain/Aragon/StGeorgesDayTest.php @@ -25,7 +25,7 @@ class StGeorgesDayTest extends AragonBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'stGeorgesDay'; + public const HOLIDAY = 'stGeorgesDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/AssumptionOfMaryTest.php b/tests/Spain/AssumptionOfMaryTest.php index ae6c4e4ec..b8c7be8b6 100644 --- a/tests/Spain/AssumptionOfMaryTest.php +++ b/tests/Spain/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends SpainBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/Asturias/AsturiasBaseTestCase.php b/tests/Spain/Asturias/AsturiasBaseTestCase.php index dc3da4ee9..402cd677e 100644 --- a/tests/Spain/Asturias/AsturiasBaseTestCase.php +++ b/tests/Spain/Asturias/AsturiasBaseTestCase.php @@ -25,10 +25,10 @@ abstract class AsturiasBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Asturias'; + public const REGION = 'Spain/Asturias'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Asturias/AsturiasDayTest.php b/tests/Spain/Asturias/AsturiasDayTest.php index be9f39a54..6f7fef439 100644 --- a/tests/Spain/Asturias/AsturiasDayTest.php +++ b/tests/Spain/Asturias/AsturiasDayTest.php @@ -25,12 +25,12 @@ class AsturiasDayTest extends AsturiasBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'asturiasDay'; + public const HOLIDAY = 'asturiasDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1984; + public const ESTABLISHMENT_YEAR = 1984; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php b/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php index 0911519bf..33b009fcc 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BalearicIslandsBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/BalearicIslands'; + public const REGION = 'Spain/BalearicIslands'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php index 2441bde64..d7026fe71 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php @@ -25,12 +25,12 @@ class BalearicIslandsDayTest extends BalearicIslandsBaseTestCase implements Yasu /** * The name of the holiday to be tested */ - const HOLIDAY = 'balearicIslandsDay'; + public const HOLIDAY = 'balearicIslandsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1983; + public const ESTABLISHMENT_YEAR = 1983; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php b/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php index 82485e89b..bb07cae22 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php +++ b/tests/Spain/BasqueCountry/BasqueCountryBaseTestCase.php @@ -25,10 +25,10 @@ abstract class BasqueCountryBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/BasqueCountry'; + public const REGION = 'Spain/BasqueCountry'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php index 1d4f5f515..6336cfbd8 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php @@ -25,17 +25,17 @@ class BasqueCountryDayTest extends BasqueCountryBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'basqueCountryDay'; + public const HOLIDAY = 'basqueCountryDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2011; + public const ESTABLISHMENT_YEAR = 2011; /** * The year in which the holiday was abolished */ - const ABOLISHMENT_YEAR = 2013; + public const ABOLISHMENT_YEAR = 2013; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php b/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php index 8785590ea..2848b58f8 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CanaryIslandsBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/CanaryIslands'; + public const REGION = 'Spain/CanaryIslands'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Atlantic/Canary'; + public const TIMEZONE = 'Atlantic/Canary'; } diff --git a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php index 4e1941f53..e6e1f85f1 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php @@ -25,12 +25,12 @@ class CanaryIslandsDayTest extends CanaryIslandsBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'canaryIslandsDay'; + public const HOLIDAY = 'canaryIslandsDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1984; + public const ESTABLISHMENT_YEAR = 1984; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Cantabria/CantabriaBaseTestCase.php b/tests/Spain/Cantabria/CantabriaBaseTestCase.php index 477513279..5fa512d10 100644 --- a/tests/Spain/Cantabria/CantabriaBaseTestCase.php +++ b/tests/Spain/Cantabria/CantabriaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CantabriaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Cantabria'; + public const REGION = 'Spain/Cantabria'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Cantabria/CantabriaDayTest.php b/tests/Spain/Cantabria/CantabriaDayTest.php index dbb17a826..1bffa772c 100644 --- a/tests/Spain/Cantabria/CantabriaDayTest.php +++ b/tests/Spain/Cantabria/CantabriaDayTest.php @@ -25,12 +25,12 @@ class CantabriaDayTest extends CantabriaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'cantabriaDay'; + public const HOLIDAY = 'cantabriaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1967; + public const ESTABLISHMENT_YEAR = 1967; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php b/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php index c15aaedd0..019c69360 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CastileAndLeonBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/CastileAndLeon'; + public const REGION = 'Spain/CastileAndLeon'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php index e83d7a1e8..da733cb8d 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php @@ -25,12 +25,12 @@ class CastileAndLeonDayTest extends CastileAndLeonBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'castileAndLeonDay'; + public const HOLIDAY = 'castileAndLeonDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1976; + public const ESTABLISHMENT_YEAR = 1976; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php index 65103c83d..146bca8e0 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CastillaLaManchaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/CastillaLaMancha'; + public const REGION = 'Spain/CastillaLaMancha'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php index cb422faca..7890200ee 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php @@ -25,12 +25,12 @@ class CastillaLaManchaDayTest extends CastillaLaManchaBaseTestCase implements Ya /** * The name of the holiday to be tested */ - const HOLIDAY = 'castillaLaManchaDay'; + public const HOLIDAY = 'castillaLaManchaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1984; + public const ESTABLISHMENT_YEAR = 1984; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Catalonia/CataloniaBaseTestCase.php b/tests/Spain/Catalonia/CataloniaBaseTestCase.php index b2c52ec60..ef816dc2a 100644 --- a/tests/Spain/Catalonia/CataloniaBaseTestCase.php +++ b/tests/Spain/Catalonia/CataloniaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CataloniaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Catalonia'; + public const REGION = 'Spain/Catalonia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Catalonia/nationalCataloniaDayTest.php b/tests/Spain/Catalonia/nationalCataloniaDayTest.php index 6dafea348..292270da6 100644 --- a/tests/Spain/Catalonia/nationalCataloniaDayTest.php +++ b/tests/Spain/Catalonia/nationalCataloniaDayTest.php @@ -25,12 +25,12 @@ class nationalCataloniaDayTest extends CataloniaBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'nationalCataloniaDay'; + public const HOLIDAY = 'nationalCataloniaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1886; + public const ESTABLISHMENT_YEAR = 1886; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Catalonia/stJohnsDayTest.php b/tests/Spain/Catalonia/stJohnsDayTest.php index 69e99e25a..3e195ea83 100644 --- a/tests/Spain/Catalonia/stJohnsDayTest.php +++ b/tests/Spain/Catalonia/stJohnsDayTest.php @@ -24,7 +24,7 @@ class stJohnsDayTest extends CataloniaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJohnsDay'; + public const HOLIDAY = 'stJohnsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/Ceuta/CeutaBaseTestCase.php b/tests/Spain/Ceuta/CeutaBaseTestCase.php index 58566f068..5eac73ed1 100644 --- a/tests/Spain/Ceuta/CeutaBaseTestCase.php +++ b/tests/Spain/Ceuta/CeutaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CeutaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Ceuta'; + public const REGION = 'Spain/Ceuta'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Ceuta/ceutaDayTest.php b/tests/Spain/Ceuta/ceutaDayTest.php index f2610fe01..42685f227 100644 --- a/tests/Spain/Ceuta/ceutaDayTest.php +++ b/tests/Spain/Ceuta/ceutaDayTest.php @@ -25,12 +25,12 @@ class ceutaDayTest extends CeutaBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'ceutaDay'; + public const HOLIDAY = 'ceutaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1416; + public const ESTABLISHMENT_YEAR = 1416; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/ChristmasTest.php b/tests/Spain/ChristmasTest.php index 7f6d341aa..391354ee5 100644 --- a/tests/Spain/ChristmasTest.php +++ b/tests/Spain/ChristmasTest.php @@ -24,7 +24,7 @@ class ChristmasTest extends SpainBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php b/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php index 3ca76563a..4d1190756 100644 --- a/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php +++ b/tests/Spain/CommunityOfMadrid/CommunityOfMadridBaseTestCase.php @@ -25,10 +25,10 @@ abstract class CommunityOfMadridBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/CommunityOfMadrid'; + public const REGION = 'Spain/CommunityOfMadrid'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php index 1894d2119..3c81e3d46 100644 --- a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php +++ b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php @@ -25,7 +25,7 @@ class DosdeMayoUprisingDayTest extends CommunityOfMadridBaseTestCase implements /** * The name of the holiday to be tested */ - const HOLIDAY = 'dosdeMayoUprisingDay'; + public const HOLIDAY = 'dosdeMayoUprisingDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/ConstitutionDayTest.php b/tests/Spain/ConstitutionDayTest.php index 32de6ed85..156cde9eb 100644 --- a/tests/Spain/ConstitutionDayTest.php +++ b/tests/Spain/ConstitutionDayTest.php @@ -25,12 +25,12 @@ class ConstitutionDayTest extends SpainBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'constitutionDay'; + public const HOLIDAY = 'constitutionDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1978; + public const ESTABLISHMENT_YEAR = 1978; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/EasterMondayTest.php b/tests/Spain/EasterMondayTest.php index afe71ed5d..4f8adfd9b 100644 --- a/tests/Spain/EasterMondayTest.php +++ b/tests/Spain/EasterMondayTest.php @@ -25,13 +25,13 @@ class EasterMondayTest extends SpainBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Name of the region (e.g. country / state) to be tested * Using Catalonia as the holiday provider as not all regions celebrate Easter Monday in Spain. */ - const REGION = 'Spain/Catalonia'; + public const REGION = 'Spain/Catalonia'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/EpiphanyTest.php b/tests/Spain/EpiphanyTest.php index 1a663a14f..acf0f0062 100644 --- a/tests/Spain/EpiphanyTest.php +++ b/tests/Spain/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends SpainBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php b/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php index 4cb264ef1..74f382c33 100644 --- a/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php +++ b/tests/Spain/Extremadura/ExtremaduraBaseTestCase.php @@ -25,10 +25,10 @@ abstract class ExtremaduraBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Extremadura'; + public const REGION = 'Spain/Extremadura'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Extremadura/ExtremaduraDayTest.php b/tests/Spain/Extremadura/ExtremaduraDayTest.php index 0be072ff1..f7b503fb1 100644 --- a/tests/Spain/Extremadura/ExtremaduraDayTest.php +++ b/tests/Spain/Extremadura/ExtremaduraDayTest.php @@ -25,12 +25,12 @@ class ExtremaduraDayTest extends ExtremaduraBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'extremaduraDay'; + public const HOLIDAY = 'extremaduraDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1985; + public const ESTABLISHMENT_YEAR = 1985; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Galicia/GaliciaBaseTestCase.php b/tests/Spain/Galicia/GaliciaBaseTestCase.php index da8c883c1..a30ca3164 100644 --- a/tests/Spain/Galicia/GaliciaBaseTestCase.php +++ b/tests/Spain/Galicia/GaliciaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class GaliciaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Galicia'; + public const REGION = 'Spain/Galicia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/Galicia/GalicianLiteratureDayTest.php b/tests/Spain/Galicia/GalicianLiteratureDayTest.php index 15e825586..fa31491c5 100644 --- a/tests/Spain/Galicia/GalicianLiteratureDayTest.php +++ b/tests/Spain/Galicia/GalicianLiteratureDayTest.php @@ -25,12 +25,12 @@ class GalicianLiteratureDayTest extends GaliciaBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'galicianLiteratureDay'; + public const HOLIDAY = 'galicianLiteratureDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1991; + public const ESTABLISHMENT_YEAR = 1991; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Galicia/stJamesDayTest.php b/tests/Spain/Galicia/stJamesDayTest.php index 6ca92e0b8..6675ab411 100644 --- a/tests/Spain/Galicia/stJamesDayTest.php +++ b/tests/Spain/Galicia/stJamesDayTest.php @@ -25,12 +25,12 @@ class stJamesDayTest extends GaliciaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJamesDay'; + public const HOLIDAY = 'stJamesDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 2000; + public const ESTABLISHMENT_YEAR = 2000; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/GoodFridayTest.php b/tests/Spain/GoodFridayTest.php index f8b895451..08791a0e7 100644 --- a/tests/Spain/GoodFridayTest.php +++ b/tests/Spain/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends SpainBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/ImmaculateConceptionTest.php b/tests/Spain/ImmaculateConceptionTest.php index 7983bdc68..b7658ca68 100644 --- a/tests/Spain/ImmaculateConceptionTest.php +++ b/tests/Spain/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends SpainBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/InternationalWorkersDayTest.php b/tests/Spain/InternationalWorkersDayTest.php index da446a76d..96b0833f3 100644 --- a/tests/Spain/InternationalWorkersDayTest.php +++ b/tests/Spain/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends SpainBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/LaRioja/LaRiojaBaseTestCase.php b/tests/Spain/LaRioja/LaRiojaBaseTestCase.php index 0c7b5afef..dcf68061c 100644 --- a/tests/Spain/LaRioja/LaRiojaBaseTestCase.php +++ b/tests/Spain/LaRioja/LaRiojaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class LaRiojaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/LaRioja'; + public const REGION = 'Spain/LaRioja'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/LaRioja/LaRiojaDayTest.php b/tests/Spain/LaRioja/LaRiojaDayTest.php index 079a682c1..fa81e5d80 100644 --- a/tests/Spain/LaRioja/LaRiojaDayTest.php +++ b/tests/Spain/LaRioja/LaRiojaDayTest.php @@ -25,12 +25,12 @@ class LaRiojaDayTest extends LaRiojaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'laRiojaDay'; + public const HOLIDAY = 'laRiojaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1983; + public const ESTABLISHMENT_YEAR = 1983; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/MaundyThursdayTest.php b/tests/Spain/MaundyThursdayTest.php index 15e700cad..c16cc1269 100644 --- a/tests/Spain/MaundyThursdayTest.php +++ b/tests/Spain/MaundyThursdayTest.php @@ -25,13 +25,13 @@ class MaundyThursdayTest extends SpainBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'maundyThursday'; + public const HOLIDAY = 'maundyThursday'; /** * Name of the region (e.g. country / state) to be tested * Using the Region of Murcia as the holiday provider as not all regions celebrate Maundy Thursday in Spain. */ - const REGION = 'Spain/RegionOfMurcia'; + public const REGION = 'Spain/RegionOfMurcia'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/Melilla/MelillaBaseTestCase.php b/tests/Spain/Melilla/MelillaBaseTestCase.php index 59bfb1836..715c416c6 100644 --- a/tests/Spain/Melilla/MelillaBaseTestCase.php +++ b/tests/Spain/Melilla/MelillaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class MelillaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Melilla'; + public const REGION = 'Spain/Melilla'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/NationalDayTest.php b/tests/Spain/NationalDayTest.php index ab541bdec..915071742 100644 --- a/tests/Spain/NationalDayTest.php +++ b/tests/Spain/NationalDayTest.php @@ -25,12 +25,12 @@ class NationalDayTest extends SpainBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'nationalDay'; + public const HOLIDAY = 'nationalDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1981; + public const ESTABLISHMENT_YEAR = 1981; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/Navarre/NavarreBaseTestCase.php b/tests/Spain/Navarre/NavarreBaseTestCase.php index 9193a2424..07b335a72 100644 --- a/tests/Spain/Navarre/NavarreBaseTestCase.php +++ b/tests/Spain/Navarre/NavarreBaseTestCase.php @@ -25,10 +25,10 @@ abstract class NavarreBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/Navarre'; + public const REGION = 'Spain/Navarre'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/NewYearsDayTest.php b/tests/Spain/NewYearsDayTest.php index fd1e9fe7c..849465294 100644 --- a/tests/Spain/NewYearsDayTest.php +++ b/tests/Spain/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends SpainBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php index ca4aef5d4..5db949d25 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaBaseTestCase.php @@ -25,10 +25,10 @@ abstract class RegionOfMurciaBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/RegionOfMurcia'; + public const REGION = 'Spain/RegionOfMurcia'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php index f23c001b9..d1796570f 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php @@ -25,12 +25,12 @@ class RegionOfMurciaDayTest extends RegionOfMurciaBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'murciaDay'; + public const HOLIDAY = 'murciaDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1983; + public const ESTABLISHMENT_YEAR = 1983; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/SpainBaseTestCase.php b/tests/Spain/SpainBaseTestCase.php index 3102f3907..99363d9ce 100644 --- a/tests/Spain/SpainBaseTestCase.php +++ b/tests/Spain/SpainBaseTestCase.php @@ -25,16 +25,16 @@ abstract class SpainBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain'; + public const REGION = 'Spain'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; /** * Locale that is considered common for this provider */ - const LOCALE = 'es_ES'; + public const LOCALE = 'es_ES'; } diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php b/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php index 128045815..36c9a5ad0 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityBaseTestCase.php @@ -25,10 +25,10 @@ abstract class ValencianCommunityBaseTestCase extends SpainBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Spain/ValencianCommunity'; + public const REGION = 'Spain/ValencianCommunity'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Madrid'; + public const TIMEZONE = 'Europe/Madrid'; } diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php index e4f8288f0..92e813b31 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php @@ -25,12 +25,12 @@ class ValencianCommunityDayTest extends ValencianCommunityBaseTestCase implement /** * The name of the holiday to be tested */ - const HOLIDAY = 'valencianCommunityDay'; + public const HOLIDAY = 'valencianCommunityDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1239; // Not entirely sure about this year + public const ESTABLISHMENT_YEAR = 1239; // Not entirely sure about this year /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Spain/ValentinesDayTest.php b/tests/Spain/ValentinesDayTest.php index a87618409..a445a25da 100644 --- a/tests/Spain/ValentinesDayTest.php +++ b/tests/Spain/ValentinesDayTest.php @@ -24,7 +24,7 @@ class ValentinesDayTest extends SpainBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'valentinesDay'; + public const HOLIDAY = 'valentinesDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Spain/stJosephsDayTest.php b/tests/Spain/stJosephsDayTest.php index f8199800f..f789d18e1 100644 --- a/tests/Spain/stJosephsDayTest.php +++ b/tests/Spain/stJosephsDayTest.php @@ -24,13 +24,13 @@ class stJosephsDayTest extends SpainBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJosephsDay'; + public const HOLIDAY = 'stJosephsDay'; /** * Name of the region (e.g. country / state) to be tested * Using Asturias as the holiday provider as not all regions celebrate St. Joseph's Day in Spain. */ - const REGION = 'Spain/Asturias'; + public const REGION = 'Spain/Asturias'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/AllSaintsDayTest.php b/tests/Sweden/AllSaintsDayTest.php index 7dc9f8d14..c82b0c820 100644 --- a/tests/Sweden/AllSaintsDayTest.php +++ b/tests/Sweden/AllSaintsDayTest.php @@ -26,7 +26,7 @@ class AllSaintsDayTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/AscensionDayTest.php b/tests/Sweden/AscensionDayTest.php index 353e3d8a6..f7d0cf23d 100644 --- a/tests/Sweden/AscensionDayTest.php +++ b/tests/Sweden/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Sweden/ChristmasDayTest.php b/tests/Sweden/ChristmasDayTest.php index fcba01deb..9667ce598 100644 --- a/tests/Sweden/ChristmasDayTest.php +++ b/tests/Sweden/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/ChristmasEveTest.php b/tests/Sweden/ChristmasEveTest.php index 818bc159d..47c4c0b27 100644 --- a/tests/Sweden/ChristmasEveTest.php +++ b/tests/Sweden/ChristmasEveTest.php @@ -24,7 +24,7 @@ class ChristmasEveTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'christmasEve'; + public const HOLIDAY = 'christmasEve'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/EasterMondayTest.php b/tests/Sweden/EasterMondayTest.php index 3db678bdd..069dac480 100644 --- a/tests/Sweden/EasterMondayTest.php +++ b/tests/Sweden/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends SwedenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/EasterTest.php b/tests/Sweden/EasterTest.php index 4fac43847..9f0b1c368 100644 --- a/tests/Sweden/EasterTest.php +++ b/tests/Sweden/EasterTest.php @@ -25,7 +25,7 @@ class EasterTest extends SwedenBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/EpiphanyTest.php b/tests/Sweden/EpiphanyTest.php index 3f17bf857..9788a2f58 100644 --- a/tests/Sweden/EpiphanyTest.php +++ b/tests/Sweden/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends SwedenBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/GoodFridayTest.php b/tests/Sweden/GoodFridayTest.php index c89266676..8edc23227 100644 --- a/tests/Sweden/GoodFridayTest.php +++ b/tests/Sweden/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends SwedenBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/InternationalWorkersDayTest.php b/tests/Sweden/InternationalWorkersDayTest.php index b9e3b9f5b..ebb175857 100644 --- a/tests/Sweden/InternationalWorkersDayTest.php +++ b/tests/Sweden/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends SwedenBaseTestCase implements YasumiTe /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Sweden/NationalDayTest.php b/tests/Sweden/NationalDayTest.php index c8734f9b9..9f73c9bf6 100644 --- a/tests/Sweden/NationalDayTest.php +++ b/tests/Sweden/NationalDayTest.php @@ -25,12 +25,12 @@ class NationalDayTest extends SwedenBaseTestCase implements YasumiTestCaseInterf /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1916; + public const ESTABLISHMENT_YEAR = 1916; /** * The name of the holiday */ - const HOLIDAY = 'nationalDay'; + public const HOLIDAY = 'nationalDay'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/Sweden/NewYearsDayTest.php b/tests/Sweden/NewYearsDayTest.php index 67bf33b70..65ccdd817 100644 --- a/tests/Sweden/NewYearsDayTest.php +++ b/tests/Sweden/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends SwedenBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/PentecostTest.php b/tests/Sweden/PentecostTest.php index edf28997e..a02769401 100644 --- a/tests/Sweden/PentecostTest.php +++ b/tests/Sweden/PentecostTest.php @@ -25,7 +25,7 @@ class PentecostTest extends SwedenBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/SecondChristmasDayTest.php b/tests/Sweden/SecondChristmasDayTest.php index 47f673abb..64b697a32 100644 --- a/tests/Sweden/SecondChristmasDayTest.php +++ b/tests/Sweden/SecondChristmasDayTest.php @@ -24,7 +24,7 @@ class SecondChristmasDayTest extends SwedenBaseTestCase implements YasumiTestCas /** * The name of the holiday to be tested */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Sweden/SwedenBaseTestCase.php b/tests/Sweden/SwedenBaseTestCase.php index a4380e553..d62a92b62 100644 --- a/tests/Sweden/SwedenBaseTestCase.php +++ b/tests/Sweden/SwedenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class SwedenBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Sweden'; + public const REGION = 'Sweden'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Stockholm'; + public const TIMEZONE = 'Europe/Stockholm'; /** * Locale that is considered common for this provider */ - const LOCALE = 'sv_SE'; + public const LOCALE = 'sv_SE'; } diff --git a/tests/Sweden/stJohnsDayTest.php b/tests/Sweden/stJohnsDayTest.php index 97c84e45d..e73c65ba0 100644 --- a/tests/Sweden/stJohnsDayTest.php +++ b/tests/Sweden/stJohnsDayTest.php @@ -24,7 +24,7 @@ class stJohnsDayTest extends SwedenBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'stJohnsDay'; + public const HOLIDAY = 'stJohnsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Aargau/AargauBaseTestCase.php b/tests/Switzerland/Aargau/AargauBaseTestCase.php index ed9af9959..3e6fdbf2e 100644 --- a/tests/Switzerland/Aargau/AargauBaseTestCase.php +++ b/tests/Switzerland/Aargau/AargauBaseTestCase.php @@ -25,15 +25,15 @@ abstract class AargauBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Aargau'; + public const REGION = 'Switzerland/Aargau'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Aargau/AscensionDayTest.php b/tests/Switzerland/Aargau/AscensionDayTest.php index 9e3f8776c..e7695b1e1 100644 --- a/tests/Switzerland/Aargau/AscensionDayTest.php +++ b/tests/Switzerland/Aargau/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends AargauBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Aargau/ChristmasDayTest.php b/tests/Switzerland/Aargau/ChristmasDayTest.php index 9a2836243..6bbb3caa4 100644 --- a/tests/Switzerland/Aargau/ChristmasDayTest.php +++ b/tests/Switzerland/Aargau/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends AargauBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Aargau/GoodFridayTest.php b/tests/Switzerland/Aargau/GoodFridayTest.php index 7d66c66c4..e2dd3f071 100644 --- a/tests/Switzerland/Aargau/GoodFridayTest.php +++ b/tests/Switzerland/Aargau/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends AargauBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Aargau/NewYearsDayTest.php b/tests/Switzerland/Aargau/NewYearsDayTest.php index 4697bad49..5c6a006bb 100644 --- a/tests/Switzerland/Aargau/NewYearsDayTest.php +++ b/tests/Switzerland/Aargau/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends AargauBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php index ea15e8d1d..d831a6710 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class AppenzellAusserrhodenBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/AppenzellAusserrhoden'; + public const REGION = 'Switzerland/AppenzellAusserrhoden'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php index b1f1ebf90..651fc4155 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends AppenzellAusserrhodenBaseTestCase implements Yasu /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php index 0c0058313..f13038fd6 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends AppenzellAusserrhodenBaseTestCase implements Yasu /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php index e64400d9d..c8ced3eef 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends AppenzellAusserrhodenBaseTestCase implements Yasu /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php index 76b696f48..6e1d71e56 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends AppenzellAusserrhodenBaseTestCase implements Yasumi /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php index 83108877d..7548c3caa 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends AppenzellAusserrhodenBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php index 997a1280f..474cb9ef2 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends AppenzellAusserrhodenBaseTestCase implements Y /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php index 7abbd3bcf..b563b2f83 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends AppenzellAusserrhodenBaseTestCase implements Yas /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php index 52e04114a..21b7102bb 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php index 44c31e45a..aac107425 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class AppenzellInnerrhodenBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/AppenzellInnerrhoden'; + public const REGION = 'Switzerland/AppenzellInnerrhoden'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php index 3d98eb51c..d89c152d4 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php index 80351eba7..ee7d084ee 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends AppenzellInnerrhodenBaseTestCase implements Y /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php index d9988b49b..01cfed204 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php index bece7658a..456e0664c 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends AppenzellInnerrhodenBaseTestCase implements Yasu /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php index 33ad3ef7e..1aa38237e 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends AppenzellInnerrhodenBaseTestCase implements Yasum /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php index 3a9cf14d5..ae145a7b8 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends AppenzellInnerrhodenBaseTestCase implements YasumiT /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php index 16544715e..5b4003554 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends AppenzellInnerrhodenBaseTestCase implemen /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php index fb616d345..6728fd23d 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasumi /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php index 5ddf144b0..f6c1564b2 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends AppenzellInnerrhodenBaseTestCase implements Ya /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php index 34aa682ec..a4f0cfb72 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends AppenzellInnerrhodenBaseTestCase implements Yasu /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php index 570b65245..bc56329a3 100644 --- a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php +++ b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends BaselLandschaftBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php b/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php index eb399def5..3500163ad 100644 --- a/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php +++ b/tests/Switzerland/BaselLandschaft/BaselLandschaftBaseTestCase.php @@ -25,15 +25,15 @@ abstract class BaselLandschaftBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/BaselLandschaft'; + public const REGION = 'Switzerland/BaselLandschaft'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php index 9f0b22093..c1cdde48f 100644 --- a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php +++ b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends BaselLandschaftBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php index d884dc7ca..535535c59 100644 --- a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends BaselLandschaftBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php index b3d9b30fd..cbcb51cf2 100644 --- a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php +++ b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends BaselLandschaftBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php index 118256210..70ad9c9a7 100644 --- a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php +++ b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends BaselLandschaftBaseTestCase implements YasumiTestC /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php index 50ead818f..7d55323df 100644 --- a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends BaselLandschaftBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php index 4fc2c6769..b800b2fdf 100644 --- a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php +++ b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends BaselLandschaftBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index a0c82a8a7..7eb816f4a 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends BaselLandschaftBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/BaselStadt/AscensionDayTest.php b/tests/Switzerland/BaselStadt/AscensionDayTest.php index 0cb37025d..fc16f6622 100644 --- a/tests/Switzerland/BaselStadt/AscensionDayTest.php +++ b/tests/Switzerland/BaselStadt/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php b/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php index e46223bf3..6c2e23fe6 100644 --- a/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php +++ b/tests/Switzerland/BaselStadt/BaselStadtBaseTestCase.php @@ -25,15 +25,15 @@ abstract class BaselStadtBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/BaselStadt'; + public const REGION = 'Switzerland/BaselStadt'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/BaselStadt/ChristmasDayTest.php b/tests/Switzerland/BaselStadt/ChristmasDayTest.php index c8cd7abb5..6908a0437 100644 --- a/tests/Switzerland/BaselStadt/ChristmasDayTest.php +++ b/tests/Switzerland/BaselStadt/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/BaselStadt/EasterMondayTest.php b/tests/Switzerland/BaselStadt/EasterMondayTest.php index b1db878f2..ecba180f1 100644 --- a/tests/Switzerland/BaselStadt/EasterMondayTest.php +++ b/tests/Switzerland/BaselStadt/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends BaselStadtBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/BaselStadt/GoodFridayTest.php b/tests/Switzerland/BaselStadt/GoodFridayTest.php index d174fdd01..5782affb7 100644 --- a/tests/Switzerland/BaselStadt/GoodFridayTest.php +++ b/tests/Switzerland/BaselStadt/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends BaselStadtBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/BaselStadt/NewYearsDayTest.php b/tests/Switzerland/BaselStadt/NewYearsDayTest.php index c37ae1d5b..b59c3e0e0 100644 --- a/tests/Switzerland/BaselStadt/NewYearsDayTest.php +++ b/tests/Switzerland/BaselStadt/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/BaselStadt/PentecostMondayTest.php b/tests/Switzerland/BaselStadt/PentecostMondayTest.php index e83877ef7..12db2c595 100644 --- a/tests/Switzerland/BaselStadt/PentecostMondayTest.php +++ b/tests/Switzerland/BaselStadt/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends BaselStadtBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/BaselStadt/StStephensDayTest.php b/tests/Switzerland/BaselStadt/StStephensDayTest.php index aadbfc96e..98f52abcd 100644 --- a/tests/Switzerland/BaselStadt/StStephensDayTest.php +++ b/tests/Switzerland/BaselStadt/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends BaselStadtBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index ac52a8f38..02e19fde3 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends BaselStadtBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Bern/AscensionDayTest.php b/tests/Switzerland/Bern/AscensionDayTest.php index 1d9a19dcb..d5fbe4516 100644 --- a/tests/Switzerland/Bern/AscensionDayTest.php +++ b/tests/Switzerland/Bern/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends BernBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Bern/BerchtoldsTagTest.php b/tests/Switzerland/Bern/BerchtoldsTagTest.php index db7019f49..3cc47b734 100644 --- a/tests/Switzerland/Bern/BerchtoldsTagTest.php +++ b/tests/Switzerland/Bern/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends BernBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Bern/BernBaseTestCase.php b/tests/Switzerland/Bern/BernBaseTestCase.php index 68d87890d..162343ed3 100644 --- a/tests/Switzerland/Bern/BernBaseTestCase.php +++ b/tests/Switzerland/Bern/BernBaseTestCase.php @@ -25,15 +25,15 @@ abstract class BernBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Bern'; + public const REGION = 'Switzerland/Bern'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Bern/ChristmasDayTest.php b/tests/Switzerland/Bern/ChristmasDayTest.php index dc0290b00..5dbd59fbb 100644 --- a/tests/Switzerland/Bern/ChristmasDayTest.php +++ b/tests/Switzerland/Bern/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends BernBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Bern/EasterMondayTest.php b/tests/Switzerland/Bern/EasterMondayTest.php index 0187000b0..f49b897bc 100644 --- a/tests/Switzerland/Bern/EasterMondayTest.php +++ b/tests/Switzerland/Bern/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends BernBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Bern/GoodFridayTest.php b/tests/Switzerland/Bern/GoodFridayTest.php index f1e316b33..5c46fcc65 100644 --- a/tests/Switzerland/Bern/GoodFridayTest.php +++ b/tests/Switzerland/Bern/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends BernBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Bern/NewYearsDayTest.php b/tests/Switzerland/Bern/NewYearsDayTest.php index a23d91889..3bcbe7251 100644 --- a/tests/Switzerland/Bern/NewYearsDayTest.php +++ b/tests/Switzerland/Bern/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends BernBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Bern/PentecostMondayTest.php b/tests/Switzerland/Bern/PentecostMondayTest.php index ef4ae6bae..a460991fd 100644 --- a/tests/Switzerland/Bern/PentecostMondayTest.php +++ b/tests/Switzerland/Bern/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends BernBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Bern/StStephensDayTest.php b/tests/Switzerland/Bern/StStephensDayTest.php index eb34ee84b..ba5175071 100644 --- a/tests/Switzerland/Bern/StStephensDayTest.php +++ b/tests/Switzerland/Bern/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends BernBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Fribourg/AscensionDayTest.php b/tests/Switzerland/Fribourg/AscensionDayTest.php index d2dd01573..68adc0cf0 100644 --- a/tests/Switzerland/Fribourg/AscensionDayTest.php +++ b/tests/Switzerland/Fribourg/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends FribourgBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Fribourg/ChristmasDayTest.php b/tests/Switzerland/Fribourg/ChristmasDayTest.php index d2d189383..a48cf9d02 100644 --- a/tests/Switzerland/Fribourg/ChristmasDayTest.php +++ b/tests/Switzerland/Fribourg/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends FribourgBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Fribourg/EasterMondayTest.php b/tests/Switzerland/Fribourg/EasterMondayTest.php index c78ef2e4a..d552e1eb3 100644 --- a/tests/Switzerland/Fribourg/EasterMondayTest.php +++ b/tests/Switzerland/Fribourg/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends FribourgBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Fribourg/FribourgBaseTestCase.php b/tests/Switzerland/Fribourg/FribourgBaseTestCase.php index 7715169a5..c96572266 100644 --- a/tests/Switzerland/Fribourg/FribourgBaseTestCase.php +++ b/tests/Switzerland/Fribourg/FribourgBaseTestCase.php @@ -25,15 +25,15 @@ abstract class FribourgBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Fribourg'; + public const REGION = 'Switzerland/Fribourg'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_CH'; + public const LOCALE = 'fr_CH'; } diff --git a/tests/Switzerland/Fribourg/GoodFridayTest.php b/tests/Switzerland/Fribourg/GoodFridayTest.php index 2257a0ef6..95372dd81 100644 --- a/tests/Switzerland/Fribourg/GoodFridayTest.php +++ b/tests/Switzerland/Fribourg/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends FribourgBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Fribourg/NewYearsDayTest.php b/tests/Switzerland/Fribourg/NewYearsDayTest.php index fa2eb8bfe..4e375d646 100644 --- a/tests/Switzerland/Fribourg/NewYearsDayTest.php +++ b/tests/Switzerland/Fribourg/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends FribourgBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Fribourg/PentecostMondayTest.php b/tests/Switzerland/Fribourg/PentecostMondayTest.php index 7e1f9aadb..1ebf515da 100644 --- a/tests/Switzerland/Fribourg/PentecostMondayTest.php +++ b/tests/Switzerland/Fribourg/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends FribourgBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Geneva/AscensionDayTest.php b/tests/Switzerland/Geneva/AscensionDayTest.php index 5687d2991..57374751f 100644 --- a/tests/Switzerland/Geneva/AscensionDayTest.php +++ b/tests/Switzerland/Geneva/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends GenevaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Geneva/ChristmasDayTest.php b/tests/Switzerland/Geneva/ChristmasDayTest.php index 635339e36..662dae545 100644 --- a/tests/Switzerland/Geneva/ChristmasDayTest.php +++ b/tests/Switzerland/Geneva/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends GenevaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Geneva/EasterMondayTest.php b/tests/Switzerland/Geneva/EasterMondayTest.php index 1ff5c5ad0..3c231b411 100644 --- a/tests/Switzerland/Geneva/EasterMondayTest.php +++ b/tests/Switzerland/Geneva/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends GenevaBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Geneva/GenevaBaseTestCase.php b/tests/Switzerland/Geneva/GenevaBaseTestCase.php index 4bedd7221..07414c609 100644 --- a/tests/Switzerland/Geneva/GenevaBaseTestCase.php +++ b/tests/Switzerland/Geneva/GenevaBaseTestCase.php @@ -25,15 +25,15 @@ abstract class GenevaBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Geneva'; + public const REGION = 'Switzerland/Geneva'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_CH'; + public const LOCALE = 'fr_CH'; } diff --git a/tests/Switzerland/Geneva/GoodFridayTest.php b/tests/Switzerland/Geneva/GoodFridayTest.php index 108f5608b..93951d4b7 100644 --- a/tests/Switzerland/Geneva/GoodFridayTest.php +++ b/tests/Switzerland/Geneva/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends GenevaBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Geneva/JeuneGenevoisTest.php b/tests/Switzerland/Geneva/JeuneGenevoisTest.php index 26411524a..aac904e1a 100644 --- a/tests/Switzerland/Geneva/JeuneGenevoisTest.php +++ b/tests/Switzerland/Geneva/JeuneGenevoisTest.php @@ -26,7 +26,7 @@ class JeuneGenevoisTest extends GenevaBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'jeuneGenevois'; + public const HOLIDAY = 'jeuneGenevois'; /** * Tests Jeune Genevois on or after 1966 diff --git a/tests/Switzerland/Geneva/NewYearsDayTest.php b/tests/Switzerland/Geneva/NewYearsDayTest.php index 7160b9356..ccb31f85a 100644 --- a/tests/Switzerland/Geneva/NewYearsDayTest.php +++ b/tests/Switzerland/Geneva/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends GenevaBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Geneva/PentecostMondayTest.php b/tests/Switzerland/Geneva/PentecostMondayTest.php index f1c33c36c..a9b29d650 100644 --- a/tests/Switzerland/Geneva/PentecostMondayTest.php +++ b/tests/Switzerland/Geneva/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends GenevaBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php index f47cf471f..70cf8ce02 100644 --- a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php +++ b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php @@ -25,7 +25,7 @@ class RestaurationGenevoiseTest extends GenevaBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'restaurationGenevoise'; + public const HOLIDAY = 'restaurationGenevoise'; /** * Tests Restauration Genevoise. diff --git a/tests/Switzerland/Glarus/AllSaintsDayTest.php b/tests/Switzerland/Glarus/AllSaintsDayTest.php index 469931444..f061c17d4 100644 --- a/tests/Switzerland/Glarus/AllSaintsDayTest.php +++ b/tests/Switzerland/Glarus/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends GlarusBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Glarus/AscensionDayTest.php b/tests/Switzerland/Glarus/AscensionDayTest.php index d9870a1f5..88b7a9ff0 100644 --- a/tests/Switzerland/Glarus/AscensionDayTest.php +++ b/tests/Switzerland/Glarus/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends GlarusBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Glarus/BerchtoldsTagTest.php b/tests/Switzerland/Glarus/BerchtoldsTagTest.php index df39b78c4..4b89c77fd 100644 --- a/tests/Switzerland/Glarus/BerchtoldsTagTest.php +++ b/tests/Switzerland/Glarus/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends GlarusBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Glarus/ChristmasDayTest.php b/tests/Switzerland/Glarus/ChristmasDayTest.php index 206a3f7db..87e77a935 100644 --- a/tests/Switzerland/Glarus/ChristmasDayTest.php +++ b/tests/Switzerland/Glarus/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends GlarusBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Glarus/EasterMondayTest.php b/tests/Switzerland/Glarus/EasterMondayTest.php index 94afcaae7..ad6e30fc3 100644 --- a/tests/Switzerland/Glarus/EasterMondayTest.php +++ b/tests/Switzerland/Glarus/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends GlarusBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Glarus/GlarusBaseTestCase.php b/tests/Switzerland/Glarus/GlarusBaseTestCase.php index 2e45d161d..2a9ad54ed 100644 --- a/tests/Switzerland/Glarus/GlarusBaseTestCase.php +++ b/tests/Switzerland/Glarus/GlarusBaseTestCase.php @@ -25,15 +25,15 @@ abstract class GlarusBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Glarus'; + public const REGION = 'Switzerland/Glarus'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Glarus/GoodFridayTest.php b/tests/Switzerland/Glarus/GoodFridayTest.php index 888f1cb00..95a3ec5d7 100644 --- a/tests/Switzerland/Glarus/GoodFridayTest.php +++ b/tests/Switzerland/Glarus/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends GlarusBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Glarus/NafelserFahrtTest.php b/tests/Switzerland/Glarus/NafelserFahrtTest.php index 4a1b615e9..30cef80a9 100644 --- a/tests/Switzerland/Glarus/NafelserFahrtTest.php +++ b/tests/Switzerland/Glarus/NafelserFahrtTest.php @@ -25,12 +25,12 @@ class NafelserFahrtTest extends GlarusBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'nafelserFahrt'; + public const HOLIDAY = 'nafelserFahrt'; /** * The year in which the holiday was established */ - const ESTABLISHMENT_YEAR = 1389; + public const ESTABLISHMENT_YEAR = 1389; /** * Tests Näfelser Fahrt on or after 1389 diff --git a/tests/Switzerland/Glarus/NewYearsDayTest.php b/tests/Switzerland/Glarus/NewYearsDayTest.php index 4d3347e00..b00ce666b 100644 --- a/tests/Switzerland/Glarus/NewYearsDayTest.php +++ b/tests/Switzerland/Glarus/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends GlarusBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Glarus/PentecostMondayTest.php b/tests/Switzerland/Glarus/PentecostMondayTest.php index 8f775d1d6..102c7bd13 100644 --- a/tests/Switzerland/Glarus/PentecostMondayTest.php +++ b/tests/Switzerland/Glarus/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends GlarusBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Glarus/StStephensDayTest.php b/tests/Switzerland/Glarus/StStephensDayTest.php index e409e0f51..7a373ba10 100644 --- a/tests/Switzerland/Glarus/StStephensDayTest.php +++ b/tests/Switzerland/Glarus/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends GlarusBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Grisons/AscensionDayTest.php b/tests/Switzerland/Grisons/AscensionDayTest.php index a82e828c7..5c41e05df 100644 --- a/tests/Switzerland/Grisons/AscensionDayTest.php +++ b/tests/Switzerland/Grisons/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Grisons/ChristmasDayTest.php b/tests/Switzerland/Grisons/ChristmasDayTest.php index 5dd5aff83..6ec5a407d 100644 --- a/tests/Switzerland/Grisons/ChristmasDayTest.php +++ b/tests/Switzerland/Grisons/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Grisons/EasterMondayTest.php b/tests/Switzerland/Grisons/EasterMondayTest.php index f187e97dc..e26ca60ee 100644 --- a/tests/Switzerland/Grisons/EasterMondayTest.php +++ b/tests/Switzerland/Grisons/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends GrisonsBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Grisons/GoodFridayTest.php b/tests/Switzerland/Grisons/GoodFridayTest.php index 329fa7841..fea763292 100644 --- a/tests/Switzerland/Grisons/GoodFridayTest.php +++ b/tests/Switzerland/Grisons/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends GrisonsBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Grisons/GrisonsBaseTestCase.php b/tests/Switzerland/Grisons/GrisonsBaseTestCase.php index a3dd6170b..b35abc1d1 100644 --- a/tests/Switzerland/Grisons/GrisonsBaseTestCase.php +++ b/tests/Switzerland/Grisons/GrisonsBaseTestCase.php @@ -25,15 +25,15 @@ abstract class GrisonsBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Grisons'; + public const REGION = 'Switzerland/Grisons'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Grisons/NewYearsDayTest.php b/tests/Switzerland/Grisons/NewYearsDayTest.php index d13c58b1e..19536dbc4 100644 --- a/tests/Switzerland/Grisons/NewYearsDayTest.php +++ b/tests/Switzerland/Grisons/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Grisons/PentecostMondayTest.php b/tests/Switzerland/Grisons/PentecostMondayTest.php index f497b5e56..d087d19b3 100644 --- a/tests/Switzerland/Grisons/PentecostMondayTest.php +++ b/tests/Switzerland/Grisons/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends GrisonsBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Grisons/StStephensDayTest.php b/tests/Switzerland/Grisons/StStephensDayTest.php index da5d7c853..970b65a60 100644 --- a/tests/Switzerland/Grisons/StStephensDayTest.php +++ b/tests/Switzerland/Grisons/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends GrisonsBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Jura/AllSaintsDayTest.php b/tests/Switzerland/Jura/AllSaintsDayTest.php index e57ad07c6..c10e1dcd6 100644 --- a/tests/Switzerland/Jura/AllSaintsDayTest.php +++ b/tests/Switzerland/Jura/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Jura/AscensionDayTest.php b/tests/Switzerland/Jura/AscensionDayTest.php index 4d78c06c3..fbeefe7ed 100644 --- a/tests/Switzerland/Jura/AscensionDayTest.php +++ b/tests/Switzerland/Jura/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Jura/AssumptionOfMaryTest.php b/tests/Switzerland/Jura/AssumptionOfMaryTest.php index 1c50de201..6974626f0 100644 --- a/tests/Switzerland/Jura/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Jura/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends JuraBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Jura/BerchtoldsTagTest.php b/tests/Switzerland/Jura/BerchtoldsTagTest.php index 359e94ef8..911dec844 100644 --- a/tests/Switzerland/Jura/BerchtoldsTagTest.php +++ b/tests/Switzerland/Jura/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends JuraBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Jura/ChristmasDayTest.php b/tests/Switzerland/Jura/ChristmasDayTest.php index 32dbc1037..eed3e80eb 100644 --- a/tests/Switzerland/Jura/ChristmasDayTest.php +++ b/tests/Switzerland/Jura/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Jura/CorpusChristiTest.php b/tests/Switzerland/Jura/CorpusChristiTest.php index 7eae3fbe8..b336b59ce 100644 --- a/tests/Switzerland/Jura/CorpusChristiTest.php +++ b/tests/Switzerland/Jura/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends JuraBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Jura/EasterMondayTest.php b/tests/Switzerland/Jura/EasterMondayTest.php index 24896428a..e98113350 100644 --- a/tests/Switzerland/Jura/EasterMondayTest.php +++ b/tests/Switzerland/Jura/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends JuraBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Jura/GoodFridayTest.php b/tests/Switzerland/Jura/GoodFridayTest.php index e73fe72f8..8e54d7676 100644 --- a/tests/Switzerland/Jura/GoodFridayTest.php +++ b/tests/Switzerland/Jura/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends JuraBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Jura/JuraBaseTestCase.php b/tests/Switzerland/Jura/JuraBaseTestCase.php index 48a6ee432..c78937257 100644 --- a/tests/Switzerland/Jura/JuraBaseTestCase.php +++ b/tests/Switzerland/Jura/JuraBaseTestCase.php @@ -25,15 +25,15 @@ abstract class JuraBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Jura'; + public const REGION = 'Switzerland/Jura'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_CH'; + public const LOCALE = 'fr_CH'; } diff --git a/tests/Switzerland/Jura/NewYearsDayTest.php b/tests/Switzerland/Jura/NewYearsDayTest.php index 9ac5fd013..d3b851d52 100644 --- a/tests/Switzerland/Jura/NewYearsDayTest.php +++ b/tests/Switzerland/Jura/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends JuraBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Jura/PentecostMondayTest.php b/tests/Switzerland/Jura/PentecostMondayTest.php index d325bb088..f3f3a936d 100644 --- a/tests/Switzerland/Jura/PentecostMondayTest.php +++ b/tests/Switzerland/Jura/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends JuraBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Jura/PlebisciteJurassienTest.php b/tests/Switzerland/Jura/PlebisciteJurassienTest.php index 3b1cece99..689b1ed7b 100644 --- a/tests/Switzerland/Jura/PlebisciteJurassienTest.php +++ b/tests/Switzerland/Jura/PlebisciteJurassienTest.php @@ -25,12 +25,12 @@ class PlebisciteJurassienTest extends JuraBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'plebisciteJurassien'; + public const HOLIDAY = 'plebisciteJurassien'; /** * The year in which the holiday was established */ - const ESTABLISHMENT_YEAR = 1975; + public const ESTABLISHMENT_YEAR = 1975; /** * Tests Plébiscite jurassien on or after 1975. diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index 4fc480d9f..3cce40ece 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends JuraBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Lucerne/AllSaintsDayTest.php b/tests/Switzerland/Lucerne/AllSaintsDayTest.php index cb6d273bb..5737059e0 100644 --- a/tests/Switzerland/Lucerne/AllSaintsDayTest.php +++ b/tests/Switzerland/Lucerne/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends LucerneBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Lucerne/AscensionDayTest.php b/tests/Switzerland/Lucerne/AscensionDayTest.php index 0d3ff8511..202e599ae 100644 --- a/tests/Switzerland/Lucerne/AscensionDayTest.php +++ b/tests/Switzerland/Lucerne/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends LucerneBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php index c37d156e6..c0b2a7334 100644 --- a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends LucerneBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php index 828a735ed..f0e00fa05 100644 --- a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php +++ b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends LucerneBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Lucerne/ChristmasDayTest.php b/tests/Switzerland/Lucerne/ChristmasDayTest.php index bef215590..d34f83247 100644 --- a/tests/Switzerland/Lucerne/ChristmasDayTest.php +++ b/tests/Switzerland/Lucerne/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends LucerneBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Lucerne/CorpusChristiTest.php b/tests/Switzerland/Lucerne/CorpusChristiTest.php index 535af7a92..97594037f 100644 --- a/tests/Switzerland/Lucerne/CorpusChristiTest.php +++ b/tests/Switzerland/Lucerne/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends LucerneBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Lucerne/EasterMondayTest.php b/tests/Switzerland/Lucerne/EasterMondayTest.php index ea827d0aa..8040677c4 100644 --- a/tests/Switzerland/Lucerne/EasterMondayTest.php +++ b/tests/Switzerland/Lucerne/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends LucerneBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Lucerne/GoodFridayTest.php b/tests/Switzerland/Lucerne/GoodFridayTest.php index 031d4dbd3..6a5958c94 100644 --- a/tests/Switzerland/Lucerne/GoodFridayTest.php +++ b/tests/Switzerland/Lucerne/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends LucerneBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php index dfdd68e34..2b704a5aa 100644 --- a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends LucerneBaseTestCase implements YasumiTest /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Lucerne/LucerneBaseTestCase.php b/tests/Switzerland/Lucerne/LucerneBaseTestCase.php index ebf512e15..227ddcbeb 100644 --- a/tests/Switzerland/Lucerne/LucerneBaseTestCase.php +++ b/tests/Switzerland/Lucerne/LucerneBaseTestCase.php @@ -25,15 +25,15 @@ abstract class LucerneBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Lucerne'; + public const REGION = 'Switzerland/Lucerne'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Lucerne/NewYearsDayTest.php b/tests/Switzerland/Lucerne/NewYearsDayTest.php index d862701ff..9c0cc60ef 100644 --- a/tests/Switzerland/Lucerne/NewYearsDayTest.php +++ b/tests/Switzerland/Lucerne/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends LucerneBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Lucerne/PentecostMondayTest.php b/tests/Switzerland/Lucerne/PentecostMondayTest.php index 9a411adc0..06dfec57b 100644 --- a/tests/Switzerland/Lucerne/PentecostMondayTest.php +++ b/tests/Switzerland/Lucerne/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends LucerneBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Lucerne/StStephensDayTest.php b/tests/Switzerland/Lucerne/StStephensDayTest.php index d3a534c9c..ec1a5ecbf 100644 --- a/tests/Switzerland/Lucerne/StStephensDayTest.php +++ b/tests/Switzerland/Lucerne/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends LucerneBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Neuchatel/AscensionDayTest.php b/tests/Switzerland/Neuchatel/AscensionDayTest.php index 5c4a343af..48a2dd3c6 100644 --- a/tests/Switzerland/Neuchatel/AscensionDayTest.php +++ b/tests/Switzerland/Neuchatel/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php index c6b7d7df3..6ad9206c9 100644 --- a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php +++ b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends NeuchatelBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Neuchatel/BettagsMontagTest.php b/tests/Switzerland/Neuchatel/BettagsMontagTest.php index af7d6538b..2b964d55d 100644 --- a/tests/Switzerland/Neuchatel/BettagsMontagTest.php +++ b/tests/Switzerland/Neuchatel/BettagsMontagTest.php @@ -26,7 +26,7 @@ class BettagsMontagTest extends NeuchatelBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'bettagsMontag'; + public const HOLIDAY = 'bettagsMontag'; /** * Tests Bettags Montag on or after 1832 diff --git a/tests/Switzerland/Neuchatel/ChristmasDayTest.php b/tests/Switzerland/Neuchatel/ChristmasDayTest.php index fa4a2e76d..9faf4a56d 100644 --- a/tests/Switzerland/Neuchatel/ChristmasDayTest.php +++ b/tests/Switzerland/Neuchatel/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Neuchatel/EasterMondayTest.php b/tests/Switzerland/Neuchatel/EasterMondayTest.php index 742e27d87..e06d9dbe9 100644 --- a/tests/Switzerland/Neuchatel/EasterMondayTest.php +++ b/tests/Switzerland/Neuchatel/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends NeuchatelBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Neuchatel/GoodFridayTest.php b/tests/Switzerland/Neuchatel/GoodFridayTest.php index 9cf1872d6..a42788411 100644 --- a/tests/Switzerland/Neuchatel/GoodFridayTest.php +++ b/tests/Switzerland/Neuchatel/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends NeuchatelBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php index e08933494..d1a014442 100644 --- a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php +++ b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php @@ -25,12 +25,12 @@ class InstaurationRepubliqueTest extends NeuchatelBaseTestCase implements Yasumi /** * The name of the holiday */ - const HOLIDAY = 'instaurationRepublique'; + public const HOLIDAY = 'instaurationRepublique'; /** * The year in which the holiday was established */ - const ESTABLISHMENT_YEAR = 1849; + public const ESTABLISHMENT_YEAR = 1849; /** * Tests Instauration de la République on or after 1849. diff --git a/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php b/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php index 1f253e50c..4507519db 100644 --- a/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php +++ b/tests/Switzerland/Neuchatel/NeuchatelBaseTestCase.php @@ -25,15 +25,15 @@ abstract class NeuchatelBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Neuchatel'; + public const REGION = 'Switzerland/Neuchatel'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_CH'; + public const LOCALE = 'fr_CH'; } diff --git a/tests/Switzerland/Neuchatel/NewYearsDayTest.php b/tests/Switzerland/Neuchatel/NewYearsDayTest.php index 3eb2e135b..10e8f98ba 100644 --- a/tests/Switzerland/Neuchatel/NewYearsDayTest.php +++ b/tests/Switzerland/Neuchatel/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Neuchatel/PentecostMondayTest.php b/tests/Switzerland/Neuchatel/PentecostMondayTest.php index 5daeece13..57dfa5b16 100644 --- a/tests/Switzerland/Neuchatel/PentecostMondayTest.php +++ b/tests/Switzerland/Neuchatel/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends NeuchatelBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index 2636a6db9..4d9b90ca1 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends NeuchatelBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php index 6a8d59ad9..95aaf8909 100644 --- a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Nidwalden/AscensionDayTest.php b/tests/Switzerland/Nidwalden/AscensionDayTest.php index e3b9729bc..7551e8cdf 100644 --- a/tests/Switzerland/Nidwalden/AscensionDayTest.php +++ b/tests/Switzerland/Nidwalden/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php index 3799d3f06..5ebf2c09c 100644 --- a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends NidwaldenBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Nidwalden/ChristmasDayTest.php b/tests/Switzerland/Nidwalden/ChristmasDayTest.php index 7fc54f210..cf468011e 100644 --- a/tests/Switzerland/Nidwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Nidwalden/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Nidwalden/CorpusChristiTest.php b/tests/Switzerland/Nidwalden/CorpusChristiTest.php index 2257c7305..135aba0bf 100644 --- a/tests/Switzerland/Nidwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Nidwalden/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends NidwaldenBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Nidwalden/EasterMondayTest.php b/tests/Switzerland/Nidwalden/EasterMondayTest.php index 81d851f43..046be156b 100644 --- a/tests/Switzerland/Nidwalden/EasterMondayTest.php +++ b/tests/Switzerland/Nidwalden/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends NidwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Nidwalden/GoodFridayTest.php b/tests/Switzerland/Nidwalden/GoodFridayTest.php index 407276dbb..b496142bb 100644 --- a/tests/Switzerland/Nidwalden/GoodFridayTest.php +++ b/tests/Switzerland/Nidwalden/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php index 2063efe9a..0a84657df 100644 --- a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends NidwaldenBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Nidwalden/NewYearsDayTest.php b/tests/Switzerland/Nidwalden/NewYearsDayTest.php index 10959f0ad..38a9d8506 100644 --- a/tests/Switzerland/Nidwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Nidwalden/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php b/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php index 299f52306..ffe302b75 100644 --- a/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php +++ b/tests/Switzerland/Nidwalden/NidwaldenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class NidwaldenBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Nidwalden'; + public const REGION = 'Switzerland/Nidwalden'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Nidwalden/PentecostMondayTest.php b/tests/Switzerland/Nidwalden/PentecostMondayTest.php index 97e29d665..d8c41b2e7 100644 --- a/tests/Switzerland/Nidwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Nidwalden/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends NidwaldenBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index f8958d942..c68ab2b53 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -26,7 +26,7 @@ class StJosephDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'stJosephsDay'; + public const HOLIDAY = 'stJosephsDay'; /** * Tests St. Joseph's Day. diff --git a/tests/Switzerland/Nidwalden/StStephensDayTest.php b/tests/Switzerland/Nidwalden/StStephensDayTest.php index e6862fbd2..b83e19819 100644 --- a/tests/Switzerland/Nidwalden/StStephensDayTest.php +++ b/tests/Switzerland/Nidwalden/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends NidwaldenBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Obwalden/AllSaintsDayTest.php b/tests/Switzerland/Obwalden/AllSaintsDayTest.php index 454089382..05b5ddbda 100644 --- a/tests/Switzerland/Obwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Obwalden/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Obwalden/AscensionDayTest.php b/tests/Switzerland/Obwalden/AscensionDayTest.php index c3fd74fbc..024e594aa 100644 --- a/tests/Switzerland/Obwalden/AscensionDayTest.php +++ b/tests/Switzerland/Obwalden/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php index c3351d96d..19040539d 100644 --- a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends ObwaldenBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php index db50b7810..e57a327b5 100644 --- a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php +++ b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php index 28ad0cf5f..a2b971bfc 100644 --- a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php +++ b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php @@ -25,7 +25,7 @@ class BruderKlausenFestTest extends ObwaldenBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'bruderKlausenFest'; + public const HOLIDAY = 'bruderKlausenFest'; /** * Tests Bruder-Klausen-Fest on or after 1947 diff --git a/tests/Switzerland/Obwalden/ChristmasDayTest.php b/tests/Switzerland/Obwalden/ChristmasDayTest.php index eed2d7df4..2f340b6c7 100644 --- a/tests/Switzerland/Obwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Obwalden/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Obwalden/CorpusChristiTest.php b/tests/Switzerland/Obwalden/CorpusChristiTest.php index 7943123f3..2b4837e2e 100644 --- a/tests/Switzerland/Obwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Obwalden/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Obwalden/EasterMondayTest.php b/tests/Switzerland/Obwalden/EasterMondayTest.php index c09964d5e..90f7f0c46 100644 --- a/tests/Switzerland/Obwalden/EasterMondayTest.php +++ b/tests/Switzerland/Obwalden/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Obwalden/GoodFridayTest.php b/tests/Switzerland/Obwalden/GoodFridayTest.php index c15df8726..96930168d 100644 --- a/tests/Switzerland/Obwalden/GoodFridayTest.php +++ b/tests/Switzerland/Obwalden/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php index 885591ec9..176462503 100644 --- a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends ObwaldenBaseTestCase implements YasumiTes /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Obwalden/NewYearsDayTest.php b/tests/Switzerland/Obwalden/NewYearsDayTest.php index 993783779..b82a07488 100644 --- a/tests/Switzerland/Obwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Obwalden/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php b/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php index cb64065f2..981d7e74e 100644 --- a/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php +++ b/tests/Switzerland/Obwalden/ObwaldenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class ObwaldenBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Obwalden'; + public const REGION = 'Switzerland/Obwalden'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Obwalden/PentecostMondayTest.php b/tests/Switzerland/Obwalden/PentecostMondayTest.php index dd4c2fbf4..385f1ce39 100644 --- a/tests/Switzerland/Obwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Obwalden/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends ObwaldenBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Obwalden/StStephensDayTest.php b/tests/Switzerland/Obwalden/StStephensDayTest.php index b67582863..274ba8ca0 100644 --- a/tests/Switzerland/Obwalden/StStephensDayTest.php +++ b/tests/Switzerland/Obwalden/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends ObwaldenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Schaffhausen/AscensionDayTest.php b/tests/Switzerland/Schaffhausen/AscensionDayTest.php index fd82a9222..41a3742a3 100644 --- a/tests/Switzerland/Schaffhausen/AscensionDayTest.php +++ b/tests/Switzerland/Schaffhausen/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends SchaffhausenBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php index 59398370e..700bb451d 100644 --- a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php +++ b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends SchaffhausenBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php index d6cdd2e02..5899abe2b 100644 --- a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php +++ b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends SchaffhausenBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Schaffhausen/EasterMondayTest.php b/tests/Switzerland/Schaffhausen/EasterMondayTest.php index c4c1c9ad7..a55790a9d 100644 --- a/tests/Switzerland/Schaffhausen/EasterMondayTest.php +++ b/tests/Switzerland/Schaffhausen/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends SchaffhausenBaseTestCase implements YasumiTestCas /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Schaffhausen/GoodFridayTest.php b/tests/Switzerland/Schaffhausen/GoodFridayTest.php index fe7fc53f4..390baa8ea 100644 --- a/tests/Switzerland/Schaffhausen/GoodFridayTest.php +++ b/tests/Switzerland/Schaffhausen/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends SchaffhausenBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php index fd9bd2822..cc66d331e 100644 --- a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php +++ b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends SchaffhausenBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php index 2dd42aeaa..be360973d 100644 --- a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php +++ b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends SchaffhausenBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php b/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php index 80e4b2ed8..926b0f635 100644 --- a/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php +++ b/tests/Switzerland/Schaffhausen/SchaffhausenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class SchaffhausenBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Schaffhausen'; + public const REGION = 'Switzerland/Schaffhausen'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Schaffhausen/StStephensDayTest.php b/tests/Switzerland/Schaffhausen/StStephensDayTest.php index 1b7306ee6..9374c153c 100644 --- a/tests/Switzerland/Schaffhausen/StStephensDayTest.php +++ b/tests/Switzerland/Schaffhausen/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends SchaffhausenBaseTestCase implements YasumiTestCa /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index 7571d2e94..6db14a1ea 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends SchaffhausenBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Schwyz/AllSaintsDayTest.php b/tests/Switzerland/Schwyz/AllSaintsDayTest.php index 8a2278002..f9f83be52 100644 --- a/tests/Switzerland/Schwyz/AllSaintsDayTest.php +++ b/tests/Switzerland/Schwyz/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Schwyz/AscensionDayTest.php b/tests/Switzerland/Schwyz/AscensionDayTest.php index 1407036e9..2b2ad0027 100644 --- a/tests/Switzerland/Schwyz/AscensionDayTest.php +++ b/tests/Switzerland/Schwyz/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php index 943506eb6..c98404905 100644 --- a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends SchwyzBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Schwyz/ChristmasDayTest.php b/tests/Switzerland/Schwyz/ChristmasDayTest.php index b4f0ae7a5..d43cce74c 100644 --- a/tests/Switzerland/Schwyz/ChristmasDayTest.php +++ b/tests/Switzerland/Schwyz/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Schwyz/CorpusChristiTest.php b/tests/Switzerland/Schwyz/CorpusChristiTest.php index a8ac9ab6d..2bfba4ff2 100644 --- a/tests/Switzerland/Schwyz/CorpusChristiTest.php +++ b/tests/Switzerland/Schwyz/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends SchwyzBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Schwyz/EasterMondayTest.php b/tests/Switzerland/Schwyz/EasterMondayTest.php index fd8a0291c..57b88332c 100644 --- a/tests/Switzerland/Schwyz/EasterMondayTest.php +++ b/tests/Switzerland/Schwyz/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends SchwyzBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Schwyz/EpiphanyTest.php b/tests/Switzerland/Schwyz/EpiphanyTest.php index b398378ff..1cc74627c 100644 --- a/tests/Switzerland/Schwyz/EpiphanyTest.php +++ b/tests/Switzerland/Schwyz/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends SchwyzBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** diff --git a/tests/Switzerland/Schwyz/GoodFridayTest.php b/tests/Switzerland/Schwyz/GoodFridayTest.php index f3c19ef4d..d51a2c892 100644 --- a/tests/Switzerland/Schwyz/GoodFridayTest.php +++ b/tests/Switzerland/Schwyz/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php index e5d577fdb..67d516637 100644 --- a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends SchwyzBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Schwyz/NewYearsDayTest.php b/tests/Switzerland/Schwyz/NewYearsDayTest.php index 843326b07..2f4c176f9 100644 --- a/tests/Switzerland/Schwyz/NewYearsDayTest.php +++ b/tests/Switzerland/Schwyz/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Schwyz/PentecostMondayTest.php b/tests/Switzerland/Schwyz/PentecostMondayTest.php index 27780499a..b63d7805d 100644 --- a/tests/Switzerland/Schwyz/PentecostMondayTest.php +++ b/tests/Switzerland/Schwyz/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends SchwyzBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php b/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php index 34e53ca91..40db43417 100644 --- a/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php +++ b/tests/Switzerland/Schwyz/SchwyzBaseTestCase.php @@ -25,15 +25,15 @@ abstract class SchwyzBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Schwyz'; + public const REGION = 'Switzerland/Schwyz'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index 96128818b..e9216d83e 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -26,7 +26,7 @@ class StJosephDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'stJosephsDay'; + public const HOLIDAY = 'stJosephsDay'; /** * Tests St. Joseph's Day. diff --git a/tests/Switzerland/Schwyz/StStephensDayTest.php b/tests/Switzerland/Schwyz/StStephensDayTest.php index 50334826c..98813e300 100644 --- a/tests/Switzerland/Schwyz/StStephensDayTest.php +++ b/tests/Switzerland/Schwyz/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends SchwyzBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Solothurn/AscensionDayTest.php b/tests/Switzerland/Solothurn/AscensionDayTest.php index ed7764299..16b77044e 100644 --- a/tests/Switzerland/Solothurn/AscensionDayTest.php +++ b/tests/Switzerland/Solothurn/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends SolothurnBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php index e3a8f09c0..29e248191 100644 --- a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php +++ b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends SolothurnBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Solothurn/ChristmasDayTest.php b/tests/Switzerland/Solothurn/ChristmasDayTest.php index cb6a93a12..20bd315f3 100644 --- a/tests/Switzerland/Solothurn/ChristmasDayTest.php +++ b/tests/Switzerland/Solothurn/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends SolothurnBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Solothurn/GoodFridayTest.php b/tests/Switzerland/Solothurn/GoodFridayTest.php index b0f138c68..d108b7de1 100644 --- a/tests/Switzerland/Solothurn/GoodFridayTest.php +++ b/tests/Switzerland/Solothurn/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends SolothurnBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Solothurn/NewYearsDayTest.php b/tests/Switzerland/Solothurn/NewYearsDayTest.php index 72fdeb420..7443aa22a 100644 --- a/tests/Switzerland/Solothurn/NewYearsDayTest.php +++ b/tests/Switzerland/Solothurn/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends SolothurnBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php b/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php index d7936e5b7..3344ad6d2 100644 --- a/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php +++ b/tests/Switzerland/Solothurn/SolothurnBaseTestCase.php @@ -25,15 +25,15 @@ abstract class SolothurnBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Solothurn'; + public const REGION = 'Switzerland/Solothurn'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/StGallen/AllSaintsDayTest.php b/tests/Switzerland/StGallen/AllSaintsDayTest.php index 0f3349b6e..122f821ed 100644 --- a/tests/Switzerland/StGallen/AllSaintsDayTest.php +++ b/tests/Switzerland/StGallen/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends StGallenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/StGallen/AscensionDayTest.php b/tests/Switzerland/StGallen/AscensionDayTest.php index 5addffcde..170f26e7e 100644 --- a/tests/Switzerland/StGallen/AscensionDayTest.php +++ b/tests/Switzerland/StGallen/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends StGallenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/StGallen/ChristmasDayTest.php b/tests/Switzerland/StGallen/ChristmasDayTest.php index 747ef4ea8..4706b34f7 100644 --- a/tests/Switzerland/StGallen/ChristmasDayTest.php +++ b/tests/Switzerland/StGallen/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends StGallenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/StGallen/EasterMondayTest.php b/tests/Switzerland/StGallen/EasterMondayTest.php index 06380f81d..b51887720 100644 --- a/tests/Switzerland/StGallen/EasterMondayTest.php +++ b/tests/Switzerland/StGallen/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends StGallenBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/StGallen/GoodFridayTest.php b/tests/Switzerland/StGallen/GoodFridayTest.php index a6ca3032e..afe86158b 100644 --- a/tests/Switzerland/StGallen/GoodFridayTest.php +++ b/tests/Switzerland/StGallen/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends StGallenBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/StGallen/NewYearsDayTest.php b/tests/Switzerland/StGallen/NewYearsDayTest.php index e9401544b..1cc55864e 100644 --- a/tests/Switzerland/StGallen/NewYearsDayTest.php +++ b/tests/Switzerland/StGallen/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends StGallenBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/StGallen/PentecostMondayTest.php b/tests/Switzerland/StGallen/PentecostMondayTest.php index a2fa82232..037088d7d 100644 --- a/tests/Switzerland/StGallen/PentecostMondayTest.php +++ b/tests/Switzerland/StGallen/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends StGallenBaseTestCase implements YasumiTestCase /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/StGallen/StGallenBaseTestCase.php b/tests/Switzerland/StGallen/StGallenBaseTestCase.php index 6dbd9eaf0..771da1f81 100644 --- a/tests/Switzerland/StGallen/StGallenBaseTestCase.php +++ b/tests/Switzerland/StGallen/StGallenBaseTestCase.php @@ -25,15 +25,15 @@ abstract class StGallenBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/StGallen'; + public const REGION = 'Switzerland/StGallen'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/StGallen/StStephensDayTest.php b/tests/Switzerland/StGallen/StStephensDayTest.php index ec178903c..dd32a86f9 100644 --- a/tests/Switzerland/StGallen/StStephensDayTest.php +++ b/tests/Switzerland/StGallen/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends StGallenBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/SwissNationalDayTest.php b/tests/Switzerland/SwissNationalDayTest.php index ee805f1f6..e3f79d4a4 100644 --- a/tests/Switzerland/SwissNationalDayTest.php +++ b/tests/Switzerland/SwissNationalDayTest.php @@ -25,22 +25,22 @@ class SwissNationalDayTest extends SwitzerlandBaseTestCase implements YasumiTest /** * The name of the holiday */ - const HOLIDAY = 'swissNationalDay'; + public const HOLIDAY = 'swissNationalDay'; /** * The year in which the holiday was established as national holiday */ - const NATIONAL_ESTABLISHMENT_YEAR = 1994; + public const NATIONAL_ESTABLISHMENT_YEAR = 1994; /** * The year in which the holiday was first established */ - const FIRST_ESTABLISHMENT_YEAR = 1899; + public const FIRST_ESTABLISHMENT_YEAR = 1899; /** * The year in which the holiday was first observed */ - const FIRST_OBSERVANCE_YEAR = 1891; + public const FIRST_OBSERVANCE_YEAR = 1891; /** * Tests National Day on or after 1994. diff --git a/tests/Switzerland/SwitzerlandBaseTestCase.php b/tests/Switzerland/SwitzerlandBaseTestCase.php index 2c9bc7b66..4745c1476 100644 --- a/tests/Switzerland/SwitzerlandBaseTestCase.php +++ b/tests/Switzerland/SwitzerlandBaseTestCase.php @@ -25,15 +25,15 @@ abstract class SwitzerlandBaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'Switzerland'; + public const REGION = 'Switzerland'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Thurgau/AscensionDayTest.php b/tests/Switzerland/Thurgau/AscensionDayTest.php index 23d9b1728..0a9c348bc 100644 --- a/tests/Switzerland/Thurgau/AscensionDayTest.php +++ b/tests/Switzerland/Thurgau/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php index c10eb2b66..9b7ac8cf7 100644 --- a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php +++ b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends ThurgauBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Thurgau/ChristmasDayTest.php b/tests/Switzerland/Thurgau/ChristmasDayTest.php index f3e9f1c39..8f5b72027 100644 --- a/tests/Switzerland/Thurgau/ChristmasDayTest.php +++ b/tests/Switzerland/Thurgau/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Thurgau/EasterMondayTest.php b/tests/Switzerland/Thurgau/EasterMondayTest.php index 28741430f..0e1e0dfad 100644 --- a/tests/Switzerland/Thurgau/EasterMondayTest.php +++ b/tests/Switzerland/Thurgau/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends ThurgauBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Thurgau/GoodFridayTest.php b/tests/Switzerland/Thurgau/GoodFridayTest.php index d7558ac8e..d20a65550 100644 --- a/tests/Switzerland/Thurgau/GoodFridayTest.php +++ b/tests/Switzerland/Thurgau/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends ThurgauBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Thurgau/NewYearsDayTest.php b/tests/Switzerland/Thurgau/NewYearsDayTest.php index 8d5ed91b1..59115439c 100644 --- a/tests/Switzerland/Thurgau/NewYearsDayTest.php +++ b/tests/Switzerland/Thurgau/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Thurgau/PentecostMondayTest.php b/tests/Switzerland/Thurgau/PentecostMondayTest.php index 0f103e163..031ff5538 100644 --- a/tests/Switzerland/Thurgau/PentecostMondayTest.php +++ b/tests/Switzerland/Thurgau/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends ThurgauBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Thurgau/StStephensDayTest.php b/tests/Switzerland/Thurgau/StStephensDayTest.php index a44a9bd94..03d3586cc 100644 --- a/tests/Switzerland/Thurgau/StStephensDayTest.php +++ b/tests/Switzerland/Thurgau/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInt /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php b/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php index d8d457c9d..9cc8805ed 100644 --- a/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php +++ b/tests/Switzerland/Thurgau/ThurgauBaseTestCase.php @@ -25,15 +25,15 @@ abstract class ThurgauBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Thurgau'; + public const REGION = 'Switzerland/Thurgau'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index 592c696cd..f371e1510 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends ThurgauBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Ticino/AllSaintsDayTest.php b/tests/Switzerland/Ticino/AllSaintsDayTest.php index e46cf9a7d..5cd758461 100644 --- a/tests/Switzerland/Ticino/AllSaintsDayTest.php +++ b/tests/Switzerland/Ticino/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends TicinoBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Ticino/AscensionDayTest.php b/tests/Switzerland/Ticino/AscensionDayTest.php index 579f44eee..46c8c654f 100644 --- a/tests/Switzerland/Ticino/AscensionDayTest.php +++ b/tests/Switzerland/Ticino/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends TicinoBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php index 54eddaff8..843741df6 100644 --- a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends TicinoBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Ticino/ChristmasDayTest.php b/tests/Switzerland/Ticino/ChristmasDayTest.php index 1cce9deb7..d44b070de 100644 --- a/tests/Switzerland/Ticino/ChristmasDayTest.php +++ b/tests/Switzerland/Ticino/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends TicinoBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Ticino/CorpusChristiTest.php b/tests/Switzerland/Ticino/CorpusChristiTest.php index fba563c76..ae0076a2b 100644 --- a/tests/Switzerland/Ticino/CorpusChristiTest.php +++ b/tests/Switzerland/Ticino/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends TicinoBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Ticino/EasterMondayTest.php b/tests/Switzerland/Ticino/EasterMondayTest.php index 79debc99e..9ae6335ae 100644 --- a/tests/Switzerland/Ticino/EasterMondayTest.php +++ b/tests/Switzerland/Ticino/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends TicinoBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Ticino/EpiphanyTest.php b/tests/Switzerland/Ticino/EpiphanyTest.php index 665b3f1c9..06c893091 100644 --- a/tests/Switzerland/Ticino/EpiphanyTest.php +++ b/tests/Switzerland/Ticino/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends TicinoBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** diff --git a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php index 4f61c1404..34f8cfea1 100644 --- a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends TicinoBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Ticino/NewYearsDayTest.php b/tests/Switzerland/Ticino/NewYearsDayTest.php index 88dbf2fe6..abcbfdd3f 100644 --- a/tests/Switzerland/Ticino/NewYearsDayTest.php +++ b/tests/Switzerland/Ticino/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Ticino/PentecostMondayTest.php b/tests/Switzerland/Ticino/PentecostMondayTest.php index bea9dbac5..82118af36 100644 --- a/tests/Switzerland/Ticino/PentecostMondayTest.php +++ b/tests/Switzerland/Ticino/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends TicinoBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index b3ce8d7e9..ebc9a4d9b 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -26,7 +26,7 @@ class StJosephDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'stJosephsDay'; + public const HOLIDAY = 'stJosephsDay'; /** * Tests St. Joseph's Day. diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index 643929b1c..921f65086 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -24,7 +24,7 @@ class StPeterPaulTest extends TicinoBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'stPeterPaul'; + public const HOLIDAY = 'stPeterPaul'; /** * Tests Feast of Saints Peter and Paul. diff --git a/tests/Switzerland/Ticino/StStephensDayTest.php b/tests/Switzerland/Ticino/StStephensDayTest.php index 90876887b..6769c52ef 100644 --- a/tests/Switzerland/Ticino/StStephensDayTest.php +++ b/tests/Switzerland/Ticino/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends TicinoBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Ticino/TicinoBaseTestCase.php b/tests/Switzerland/Ticino/TicinoBaseTestCase.php index c09e6ffed..8654e6642 100644 --- a/tests/Switzerland/Ticino/TicinoBaseTestCase.php +++ b/tests/Switzerland/Ticino/TicinoBaseTestCase.php @@ -25,15 +25,15 @@ abstract class TicinoBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Ticino'; + public const REGION = 'Switzerland/Ticino'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'it_CH'; + public const LOCALE = 'it_CH'; } diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index 928b937b4..3c50d567c 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends TicinoBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Uri/AllSaintsDayTest.php b/tests/Switzerland/Uri/AllSaintsDayTest.php index 61be93240..6254157c2 100644 --- a/tests/Switzerland/Uri/AllSaintsDayTest.php +++ b/tests/Switzerland/Uri/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends UriBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Uri/AscensionDayTest.php b/tests/Switzerland/Uri/AscensionDayTest.php index 6c4f6a1f7..2ce2bc90b 100644 --- a/tests/Switzerland/Uri/AscensionDayTest.php +++ b/tests/Switzerland/Uri/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends UriBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Uri/AssumptionOfMaryTest.php b/tests/Switzerland/Uri/AssumptionOfMaryTest.php index 08feac444..c71c3c164 100644 --- a/tests/Switzerland/Uri/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Uri/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends UriBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Uri/ChristmasDayTest.php b/tests/Switzerland/Uri/ChristmasDayTest.php index 202c25693..f3a85b845 100644 --- a/tests/Switzerland/Uri/ChristmasDayTest.php +++ b/tests/Switzerland/Uri/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends UriBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Uri/CorpusChristiTest.php b/tests/Switzerland/Uri/CorpusChristiTest.php index 4084b8378..559867a3e 100644 --- a/tests/Switzerland/Uri/CorpusChristiTest.php +++ b/tests/Switzerland/Uri/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends UriBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Uri/EasterMondayTest.php b/tests/Switzerland/Uri/EasterMondayTest.php index c566444a5..ead97eadf 100644 --- a/tests/Switzerland/Uri/EasterMondayTest.php +++ b/tests/Switzerland/Uri/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends UriBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Uri/EpiphanyTest.php b/tests/Switzerland/Uri/EpiphanyTest.php index 46cddc981..1c21b5130 100644 --- a/tests/Switzerland/Uri/EpiphanyTest.php +++ b/tests/Switzerland/Uri/EpiphanyTest.php @@ -24,7 +24,7 @@ class EpiphanyTest extends UriBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'epiphany'; + public const HOLIDAY = 'epiphany'; /** diff --git a/tests/Switzerland/Uri/GoodFridayTest.php b/tests/Switzerland/Uri/GoodFridayTest.php index 5a79514e0..cb57ab831 100644 --- a/tests/Switzerland/Uri/GoodFridayTest.php +++ b/tests/Switzerland/Uri/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends UriBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Uri/ImmaculateConceptionTest.php b/tests/Switzerland/Uri/ImmaculateConceptionTest.php index 2de619fc5..31374c116 100644 --- a/tests/Switzerland/Uri/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Uri/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends UriBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Uri/NewYearsDayTest.php b/tests/Switzerland/Uri/NewYearsDayTest.php index 036c9cfdd..a276b726b 100644 --- a/tests/Switzerland/Uri/NewYearsDayTest.php +++ b/tests/Switzerland/Uri/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends UriBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Uri/PentecostMondayTest.php b/tests/Switzerland/Uri/PentecostMondayTest.php index 6989c5ad0..023d6b8aa 100644 --- a/tests/Switzerland/Uri/PentecostMondayTest.php +++ b/tests/Switzerland/Uri/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends UriBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index 3699e5897..30b57ae48 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -26,7 +26,7 @@ class StJosephDayTest extends UriBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'stJosephsDay'; + public const HOLIDAY = 'stJosephsDay'; /** * Tests St. Joseph's Day. diff --git a/tests/Switzerland/Uri/StStephensDayTest.php b/tests/Switzerland/Uri/StStephensDayTest.php index 63ef6f913..050f30c79 100644 --- a/tests/Switzerland/Uri/StStephensDayTest.php +++ b/tests/Switzerland/Uri/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends UriBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Uri/UriBaseTestCase.php b/tests/Switzerland/Uri/UriBaseTestCase.php index 203aac20d..ed3c64434 100644 --- a/tests/Switzerland/Uri/UriBaseTestCase.php +++ b/tests/Switzerland/Uri/UriBaseTestCase.php @@ -25,15 +25,15 @@ abstract class UriBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Uri'; + public const REGION = 'Switzerland/Uri'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Valais/AllSaintsDayTest.php b/tests/Switzerland/Valais/AllSaintsDayTest.php index c38570f0b..27a962c70 100644 --- a/tests/Switzerland/Valais/AllSaintsDayTest.php +++ b/tests/Switzerland/Valais/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends ValaisBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Valais/AscensionDayTest.php b/tests/Switzerland/Valais/AscensionDayTest.php index 814a6aeeb..e0874627f 100644 --- a/tests/Switzerland/Valais/AscensionDayTest.php +++ b/tests/Switzerland/Valais/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends ValaisBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Valais/AssumptionOfMaryTest.php b/tests/Switzerland/Valais/AssumptionOfMaryTest.php index ba8ae777c..f7d63cba8 100644 --- a/tests/Switzerland/Valais/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Valais/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends ValaisBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Valais/ChristmasDayTest.php b/tests/Switzerland/Valais/ChristmasDayTest.php index f7fde4779..f2a9aee2b 100644 --- a/tests/Switzerland/Valais/ChristmasDayTest.php +++ b/tests/Switzerland/Valais/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends ValaisBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Valais/CorpusChristiTest.php b/tests/Switzerland/Valais/CorpusChristiTest.php index 4f7830621..a6ea3013e 100644 --- a/tests/Switzerland/Valais/CorpusChristiTest.php +++ b/tests/Switzerland/Valais/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends ValaisBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Valais/ImmaculateConceptionTest.php b/tests/Switzerland/Valais/ImmaculateConceptionTest.php index ea28bde09..5caa53f96 100644 --- a/tests/Switzerland/Valais/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Valais/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends ValaisBaseTestCase implements YasumiTestC /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Valais/NewYearsDayTest.php b/tests/Switzerland/Valais/NewYearsDayTest.php index 07f3751e3..ace92ee3a 100644 --- a/tests/Switzerland/Valais/NewYearsDayTest.php +++ b/tests/Switzerland/Valais/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends ValaisBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index 89efb36c0..75aeed1da 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -26,7 +26,7 @@ class StJosephDayTest extends ValaisBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'stJosephsDay'; + public const HOLIDAY = 'stJosephsDay'; /** * Tests St. Joseph's Day. diff --git a/tests/Switzerland/Valais/ValaisBaseTestCase.php b/tests/Switzerland/Valais/ValaisBaseTestCase.php index 1fe8a5830..311a77a50 100644 --- a/tests/Switzerland/Valais/ValaisBaseTestCase.php +++ b/tests/Switzerland/Valais/ValaisBaseTestCase.php @@ -25,15 +25,15 @@ abstract class ValaisBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Valais'; + public const REGION = 'Switzerland/Valais'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_CH'; + public const LOCALE = 'fr_CH'; } diff --git a/tests/Switzerland/Vaud/AscensionDayTest.php b/tests/Switzerland/Vaud/AscensionDayTest.php index d185e694e..c99578ae3 100644 --- a/tests/Switzerland/Vaud/AscensionDayTest.php +++ b/tests/Switzerland/Vaud/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends VaudBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Vaud/BerchtoldsTagTest.php b/tests/Switzerland/Vaud/BerchtoldsTagTest.php index c386333b7..33a341888 100644 --- a/tests/Switzerland/Vaud/BerchtoldsTagTest.php +++ b/tests/Switzerland/Vaud/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends VaudBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Vaud/BettagsMontagTest.php b/tests/Switzerland/Vaud/BettagsMontagTest.php index efe53667b..13b70033b 100644 --- a/tests/Switzerland/Vaud/BettagsMontagTest.php +++ b/tests/Switzerland/Vaud/BettagsMontagTest.php @@ -26,7 +26,7 @@ class BettagsMontagTest extends VaudBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'bettagsMontag'; + public const HOLIDAY = 'bettagsMontag'; /** * Tests Bettags Montag on or after 1832 diff --git a/tests/Switzerland/Vaud/ChristmasDayTest.php b/tests/Switzerland/Vaud/ChristmasDayTest.php index 56a160634..1be3cde44 100644 --- a/tests/Switzerland/Vaud/ChristmasDayTest.php +++ b/tests/Switzerland/Vaud/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends VaudBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Vaud/EasterMondayTest.php b/tests/Switzerland/Vaud/EasterMondayTest.php index 8e8b738e1..f0ea349df 100644 --- a/tests/Switzerland/Vaud/EasterMondayTest.php +++ b/tests/Switzerland/Vaud/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends VaudBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Vaud/GoodFridayTest.php b/tests/Switzerland/Vaud/GoodFridayTest.php index a3f4bf620..74934fd54 100644 --- a/tests/Switzerland/Vaud/GoodFridayTest.php +++ b/tests/Switzerland/Vaud/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends VaudBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Vaud/NewYearsDayTest.php b/tests/Switzerland/Vaud/NewYearsDayTest.php index 120568462..507ea2c12 100644 --- a/tests/Switzerland/Vaud/NewYearsDayTest.php +++ b/tests/Switzerland/Vaud/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends VaudBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Vaud/PentecostMondayTest.php b/tests/Switzerland/Vaud/PentecostMondayTest.php index 90676acd6..52a417cd3 100644 --- a/tests/Switzerland/Vaud/PentecostMondayTest.php +++ b/tests/Switzerland/Vaud/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends VaudBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Vaud/VaudBaseTestCase.php b/tests/Switzerland/Vaud/VaudBaseTestCase.php index 9cd015ccf..c592cadae 100644 --- a/tests/Switzerland/Vaud/VaudBaseTestCase.php +++ b/tests/Switzerland/Vaud/VaudBaseTestCase.php @@ -25,15 +25,15 @@ abstract class VaudBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Vaud'; + public const REGION = 'Switzerland/Vaud'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'fr_CH'; + public const LOCALE = 'fr_CH'; } diff --git a/tests/Switzerland/Zug/AllSaintsDayTest.php b/tests/Switzerland/Zug/AllSaintsDayTest.php index c0b241e1b..a9caf2bb4 100644 --- a/tests/Switzerland/Zug/AllSaintsDayTest.php +++ b/tests/Switzerland/Zug/AllSaintsDayTest.php @@ -24,7 +24,7 @@ class AllSaintsDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'allSaintsDay'; + public const HOLIDAY = 'allSaintsDay'; /** * Tests All Saints' Day. diff --git a/tests/Switzerland/Zug/AscensionDayTest.php b/tests/Switzerland/Zug/AscensionDayTest.php index 6649372a4..da6e57b2d 100644 --- a/tests/Switzerland/Zug/AscensionDayTest.php +++ b/tests/Switzerland/Zug/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Zug/AssumptionOfMaryTest.php b/tests/Switzerland/Zug/AssumptionOfMaryTest.php index d72f6643f..b9177f87b 100644 --- a/tests/Switzerland/Zug/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Zug/AssumptionOfMaryTest.php @@ -24,7 +24,7 @@ class AssumptionOfMaryTest extends ZugBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'assumptionOfMary'; + public const HOLIDAY = 'assumptionOfMary'; /** * Tests the day of the Assumption of Mary. diff --git a/tests/Switzerland/Zug/BerchtoldsTagTest.php b/tests/Switzerland/Zug/BerchtoldsTagTest.php index 5461cc1b5..84da3e087 100644 --- a/tests/Switzerland/Zug/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zug/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends ZugBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Zug/ChristmasDayTest.php b/tests/Switzerland/Zug/ChristmasDayTest.php index de9ea0d87..a4d286d7e 100644 --- a/tests/Switzerland/Zug/ChristmasDayTest.php +++ b/tests/Switzerland/Zug/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Zug/CorpusChristiTest.php b/tests/Switzerland/Zug/CorpusChristiTest.php index 26792ab6a..d7e9256d9 100644 --- a/tests/Switzerland/Zug/CorpusChristiTest.php +++ b/tests/Switzerland/Zug/CorpusChristiTest.php @@ -27,7 +27,7 @@ class CorpusChristiTest extends ZugBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'corpusChristi'; + public const HOLIDAY = 'corpusChristi'; /** * Tests Corpus Christi. diff --git a/tests/Switzerland/Zug/EasterMondayTest.php b/tests/Switzerland/Zug/EasterMondayTest.php index 8b78e97e2..31ff224bb 100644 --- a/tests/Switzerland/Zug/EasterMondayTest.php +++ b/tests/Switzerland/Zug/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends ZugBaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Zug/GoodFridayTest.php b/tests/Switzerland/Zug/GoodFridayTest.php index 7ef528c3c..184619789 100644 --- a/tests/Switzerland/Zug/GoodFridayTest.php +++ b/tests/Switzerland/Zug/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends ZugBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Zug/ImmaculateConceptionTest.php b/tests/Switzerland/Zug/ImmaculateConceptionTest.php index eae67b4ad..ac07d1481 100644 --- a/tests/Switzerland/Zug/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Zug/ImmaculateConceptionTest.php @@ -24,7 +24,7 @@ class ImmaculateConceptionTest extends ZugBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'immaculateConception'; + public const HOLIDAY = 'immaculateConception'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Zug/NewYearsDayTest.php b/tests/Switzerland/Zug/NewYearsDayTest.php index d471400a4..f229a1b0a 100644 --- a/tests/Switzerland/Zug/NewYearsDayTest.php +++ b/tests/Switzerland/Zug/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends ZugBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Zug/PentecostMondayTest.php b/tests/Switzerland/Zug/PentecostMondayTest.php index 754ef8ed3..0352ce679 100644 --- a/tests/Switzerland/Zug/PentecostMondayTest.php +++ b/tests/Switzerland/Zug/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends ZugBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Zug/StStephensDayTest.php b/tests/Switzerland/Zug/StStephensDayTest.php index f7ac371b3..2e0987576 100644 --- a/tests/Switzerland/Zug/StStephensDayTest.php +++ b/tests/Switzerland/Zug/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends ZugBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Zug/ZugBaseTestCase.php b/tests/Switzerland/Zug/ZugBaseTestCase.php index ba3fc5e2a..57e56d572 100644 --- a/tests/Switzerland/Zug/ZugBaseTestCase.php +++ b/tests/Switzerland/Zug/ZugBaseTestCase.php @@ -25,15 +25,15 @@ abstract class ZugBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Zug'; + public const REGION = 'Switzerland/Zug'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/Switzerland/Zurich/AscensionDayTest.php b/tests/Switzerland/Zurich/AscensionDayTest.php index 7922dd83f..14be7f355 100644 --- a/tests/Switzerland/Zurich/AscensionDayTest.php +++ b/tests/Switzerland/Zurich/AscensionDayTest.php @@ -25,7 +25,7 @@ class AscensionDayTest extends ZurichBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'ascensionDay'; + public const HOLIDAY = 'ascensionDay'; /** * Tests Ascension Day. diff --git a/tests/Switzerland/Zurich/BerchtoldsTagTest.php b/tests/Switzerland/Zurich/BerchtoldsTagTest.php index ed54669eb..c2febbb30 100644 --- a/tests/Switzerland/Zurich/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zurich/BerchtoldsTagTest.php @@ -25,7 +25,7 @@ class BerchtoldsTagTest extends ZurichBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'berchtoldsTag'; + public const HOLIDAY = 'berchtoldsTag'; /** * Tests BerchtoldsTag diff --git a/tests/Switzerland/Zurich/ChristmasDayTest.php b/tests/Switzerland/Zurich/ChristmasDayTest.php index daef82d0f..3b23f9fe1 100644 --- a/tests/Switzerland/Zurich/ChristmasDayTest.php +++ b/tests/Switzerland/Zurich/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends ZurichBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Switzerland/Zurich/EasterMondayTest.php b/tests/Switzerland/Zurich/EasterMondayTest.php index 8131b4bca..de5957527 100644 --- a/tests/Switzerland/Zurich/EasterMondayTest.php +++ b/tests/Switzerland/Zurich/EasterMondayTest.php @@ -25,7 +25,7 @@ class EasterMondayTest extends ZurichBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday. diff --git a/tests/Switzerland/Zurich/GoodFridayTest.php b/tests/Switzerland/Zurich/GoodFridayTest.php index e995f258d..df132b712 100644 --- a/tests/Switzerland/Zurich/GoodFridayTest.php +++ b/tests/Switzerland/Zurich/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends ZurichBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Zurich/NewYearsDayTest.php b/tests/Switzerland/Zurich/NewYearsDayTest.php index 2d1c203e1..5694d9017 100644 --- a/tests/Switzerland/Zurich/NewYearsDayTest.php +++ b/tests/Switzerland/Zurich/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends ZurichBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/Switzerland/Zurich/PentecostMondayTest.php b/tests/Switzerland/Zurich/PentecostMondayTest.php index 3c0ecce33..b2ef4b73c 100644 --- a/tests/Switzerland/Zurich/PentecostMondayTest.php +++ b/tests/Switzerland/Zurich/PentecostMondayTest.php @@ -25,7 +25,7 @@ class PentecostMondayTest extends ZurichBaseTestCase implements YasumiTestCaseIn /** * The name of the holiday */ - const HOLIDAY = 'pentecostMonday'; + public const HOLIDAY = 'pentecostMonday'; /** * Tests Pentecost Monday. diff --git a/tests/Switzerland/Zurich/StStephensDayTest.php b/tests/Switzerland/Zurich/StStephensDayTest.php index 3ce9c4427..aecce8291 100644 --- a/tests/Switzerland/Zurich/StStephensDayTest.php +++ b/tests/Switzerland/Zurich/StStephensDayTest.php @@ -24,7 +24,7 @@ class StStephensDayTest extends ZurichBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday to be tested */ - const HOLIDAY = 'stStephensDay'; + public const HOLIDAY = 'stStephensDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index 618cc2b9b..419cb9f68 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -25,7 +25,7 @@ class WorkersDayTest extends ZurichBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Switzerland/Zurich/ZurichBaseTestCase.php b/tests/Switzerland/Zurich/ZurichBaseTestCase.php index f750de30c..4293533bf 100644 --- a/tests/Switzerland/Zurich/ZurichBaseTestCase.php +++ b/tests/Switzerland/Zurich/ZurichBaseTestCase.php @@ -25,15 +25,15 @@ abstract class ZurichBaseTestCase extends SwitzerlandBaseTestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Switzerland/Zurich'; + public const REGION = 'Switzerland/Zurich'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Zurich'; + public const TIMEZONE = 'Europe/Zurich'; /** * Locale that is considered common for this provider */ - const LOCALE = 'de_CH'; + public const LOCALE = 'de_CH'; } diff --git a/tests/USA/ChristmasDayTest.php b/tests/USA/ChristmasDayTest.php index ab1680f90..9982d78c6 100644 --- a/tests/USA/ChristmasDayTest.php +++ b/tests/USA/ChristmasDayTest.php @@ -25,7 +25,7 @@ class ChristmasDayTest extends USABaseTestCase implements YasumiTestCaseInterfac /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. Christmas Day is celebrated on December 25th. diff --git a/tests/USA/ColumbusDayTest.php b/tests/USA/ColumbusDayTest.php index b0a1b4d6f..9ae4e76b8 100644 --- a/tests/USA/ColumbusDayTest.php +++ b/tests/USA/ColumbusDayTest.php @@ -25,12 +25,12 @@ class ColumbusDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'columbusDay'; + public const HOLIDAY = 'columbusDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1937; + public const ESTABLISHMENT_YEAR = 1937; /** * Tests Columbus Day on or after 1970. Columbus Day was established in 1937 on October 12th, but has been fixed to diff --git a/tests/USA/IndependenceDayTest.php b/tests/USA/IndependenceDayTest.php index 92e8ca6ae..3bc9a5f97 100644 --- a/tests/USA/IndependenceDayTest.php +++ b/tests/USA/IndependenceDayTest.php @@ -25,12 +25,12 @@ class IndependenceDayTest extends USABaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1776; + public const ESTABLISHMENT_YEAR = 1776; /** * Tests Independence Day on or after 1776. Independence Day is celebrated since 1776 on July 4th. diff --git a/tests/USA/LabourDayTest.php b/tests/USA/LabourDayTest.php index a041f0c50..442c101e6 100644 --- a/tests/USA/LabourDayTest.php +++ b/tests/USA/LabourDayTest.php @@ -25,12 +25,12 @@ class LabourDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'labourDay'; + public const HOLIDAY = 'labourDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1887; + public const ESTABLISHMENT_YEAR = 1887; /** * Tests Labour Day on or after 1887. Labour Day was established since 1887 on the first Monday of September. diff --git a/tests/USA/MartinLutherKingDayTest.php b/tests/USA/MartinLutherKingDayTest.php index df7b7a718..7f0420ac2 100644 --- a/tests/USA/MartinLutherKingDayTest.php +++ b/tests/USA/MartinLutherKingDayTest.php @@ -25,12 +25,12 @@ class MartinLutherKingDayTest extends USABaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'martinLutherKingDay'; + public const HOLIDAY = 'martinLutherKingDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1986; + public const ESTABLISHMENT_YEAR = 1986; /** * Tests Dr. Martin Luther King Day on or after 1986. Dr. Martin Luther King Day was established since 1986 on the diff --git a/tests/USA/MemorialDayTest.php b/tests/USA/MemorialDayTest.php index 46c00eb60..6c7d64410 100644 --- a/tests/USA/MemorialDayTest.php +++ b/tests/USA/MemorialDayTest.php @@ -25,12 +25,12 @@ class MemorialDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'memorialDay'; + public const HOLIDAY = 'memorialDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1865; + public const ESTABLISHMENT_YEAR = 1865; /** * Tests Memorial Day on or after 1968. Memorial Day was established since 1865 on May 30 and was changed in 1968 diff --git a/tests/USA/NewYearsDayTest.php b/tests/USA/NewYearsDayTest.php index 5820185b8..dd0ce4034 100644 --- a/tests/USA/NewYearsDayTest.php +++ b/tests/USA/NewYearsDayTest.php @@ -25,7 +25,7 @@ class NewYearsDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests New Years Day. diff --git a/tests/USA/ThanksgivingDayTest.php b/tests/USA/ThanksgivingDayTest.php index 0db55b22a..251b6f971 100644 --- a/tests/USA/ThanksgivingDayTest.php +++ b/tests/USA/ThanksgivingDayTest.php @@ -25,12 +25,12 @@ class ThanksgivingDayTest extends USABaseTestCase implements YasumiTestCaseInter /** * The name of the holiday */ - const HOLIDAY = 'thanksgivingDay'; + public const HOLIDAY = 'thanksgivingDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1863; + public const ESTABLISHMENT_YEAR = 1863; /** * Tests Thanksgiving Day on or after 1863. Thanksgiving Day is celebrated since 1863 on the fourth Thursday diff --git a/tests/USA/USABaseTestCase.php b/tests/USA/USABaseTestCase.php index d95ea782f..16d435e94 100644 --- a/tests/USA/USABaseTestCase.php +++ b/tests/USA/USABaseTestCase.php @@ -25,15 +25,15 @@ abstract class USABaseTestCase extends TestCase /** * Country (name) to be tested */ - const REGION = 'USA'; + public const REGION = 'USA'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'America/New_York'; + public const TIMEZONE = 'America/New_York'; /** * Locale that is considered common for this provider */ - const LOCALE = 'en_US'; + public const LOCALE = 'en_US'; } diff --git a/tests/USA/VeteransDayTest.php b/tests/USA/VeteransDayTest.php index f45995c15..3a68112b9 100644 --- a/tests/USA/VeteransDayTest.php +++ b/tests/USA/VeteransDayTest.php @@ -26,12 +26,12 @@ class VeteransDayTest extends USABaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday */ - const HOLIDAY = 'veteransDay'; + public const HOLIDAY = 'veteransDay'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1919; + public const ESTABLISHMENT_YEAR = 1919; /** * Tests Veterans Day on or after 1919. Veterans Day was established in 1919 on November 11. diff --git a/tests/USA/WashingtonsBirthdayTest.php b/tests/USA/WashingtonsBirthdayTest.php index 47a446088..3094c1503 100644 --- a/tests/USA/WashingtonsBirthdayTest.php +++ b/tests/USA/WashingtonsBirthdayTest.php @@ -25,12 +25,12 @@ class WashingtonsBirthdayTest extends USABaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'washingtonsBirthday'; + public const HOLIDAY = 'washingtonsBirthday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1879; + public const ESTABLISHMENT_YEAR = 1879; /** * Tests Washington's Birthday on or after 1968. Washington's Birthday was established since 1879 on February 22 diff --git a/tests/Ukraine/ChristmasDayTest.php b/tests/Ukraine/ChristmasDayTest.php index b9e92435a..a7dbd5e50 100644 --- a/tests/Ukraine/ChristmasDayTest.php +++ b/tests/Ukraine/ChristmasDayTest.php @@ -24,7 +24,7 @@ class ChristmasDayTest extends UkraineBaseTestCase implements YasumiTestCaseInte /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests Christmas Day. diff --git a/tests/Ukraine/ConstitutionDayTest.php b/tests/Ukraine/ConstitutionDayTest.php index 7cb2db392..13c706a34 100644 --- a/tests/Ukraine/ConstitutionDayTest.php +++ b/tests/Ukraine/ConstitutionDayTest.php @@ -24,7 +24,7 @@ class ConstitutionDayTest extends UkraineBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'constitutionDay'; + public const HOLIDAY = 'constitutionDay'; /** * @throws \ReflectionException diff --git a/tests/Ukraine/DefenderOfUkraineDayTest.php b/tests/Ukraine/DefenderOfUkraineDayTest.php index 44d97660b..0f157c958 100644 --- a/tests/Ukraine/DefenderOfUkraineDayTest.php +++ b/tests/Ukraine/DefenderOfUkraineDayTest.php @@ -24,7 +24,7 @@ class DefenderOfUkraineDayTest extends UkraineBaseTestCase implements YasumiTest /** * The name of the holiday to be tested */ - const HOLIDAY = 'defenderOfUkraineDay'; + public const HOLIDAY = 'defenderOfUkraineDay'; /** * @throws \ReflectionException diff --git a/tests/Ukraine/EasterTest.php b/tests/Ukraine/EasterTest.php index d0f69f649..52d057095 100644 --- a/tests/Ukraine/EasterTest.php +++ b/tests/Ukraine/EasterTest.php @@ -26,7 +26,7 @@ class EasterTest extends UkraineBaseTestCase implements YasumiTestCaseInterface /** * The name of the holiday to be tested */ - const HOLIDAY = 'easter'; + public const HOLIDAY = 'easter'; /** * Tests the holiday defined in this test. diff --git a/tests/Ukraine/IndependenceDayTest.php b/tests/Ukraine/IndependenceDayTest.php index e199f3f5d..3f93b8064 100644 --- a/tests/Ukraine/IndependenceDayTest.php +++ b/tests/Ukraine/IndependenceDayTest.php @@ -24,7 +24,7 @@ class IndependenceDayTest extends UkraineBaseTestCase implements YasumiTestCaseI /** * The name of the holiday to be tested */ - const HOLIDAY = 'independenceDay'; + public const HOLIDAY = 'independenceDay'; /** * @throws \ReflectionException diff --git a/tests/Ukraine/InternationalWomensDayTest.php b/tests/Ukraine/InternationalWomensDayTest.php index ae96cc4db..7133b5370 100644 --- a/tests/Ukraine/InternationalWomensDayTest.php +++ b/tests/Ukraine/InternationalWomensDayTest.php @@ -24,7 +24,7 @@ class InternationalWomensDayTest extends UkraineBaseTestCase implements YasumiTe /** * The name of the holiday to be tested */ - const HOLIDAY = 'internationalWomensDay'; + public const HOLIDAY = 'internationalWomensDay'; /** * @dataProvider HolidayDataProvider diff --git a/tests/Ukraine/InternationalWorkersDayTest.php b/tests/Ukraine/InternationalWorkersDayTest.php index ba26389b7..6a313552e 100644 --- a/tests/Ukraine/InternationalWorkersDayTest.php +++ b/tests/Ukraine/InternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class InternationalWorkersDayTest extends UkraineBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'internationalWorkersDay'; + public const HOLIDAY = 'internationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Ukraine/NewYearsDayTest.php b/tests/Ukraine/NewYearsDayTest.php index d8fa422f1..77574d26e 100644 --- a/tests/Ukraine/NewYearsDayTest.php +++ b/tests/Ukraine/NewYearsDayTest.php @@ -24,7 +24,7 @@ class NewYearsDayTest extends UkraineBaseTestCase implements YasumiTestCaseInter /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test. diff --git a/tests/Ukraine/PentecostTest.php b/tests/Ukraine/PentecostTest.php index 10b9f4679..a25c72ed5 100644 --- a/tests/Ukraine/PentecostTest.php +++ b/tests/Ukraine/PentecostTest.php @@ -26,7 +26,7 @@ class PentecostTest extends UkraineBaseTestCase implements YasumiTestCaseInterfa /** * The name of the holiday */ - const HOLIDAY = 'pentecost'; + public const HOLIDAY = 'pentecost'; /** * Tests the holiday defined in this test. diff --git a/tests/Ukraine/SecondInternationalWorkersDayTest.php b/tests/Ukraine/SecondInternationalWorkersDayTest.php index baf4c8482..62cc26c59 100644 --- a/tests/Ukraine/SecondInternationalWorkersDayTest.php +++ b/tests/Ukraine/SecondInternationalWorkersDayTest.php @@ -24,7 +24,7 @@ class SecondInternationalWorkersDayTest extends UkraineBaseTestCase implements Y /** * The name of the holiday */ - const HOLIDAY = 'secondInternationalWorkersDay'; + public const HOLIDAY = 'secondInternationalWorkersDay'; /** * Tests International Workers' Day. diff --git a/tests/Ukraine/UkraineBaseTestCase.php b/tests/Ukraine/UkraineBaseTestCase.php index d3aa2da61..88367c280 100644 --- a/tests/Ukraine/UkraineBaseTestCase.php +++ b/tests/Ukraine/UkraineBaseTestCase.php @@ -26,15 +26,15 @@ class UkraineBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'Ukraine'; + public const REGION = 'Ukraine'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/Kiev'; + public const TIMEZONE = 'Europe/Kiev'; /** * Locale that is considered common for this provider */ - const LOCALE = 'uk_UA'; + public const LOCALE = 'uk_UA'; } diff --git a/tests/Ukraine/VictoryDayTest.php b/tests/Ukraine/VictoryDayTest.php index 8c27306b4..15ad69e3c 100644 --- a/tests/Ukraine/VictoryDayTest.php +++ b/tests/Ukraine/VictoryDayTest.php @@ -24,7 +24,7 @@ class VictoryDayTest extends UkraineBaseTestCase implements YasumiTestCaseInterf /** * The name of the holiday to be tested */ - const HOLIDAY = 'victoryDay'; + public const HOLIDAY = 'victoryDay'; /** * @dataProvider HolidayDataProvider diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index a08baca5f..59b91e2f3 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -26,7 +26,7 @@ class BoxingDayTest extends UnitedKingdomBaseTestCase implements YasumiTestCaseI /** * The name of the holiday */ - const HOLIDAY = 'secondChristmasDay'; + public const HOLIDAY = 'secondChristmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index 2e55582da..c87d35195 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -26,7 +26,7 @@ class ChristmasDayTest extends UnitedKingdomBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'christmasDay'; + public const HOLIDAY = 'christmasDay'; /** * Tests the holiday defined in this test. diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index 0f48510bd..60ee985c9 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -26,7 +26,7 @@ class EasterMondayTest extends UnitedKingdomBaseTestCase implements YasumiTestCa /** * The name of the holiday */ - const HOLIDAY = 'easterMonday'; + public const HOLIDAY = 'easterMonday'; /** * Tests Easter Monday diff --git a/tests/UnitedKingdom/GoodFridayTest.php b/tests/UnitedKingdom/GoodFridayTest.php index 651c8131e..cb37a1036 100644 --- a/tests/UnitedKingdom/GoodFridayTest.php +++ b/tests/UnitedKingdom/GoodFridayTest.php @@ -25,7 +25,7 @@ class GoodFridayTest extends UnitedKingdomBaseTestCase implements YasumiTestCase /** * The name of the holiday to be tested */ - const HOLIDAY = 'goodFriday'; + public const HOLIDAY = 'goodFriday'; /** * Tests the holiday defined in this test. diff --git a/tests/UnitedKingdom/MayDayBankHolidayTest.php b/tests/UnitedKingdom/MayDayBankHolidayTest.php index 5ed67baeb..70654dc84 100644 --- a/tests/UnitedKingdom/MayDayBankHolidayTest.php +++ b/tests/UnitedKingdom/MayDayBankHolidayTest.php @@ -25,12 +25,12 @@ class MayDayBankHolidayTest extends UnitedKingdomBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'mayDayBankHoliday'; + public const HOLIDAY = 'mayDayBankHoliday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1978; + public const ESTABLISHMENT_YEAR = 1978; /** * Tests the holiday defined in this test. diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 0d78f2cb2..07dedc60d 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -25,17 +25,17 @@ class NewYearsDayTest extends UnitedKingdomBaseTestCase implements YasumiTestCas /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1871; + public const ESTABLISHMENT_YEAR = 1871; /** * The year in which the holiday was adjusted */ - const ADJUSTMENT_YEAR = 1974; + public const ADJUSTMENT_YEAR = 1974; /** * The name of the holiday to be tested */ - const HOLIDAY = 'newYearsDay'; + public const HOLIDAY = 'newYearsDay'; /** * Tests the holiday defined in this test on or after establishment. diff --git a/tests/UnitedKingdom/SpringBankHolidayTest.php b/tests/UnitedKingdom/SpringBankHolidayTest.php index 9c2d9e230..dcc95ffc3 100644 --- a/tests/UnitedKingdom/SpringBankHolidayTest.php +++ b/tests/UnitedKingdom/SpringBankHolidayTest.php @@ -25,12 +25,12 @@ class SpringBankHolidayTest extends UnitedKingdomBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'springBankHoliday'; + public const HOLIDAY = 'springBankHoliday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1965; + public const ESTABLISHMENT_YEAR = 1965; /** * Tests the holiday defined in this test. diff --git a/tests/UnitedKingdom/SummerBankHolidayTest.php b/tests/UnitedKingdom/SummerBankHolidayTest.php index 7b71816e0..fca9945ea 100644 --- a/tests/UnitedKingdom/SummerBankHolidayTest.php +++ b/tests/UnitedKingdom/SummerBankHolidayTest.php @@ -25,12 +25,12 @@ class SummerBankHolidayTest extends UnitedKingdomBaseTestCase implements YasumiT /** * The name of the holiday */ - const HOLIDAY = 'summerBankHoliday'; + public const HOLIDAY = 'summerBankHoliday'; /** * The year in which the holiday was first established */ - const ESTABLISHMENT_YEAR = 1965; + public const ESTABLISHMENT_YEAR = 1965; /** * Tests the holiday defined in this test. diff --git a/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php b/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php index c074ccbbc..4a8bdb472 100644 --- a/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php +++ b/tests/UnitedKingdom/UnitedKingdomBaseTestCase.php @@ -25,20 +25,20 @@ abstract class UnitedKingdomBaseTestCase extends TestCase /** * Name of the region (e.g. country / state) to be tested */ - const REGION = 'UnitedKingdom'; + public const REGION = 'UnitedKingdom'; /** * Timezone in which this provider has holidays defined */ - const TIMEZONE = 'Europe/London'; + public const TIMEZONE = 'Europe/London'; /** * Locale that is considered common for this provider */ - const LOCALE = 'en_GB'; + public const LOCALE = 'en_GB'; /** * Number of iterations to be used for the various unit tests of this provider */ - const TEST_ITERATIONS = 50; + public const TEST_ITERATIONS = 50; } From ec79ee7e555f01191677c9be3ed217f5353b1bcc Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 12:07:54 +0900 Subject: [PATCH 120/132] Return type hint added. Signed-off-by: Sacha Telgenhof --- tests/NewZealand/AnzacDayTest.php | 4 ++-- tests/NewZealand/BoxingDayTest.php | 4 ++-- tests/NewZealand/ChristmasDayTest.php | 4 ++-- tests/NewZealand/DayAfterNewYearsDayTest.php | 4 ++-- tests/NewZealand/EasterMondayTest.php | 4 ++-- tests/NewZealand/GoodFridayTest.php | 4 ++-- tests/NewZealand/LabourDayTest.php | 4 ++-- tests/NewZealand/NewYearsDayTest.php | 4 ++-- tests/NewZealand/NewZealandTest.php | 10 +++++----- tests/NewZealand/QueensBirthdayTest.php | 4 ++-- tests/NewZealand/WaitangiDayTest.php | 4 ++-- 11 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/NewZealand/AnzacDayTest.php b/tests/NewZealand/AnzacDayTest.php index 2910fa16f..5cb489905 100644 --- a/tests/NewZealand/AnzacDayTest.php +++ b/tests/NewZealand/AnzacDayTest.php @@ -82,7 +82,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/NewZealand/BoxingDayTest.php b/tests/NewZealand/BoxingDayTest.php index b16dce813..bc901a052 100644 --- a/tests/NewZealand/BoxingDayTest.php +++ b/tests/NewZealand/BoxingDayTest.php @@ -77,7 +77,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -91,7 +91,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/NewZealand/ChristmasDayTest.php b/tests/NewZealand/ChristmasDayTest.php index 0beaeae8d..9c5a49d14 100644 --- a/tests/NewZealand/ChristmasDayTest.php +++ b/tests/NewZealand/ChristmasDayTest.php @@ -77,7 +77,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -91,7 +91,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/NewZealand/DayAfterNewYearsDayTest.php b/tests/NewZealand/DayAfterNewYearsDayTest.php index 743f81ace..c7f15b83f 100644 --- a/tests/NewZealand/DayAfterNewYearsDayTest.php +++ b/tests/NewZealand/DayAfterNewYearsDayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/NewZealand/EasterMondayTest.php b/tests/NewZealand/EasterMondayTest.php index 9f62592ca..f6e0fe56c 100644 --- a/tests/NewZealand/EasterMondayTest.php +++ b/tests/NewZealand/EasterMondayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/NewZealand/GoodFridayTest.php b/tests/NewZealand/GoodFridayTest.php index e7cc8af4f..adeeae15f 100644 --- a/tests/NewZealand/GoodFridayTest.php +++ b/tests/NewZealand/GoodFridayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/NewZealand/LabourDayTest.php b/tests/NewZealand/LabourDayTest.php index 5480d527c..cb554fb23 100644 --- a/tests/NewZealand/LabourDayTest.php +++ b/tests/NewZealand/LabourDayTest.php @@ -89,7 +89,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -103,7 +103,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/NewZealand/NewYearsDayTest.php b/tests/NewZealand/NewYearsDayTest.php index b9c909327..b408bff8b 100644 --- a/tests/NewZealand/NewYearsDayTest.php +++ b/tests/NewZealand/NewYearsDayTest.php @@ -82,7 +82,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/NewZealand/NewZealandTest.php b/tests/NewZealand/NewZealandTest.php index bfaf4c34c..2cc6f8a0f 100644 --- a/tests/NewZealand/NewZealandTest.php +++ b/tests/NewZealand/NewZealandTest.php @@ -28,7 +28,7 @@ class NewZealandTest extends NewZealandBaseTestCase * Tests if all official holidays in New Zealand are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in New Zealand are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in New Zealand are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in New Zealand are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in New Zealand are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/NewZealand/QueensBirthdayTest.php b/tests/NewZealand/QueensBirthdayTest.php index adefbab62..48a8bd3a5 100644 --- a/tests/NewZealand/QueensBirthdayTest.php +++ b/tests/NewZealand/QueensBirthdayTest.php @@ -79,7 +79,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/NewZealand/WaitangiDayTest.php b/tests/NewZealand/WaitangiDayTest.php index 3fa7f6bde..b922fb747 100644 --- a/tests/NewZealand/WaitangiDayTest.php +++ b/tests/NewZealand/WaitangiDayTest.php @@ -66,7 +66,7 @@ public function testNotHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, From 2d99a25f1d83f74d20e36dfc0f9906c05105522f Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 12:33:27 +0900 Subject: [PATCH 121/132] Return type hint added. Signed-off-by: Sacha Telgenhof --- tests/Australia/ACT/ACTTest.php | 2 +- tests/Australia/ACT/CanberraDayTest.php | 4 +- tests/Australia/ACT/EasterSaturdayTest.php | 4 +- tests/Australia/ACT/EasterSundayTest.php | 4 +- tests/Australia/ACT/LabourDayTest.php | 4 +- tests/Australia/ACT/QueensBirthdayTest.php | 4 +- tests/Australia/ACT/ReconciliationDayTest.php | 4 +- tests/Australia/AnzacDayTest.php | 4 +- tests/Australia/AustraliaDayTest.php | 6 +- tests/Australia/AustraliaTest.php | 10 ++-- tests/Australia/BoxingDayTest.php | 4 +- tests/Australia/ChristmasDayTest.php | 4 +- tests/Australia/EasterMondayTest.php | 4 +- tests/Australia/GoodFridayTest.php | 4 +- tests/Australia/NSW/BankHolidayTest.php | 4 +- tests/Australia/NSW/EasterSaturdayTest.php | 4 +- tests/Australia/NSW/EasterSundayTest.php | 4 +- tests/Australia/NSW/LabourDayTest.php | 4 +- tests/Australia/NSW/NSWTest.php | 4 +- tests/Australia/NSW/QueensBirthdayTest.php | 4 +- tests/Australia/NT/EasterSaturdayTest.php | 4 +- tests/Australia/NT/MayDayTest.php | 4 +- tests/Australia/NT/NTTest.php | 2 +- tests/Australia/NT/PicnicDayTest.php | 4 +- tests/Australia/NT/QueensBirthdayTest.php | 4 +- tests/Australia/NewYearsDayTest.php | 4 +- .../Queensland/Brisbane/BrisbaneTest.php | 2 +- .../Queensland/Brisbane/PeoplesDayTest.php | 4 +- tests/Australia/Queensland/LabourDayTest.php | 4 +- .../Queensland/QueensBirthdayTest.php | 4 +- tests/Australia/Queensland/QueenslandTest.php | 2 +- tests/Australia/SA/AdelaideCupDayTest.php | 4 +- tests/Australia/SA/ChristmasDayTest.php | 6 +- tests/Australia/SA/EasterSaturdayTest.php | 4 +- tests/Australia/SA/LabourDayTest.php | 4 +- tests/Australia/SA/ProclamationDayTest.php | 4 +- tests/Australia/SA/QueensBirthdayTest.php | 4 +- tests/Australia/SA/SATest.php | 2 +- .../CentralNorth/CentralNorthTest.php | 2 +- .../CentralNorth/DevonportShowTest.php | 4 +- tests/Australia/Tasmania/EightHourDayTest.php | 4 +- .../FlindersIsland/FlindersIslandShowTest.php | 4 +- .../FlindersIsland/FlindersIslandTest.php | 2 +- .../KingIsland/KingIslandShowTest.php | 4 +- .../Tasmania/KingIsland/KingIslandTest.php | 2 +- .../Tasmania/Northeast/LauncestonShowTest.php | 4 +- .../Tasmania/Northeast/NortheastTest.php | 2 +- .../Tasmania/Northwest/BurnieShowTest.php | 4 +- .../Northwest/CircularHead/AGFESTTest.php | 4 +- .../CircularHead/CircularHeadTest.php | 2 +- .../Tasmania/Northwest/NorthwestTest.php | 2 +- .../Australia/Tasmania/QueensBirthdayTest.php | 4 +- .../Australia/Tasmania/RecreationDayTest.php | 4 +- .../Tasmania/South/HobartShowTest.php | 4 +- tests/Australia/Tasmania/South/SouthTest.php | 2 +- .../South/Southeast/HobartRegattaTest.php | 4 +- .../South/Southeast/SoutheastTest.php | 2 +- tests/Australia/Tasmania/TasmaniaTest.php | 2 +- .../Victoria/AFLGrandFinalFridayTest.php | 4 +- .../Australia/Victoria/EasterSaturdayTest.php | 4 +- tests/Australia/Victoria/EasterSundayTest.php | 4 +- tests/Australia/Victoria/LabourDayTest.php | 4 +- .../Victoria/MelbourneCupDayTest.php | 4 +- .../Australia/Victoria/QueensBirthdayTest.php | 4 +- tests/Australia/Victoria/VictoriaTest.php | 2 +- tests/Australia/WA/LabourDayTest.php | 4 +- tests/Australia/WA/QueensBirthdayTest.php | 4 +- tests/Australia/WA/WATest.php | 2 +- .../Australia/WA/WesternAustraliaDayTest.php | 4 +- tests/Austria/AllSaintsDayTest.php | 4 +- tests/Austria/AscensionDayTest.php | 4 +- tests/Austria/AssumptionOfMaryTest.php | 4 +- tests/Austria/AustriaTest.php | 10 ++-- tests/Austria/ChristmasTest.php | 4 +- tests/Austria/CorpusChristiTest.php | 4 +- tests/Austria/EasterMondayTest.php | 4 +- tests/Austria/EasterTest.php | 4 +- tests/Austria/EpiphanyTest.php | 4 +- tests/Austria/ImmaculateConceptionTest.php | 4 +- tests/Austria/InternationalWorkersDayTest.php | 4 +- tests/Austria/NationalDayTest.php | 4 +- tests/Austria/NewYearsDayTest.php | 4 +- tests/Austria/PentecostMondayTest.php | 4 +- tests/Austria/PentecostTest.php | 4 +- tests/Austria/SecondChristmasDayTest.php | 4 +- tests/Base/HolidayBetweenFilterTest.php | 22 +++---- tests/Base/HolidayFiltersTest.php | 10 ++-- tests/Base/HolidayOnFilterTest.php | 6 +- tests/Base/HolidayTest.php | 20 +++---- tests/Base/TranslationsTest.php | 20 +++---- tests/Base/YasumiExternalProvider.php | 2 +- tests/Base/YasumiTest.php | 58 +++++++++---------- tests/Base/YasumiWorkdayTest.php | 6 +- tests/Belgium/AllSaintsDayTest.php | 4 +- tests/Belgium/ArmisticeDayTest.php | 4 +- tests/Belgium/AscensionDayTest.php | 4 +- tests/Belgium/AssumptionOfMaryTest.php | 4 +- tests/Belgium/BelgiumTest.php | 10 ++-- tests/Belgium/ChristmasTest.php | 4 +- tests/Belgium/EasterMondayTest.php | 4 +- tests/Belgium/EasterTest.php | 4 +- tests/Belgium/InternationalWorkersDayTest.php | 4 +- tests/Belgium/NationalDayTest.php | 4 +- tests/Belgium/NewYearsDayTest.php | 4 +- tests/Belgium/PentecostTest.php | 4 +- tests/Belgium/pentecostMondayTest.php | 4 +- tests/Bosnia/BosniaTest.php | 10 ++-- tests/Bosnia/ChristmasDayTest.php | 6 +- tests/Bosnia/DayAfterNewYearsDay.php | 6 +- tests/Bosnia/EasterTest.php | 4 +- tests/Bosnia/IndependenceDayTest.php | 4 +- tests/Bosnia/InternationalWorkersDayTest.php | 6 +- tests/Bosnia/NewYearsDayTest.php | 6 +- tests/Bosnia/OrthodoxChristmasDay.php | 6 +- tests/Bosnia/SecondLabourDay.php | 6 +- tests/Bosnia/StatehoodDayTest.php | 4 +- tests/Brazil/AllSoulsDayTest.php | 4 +- tests/Brazil/AshWednesdayTest.php | 4 +- tests/Brazil/BrazilTest.php | 10 ++-- tests/Brazil/CarnavalMondayTest.php | 4 +- tests/Brazil/CarnavalTuesdayTest.php | 4 +- tests/Brazil/ChristmasDayTest.php | 4 +- tests/Brazil/CorpusChristiTest.php | 4 +- tests/Brazil/EasterTest.php | 4 +- tests/Brazil/GoodFridayTest.php | 4 +- tests/Brazil/IndependenceDayTest.php | 4 +- tests/Brazil/InternationalWorkersDayTest.php | 4 +- tests/Brazil/NewYearsDayTest.php | 4 +- tests/Brazil/OurLadyOfAparecidaDayTest.php | 4 +- .../Brazil/ProclamationOfRepublicDayTest.php | 4 +- tests/Brazil/TiradentesDayTest.php | 4 +- tests/Croatia/AllSaintsDayTest.php | 4 +- tests/Croatia/AntifascistStruggleDayTest.php | 4 +- tests/Croatia/AssumptionOfMaryTest.php | 4 +- tests/Croatia/ChristmasDayTest.php | 4 +- tests/Croatia/CorpusChristiTest.php | 4 +- tests/Croatia/EasterMondayTest.php | 4 +- tests/Croatia/EasterTest.php | 4 +- tests/Croatia/EpiphanyTest.php | 4 +- tests/Croatia/HomelandThanksgivingDayTest.php | 4 +- tests/Croatia/IndependenceDayTest.php | 4 +- tests/Croatia/InternationalWorkersDayTest.php | 4 +- tests/Croatia/NewYearsDayTest.php | 4 +- tests/Croatia/StStephensDayTest.php | 4 +- tests/Croatia/StatehoodDayTest.php | 4 +- tests/CzechRepublic/ChristmasDayTest.php | 4 +- tests/CzechRepublic/ChristmasEveTest.php | 4 +- tests/CzechRepublic/CzechRepublicTest.php | 10 ++-- tests/CzechRepublic/CzechStateHoodDayTest.php | 4 +- tests/CzechRepublic/EasterMondayTest.php | 4 +- tests/CzechRepublic/GoodFridayTest.php | 4 +- .../IndependentCzechoslovakStateDayTest.php | 4 +- .../InternationalWorkersDayTest.php | 4 +- tests/CzechRepublic/JanHusDayTest.php | 4 +- tests/CzechRepublic/NewYearsDayTest.php | 4 +- .../SaintsCyrilAndMethodiusDayTest.php | 4 +- .../CzechRepublic/SecondChristmasDayTest.php | 4 +- .../StruggleForFreedomAndDemocracyDayTest.php | 4 +- .../CzechRepublic/VictoryInEuropeDayTest.php | 4 +- tests/Denmark/AscensionDayTest.php | 4 +- tests/Denmark/ChristmasDayTest.php | 4 +- tests/Denmark/ChristmasEveTest.php | 4 +- tests/Denmark/ConstitutionDayTest.php | 4 +- tests/Denmark/DenmarkTest.php | 10 ++-- tests/Denmark/EasterMondayTest.php | 4 +- tests/Denmark/EasterTest.php | 4 +- tests/Denmark/GoodFridayTest.php | 4 +- tests/Denmark/GreatPrayerDayTest.php | 4 +- tests/Denmark/InternationalWorkersDayTest.php | 4 +- tests/Denmark/MaundyThursdayTest.php | 4 +- tests/Denmark/NewYearsDayTest.php | 4 +- tests/Denmark/NewYearsEveTest.php | 4 +- tests/Denmark/PentecostMondayTest.php | 4 +- tests/Denmark/PentecostTest.php | 4 +- tests/Denmark/SecondChristmasDayTest.php | 4 +- tests/Denmark/SummerTimeTest.php | 4 +- tests/Denmark/WinterTimeTest.php | 4 +- tests/Estonia/ChristmasDayTest.php | 4 +- tests/Estonia/ChristmasEveDayTest.php | 4 +- tests/Estonia/EasterDayTest.php | 4 +- tests/Estonia/EstoniaTest.php | 10 ++-- tests/Estonia/GoodFridayDayTest.php | 4 +- tests/Estonia/IndependenceDayTest.php | 4 +- tests/Estonia/InternationalWorkersDayTest.php | 4 +- tests/Estonia/NewYearsDayTest.php | 4 +- tests/Estonia/PentecostTest.php | 4 +- .../RestorationOfIndependenceDayTest.php | 4 +- tests/Estonia/SecondChristmasDayTest.php | 4 +- tests/Estonia/StJohnsDayTest.php | 4 +- tests/Estonia/VictoryDayTest.php | 4 +- tests/Finland/AllSaintsDayTest.php | 4 +- tests/Finland/AscensionDayTest.php | 4 +- tests/Finland/ChristmasDayTest.php | 4 +- tests/Finland/EasterMondayTest.php | 4 +- tests/Finland/EasterTest.php | 4 +- tests/Finland/EpiphanyTest.php | 4 +- tests/Finland/FinlandTest.php | 10 ++-- tests/Finland/GoodFridayTest.php | 4 +- tests/Finland/IndependenceDayTest.php | 4 +- tests/Finland/InternationalWorkersDayTest.php | 4 +- tests/Finland/NewYearsDayTest.php | 4 +- tests/Finland/PentecostTest.php | 4 +- tests/Finland/SecondChristmasDayTest.php | 4 +- tests/Finland/stJohnsDayTest.php | 4 +- tests/France/AllSaintsDayTest.php | 4 +- tests/France/ArmisticeDayTest.php | 4 +- tests/France/AscensionDayTest.php | 4 +- tests/France/AssumptionOfMaryTest.php | 4 +- tests/France/BasRhin/BasRhinTest.php | 10 ++-- tests/France/BasRhin/GoodFridayTest.php | 4 +- tests/France/BasRhin/stStephensDayTest.php | 4 +- tests/France/BastilleDayTest.php | 4 +- tests/France/ChristmasDayTest.php | 4 +- tests/France/EasterMondayTest.php | 4 +- tests/France/FranceTest.php | 10 ++-- tests/France/HautRhin/GoodFridayTest.php | 4 +- tests/France/HautRhin/HautRhinTest.php | 10 ++-- tests/France/HautRhin/stStephensDayTest.php | 4 +- tests/France/InternationalWorkersDayTest.php | 4 +- tests/France/Moselle/GoodFridayTest.php | 4 +- tests/France/Moselle/MoselleTest.php | 10 ++-- tests/France/Moselle/stStephensDayTest.php | 4 +- tests/France/NewYearsDayTest.php | 4 +- tests/France/PentecostMondayTest.php | 4 +- tests/France/VictoryInEuropeDayTest.php | 4 +- tests/Germany/AscensionDayTest.php | 4 +- .../BadenWurttemberg/AllSaintsDayTest.php | 4 +- .../BadenWurttemberg/BadenWurttembergTest.php | 10 ++-- .../BadenWurttemberg/CorpusChristiTest.php | 4 +- .../Germany/BadenWurttemberg/EpiphanyTest.php | 4 +- tests/Germany/Bavaria/AllSaintsDayTest.php | 4 +- tests/Germany/Bavaria/BavariaTest.php | 10 ++-- tests/Germany/Bavaria/CorpusChristiTest.php | 4 +- tests/Germany/Bavaria/EpiphanyTest.php | 4 +- tests/Germany/Berlin/BerlinTest.php | 10 ++-- tests/Germany/Brandenburg/BrandenburgTest.php | 10 ++-- .../Brandenburg/ReformationDayTest.php | 4 +- tests/Germany/Bremen/BremenTest.php | 10 ++-- tests/Germany/Bremen/ReformationDayTest.php | 4 +- tests/Germany/ChristmasTest.php | 4 +- tests/Germany/EasterMondayTest.php | 4 +- tests/Germany/GermanUnityDayTest.php | 4 +- tests/Germany/GermanyTest.php | 10 ++-- tests/Germany/GoodFridayTest.php | 4 +- .../Germany/Hamburg/DayOfReformationTest.php | 4 +- tests/Germany/Hamburg/HamburgTest.php | 10 ++-- tests/Germany/Hesse/CorpusChristiTest.php | 4 +- tests/Germany/Hesse/HesseTest.php | 10 ++-- tests/Germany/InternationalWorkersDayTest.php | 4 +- tests/Germany/LowerSaxony/LowerSaxonyTest.php | 10 ++-- .../LowerSaxony/ReformationDayTest.php | 4 +- .../MecklenburgWesternPomeraniaTest.php | 10 ++-- .../ReformationDayTest.php | 4 +- tests/Germany/NewYearsDayTest.php | 4 +- .../NorthRhineWestphalia/AllSaintsDayTest.php | 4 +- .../CorpusChristiTest.php | 4 +- .../NorthRhineWestphaliaTest.php | 10 ++-- tests/Germany/PentecostMondayTest.php | 4 +- tests/Germany/ReformationDay2017Test.php | 4 +- .../RhinelandPalatinate/AllSaintsDayTest.php | 4 +- .../RhinelandPalatinate/CorpusChristiTest.php | 4 +- .../RhinelandPalatinateTest.php | 10 ++-- tests/Germany/Saarland/AllSaintsDayTest.php | 4 +- .../Germany/Saarland/AssumptionOfMaryTest.php | 4 +- tests/Germany/Saarland/CorpusChristiTest.php | 4 +- tests/Germany/Saarland/SaarlandTest.php | 10 ++-- tests/Germany/Saxony/ReformationDayTest.php | 4 +- .../Saxony/RepentanceAndPrayerDayTest.php | 4 +- tests/Germany/Saxony/SaxonyTest.php | 10 ++-- tests/Germany/SaxonyAnhalt/EpiphanyTest.php | 4 +- .../SaxonyAnhalt/ReformationDayTest.php | 4 +- .../Germany/SaxonyAnhalt/SaxonyAnhaltTest.php | 10 ++-- .../SchleswigHolstein/ReformationDayTest.php | 4 +- .../SchleswigHolsteinTest.php | 10 ++-- tests/Germany/SecondChristmasDayTest.php | 4 +- .../Germany/Thuringia/ReformationDayTest.php | 4 +- tests/Germany/Thuringia/ThuringiaTest.php | 10 ++-- tests/Greece/AnnunciationTest.php | 4 +- tests/Greece/AscensionDayTest.php | 4 +- tests/Greece/AssumptionOfMaryTest.php | 4 +- tests/Greece/ChristmasDayTest.php | 4 +- tests/Greece/CleanMondayTest.php | 4 +- tests/Greece/EasterMondayTest.php | 4 +- tests/Greece/EasterTest.php | 4 +- tests/Greece/EpiphanyTest.php | 4 +- tests/Greece/GreeceTest.php | 10 ++-- tests/Greece/IndepencenceDayTest.php | 4 +- tests/Greece/InternationalWorkersDayTest.php | 4 +- tests/Greece/NewYearsDayTest.php | 4 +- tests/Greece/OhiDayTest.php | 4 +- tests/Greece/PentecostMondayTest.php | 4 +- tests/Greece/PentecostTest.php | 4 +- tests/Greece/PolytechnioTest.php | 4 +- tests/Greece/ThreeHolyHierarchsTest.php | 4 +- tests/Greece/goodFridayTest.php | 4 +- tests/Hungary/AllSaintsDayTest.php | 4 +- tests/Hungary/ChristmasTest.php | 4 +- tests/Hungary/EasterMondayTest.php | 4 +- tests/Hungary/EasterTest.php | 4 +- tests/Hungary/HungaryTest.php | 10 ++-- tests/Hungary/InternationalWorkersDayTest.php | 4 +- tests/Hungary/MemorialDay1848Test.php | 4 +- tests/Hungary/MemorialDay1956Test.php | 4 +- tests/Hungary/NewYearsDayTest.php | 4 +- tests/Hungary/PentecostMondayTest.php | 4 +- tests/Hungary/PentecostTest.php | 4 +- tests/Hungary/SecondChristmasDayTest.php | 4 +- tests/Hungary/StateFoundationDayTest.php | 4 +- tests/Ireland/AugustHolidayTest.php | 4 +- tests/Ireland/ChristmasDayTest.php | 4 +- tests/Ireland/EasterMondayTest.php | 4 +- tests/Ireland/EasterTest.php | 4 +- tests/Ireland/GoodFridayTest.php | 4 +- tests/Ireland/IrelandTest.php | 10 ++-- tests/Ireland/JuneHolidayTest.php | 4 +- tests/Ireland/MayDayTest.php | 4 +- tests/Ireland/NewYearsDayTest.php | 4 +- tests/Ireland/OctoberHolidayTest.php | 4 +- tests/Ireland/PentecostTest.php | 4 +- tests/Ireland/StPatricksDayTest.php | 4 +- tests/Ireland/StStephensDayTest.php | 4 +- tests/Ireland/pentecostMondayTest.php | 4 +- tests/Italy/AllSaintsDayTest.php | 4 +- tests/Italy/AssumptionOfMaryTest.php | 4 +- tests/Italy/ChristmasTest.php | 4 +- tests/Italy/EasterMondayTest.php | 4 +- tests/Italy/EasterTest.php | 4 +- tests/Italy/EpiphanyTest.php | 4 +- tests/Italy/ImmaculateConceptionTest.php | 4 +- tests/Italy/InternationalWorkersDayTest.php | 4 +- tests/Italy/ItalyTest.php | 10 ++-- tests/Italy/LiberationDayTest.php | 4 +- tests/Italy/NewYearsDayTest.php | 4 +- tests/Italy/RepublicDayTest.php | 4 +- tests/Italy/stStephensDayTest.php | 4 +- tests/Japan/AutumnalEquinoxDayTest.php | 4 +- tests/Japan/ChildrensDayTest.php | 4 +- tests/Japan/ComingOfAgeDayTest.php | 4 +- tests/Japan/ConstitutionMemorialDayTest.php | 4 +- tests/Japan/CultureDayTest.php | 4 +- tests/Japan/EmperorsBirthdayTest.php | 4 +- tests/Japan/GreeneryDayTest.php | 4 +- tests/Japan/HealthAndSportsDayTest.php | 4 +- tests/Japan/JapanTest.php | 10 ++-- tests/Japan/LabourThanksgivingDayTest.php | 4 +- tests/Japan/MarineDayTest.php | 4 +- tests/Japan/MountainDayTest.php | 4 +- tests/Japan/NationalFoundationDayTest.php | 4 +- tests/Japan/NewYearsDayTest.php | 4 +- tests/Japan/PublicBridgeDayTest.php | 4 +- tests/Japan/RespectForTheAgedDayTest.php | 4 +- tests/Japan/ShowaDayTest.php | 4 +- tests/Japan/VernalEquinoxDayTest.php | 4 +- tests/Latvia/ChristmasDayTest.php | 4 +- tests/Latvia/ChristmasEveDayTest.php | 4 +- tests/Latvia/EasterDayTest.php | 4 +- tests/Latvia/EasterMondayDayTest.php | 4 +- tests/Latvia/GoodFridayDayTest.php | 4 +- tests/Latvia/InternationalWorkersDayTest.php | 4 +- tests/Latvia/LatviaTest.php | 10 ++-- tests/Latvia/MidsummerEveDayTest.php | 4 +- tests/Latvia/NewYearsDayTest.php | 4 +- tests/Latvia/NewYearsEveDayTest.php | 4 +- ...oclamationOfTheRepublicOfLatviaDayTest.php | 4 +- .../RestorationOfIndependenceDayTest.php | 4 +- tests/Latvia/SecondChristmasDayTest.php | 4 +- tests/Latvia/StJohnsDayTest.php | 4 +- tests/Lithuania/AllSaintsDayTest.php | 4 +- tests/Lithuania/AssumptionOfMaryDayTest.php | 4 +- tests/Lithuania/ChristmasDayTest.php | 4 +- tests/Lithuania/ChristmasEveDayTest.php | 4 +- tests/Lithuania/EasterDayTest.php | 4 +- tests/Lithuania/EasterMondayDayTest.php | 4 +- .../Lithuania/InternationalWorkersDayTest.php | 4 +- tests/Lithuania/LithuaniaTest.php | 10 ++-- tests/Lithuania/NewYearsDayTest.php | 4 +- ...rationOfIndependenceOfLithuaniaDayTest.php | 4 +- ...estorationOfTheStateOfLithuaniaDayTest.php | 4 +- tests/Lithuania/SecondChristmasDayTest.php | 4 +- tests/Lithuania/StJohnsDayTest.php | 4 +- tests/Lithuania/StatehoodDayTest.php | 4 +- tests/Netherlands/AscensionDayTest.php | 4 +- tests/Netherlands/AshWednesdayTest.php | 4 +- tests/Netherlands/ChristmasDayTest.php | 4 +- tests/Netherlands/CommemorationDayTest.php | 4 +- tests/Netherlands/EasterMondayTest.php | 4 +- tests/Netherlands/EasterTest.php | 4 +- tests/Netherlands/EpiphanyTest.php | 4 +- tests/Netherlands/FathersDayTest.php | 4 +- tests/Netherlands/GoodFridayTest.php | 4 +- tests/Netherlands/HalloweenTest.php | 4 +- .../InternationalWorkersDayTest.php | 4 +- tests/Netherlands/KingsDayTest.php | 4 +- tests/Netherlands/LiberationDayTest.php | 4 +- tests/Netherlands/MothersDayTest.php | 4 +- tests/Netherlands/NetherlandsTest.php | 10 ++-- tests/Netherlands/NewYearsDayTest.php | 4 +- tests/Netherlands/PentecostTest.php | 4 +- tests/Netherlands/QueensDayTest.php | 4 +- tests/Netherlands/SummertimeTest.php | 4 +- tests/Netherlands/ValentinesDayTest.php | 4 +- tests/Netherlands/WintertimeTest.php | 4 +- tests/Netherlands/WorldAnimalDayTest.php | 4 +- tests/Netherlands/carnivalDayTest.php | 4 +- tests/Netherlands/pentecostMondayTest.php | 4 +- tests/Netherlands/princesDayTest.php | 4 +- tests/Netherlands/secondCarnivalDay.php | 4 +- tests/Netherlands/secondChristmasdayTest.php | 4 +- tests/Netherlands/stMartinsDayTest.php | 4 +- tests/Netherlands/stNicholasDayTest.php | 4 +- tests/Netherlands/thirdCarnivalDay.php | 4 +- tests/Norway/AscensionDayTest.php | 4 +- tests/Norway/ChristmasDayTest.php | 4 +- tests/Norway/ConstitutionDayTest.php | 4 +- tests/Norway/EasterMondayTest.php | 4 +- tests/Norway/EasterTest.php | 4 +- tests/Norway/GoodFridayTest.php | 4 +- tests/Norway/InternationalWorkersDayTest.php | 4 +- tests/Norway/MaundyThursdayTest.php | 4 +- tests/Norway/NewYearsDayTest.php | 4 +- tests/Norway/NorwayTest.php | 10 ++-- tests/Norway/PentecostMondayTest.php | 4 +- tests/Norway/PentecostTest.php | 4 +- tests/Norway/SecondChristmasDayTest.php | 4 +- tests/Poland/AllSaintsDayTest.php | 4 +- tests/Poland/AssumptionOfMaryTest.php | 4 +- tests/Poland/ChristmasTest.php | 4 +- tests/Poland/ConstitutionDayTest.php | 4 +- tests/Poland/CorpusChristiTest.php | 4 +- tests/Poland/EasterMondayTest.php | 4 +- tests/Poland/EasterTest.php | 4 +- tests/Poland/EpiphanyTest.php | 4 +- tests/Poland/IndependenceDayTest.php | 4 +- tests/Poland/InternationalWorkersDayTest.php | 4 +- tests/Poland/NewYearsDayTest.php | 4 +- tests/Poland/PentecostTest.php | 4 +- tests/Poland/PolandTest.php | 10 ++-- tests/Poland/SecondChristmasDayTest.php | 4 +- tests/Portugal/AllSaintsDayTest.php | 4 +- tests/Portugal/AssumptionOfMaryTest.php | 4 +- tests/Portugal/CarnationRevolutionDayTest.php | 4 +- tests/Portugal/ChristmasTest.php | 4 +- tests/Portugal/CorpusChristiTest.php | 4 +- tests/Portugal/EasterTest.php | 4 +- tests/Portugal/GoodFridayTest.php | 4 +- tests/Portugal/ImmaculateConceptionTest.php | 4 +- .../Portugal/InternationalWorkersDayTest.php | 4 +- tests/Portugal/NewYearsDayTest.php | 4 +- tests/Portugal/PortugalDayTest.php | 4 +- tests/Portugal/PortugalTest.php | 10 ++-- tests/Portugal/PortugueseRepublicDayTest.php | 4 +- .../RestorationOfIndependenceTest.php | 4 +- tests/Romania/AssumptionOfMaryTest.php | 4 +- tests/Romania/ChildrensDayTest.php | 4 +- tests/Romania/ChristmasDayTest.php | 4 +- tests/Romania/ConstantinBrancusiDayTest.php | 4 +- tests/Romania/DayAfterNewYearsDayTest.php | 4 +- tests/Romania/EasterMondayTest.php | 4 +- tests/Romania/EasterTest.php | 4 +- tests/Romania/InternationalWorkersDayTest.php | 4 +- tests/Romania/NationalDayTest.php | 4 +- tests/Romania/NewYearsDayTest.php | 4 +- tests/Romania/PentecostMondayTest.php | 4 +- tests/Romania/PentecostTest.php | 4 +- tests/Romania/RomaniaTest.php | 10 ++-- tests/Romania/SecondChristmasDayTest.php | 4 +- tests/Romania/StAndrewDayTest.php | 4 +- tests/Romania/UnitedPrincipalitiesDayTest.php | 4 +- .../Russia/DefenceOfTheFatherlandDayTest.php | 4 +- tests/Russia/InternationalWomensDayTest.php | 4 +- tests/Russia/NewYearHolidaysDay2Test.php | 4 +- tests/Russia/NewYearHolidaysDay3Test.php | 4 +- tests/Russia/NewYearHolidaysDay4Test.php | 4 +- tests/Russia/NewYearHolidaysDay5Test.php | 4 +- tests/Russia/NewYearHolidaysDay6Test.php | 4 +- tests/Russia/NewYearHolidaysDay8Test.php | 4 +- tests/Russia/NewYearsDayTest.php | 4 +- tests/Russia/OrthodoxChristmasDayTest.php | 4 +- tests/Russia/RussiaDayTest.php | 4 +- tests/Russia/RussiaTest.php | 10 ++-- tests/Russia/SpringAndLabourDayTest.php | 4 +- tests/Russia/UnityDayTest.php | 4 +- tests/Russia/VictoryDayTest.php | 4 +- tests/Slovakia/AllSaintsDayTest.php | 4 +- tests/Slovakia/ChristmasDayTest.php | 4 +- tests/Slovakia/ChristmasEveTest.php | 4 +- tests/Slovakia/EasterMondayTest.php | 4 +- tests/Slovakia/EpiphanyTest.php | 4 +- tests/Slovakia/GoodFridayTest.php | 4 +- .../Slovakia/InternationalWorkersDayTest.php | 4 +- tests/Slovakia/NewYearsDayTest.php | 4 +- tests/Slovakia/OurLadyOfSorrowsDayTest.php | 4 +- .../SaintsCyrilAndMethodiusDayTest.php | 4 +- tests/Slovakia/SecondChristmasDayTest.php | 4 +- tests/Slovakia/SlovakConstitutionDayTest.php | 4 +- .../SlovakNationalUprisingDayTest.php | 4 +- tests/Slovakia/SlovakiaTest.php | 10 ++-- .../StruggleForFreedomAndDemocracyDayTest.php | 4 +- tests/Slovakia/VictoryInEuropeDayTest.php | 4 +- tests/SouthAfrica/ChristmasDayTest.php | 4 +- tests/SouthAfrica/FamilyDayTest.php | 4 +- tests/SouthAfrica/FreedomDayTest.php | 4 +- tests/SouthAfrica/GoodFridayTest.php | 4 +- tests/SouthAfrica/HeritageDayTest.php | 4 +- tests/SouthAfrica/HumanRightsDayTest.php | 4 +- .../MunicipalElections2016DayTest.php | 4 +- tests/SouthAfrica/NationalWomensDayTest.php | 4 +- tests/SouthAfrica/NewYearsDayTest.php | 4 +- tests/SouthAfrica/ReconciliationDayTest.php | 4 +- tests/SouthAfrica/SecondChristmasDayTest.php | 4 +- tests/SouthAfrica/SouthAfricaTest.php | 10 ++-- .../SubstituteDayOfGoodwillTest.php | 4 +- tests/SouthAfrica/WorkersDayTest.php | 4 +- tests/SouthAfrica/YouthDayTest.php | 4 +- tests/Spain/AllSaintsDayTest.php | 4 +- tests/Spain/Andalusia/AndalusiaDayTest.php | 4 +- tests/Spain/Andalusia/AndalusiaTest.php | 10 ++-- tests/Spain/Aragon/AragonTest.php | 10 ++-- tests/Spain/Aragon/StGeorgesDayTest.php | 4 +- tests/Spain/AssumptionOfMaryTest.php | 4 +- tests/Spain/Asturias/AsturiasDayTest.php | 4 +- tests/Spain/Asturias/AsturiasTest.php | 10 ++-- .../BalearicIslandsDayTest.php | 4 +- .../BalearicIslands/BalearicIslandsTest.php | 10 ++-- .../BasqueCountry/BasqueCountryDayTest.php | 4 +- .../Spain/BasqueCountry/BasqueCountryTest.php | 10 ++-- .../CanaryIslands/CanaryIslandsDayTest.php | 4 +- .../Spain/CanaryIslands/CanaryIslandsTest.php | 10 ++-- tests/Spain/Cantabria/CantabriaDayTest.php | 4 +- tests/Spain/Cantabria/CantabriaTest.php | 10 ++-- .../CastileAndLeon/CastileAndLeonDayTest.php | 4 +- .../CastileAndLeon/CastileAndLeonTest.php | 10 ++-- .../CastillaLaManchaDayTest.php | 4 +- .../CastillaLaMancha/CastillaLaManchaTest.php | 10 ++-- tests/Spain/Catalonia/CataloniaTest.php | 10 ++-- .../Catalonia/nationalCataloniaDayTest.php | 4 +- tests/Spain/Catalonia/stJohnsDayTest.php | 4 +- tests/Spain/Ceuta/CeutaTest.php | 10 ++-- tests/Spain/Ceuta/ceutaDayTest.php | 4 +- tests/Spain/ChristmasTest.php | 4 +- .../CommunityOfMadridTest.php | 10 ++-- .../DosdeMayoUprisingDayTest.php | 4 +- tests/Spain/ConstitutionDayTest.php | 4 +- tests/Spain/EasterMondayTest.php | 4 +- tests/Spain/EpiphanyTest.php | 4 +- .../Spain/Extremadura/ExtremaduraDayTest.php | 4 +- tests/Spain/Extremadura/ExtremaduraTest.php | 10 ++-- tests/Spain/Galicia/GaliciaTest.php | 10 ++-- .../Galicia/GalicianLiteratureDayTest.php | 4 +- tests/Spain/Galicia/stJamesDayTest.php | 4 +- tests/Spain/GoodFridayTest.php | 4 +- tests/Spain/ImmaculateConceptionTest.php | 4 +- tests/Spain/InternationalWorkersDayTest.php | 4 +- tests/Spain/LaRioja/LaRiojaDayTest.php | 4 +- tests/Spain/LaRioja/LaRiojaTest.php | 10 ++-- tests/Spain/MaundyThursdayTest.php | 4 +- tests/Spain/Melilla/MelillaTest.php | 10 ++-- tests/Spain/NationalDayTest.php | 4 +- tests/Spain/Navarre/NavarreTest.php | 10 ++-- tests/Spain/NewYearsDayTest.php | 4 +- .../RegionOfMurcia/RegionOfMurciaDayTest.php | 4 +- .../RegionOfMurcia/RegionOfMurciaTest.php | 10 ++-- tests/Spain/SpainTest.php | 10 ++-- .../ValencianCommunityDayTest.php | 4 +- .../ValencianCommunityTest.php | 10 ++-- tests/Spain/ValentinesDayTest.php | 4 +- tests/Spain/stJosephsDayTest.php | 4 +- tests/Sweden/AllSaintsDayTest.php | 4 +- tests/Sweden/AscensionDayTest.php | 4 +- tests/Sweden/ChristmasDayTest.php | 4 +- tests/Sweden/ChristmasEveTest.php | 4 +- tests/Sweden/EasterMondayTest.php | 4 +- tests/Sweden/EasterTest.php | 4 +- tests/Sweden/EpiphanyTest.php | 4 +- tests/Sweden/GoodFridayTest.php | 4 +- tests/Sweden/InternationalWorkersDayTest.php | 4 +- tests/Sweden/NationalDayTest.php | 4 +- tests/Sweden/NewYearsDayTest.php | 4 +- tests/Sweden/PentecostTest.php | 4 +- tests/Sweden/SecondChristmasDayTest.php | 4 +- tests/Sweden/SwedenTest.php | 10 ++-- tests/Sweden/stJohnsDayTest.php | 4 +- tests/Switzerland/Aargau/AargauTest.php | 12 ++-- tests/Switzerland/Aargau/AscensionDayTest.php | 4 +- tests/Switzerland/Aargau/ChristmasDayTest.php | 4 +- tests/Switzerland/Aargau/GoodFridayTest.php | 4 +- tests/Switzerland/Aargau/NewYearsDayTest.php | 4 +- .../AppenzellAusserrhodenTest.php | 12 ++-- .../AscensionDayTest.php | 4 +- .../ChristmasDayTest.php | 4 +- .../EasterMondayTest.php | 4 +- .../AppenzellAusserrhoden/GoodFridayTest.php | 4 +- .../AppenzellAusserrhoden/NewYearsDayTest.php | 4 +- .../PentecostMondayTest.php | 4 +- .../StStephensDayTest.php | 4 +- .../AppenzellInnerrhoden/AllSaintsDayTest.php | 4 +- .../AppenzellInnerrhodenTest.php | 12 ++-- .../AppenzellInnerrhoden/AscensionDayTest.php | 4 +- .../AssumptionOfMaryTest.php | 4 +- .../AppenzellInnerrhoden/ChristmasDayTest.php | 4 +- .../CorpusChristiTest.php | 4 +- .../AppenzellInnerrhoden/EasterMondayTest.php | 4 +- .../AppenzellInnerrhoden/GoodFridayTest.php | 4 +- .../ImmaculateConceptionTest.php | 4 +- .../AppenzellInnerrhoden/NewYearsDayTest.php | 4 +- .../PentecostMondayTest.php | 4 +- .../StStephensDayTest.php | 4 +- .../BaselLandschaft/AscensionDayTest.php | 4 +- .../BaselLandschaft/BaselLandschaftTest.php | 12 ++-- .../BaselLandschaft/ChristmasDayTest.php | 4 +- .../BaselLandschaft/EasterMondayTest.php | 4 +- .../BaselLandschaft/GoodFridayTest.php | 4 +- .../BaselLandschaft/NewYearsDayTest.php | 4 +- .../BaselLandschaft/PentecostMondayTest.php | 4 +- .../BaselLandschaft/StStephensDayTest.php | 4 +- .../BaselLandschaft/WorkersDayTest.php | 4 +- .../BaselStadt/AscensionDayTest.php | 4 +- .../Switzerland/BaselStadt/BaselStadtTest.php | 12 ++-- .../BaselStadt/ChristmasDayTest.php | 4 +- .../BaselStadt/EasterMondayTest.php | 4 +- .../Switzerland/BaselStadt/GoodFridayTest.php | 4 +- .../BaselStadt/NewYearsDayTest.php | 4 +- .../BaselStadt/PentecostMondayTest.php | 4 +- .../BaselStadt/StStephensDayTest.php | 4 +- .../Switzerland/BaselStadt/WorkersDayTest.php | 4 +- tests/Switzerland/Bern/AscensionDayTest.php | 4 +- tests/Switzerland/Bern/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Bern/BernTest.php | 12 ++-- tests/Switzerland/Bern/ChristmasDayTest.php | 4 +- tests/Switzerland/Bern/EasterMondayTest.php | 4 +- tests/Switzerland/Bern/GoodFridayTest.php | 4 +- tests/Switzerland/Bern/NewYearsDayTest.php | 4 +- .../Switzerland/Bern/PentecostMondayTest.php | 4 +- tests/Switzerland/Bern/StStephensDayTest.php | 4 +- .../Switzerland/Fribourg/AscensionDayTest.php | 4 +- .../Switzerland/Fribourg/ChristmasDayTest.php | 4 +- .../Switzerland/Fribourg/EasterMondayTest.php | 4 +- tests/Switzerland/Fribourg/FribourgTest.php | 12 ++-- tests/Switzerland/Fribourg/GoodFridayTest.php | 4 +- .../Switzerland/Fribourg/NewYearsDayTest.php | 4 +- .../Fribourg/PentecostMondayTest.php | 4 +- tests/Switzerland/Geneva/AscensionDayTest.php | 4 +- tests/Switzerland/Geneva/ChristmasDayTest.php | 4 +- tests/Switzerland/Geneva/EasterMondayTest.php | 4 +- tests/Switzerland/Geneva/GenevaTest.php | 12 ++-- tests/Switzerland/Geneva/GoodFridayTest.php | 4 +- .../Switzerland/Geneva/JeuneGenevoisTest.php | 4 +- tests/Switzerland/Geneva/NewYearsDayTest.php | 4 +- .../Geneva/PentecostMondayTest.php | 4 +- .../Geneva/RestaurationGenevoiseTest.php | 4 +- tests/Switzerland/Glarus/AllSaintsDayTest.php | 4 +- tests/Switzerland/Glarus/AscensionDayTest.php | 4 +- .../Switzerland/Glarus/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Glarus/ChristmasDayTest.php | 4 +- tests/Switzerland/Glarus/EasterMondayTest.php | 4 +- tests/Switzerland/Glarus/GlarusTest.php | 12 ++-- tests/Switzerland/Glarus/GoodFridayTest.php | 4 +- .../Switzerland/Glarus/NafelserFahrtTest.php | 4 +- tests/Switzerland/Glarus/NewYearsDayTest.php | 4 +- .../Glarus/PentecostMondayTest.php | 4 +- .../Switzerland/Glarus/StStephensDayTest.php | 4 +- .../Switzerland/Grisons/AscensionDayTest.php | 4 +- .../Switzerland/Grisons/ChristmasDayTest.php | 4 +- .../Switzerland/Grisons/EasterMondayTest.php | 4 +- tests/Switzerland/Grisons/GoodFridayTest.php | 4 +- tests/Switzerland/Grisons/GrisonsTest.php | 12 ++-- tests/Switzerland/Grisons/NewYearsDayTest.php | 4 +- .../Grisons/PentecostMondayTest.php | 4 +- .../Switzerland/Grisons/StStephensDayTest.php | 4 +- tests/Switzerland/Jura/AllSaintsDayTest.php | 4 +- tests/Switzerland/Jura/AscensionDayTest.php | 4 +- .../Switzerland/Jura/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Jura/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Jura/ChristmasDayTest.php | 4 +- tests/Switzerland/Jura/CorpusChristiTest.php | 4 +- tests/Switzerland/Jura/EasterMondayTest.php | 4 +- tests/Switzerland/Jura/GoodFridayTest.php | 4 +- tests/Switzerland/Jura/JuraTest.php | 12 ++-- tests/Switzerland/Jura/NewYearsDayTest.php | 4 +- .../Switzerland/Jura/PentecostMondayTest.php | 4 +- .../Jura/PlebisciteJurassienTest.php | 4 +- tests/Switzerland/Jura/WorkersDayTest.php | 4 +- .../Switzerland/Lucerne/AllSaintsDayTest.php | 4 +- .../Switzerland/Lucerne/AscensionDayTest.php | 4 +- .../Lucerne/AssumptionOfMaryTest.php | 4 +- .../Switzerland/Lucerne/BerchtoldsTagTest.php | 4 +- .../Switzerland/Lucerne/ChristmasDayTest.php | 4 +- .../Switzerland/Lucerne/CorpusChristiTest.php | 4 +- .../Switzerland/Lucerne/EasterMondayTest.php | 4 +- tests/Switzerland/Lucerne/GoodFridayTest.php | 4 +- .../Lucerne/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Lucerne/LucerneTest.php | 12 ++-- tests/Switzerland/Lucerne/NewYearsDayTest.php | 4 +- .../Lucerne/PentecostMondayTest.php | 4 +- .../Switzerland/Lucerne/StStephensDayTest.php | 4 +- .../Neuchatel/AscensionDayTest.php | 4 +- .../Neuchatel/BerchtoldsTagTest.php | 4 +- .../Neuchatel/BettagsMontagTest.php | 4 +- .../Neuchatel/ChristmasDayTest.php | 4 +- .../Neuchatel/EasterMondayTest.php | 4 +- .../Switzerland/Neuchatel/GoodFridayTest.php | 4 +- .../Neuchatel/InstaurationRepubliqueTest.php | 4 +- tests/Switzerland/Neuchatel/NeuchatelTest.php | 12 ++-- .../Switzerland/Neuchatel/NewYearsDayTest.php | 4 +- .../Neuchatel/PentecostMondayTest.php | 4 +- .../Switzerland/Neuchatel/WorkersDayTest.php | 4 +- .../Nidwalden/AllSaintsDayTest.php | 4 +- .../Nidwalden/AscensionDayTest.php | 4 +- .../Nidwalden/AssumptionOfMaryTest.php | 4 +- .../Nidwalden/ChristmasDayTest.php | 4 +- .../Nidwalden/CorpusChristiTest.php | 4 +- .../Nidwalden/EasterMondayTest.php | 4 +- .../Switzerland/Nidwalden/GoodFridayTest.php | 4 +- .../Nidwalden/ImmaculateConceptionTest.php | 4 +- .../Switzerland/Nidwalden/NewYearsDayTest.php | 4 +- tests/Switzerland/Nidwalden/NidwaldenTest.php | 12 ++-- .../Nidwalden/PentecostMondayTest.php | 4 +- .../Switzerland/Nidwalden/StJosephDayTest.php | 4 +- .../Nidwalden/StStephensDayTest.php | 4 +- .../Switzerland/Obwalden/AllSaintsDayTest.php | 4 +- .../Switzerland/Obwalden/AscensionDayTest.php | 4 +- .../Obwalden/AssumptionOfMaryTest.php | 4 +- .../Obwalden/BerchtoldsTagTest.php | 4 +- .../Obwalden/BruderKlausenFestTest.php | 4 +- .../Switzerland/Obwalden/ChristmasDayTest.php | 4 +- .../Obwalden/CorpusChristiTest.php | 4 +- .../Switzerland/Obwalden/EasterMondayTest.php | 4 +- tests/Switzerland/Obwalden/GoodFridayTest.php | 4 +- .../Obwalden/ImmaculateConceptionTest.php | 4 +- .../Switzerland/Obwalden/NewYearsDayTest.php | 4 +- tests/Switzerland/Obwalden/ObwaldenTest.php | 12 ++-- .../Obwalden/PentecostMondayTest.php | 4 +- .../Obwalden/StStephensDayTest.php | 4 +- .../Schaffhausen/AscensionDayTest.php | 4 +- .../Schaffhausen/BerchtoldsTagTest.php | 4 +- .../Schaffhausen/ChristmasDayTest.php | 4 +- .../Schaffhausen/EasterMondayTest.php | 4 +- .../Schaffhausen/GoodFridayTest.php | 4 +- .../Schaffhausen/NewYearsDayTest.php | 4 +- .../Schaffhausen/PentecostMondayTest.php | 4 +- .../Schaffhausen/SchaffhausenTest.php | 12 ++-- .../Schaffhausen/StStephensDayTest.php | 4 +- .../Schaffhausen/WorkersDayTest.php | 4 +- tests/Switzerland/Schwyz/AllSaintsDayTest.php | 4 +- tests/Switzerland/Schwyz/AscensionDayTest.php | 4 +- .../Schwyz/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Schwyz/ChristmasDayTest.php | 4 +- .../Switzerland/Schwyz/CorpusChristiTest.php | 4 +- tests/Switzerland/Schwyz/EasterMondayTest.php | 4 +- tests/Switzerland/Schwyz/EpiphanyTest.php | 4 +- tests/Switzerland/Schwyz/GoodFridayTest.php | 4 +- .../Schwyz/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Schwyz/NewYearsDayTest.php | 4 +- .../Schwyz/PentecostMondayTest.php | 4 +- tests/Switzerland/Schwyz/SchwyzTest.php | 12 ++-- tests/Switzerland/Schwyz/StJosephDayTest.php | 4 +- .../Switzerland/Schwyz/StStephensDayTest.php | 4 +- .../Solothurn/AscensionDayTest.php | 4 +- .../Solothurn/BerchtoldsTagTest.php | 4 +- .../Solothurn/ChristmasDayTest.php | 4 +- .../Switzerland/Solothurn/GoodFridayTest.php | 4 +- .../Switzerland/Solothurn/NewYearsDayTest.php | 4 +- tests/Switzerland/Solothurn/SolothurnTest.php | 12 ++-- .../Switzerland/StGallen/AllSaintsDayTest.php | 4 +- .../Switzerland/StGallen/AscensionDayTest.php | 4 +- .../Switzerland/StGallen/ChristmasDayTest.php | 4 +- .../Switzerland/StGallen/EasterMondayTest.php | 4 +- tests/Switzerland/StGallen/GoodFridayTest.php | 4 +- .../Switzerland/StGallen/NewYearsDayTest.php | 4 +- .../StGallen/PentecostMondayTest.php | 4 +- tests/Switzerland/StGallen/StGallenTest.php | 12 ++-- .../StGallen/StStephensDayTest.php | 4 +- tests/Switzerland/SwissNationalDayTest.php | 4 +- tests/Switzerland/SwitzerlandTest.php | 10 ++-- .../Switzerland/Thurgau/AscensionDayTest.php | 4 +- .../Switzerland/Thurgau/BerchtoldsTagTest.php | 4 +- .../Switzerland/Thurgau/ChristmasDayTest.php | 4 +- .../Switzerland/Thurgau/EasterMondayTest.php | 4 +- tests/Switzerland/Thurgau/GoodFridayTest.php | 4 +- tests/Switzerland/Thurgau/NewYearsDayTest.php | 4 +- .../Thurgau/PentecostMondayTest.php | 4 +- .../Switzerland/Thurgau/StStephensDayTest.php | 4 +- tests/Switzerland/Thurgau/ThurgauTest.php | 12 ++-- tests/Switzerland/Thurgau/WorkersDayTest.php | 4 +- tests/Switzerland/Ticino/AllSaintsDayTest.php | 4 +- tests/Switzerland/Ticino/AscensionDayTest.php | 4 +- .../Ticino/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Ticino/ChristmasDayTest.php | 4 +- .../Switzerland/Ticino/CorpusChristiTest.php | 4 +- tests/Switzerland/Ticino/EasterMondayTest.php | 4 +- tests/Switzerland/Ticino/EpiphanyTest.php | 4 +- .../Ticino/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Ticino/NewYearsDayTest.php | 4 +- .../Ticino/PentecostMondayTest.php | 4 +- tests/Switzerland/Ticino/StJosephDayTest.php | 4 +- tests/Switzerland/Ticino/StPeterPaulTest.php | 4 +- .../Switzerland/Ticino/StStephensDayTest.php | 4 +- tests/Switzerland/Ticino/TicinoTest.php | 12 ++-- tests/Switzerland/Ticino/WorkersDayTest.php | 4 +- tests/Switzerland/Uri/AllSaintsDayTest.php | 4 +- tests/Switzerland/Uri/AscensionDayTest.php | 4 +- .../Switzerland/Uri/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Uri/ChristmasDayTest.php | 4 +- tests/Switzerland/Uri/CorpusChristiTest.php | 4 +- tests/Switzerland/Uri/EasterMondayTest.php | 4 +- tests/Switzerland/Uri/EpiphanyTest.php | 4 +- tests/Switzerland/Uri/GoodFridayTest.php | 4 +- .../Uri/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Uri/NewYearsDayTest.php | 4 +- tests/Switzerland/Uri/PentecostMondayTest.php | 4 +- tests/Switzerland/Uri/StJosephDayTest.php | 4 +- tests/Switzerland/Uri/StStephensDayTest.php | 4 +- tests/Switzerland/Uri/UriTest.php | 12 ++-- tests/Switzerland/Valais/AllSaintsDayTest.php | 4 +- tests/Switzerland/Valais/AscensionDayTest.php | 4 +- .../Valais/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Valais/ChristmasDayTest.php | 4 +- .../Switzerland/Valais/CorpusChristiTest.php | 4 +- .../Valais/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Valais/NewYearsDayTest.php | 4 +- tests/Switzerland/Valais/StJosephDayTest.php | 4 +- tests/Switzerland/Valais/ValaisTest.php | 12 ++-- tests/Switzerland/Vaud/AscensionDayTest.php | 4 +- tests/Switzerland/Vaud/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Vaud/BettagsMontagTest.php | 4 +- tests/Switzerland/Vaud/ChristmasDayTest.php | 4 +- tests/Switzerland/Vaud/EasterMondayTest.php | 4 +- tests/Switzerland/Vaud/GoodFridayTest.php | 4 +- tests/Switzerland/Vaud/NewYearsDayTest.php | 4 +- .../Switzerland/Vaud/PentecostMondayTest.php | 4 +- tests/Switzerland/Vaud/VaudTest.php | 12 ++-- tests/Switzerland/Zug/AllSaintsDayTest.php | 4 +- tests/Switzerland/Zug/AscensionDayTest.php | 4 +- .../Switzerland/Zug/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Zug/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Zug/ChristmasDayTest.php | 4 +- tests/Switzerland/Zug/CorpusChristiTest.php | 4 +- tests/Switzerland/Zug/EasterMondayTest.php | 4 +- tests/Switzerland/Zug/GoodFridayTest.php | 4 +- .../Zug/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Zug/NewYearsDayTest.php | 4 +- tests/Switzerland/Zug/PentecostMondayTest.php | 4 +- tests/Switzerland/Zug/StStephensDayTest.php | 4 +- tests/Switzerland/Zug/ZugTest.php | 12 ++-- tests/Switzerland/Zurich/AscensionDayTest.php | 4 +- .../Switzerland/Zurich/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Zurich/ChristmasDayTest.php | 4 +- tests/Switzerland/Zurich/EasterMondayTest.php | 4 +- tests/Switzerland/Zurich/GoodFridayTest.php | 4 +- tests/Switzerland/Zurich/NewYearsDayTest.php | 4 +- .../Zurich/PentecostMondayTest.php | 4 +- .../Switzerland/Zurich/StStephensDayTest.php | 4 +- tests/Switzerland/Zurich/WorkersDayTest.php | 4 +- tests/Switzerland/Zurich/ZurichTest.php | 12 ++-- tests/USA/ChristmasDayTest.php | 4 +- tests/USA/ColumbusDayTest.php | 4 +- tests/USA/IndependenceDayTest.php | 4 +- tests/USA/LabourDayTest.php | 4 +- tests/USA/MartinLutherKingDayTest.php | 4 +- tests/USA/MemorialDayTest.php | 4 +- tests/USA/NewYearsDayTest.php | 4 +- tests/USA/ThanksgivingDayTest.php | 4 +- tests/USA/USATest.php | 10 ++-- tests/USA/VeteransDayTest.php | 4 +- tests/USA/WashingtonsBirthdayTest.php | 4 +- tests/Ukraine/ChristmasDayTest.php | 4 +- tests/Ukraine/ConstitutionDayTest.php | 4 +- tests/Ukraine/DefenderOfUkraineDayTest.php | 4 +- tests/Ukraine/EasterTest.php | 4 +- tests/Ukraine/IndependenceDayTest.php | 4 +- tests/Ukraine/InternationalWomensDayTest.php | 4 +- tests/Ukraine/InternationalWorkersDayTest.php | 4 +- tests/Ukraine/NewYearsDayTest.php | 4 +- tests/Ukraine/PentecostTest.php | 4 +- .../SecondInternationalWorkersDayTest.php | 4 +- tests/Ukraine/UkraineTest.php | 10 ++-- tests/Ukraine/VictoryDayTest.php | 4 +- tests/UnitedKingdom/BoxingDayTest.php | 4 +- tests/UnitedKingdom/ChristmasDayTest.php | 4 +- tests/UnitedKingdom/EasterMondayTest.php | 4 +- tests/UnitedKingdom/GoodFridayTest.php | 4 +- tests/UnitedKingdom/MayDayBankHolidayTest.php | 4 +- tests/UnitedKingdom/NewYearsDayTest.php | 4 +- tests/UnitedKingdom/SpringBankHolidayTest.php | 4 +- tests/UnitedKingdom/SummerBankHolidayTest.php | 4 +- tests/UnitedKingdom/UnitedKingdomTest.php | 10 ++-- tests/YasumiBase.php | 12 ++-- 887 files changed, 2140 insertions(+), 2140 deletions(-) diff --git a/tests/Australia/ACT/ACTTest.php b/tests/Australia/ACT/ACTTest.php index dc2224841..556ea2328 100644 --- a/tests/Australia/ACT/ACTTest.php +++ b/tests/Australia/ACT/ACTTest.php @@ -30,7 +30,7 @@ class ACTTest extends ACTBaseTestCase * Tests if all official holidays in ACT (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/ACT/CanberraDayTest.php b/tests/Australia/ACT/CanberraDayTest.php index f757df470..033b3bcda 100644 --- a/tests/Australia/ACT/CanberraDayTest.php +++ b/tests/Australia/ACT/CanberraDayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/ACT/EasterSaturdayTest.php b/tests/Australia/ACT/EasterSaturdayTest.php index 655c145ba..92c50f97b 100644 --- a/tests/Australia/ACT/EasterSaturdayTest.php +++ b/tests/Australia/ACT/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php index b750ff8ff..8cf3efd36 100644 --- a/tests/Australia/ACT/EasterSundayTest.php +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -72,7 +72,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/ACT/LabourDayTest.php b/tests/Australia/ACT/LabourDayTest.php index 2da6a30d9..391af8199 100644 --- a/tests/Australia/ACT/LabourDayTest.php +++ b/tests/Australia/ACT/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/ACT/QueensBirthdayTest.php b/tests/Australia/ACT/QueensBirthdayTest.php index 24cb99f61..4f271bd8b 100644 --- a/tests/Australia/ACT/QueensBirthdayTest.php +++ b/tests/Australia/ACT/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/ACT/ReconciliationDayTest.php b/tests/Australia/ACT/ReconciliationDayTest.php index 179a3457d..00f55ee6e 100644 --- a/tests/Australia/ACT/ReconciliationDayTest.php +++ b/tests/Australia/ACT/ReconciliationDayTest.php @@ -83,7 +83,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -97,7 +97,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index bc061c7b5..ad5b8a2de 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -91,7 +91,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -105,7 +105,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index 3ada88ce0..7e565261b 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(2000), Holiday::TYPE_OFFICIAL); } @@ -77,7 +77,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-01-26'], diff --git a/tests/Australia/AustraliaTest.php b/tests/Australia/AustraliaTest.php index 1a95df3b2..6b8066988 100644 --- a/tests/Australia/AustraliaTest.php +++ b/tests/Australia/AustraliaTest.php @@ -28,7 +28,7 @@ class AustraliaTest extends AustraliaBaseTestCase * Tests if all official holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -45,7 +45,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -54,7 +54,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_SEASON); } @@ -63,7 +63,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_BANK); } @@ -72,7 +72,7 @@ public function testBankHolidays() * Tests if all other holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index f4369b260..2ddf836e3 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -93,7 +93,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2020, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index 40dbd917a..70bc08cab 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -93,7 +93,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2016, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index 4e3307b8c..f0039d19b 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -114,7 +114,7 @@ public function HolidayDataProvider2(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -135,7 +135,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2011, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index 0aef08e59..e0c7a64d4 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/BankHolidayTest.php b/tests/Australia/NSW/BankHolidayTest.php index c81394160..def296b86 100644 --- a/tests/Australia/NSW/BankHolidayTest.php +++ b/tests/Australia/NSW/BankHolidayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_BANK); } diff --git a/tests/Australia/NSW/EasterSaturdayTest.php b/tests/Australia/NSW/EasterSaturdayTest.php index 3d0da139b..064aca9eb 100644 --- a/tests/Australia/NSW/EasterSaturdayTest.php +++ b/tests/Australia/NSW/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php index 2d357edf7..f14724a66 100644 --- a/tests/Australia/NSW/EasterSundayTest.php +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -72,7 +72,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/LabourDayTest.php b/tests/Australia/NSW/LabourDayTest.php index 2a72030e2..56c7bdcaf 100644 --- a/tests/Australia/NSW/LabourDayTest.php +++ b/tests/Australia/NSW/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/NSWTest.php b/tests/Australia/NSW/NSWTest.php index 8fd04fe3d..daaf30a5c 100644 --- a/tests/Australia/NSW/NSWTest.php +++ b/tests/Australia/NSW/NSWTest.php @@ -30,7 +30,7 @@ class NSWTest extends NSWBaseTestCase * Tests if all official holidays in NSW (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all bank holidays in NSW (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([ 'bankHoliday', diff --git a/tests/Australia/NSW/QueensBirthdayTest.php b/tests/Australia/NSW/QueensBirthdayTest.php index a90e66681..4c587d53a 100644 --- a/tests/Australia/NSW/QueensBirthdayTest.php +++ b/tests/Australia/NSW/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/NT/EasterSaturdayTest.php b/tests/Australia/NT/EasterSaturdayTest.php index 151c855d7..79c8b2dc5 100644 --- a/tests/Australia/NT/EasterSaturdayTest.php +++ b/tests/Australia/NT/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NT/MayDayTest.php b/tests/Australia/NT/MayDayTest.php index c8062ba3b..d8b760927 100644 --- a/tests/Australia/NT/MayDayTest.php +++ b/tests/Australia/NT/MayDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NT/NTTest.php b/tests/Australia/NT/NTTest.php index ef0605442..e0671bf4e 100644 --- a/tests/Australia/NT/NTTest.php +++ b/tests/Australia/NT/NTTest.php @@ -30,7 +30,7 @@ class NTTest extends NTBaseTestCase * Tests if all official holidays in NT (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/NT/PicnicDayTest.php b/tests/Australia/NT/PicnicDayTest.php index 92214435b..f67d2320a 100644 --- a/tests/Australia/NT/PicnicDayTest.php +++ b/tests/Australia/NT/PicnicDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NT/QueensBirthdayTest.php b/tests/Australia/NT/QueensBirthdayTest.php index 3a03c4467..9e3c4ec83 100644 --- a/tests/Australia/NT/QueensBirthdayTest.php +++ b/tests/Australia/NT/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index 009726e5d..4af07ea72 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -93,7 +93,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2017, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php index fcb9a77d3..ea879718b 100644 --- a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php +++ b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php @@ -30,7 +30,7 @@ class BrisbaneTest extends BrisbaneBaseTestCase * Tests if all official holidays in Queensland (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php index 2f10b9f6f..0b977a7b3 100644 --- a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php +++ b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Queensland/LabourDayTest.php b/tests/Australia/Queensland/LabourDayTest.php index 543ee6c32..18bb0db61 100644 --- a/tests/Australia/Queensland/LabourDayTest.php +++ b/tests/Australia/Queensland/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Queensland/QueensBirthdayTest.php b/tests/Australia/Queensland/QueensBirthdayTest.php index bcacec4fa..d2054a83e 100644 --- a/tests/Australia/Queensland/QueensBirthdayTest.php +++ b/tests/Australia/Queensland/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Queensland/QueenslandTest.php b/tests/Australia/Queensland/QueenslandTest.php index 27ced6027..39b33ef4f 100644 --- a/tests/Australia/Queensland/QueenslandTest.php +++ b/tests/Australia/Queensland/QueenslandTest.php @@ -30,7 +30,7 @@ class QueenslandTest extends QueenslandBaseTestCase * Tests if all official holidays in Queensland (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/SA/AdelaideCupDayTest.php b/tests/Australia/SA/AdelaideCupDayTest.php index 7c717bf0d..559b939a3 100644 --- a/tests/Australia/SA/AdelaideCupDayTest.php +++ b/tests/Australia/SA/AdelaideCupDayTest.php @@ -91,7 +91,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -105,7 +105,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/SA/ChristmasDayTest.php b/tests/Australia/SA/ChristmasDayTest.php index 079cc23a3..e7b248eb4 100644 --- a/tests/Australia/SA/ChristmasDayTest.php +++ b/tests/Australia/SA/ChristmasDayTest.php @@ -69,7 +69,7 @@ public function testHoliday($year, $expected, $expectedExtra) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-12-25', '2010-12-27'], @@ -93,7 +93,7 @@ public function HolidayDataProvider() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2016, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/SA/EasterSaturdayTest.php b/tests/Australia/SA/EasterSaturdayTest.php index a13cd2ff6..068d5d493 100644 --- a/tests/Australia/SA/EasterSaturdayTest.php +++ b/tests/Australia/SA/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/SA/LabourDayTest.php b/tests/Australia/SA/LabourDayTest.php index 97a8c461c..5207d9bd6 100644 --- a/tests/Australia/SA/LabourDayTest.php +++ b/tests/Australia/SA/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/SA/ProclamationDayTest.php b/tests/Australia/SA/ProclamationDayTest.php index 8513b3ce6..19ed2d373 100644 --- a/tests/Australia/SA/ProclamationDayTest.php +++ b/tests/Australia/SA/ProclamationDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/SA/QueensBirthdayTest.php b/tests/Australia/SA/QueensBirthdayTest.php index aae9d487c..97d1e58d6 100644 --- a/tests/Australia/SA/QueensBirthdayTest.php +++ b/tests/Australia/SA/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/SA/SATest.php b/tests/Australia/SA/SATest.php index f7b0705d8..f704c1773 100644 --- a/tests/Australia/SA/SATest.php +++ b/tests/Australia/SA/SATest.php @@ -30,7 +30,7 @@ class SATest extends SABaseTestCase * Tests if all official holidays in SA (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php index 7112734d9..8c6820f0a 100644 --- a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php @@ -30,7 +30,7 @@ class CentralNorthTest extends CentralNorthBaseTestCase * Tests if all official holidays in central north Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php index 7a7c8b6ad..d986a775f 100644 --- a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php +++ b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/EightHourDayTest.php b/tests/Australia/Tasmania/EightHourDayTest.php index 56c2f39fd..ac7c4fd39 100644 --- a/tests/Australia/Tasmania/EightHourDayTest.php +++ b/tests/Australia/Tasmania/EightHourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php index e38630fcb..4dbbc762a 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php index 5c7f37358..d0d3dd9c3 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php @@ -30,7 +30,7 @@ class FlindersIslandTest extends FlindersIslandBaseTestCase * Tests if all official holidays in Flinders Island (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php index d68723cc1..ed87f8dde 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php index d80ef4a8b..ec557c18c 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php @@ -30,7 +30,7 @@ class KingIslandTest extends KingIslandBaseTestCase * Tests if all official holidays in King Island (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php index 7a2ccd5f2..51e600325 100644 --- a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php +++ b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/Northeast/NortheastTest.php b/tests/Australia/Tasmania/Northeast/NortheastTest.php index b0d93afec..789dc25fa 100644 --- a/tests/Australia/Tasmania/Northeast/NortheastTest.php +++ b/tests/Australia/Tasmania/Northeast/NortheastTest.php @@ -30,7 +30,7 @@ class NortheastTest extends NortheastBaseTestCase * Tests if all official holidays in northeastern Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php index 89f4bad5e..f620814d1 100644 --- a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php +++ b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php index 3bd036700..95df6fefd 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php index 59ace839e..f58b3fb9e 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php @@ -30,7 +30,7 @@ class CircularHeadTest extends CircularHeadBaseTestCase * Tests if all official holidays in Circular Head (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/Northwest/NorthwestTest.php b/tests/Australia/Tasmania/Northwest/NorthwestTest.php index bb4884917..53eee4d17 100644 --- a/tests/Australia/Tasmania/Northwest/NorthwestTest.php +++ b/tests/Australia/Tasmania/Northwest/NorthwestTest.php @@ -30,7 +30,7 @@ class NorthwestTest extends NorthwestBaseTestCase * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/QueensBirthdayTest.php b/tests/Australia/Tasmania/QueensBirthdayTest.php index d7764cd48..ce5d70ba1 100644 --- a/tests/Australia/Tasmania/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Tasmania/RecreationDayTest.php b/tests/Australia/Tasmania/RecreationDayTest.php index 1b8ebe98d..12ca81c54 100644 --- a/tests/Australia/Tasmania/RecreationDayTest.php +++ b/tests/Australia/Tasmania/RecreationDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/South/HobartShowTest.php b/tests/Australia/Tasmania/South/HobartShowTest.php index d5a50a31a..516f6c300 100644 --- a/tests/Australia/Tasmania/South/HobartShowTest.php +++ b/tests/Australia/Tasmania/South/HobartShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/South/SouthTest.php b/tests/Australia/Tasmania/South/SouthTest.php index 3ffcb6316..a1a6222ec 100644 --- a/tests/Australia/Tasmania/South/SouthTest.php +++ b/tests/Australia/Tasmania/South/SouthTest.php @@ -30,7 +30,7 @@ class SouthTest extends SouthBaseTestCase * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php index eb7cbb349..e8d689368 100644 --- a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php +++ b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php index e3544e9ea..a61b82f36 100644 --- a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php @@ -30,7 +30,7 @@ class SoutheastTest extends SoutheastBaseTestCase * Tests if all official holidays in Circular Head (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/TasmaniaTest.php b/tests/Australia/Tasmania/TasmaniaTest.php index 0d0b6635f..4ec88fa62 100644 --- a/tests/Australia/Tasmania/TasmaniaTest.php +++ b/tests/Australia/Tasmania/TasmaniaTest.php @@ -30,7 +30,7 @@ class TasmaniaTest extends TasmaniaBaseTestCase * Tests if all official holidays in Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index 54b869881..07c9a6ef1 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -56,7 +56,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Victoria/EasterSaturdayTest.php b/tests/Australia/Victoria/EasterSaturdayTest.php index ca6d3d774..a7e53fd63 100644 --- a/tests/Australia/Victoria/EasterSaturdayTest.php +++ b/tests/Australia/Victoria/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php index df7d22f7f..370b718d8 100644 --- a/tests/Australia/Victoria/EasterSundayTest.php +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -72,7 +72,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index 89f990311..55332201c 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Victoria/MelbourneCupDayTest.php b/tests/Australia/Victoria/MelbourneCupDayTest.php index cfdaaba19..2d6b914c7 100644 --- a/tests/Australia/Victoria/MelbourneCupDayTest.php +++ b/tests/Australia/Victoria/MelbourneCupDayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Victoria/QueensBirthdayTest.php b/tests/Australia/Victoria/QueensBirthdayTest.php index f70a85d4c..b7ce7cc56 100644 --- a/tests/Australia/Victoria/QueensBirthdayTest.php +++ b/tests/Australia/Victoria/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Victoria/VictoriaTest.php b/tests/Australia/Victoria/VictoriaTest.php index dace27d1c..87fa4031f 100644 --- a/tests/Australia/Victoria/VictoriaTest.php +++ b/tests/Australia/Victoria/VictoriaTest.php @@ -30,7 +30,7 @@ class VictoriaTest extends VictoriaBaseTestCase * Tests if all official holidays in Victoria (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/WA/LabourDayTest.php b/tests/Australia/WA/LabourDayTest.php index c70ec383e..fad438794 100644 --- a/tests/Australia/WA/LabourDayTest.php +++ b/tests/Australia/WA/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/WA/QueensBirthdayTest.php b/tests/Australia/WA/QueensBirthdayTest.php index 76495e0ab..ca4bdab20 100644 --- a/tests/Australia/WA/QueensBirthdayTest.php +++ b/tests/Australia/WA/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/WA/WATest.php b/tests/Australia/WA/WATest.php index 4350fa5d1..56c47e252 100644 --- a/tests/Australia/WA/WATest.php +++ b/tests/Australia/WA/WATest.php @@ -30,7 +30,7 @@ class WATest extends WABaseTestCase * Tests if all official holidays in WA (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/WA/WesternAustraliaDayTest.php b/tests/Australia/WA/WesternAustraliaDayTest.php index 7f02dde92..8c1148dbf 100644 --- a/tests/Australia/WA/WesternAustraliaDayTest.php +++ b/tests/Australia/WA/WesternAustraliaDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AllSaintsDayTest.php b/tests/Austria/AllSaintsDayTest.php index d6ea284e9..764da59b5 100644 --- a/tests/Austria/AllSaintsDayTest.php +++ b/tests/Austria/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AscensionDayTest.php b/tests/Austria/AscensionDayTest.php index bbb853347..35368a152 100644 --- a/tests/Austria/AscensionDayTest.php +++ b/tests/Austria/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AssumptionOfMaryTest.php b/tests/Austria/AssumptionOfMaryTest.php index 00be0791a..f194d72dc 100644 --- a/tests/Austria/AssumptionOfMaryTest.php +++ b/tests/Austria/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AustriaTest.php b/tests/Austria/AustriaTest.php index 5e811d85b..64cc5dda0 100644 --- a/tests/Austria/AustriaTest.php +++ b/tests/Austria/AustriaTest.php @@ -28,7 +28,7 @@ class AustriaTest extends AustriaBaseTestCase * Tests if all official holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'ascensionDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['pentecost'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Austria/ChristmasTest.php b/tests/Austria/ChristmasTest.php index 46d86c235..1a1b3e0ed 100644 --- a/tests/Austria/ChristmasTest.php +++ b/tests/Austria/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/CorpusChristiTest.php b/tests/Austria/CorpusChristiTest.php index c3a2e042a..a82338d25 100644 --- a/tests/Austria/CorpusChristiTest.php +++ b/tests/Austria/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/EasterMondayTest.php b/tests/Austria/EasterMondayTest.php index af6a4a222..659bc9180 100644 --- a/tests/Austria/EasterMondayTest.php +++ b/tests/Austria/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/EasterTest.php b/tests/Austria/EasterTest.php index e8137a393..e0cd2b9ff 100644 --- a/tests/Austria/EasterTest.php +++ b/tests/Austria/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/EpiphanyTest.php b/tests/Austria/EpiphanyTest.php index 7bb136062..6c9de7bd4 100644 --- a/tests/Austria/EpiphanyTest.php +++ b/tests/Austria/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/ImmaculateConceptionTest.php b/tests/Austria/ImmaculateConceptionTest.php index e4e3acdcd..aaf254201 100644 --- a/tests/Austria/ImmaculateConceptionTest.php +++ b/tests/Austria/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/InternationalWorkersDayTest.php b/tests/Austria/InternationalWorkersDayTest.php index 98b1d4dc6..c24c41ddc 100644 --- a/tests/Austria/InternationalWorkersDayTest.php +++ b/tests/Austria/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/NationalDayTest.php b/tests/Austria/NationalDayTest.php index 2c7391381..8e1a35a8c 100644 --- a/tests/Austria/NationalDayTest.php +++ b/tests/Austria/NationalDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Austria/NewYearsDayTest.php b/tests/Austria/NewYearsDayTest.php index 985613200..50129f6cd 100644 --- a/tests/Austria/NewYearsDayTest.php +++ b/tests/Austria/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/PentecostMondayTest.php b/tests/Austria/PentecostMondayTest.php index b534e6b08..505e05db6 100644 --- a/tests/Austria/PentecostMondayTest.php +++ b/tests/Austria/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/PentecostTest.php b/tests/Austria/PentecostTest.php index f2e4e0f12..c14858829 100644 --- a/tests/Austria/PentecostTest.php +++ b/tests/Austria/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Austria/SecondChristmasDayTest.php b/tests/Austria/SecondChristmasDayTest.php index d75279224..4a30a6898 100644 --- a/tests/Austria/SecondChristmasDayTest.php +++ b/tests/Austria/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index e00a58f06..3d269c450 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -34,7 +34,7 @@ class HolidayBetweenFilterTest extends TestCase * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRange() + public function testHolidaysBetweenDateRange(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -89,7 +89,7 @@ public function testHolidaysBetweenDateRange() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeWithDateTimeImmutable() + public function testHolidaysBetweenDateRangeWithDateTimeImmutable(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -144,7 +144,7 @@ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeDifferentTimezone() + public function testHolidaysBetweenDateRangeDifferentTimezone(): void { $holidays = Yasumi::create('Netherlands', 2016); @@ -171,7 +171,7 @@ public function testHolidaysBetweenDateRangeDifferentTimezone() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeExclusiveStartEndDate() + public function testHolidaysBetweenDateRangeExclusiveStartEndDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -227,7 +227,7 @@ public function testHolidaysBetweenDateRangeExclusiveStartEndDate() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() + public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear(): void { $year = 2015; $timezone = 'Europe/Oslo'; @@ -267,7 +267,7 @@ public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() + public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear(): void { $year = 2000; $timezone = 'Europe/Rome'; @@ -308,7 +308,7 @@ public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() * @throws \Exception * @throws \ReflectionException */ - public function testWrongDates() + public function testWrongDates(): void { $year = 2017; $timezone = 'America/New_York'; @@ -328,7 +328,7 @@ public function testWrongDates() * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenWithSubstitutes() + public function testCountBetweenWithSubstitutes(): void { // There are official 12 holidays in Ireland in the year 2018, with 1 substituted holiday. $year = 2018; @@ -369,7 +369,7 @@ public function testCountBetweenWithSubstitutes() * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenExcludingSubstituteHoliday() + public function testCountBetweenExcludingSubstituteHoliday(): void { // There are 2 official holidays in Ireland in the given date range, with 1 substituted holiday. $year = 2018; @@ -414,7 +414,7 @@ public function testCountBetweenExcludingSubstituteHoliday() * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHoliday() + public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHoliday(): void { // There are 2 official holidays in Ireland in the given date range, with 1 substituted holiday. $year = 2018; @@ -460,7 +460,7 @@ public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHolid * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday() + public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday(): void { // There is 1 official holidays in Ireland in the given date range. $year = 2018; diff --git a/tests/Base/HolidayFiltersTest.php b/tests/Base/HolidayFiltersTest.php index 5ffca3215..fac3abb26 100644 --- a/tests/Base/HolidayFiltersTest.php +++ b/tests/Base/HolidayFiltersTest.php @@ -34,7 +34,7 @@ class HolidayFiltersTest extends TestCase * Tests the Official Holidays filter * @throws \ReflectionException */ - public function testOfficialHolidaysFilter() + public function testOfficialHolidaysFilter(): void { // There are 11 official holidays in Ireland in the year 2018, with 1 substituted holiday. $holidays = Yasumi::create('Ireland', 2018); @@ -68,7 +68,7 @@ public function testOfficialHolidaysFilter() * Tests the Observed Holidays filter * @throws \ReflectionException */ - public function testObservedHolidaysFilter() + public function testObservedHolidaysFilter(): void { // There are 2 observed holidays in Ireland in the year 2018. $holidays = Yasumi::create('Ireland', 2018); @@ -102,7 +102,7 @@ public function testObservedHolidaysFilter() * Tests Bank Holidays * @throws \ReflectionException */ - public function testBankHolidaysFilter() + public function testBankHolidaysFilter(): void { // There are no bank holidays in Ireland in the year 2018. $holidays = Yasumi::create('Ireland', 2018); @@ -136,7 +136,7 @@ public function testBankHolidaysFilter() * Tests Seasonal Holidays * @throws \ReflectionException */ - public function testSeasonalHolidaysFilter() + public function testSeasonalHolidaysFilter(): void { $holidays = Yasumi::create('Netherlands', 2017); @@ -184,7 +184,7 @@ public function testSeasonalHolidaysFilter() * Tests other type of Holidays * @throws \ReflectionException */ - public function testOtherHolidaysFilter() + public function testOtherHolidaysFilter(): void { $holidays = Yasumi::create('Netherlands', 2017); diff --git a/tests/Base/HolidayOnFilterTest.php b/tests/Base/HolidayOnFilterTest.php index 8c1f2082c..21d7bc787 100644 --- a/tests/Base/HolidayOnFilterTest.php +++ b/tests/Base/HolidayOnFilterTest.php @@ -33,7 +33,7 @@ class HolidayOnFilterTest extends TestCase * @throws \ReflectionException * @throws \Exception */ - public function testHolidaysOnDate() + public function testHolidaysOnDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -57,7 +57,7 @@ public function testHolidaysOnDate() * @throws \ReflectionException * @throws \Exception */ - public function testHolidaysNotOnDate() + public function testHolidaysNotOnDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -81,7 +81,7 @@ public function testHolidaysNotOnDate() * @throws \ReflectionException * @throws \Exception */ - public function testCorrectNumberOfHolidaysOnDate() + public function testCorrectNumberOfHolidaysOnDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index 5e8c7b943..4f7608064 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -34,7 +34,7 @@ class HolidayTest extends TestCase * @expectedException InvalidArgumentException * @throws \Exception */ - public function testHolidayBlankNameInvalidArgumentException() + public function testHolidayBlankNameInvalidArgumentException(): void { new Holiday('', [], new \DateTime()); } @@ -45,7 +45,7 @@ public function testHolidayBlankNameInvalidArgumentException() * @expectedException \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function testCreateHolidayUnknownLocaleException() + public function testCreateHolidayUnknownLocaleException(): void { new Holiday('testHoliday', [], new DateTime(), 'wx-YZ'); } @@ -54,7 +54,7 @@ public function testCreateHolidayUnknownLocaleException() * Tests that a Yasumi holiday instance can be serialized to a JSON object. * @throws \Exception */ - public function testHolidayIsJsonSerializable() + public function testHolidayIsJsonSerializable(): void { $holiday = new Holiday('testHoliday', [], new DateTime(), 'en_US'); $json = \json_encode($holiday); @@ -70,7 +70,7 @@ public function testHolidayIsJsonSerializable() * DateTime or DateTimeImmutable) * @throws \Exception */ - public function testHolidayWithDateTimeInterface() + public function testHolidayWithDateTimeInterface(): void { // Assert with DateTime instance $holiday = new Holiday('testHoliday', [], new \DateTime(), 'en_US'); @@ -87,7 +87,7 @@ public function testHolidayWithDateTimeInterface() * Tests the getName function of the Holiday object with no translations for the name given. * @throws \Exception */ - public function testHolidayGetNameWithNoTranslations() + public function testHolidayGetNameWithNoTranslations(): void { $name = 'testHoliday'; $holiday = new Holiday($name, [], new DateTime(), 'en_US'); @@ -100,7 +100,7 @@ public function testHolidayGetNameWithNoTranslations() * Tests the getName function of the Holiday object with only a default translation for the name given. * @throws \Exception */ - public function testHolidayGetNameWithOnlyDefaultTranslation() + public function testHolidayGetNameWithOnlyDefaultTranslation(): void { $name = 'testHoliday'; $translation = 'My Holiday'; @@ -116,7 +116,7 @@ public function testHolidayGetNameWithOnlyDefaultTranslation() * * @throws \Exception */ - public function testHolidayGetNameWithOneNonDefaultTranslation() + public function testHolidayGetNameWithOneNonDefaultTranslation(): void { $name = 'testHoliday'; $translation = 'My Holiday'; @@ -131,7 +131,7 @@ public function testHolidayGetNameWithOneNonDefaultTranslation() * Tests the getName function of the Holiday object with global translations and no custom translation. * @throws \Exception */ - public function testHolidayGetNameWithGlobalTranslations() + public function testHolidayGetNameWithGlobalTranslations(): void { /** @var TranslationsInterface|PHPUnit_Framework_MockObject_MockObject $translationsStub */ $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); @@ -157,7 +157,7 @@ public function testHolidayGetNameWithGlobalTranslations() * Tests the getName function of the Holiday object with global translations and a new custom translation. * @throws \Exception */ - public function testHolidayGetNameWithGlobalAndCustomTranslations() + public function testHolidayGetNameWithGlobalAndCustomTranslations(): void { /** @var TranslationsInterface|PHPUnit_Framework_MockObject_MockObject $translationsStub */ $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); @@ -189,7 +189,7 @@ public function testHolidayGetNameWithGlobalAndCustomTranslations() * Tests the getName function of the Holiday object with global translations and an overriding custom translation. * @throws \Exception */ - public function testHolidayGetNameWithOverridenGlobalTranslations() + public function testHolidayGetNameWithOverridenGlobalTranslations(): void { /** @var TranslationsInterface|PHPUnit_Framework_MockObject_MockObject $translationsStub */ $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index 8c16cd6a4..7437b65ff 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -33,7 +33,7 @@ class TranslationsTest extends TestCase /** * Tests adding single translation. */ - public function testAddTranslation() + public function testAddTranslation(): void { $translations = new Translations(self::LOCALES); @@ -58,7 +58,7 @@ public function testAddTranslation() /** * Tests adding multiple translations. */ - public function testAddMultipleTranslations() + public function testAddMultipleTranslations(): void { $translations = new Translations(self::LOCALES); @@ -113,7 +113,7 @@ public function testAddMultipleTranslations() * * @expectedException \Yasumi\Exception\UnknownLocaleException */ - public function testAddTranslationUnknownLocaleException() + public function testAddTranslationUnknownLocaleException(): void { $translations = new Translations(self::LOCALES); @@ -127,7 +127,7 @@ public function testAddTranslationUnknownLocaleException() /** * Tests that no translation is returned for an unknown holiday. */ - public function testNoTranslationForUnknownHoliday() + public function testNoTranslationForUnknownHoliday(): void { $translations = new Translations(self::LOCALES); @@ -146,7 +146,7 @@ public function testNoTranslationForUnknownHoliday() /** * Tests that no translation is returned for not translated locale. */ - public function testNoTranslationForNotTranslatedLocale() + public function testNoTranslationForNotTranslatedLocale(): void { $translations = new Translations(self::LOCALES); @@ -164,7 +164,7 @@ public function testNoTranslationForNotTranslatedLocale() /** * Tests loading one translation file from directory. */ - public function testLoadingTranslationsFromDirectory() + public function testLoadingTranslationsFromDirectory(): void { $shortName = 'newYearsDay'; $fileContents = <<<'FILE' @@ -193,7 +193,7 @@ public function testLoadingTranslationsFromDirectory() /** * Tests that translation is not loaded from file with invalid extension. */ - public function testNotLoadingTranslationsFromFileWithInvalidExtension() + public function testNotLoadingTranslationsFromFileWithInvalidExtension(): void { $shortName = 'newYearsDay'; $fileContents = <<<'FILE' @@ -219,7 +219,7 @@ public function testNotLoadingTranslationsFromFileWithInvalidExtension() * * @expectedException \Yasumi\Exception\UnknownLocaleException */ - public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException() + public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException(): void { $shortName = 'newYearsDay'; $fileContents = <<<'FILE' @@ -241,7 +241,7 @@ public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException() * * @expectedException InvalidArgumentException */ - public function testLoadingTranslationsFromInexistentDirectory() + public function testLoadingTranslationsFromInexistentDirectory(): void { vfsStream::setup('root'); @@ -252,7 +252,7 @@ public function testLoadingTranslationsFromInexistentDirectory() /** * Tests loading more than one translation file from directory. */ - public function testLoadingMultipleTranslationsFromDirectory() + public function testLoadingMultipleTranslationsFromDirectory(): void { $firstShortName = 'newYearsDay'; $firstFileContents = <<<'FILE' diff --git a/tests/Base/YasumiExternalProvider.php b/tests/Base/YasumiExternalProvider.php index e1bb3d6b6..7502e9709 100644 --- a/tests/Base/YasumiExternalProvider.php +++ b/tests/Base/YasumiExternalProvider.php @@ -24,7 +24,7 @@ class YasumiExternalProvider implements ProviderInterface /** * Initialize country holidays. */ - public function initialize() + public function initialize(): void { // We don't actually have to do anything here. } diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 7f608dd26..09ca624d3 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -43,7 +43,7 @@ class YasumiTest extends TestCase * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithInvalidYear() + public function testCreateWithInvalidYear(): void { Yasumi::create('Japan', 10100); } @@ -54,7 +54,7 @@ public function testCreateWithInvalidYear() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithInvalidProvider() + public function testCreateWithInvalidProvider(): void { Yasumi::create('Mars'); } @@ -65,7 +65,7 @@ public function testCreateWithInvalidProvider() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithInvalidProviderBecauseItsATrait() + public function testCreateWithInvalidProviderBecauseItsATrait(): void { Yasumi::create('CommonHolidays'); } @@ -76,7 +76,7 @@ public function testCreateWithInvalidProviderBecauseItsATrait() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithAbstractClassProvider() + public function testCreateWithAbstractClassProvider(): void { Yasumi::create('AbstractProvider'); } @@ -85,7 +85,7 @@ public function testCreateWithAbstractClassProvider() * Tests that Yasumi allows external classes that extend the ProviderInterface. * @throws \ReflectionException */ - public function testCreateWithAbstractExtension() + public function testCreateWithAbstractExtension(): void { $class = YasumiExternalProvider::class; $instance = Yasumi::create( @@ -101,7 +101,7 @@ public function testCreateWithAbstractExtension() * @expectedException \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testCreateWithInvalidLocale() + public function testCreateWithInvalidLocale(): void { Yasumi::create( 'Japan', @@ -114,7 +114,7 @@ public function testCreateWithInvalidLocale() * Tests that the getIterator function returns an ArrayIterator object * @throws \ReflectionException */ - public function testGetIterator() + public function testGetIterator(): void { $holidays = Yasumi::create( 'Japan', @@ -128,7 +128,7 @@ public function testGetIterator() * Tests that the count function returns an integer and a correct count for the test holiday provider * @throws \ReflectionException */ - public function testCount() + public function testCount(): void { // There are 16 holidays in Japan in the year 2015, with 1 substituted holiday. $holidays = Yasumi::create('Japan', 2015); @@ -142,7 +142,7 @@ public function testCount() * Tests that the getType function returns a string for the test holiday provider * @throws \ReflectionException */ - public function testGetType() + public function testGetType(): void { $holidays = Yasumi::create('Japan', Factory::create()->numberBetween(1949, self::YEAR_UPPER_BOUND)); $holiday = $holidays->getHoliday('newYearsDay'); @@ -154,7 +154,7 @@ public function testGetType() * Tests that the getYear function returns an integer for the test holiday provider * @throws \ReflectionException */ - public function testGetYear() + public function testGetYear(): void { $year = Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND); $holidays = Yasumi::create('Netherlands', $year); @@ -168,7 +168,7 @@ public function testGetYear() * * @throws \ReflectionException */ - public function testNext() + public function testNext(): void { $country = 'Japan'; $name = 'childrensDay'; @@ -190,7 +190,7 @@ public function testNext() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testNextWithBlankName() + public function testNextWithBlankName(): void { $holidays = Yasumi::create( 'Netherlands', @@ -204,7 +204,7 @@ public function testNextWithBlankName() * * @throws \ReflectionException */ - public function testPrevious() + public function testPrevious(): void { $country = 'Netherlands'; $name = 'liberationDay'; @@ -227,7 +227,7 @@ public function testPrevious() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testPreviousWithBlankName() + public function testPreviousWithBlankName(): void { $holidays = Yasumi::create( 'Netherlands', @@ -240,7 +240,7 @@ public function testPreviousWithBlankName() * Tests that the getHolidayNames function returns an array and a correct count for the test holiday provider * @throws \ReflectionException */ - public function testGetHolidayNames() + public function testGetHolidayNames(): void { $holidays = Yasumi::create('Japan', 2015); $holidayNames = $holidays->getHolidayNames(); @@ -254,7 +254,7 @@ public function testGetHolidayNames() * Tests that the WhenIs function returns a string representation of the date the given holiday occurs. * @throws \ReflectionException */ - public function testWhenIs() + public function testWhenIs(): void { $holidays = Yasumi::create('Japan', 2010); @@ -270,7 +270,7 @@ public function testWhenIs() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testWhenIsWithBlankName() + public function testWhenIsWithBlankName(): void { $holidays = Yasumi::create('Japan', 2010); $holidays->whenIs(null); @@ -282,7 +282,7 @@ public function testWhenIsWithBlankName() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testGetHolidayWithBlankName() + public function testGetHolidayWithBlankName(): void { $holidays = Yasumi::create('Netherlands', 1999); $holidays->getHoliday(null); @@ -293,7 +293,7 @@ public function testGetHolidayWithBlankName() * is occurring. * @throws \ReflectionException */ - public function testWhatWeekDayIs() + public function testWhatWeekDayIs(): void { $holidays = Yasumi::create('Netherlands', 2110); $weekDay = $holidays->whatWeekDayIs('stMartinsDay'); @@ -308,7 +308,7 @@ public function testWhatWeekDayIs() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testWhatWeekDayIsWithBlankName() + public function testWhatWeekDayIsWithBlankName(): void { $holidays = Yasumi::create('Netherlands', 2388); $holidays->whatWeekDayIs(null); @@ -318,7 +318,7 @@ public function testWhatWeekDayIsWithBlankName() * Tests that the getProviders function returns an array containing all available holiday providers. * @throws \ReflectionException */ - public function testGetProviders() + public function testGetProviders(): void { $providers = Yasumi::getProviders(); @@ -334,7 +334,7 @@ public function testGetProviders() * * @throws \ReflectionException */ - public function testGetProvidersStaticCall() + public function testGetProvidersStaticCall(): void { $provider = 'Ireland'; $providers = Yasumi::getProviders(); @@ -358,7 +358,7 @@ public function testGetProvidersStaticCall() * @throws \Exception * @throws \ReflectionException */ - public function testIsHoliday() + public function testIsHoliday(): void { $year = 2110; $provider = 'Spain'; @@ -384,7 +384,7 @@ public function testIsHoliday() * @throws \Exception * @throws \ReflectionException */ - public function testIsNotHoliday() + public function testIsNotHoliday(): void { $year = 5220; $provider = 'Japan'; @@ -408,7 +408,7 @@ public function testIsNotHoliday() * implements the DateTimeInterface (e.g. DateTime or DateTimeImmutable) * @throws \ReflectionException */ - public function testIsHolidayException() + public function testIsHolidayException(): void { $this->expectException(\TypeError::class); @@ -428,7 +428,7 @@ public function testIsHolidayException() * @throws \Exception * @throws \ReflectionException */ - public function testIsWorkingDay() + public function testIsWorkingDay(): void { $year = 2020; $provider = 'Netherlands'; @@ -457,7 +457,7 @@ public function testIsWorkingDay() * @throws \Exception * @throws \ReflectionException */ - public function testIsNotWorkingDay() + public function testIsNotWorkingDay(): void { $year = 2016; $provider = 'Japan'; @@ -483,7 +483,7 @@ public function testIsNotWorkingDay() * @TODO Add additional unit tests for those holiday providers that differ from the global definition * @throws \ReflectionException */ - public function testIsWorkingDayException() + public function testIsWorkingDayException(): void { $this->expectException(\TypeError::class); @@ -498,7 +498,7 @@ public function testIsWorkingDayException() * * @throws \ReflectionException */ - public function testRemoveHoliday() + public function testRemoveHoliday(): void { $provider = Yasumi::create('Ireland', 2018); $holidays = $provider->getHolidays(); diff --git a/tests/Base/YasumiWorkdayTest.php b/tests/Base/YasumiWorkdayTest.php index 3218139b3..8b0ce05f6 100644 --- a/tests/Base/YasumiWorkdayTest.php +++ b/tests/Base/YasumiWorkdayTest.php @@ -25,7 +25,7 @@ class YasumiWorkdayTest extends TestCase * @throws \Exception * @throws \ReflectionException */ - public function testNextWorkingDay() + public function testNextWorkingDay(): void { // Includes a weekend and a holiday $provider = 'USA'; @@ -54,7 +54,7 @@ public function testNextWorkingDay() * @throws \Exception * @throws \ReflectionException */ - public function testPreviousWorkingDay() + public function testPreviousWorkingDay(): void { // Includes a weekend and a holiday $provider = 'USA'; @@ -84,7 +84,7 @@ public function testPreviousWorkingDay() * @throws \Exception * @throws \ReflectionException */ - public function testYearBoundary() + public function testYearBoundary(): void { /** * Use Case (USA): diff --git a/tests/Belgium/AllSaintsDayTest.php b/tests/Belgium/AllSaintsDayTest.php index e6b5f86a1..b98bc74d1 100644 --- a/tests/Belgium/AllSaintsDayTest.php +++ b/tests/Belgium/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/ArmisticeDayTest.php b/tests/Belgium/ArmisticeDayTest.php index 84e25eafe..220e25f39 100644 --- a/tests/Belgium/ArmisticeDayTest.php +++ b/tests/Belgium/ArmisticeDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/AscensionDayTest.php b/tests/Belgium/AscensionDayTest.php index 0d9326d1f..542dec794 100644 --- a/tests/Belgium/AscensionDayTest.php +++ b/tests/Belgium/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/AssumptionOfMaryTest.php b/tests/Belgium/AssumptionOfMaryTest.php index 46fcc15a7..623c685f0 100644 --- a/tests/Belgium/AssumptionOfMaryTest.php +++ b/tests/Belgium/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/BelgiumTest.php b/tests/Belgium/BelgiumTest.php index f0ddf6d46..84aed9382 100644 --- a/tests/Belgium/BelgiumTest.php +++ b/tests/Belgium/BelgiumTest.php @@ -28,7 +28,7 @@ class BelgiumTest extends BelgiumBaseTestCase * Tests if all official holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Belgium/ChristmasTest.php b/tests/Belgium/ChristmasTest.php index 4bedd8b77..1856d8a1e 100644 --- a/tests/Belgium/ChristmasTest.php +++ b/tests/Belgium/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/EasterMondayTest.php b/tests/Belgium/EasterMondayTest.php index 091d943d8..36a1d1587 100644 --- a/tests/Belgium/EasterMondayTest.php +++ b/tests/Belgium/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/EasterTest.php b/tests/Belgium/EasterTest.php index 7fe22a4b7..ab53a22ab 100644 --- a/tests/Belgium/EasterTest.php +++ b/tests/Belgium/EasterTest.php @@ -47,7 +47,7 @@ public function testEaster() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/InternationalWorkersDayTest.php b/tests/Belgium/InternationalWorkersDayTest.php index 4f905db95..a8b41c4c8 100644 --- a/tests/Belgium/InternationalWorkersDayTest.php +++ b/tests/Belgium/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/NationalDayTest.php b/tests/Belgium/NationalDayTest.php index f16559950..a22c73ad7 100644 --- a/tests/Belgium/NationalDayTest.php +++ b/tests/Belgium/NationalDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/NewYearsDayTest.php b/tests/Belgium/NewYearsDayTest.php index da00c5907..af1eeadf4 100644 --- a/tests/Belgium/NewYearsDayTest.php +++ b/tests/Belgium/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/PentecostTest.php b/tests/Belgium/PentecostTest.php index a8734290d..aa551f897 100644 --- a/tests/Belgium/PentecostTest.php +++ b/tests/Belgium/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/pentecostMondayTest.php b/tests/Belgium/pentecostMondayTest.php index 6c3643b8e..8557851f1 100644 --- a/tests/Belgium/pentecostMondayTest.php +++ b/tests/Belgium/pentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/BosniaTest.php b/tests/Bosnia/BosniaTest.php index 720ea3308..227f8da83 100644 --- a/tests/Bosnia/BosniaTest.php +++ b/tests/Bosnia/BosniaTest.php @@ -28,7 +28,7 @@ class BosniaTest extends BosniaBaseTestCase * Tests if all official holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -66,7 +66,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -75,7 +75,7 @@ public function testBankHolidays() * Tests if all other holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Bosnia/ChristmasDayTest.php b/tests/Bosnia/ChristmasDayTest.php index 26c4429cb..60541e82c 100644 --- a/tests/Bosnia/ChristmasDayTest.php +++ b/tests/Bosnia/ChristmasDayTest.php @@ -47,7 +47,7 @@ public function testHoliday($year, $expected) * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } @@ -56,7 +56,7 @@ public function HolidayDataProvider() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/DayAfterNewYearsDay.php b/tests/Bosnia/DayAfterNewYearsDay.php index e10752647..a440db3ad 100644 --- a/tests/Bosnia/DayAfterNewYearsDay.php +++ b/tests/Bosnia/DayAfterNewYearsDay.php @@ -47,7 +47,7 @@ public function testHoliday($year, $expected) * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 2, self::TIMEZONE); } @@ -56,7 +56,7 @@ public function HolidayDataProvider() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/EasterTest.php b/tests/Bosnia/EasterTest.php index f4e09b915..cc3be96e9 100644 --- a/tests/Bosnia/EasterTest.php +++ b/tests/Bosnia/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/IndependenceDayTest.php b/tests/Bosnia/IndependenceDayTest.php index d3e49d73a..984f87331 100644 --- a/tests/Bosnia/IndependenceDayTest.php +++ b/tests/Bosnia/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testIndependenceDayBefore1992() * Tests translated name of Independence Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Bosnia/InternationalWorkersDayTest.php b/tests/Bosnia/InternationalWorkersDayTest.php index dcd2a66e2..4607feede 100644 --- a/tests/Bosnia/InternationalWorkersDayTest.php +++ b/tests/Bosnia/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } @@ -70,7 +70,7 @@ public function testHolidayType() * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Bosnia/NewYearsDayTest.php b/tests/Bosnia/NewYearsDayTest.php index 5b5566d47..220aa03d2 100644 --- a/tests/Bosnia/NewYearsDayTest.php +++ b/tests/Bosnia/NewYearsDayTest.php @@ -47,7 +47,7 @@ public function testHoliday($year, $expected) * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } @@ -56,7 +56,7 @@ public function HolidayDataProvider() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php index 435dcb639..8c5814ba7 100644 --- a/tests/Bosnia/OrthodoxChristmasDay.php +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -30,7 +30,7 @@ class OrthodoxChristmasDay extends BosniaBaseTestCase implements YasumiTestCaseI * @return array * @throws \Exception */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 7, self::TIMEZONE); } @@ -52,7 +52,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -66,7 +66,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/SecondLabourDay.php b/tests/Bosnia/SecondLabourDay.php index 44ade5864..03b0e6451 100644 --- a/tests/Bosnia/SecondLabourDay.php +++ b/tests/Bosnia/SecondLabourDay.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } @@ -70,7 +70,7 @@ public function testHolidayType() * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 2, self::TIMEZONE); } diff --git a/tests/Bosnia/StatehoodDayTest.php b/tests/Bosnia/StatehoodDayTest.php index 5a582eec6..ae31d77ee 100644 --- a/tests/Bosnia/StatehoodDayTest.php +++ b/tests/Bosnia/StatehoodDayTest.php @@ -65,7 +65,7 @@ public function testStatehoodDayBefore1943() * Tests translated name of Statehood Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Brazil/AllSoulsDayTest.php b/tests/Brazil/AllSoulsDayTest.php index 338bdee2f..f7e56c412 100644 --- a/tests/Brazil/AllSoulsDayTest.php +++ b/tests/Brazil/AllSoulsDayTest.php @@ -62,7 +62,7 @@ public function testDiaDosFinadosBefore1300() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia de Finados']); @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/AshWednesdayTest.php b/tests/Brazil/AshWednesdayTest.php index 8b1dd9e94..09c28dc61 100644 --- a/tests/Brazil/AshWednesdayTest.php +++ b/tests/Brazil/AshWednesdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Ash Wednesday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Brazil/BrazilTest.php b/tests/Brazil/BrazilTest.php index cbb0d90b4..9fdccc47d 100644 --- a/tests/Brazil/BrazilTest.php +++ b/tests/Brazil/BrazilTest.php @@ -28,7 +28,7 @@ class BrazilTest extends BrazilBaseTestCase * Tests if all official holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'carnavalMonday', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Brazil/CarnavalMondayTest.php b/tests/Brazil/CarnavalMondayTest.php index d8fe3c295..b207fc4c3 100644 --- a/tests/Brazil/CarnavalMondayTest.php +++ b/tests/Brazil/CarnavalMondayTest.php @@ -65,7 +65,7 @@ public function testCarnavalMondayBefore1700() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Segunda-feira de Carnaval']); @@ -75,7 +75,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OBSERVANCE); diff --git a/tests/Brazil/CarnavalTuesdayTest.php b/tests/Brazil/CarnavalTuesdayTest.php index be0276ba5..84e6b8281 100644 --- a/tests/Brazil/CarnavalTuesdayTest.php +++ b/tests/Brazil/CarnavalTuesdayTest.php @@ -65,7 +65,7 @@ public function testCarnavalTuesdayBefore1700() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Terça-feira de Carnaval']); @@ -75,7 +75,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OBSERVANCE); diff --git a/tests/Brazil/ChristmasDayTest.php b/tests/Brazil/ChristmasDayTest.php index 31a93f888..c67825709 100644 --- a/tests/Brazil/ChristmasDayTest.php +++ b/tests/Brazil/ChristmasDayTest.php @@ -47,7 +47,7 @@ public function testChristmasDay() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/CorpusChristiTest.php b/tests/Brazil/CorpusChristiTest.php index 04e9bb3ee..fc600e826 100644 --- a/tests/Brazil/CorpusChristiTest.php +++ b/tests/Brazil/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Brazil/EasterTest.php b/tests/Brazil/EasterTest.php index 1542e320e..a29ceb028 100644 --- a/tests/Brazil/EasterTest.php +++ b/tests/Brazil/EasterTest.php @@ -43,7 +43,7 @@ public function testEaster() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -57,7 +57,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Brazil/GoodFridayTest.php b/tests/Brazil/GoodFridayTest.php index 068d3a167..7b224dd89 100644 --- a/tests/Brazil/GoodFridayTest.php +++ b/tests/Brazil/GoodFridayTest.php @@ -50,7 +50,7 @@ public function testGoodFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/IndependenceDayTest.php b/tests/Brazil/IndependenceDayTest.php index b252c71cc..e58f9cfbd 100644 --- a/tests/Brazil/IndependenceDayTest.php +++ b/tests/Brazil/IndependenceDayTest.php @@ -62,7 +62,7 @@ public function testDiaDaIndependenciaDoBrasilBefore1822() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName( @@ -77,7 +77,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/InternationalWorkersDayTest.php b/tests/Brazil/InternationalWorkersDayTest.php index 9c3d12054..8f1d3aea6 100644 --- a/tests/Brazil/InternationalWorkersDayTest.php +++ b/tests/Brazil/InternationalWorkersDayTest.php @@ -47,7 +47,7 @@ public function testInternationalWorkersDay() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/NewYearsDayTest.php b/tests/Brazil/NewYearsDayTest.php index bc68af396..d02cdd9e0 100644 --- a/tests/Brazil/NewYearsDayTest.php +++ b/tests/Brazil/NewYearsDayTest.php @@ -47,7 +47,7 @@ public function testNewYearsDay() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/OurLadyOfAparecidaDayTest.php b/tests/Brazil/OurLadyOfAparecidaDayTest.php index 4157d8772..b07dbd2e9 100644 --- a/tests/Brazil/OurLadyOfAparecidaDayTest.php +++ b/tests/Brazil/OurLadyOfAparecidaDayTest.php @@ -62,7 +62,7 @@ public function testNossaSenhoraAparecidaBefore1980() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName( @@ -77,7 +77,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/ProclamationOfRepublicDayTest.php b/tests/Brazil/ProclamationOfRepublicDayTest.php index a1f40a94b..0ec657fb4 100644 --- a/tests/Brazil/ProclamationOfRepublicDayTest.php +++ b/tests/Brazil/ProclamationOfRepublicDayTest.php @@ -62,7 +62,7 @@ public function testProclamacaoDaRepublicaBefore1889() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName( @@ -77,7 +77,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/TiradentesDayTest.php b/tests/Brazil/TiradentesDayTest.php index 8d6ef34d2..33bdfc3e3 100644 --- a/tests/Brazil/TiradentesDayTest.php +++ b/tests/Brazil/TiradentesDayTest.php @@ -62,7 +62,7 @@ public function testDiaDeTiradentesBefore1792() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia de Tiradentes']); @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Croatia/AllSaintsDayTest.php b/tests/Croatia/AllSaintsDayTest.php index b33a946bf..eec55bb4f 100644 --- a/tests/Croatia/AllSaintsDayTest.php +++ b/tests/Croatia/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/AntifascistStruggleDayTest.php b/tests/Croatia/AntifascistStruggleDayTest.php index ae1fa5cf7..cfc706271 100644 --- a/tests/Croatia/AntifascistStruggleDayTest.php +++ b/tests/Croatia/AntifascistStruggleDayTest.php @@ -65,7 +65,7 @@ public function testAntifascistStruggleDayBefore1941() * Tests translated name of Day of Antifascist Struggle. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Croatia/AssumptionOfMaryTest.php b/tests/Croatia/AssumptionOfMaryTest.php index b00427a9a..e368677a6 100644 --- a/tests/Croatia/AssumptionOfMaryTest.php +++ b/tests/Croatia/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/ChristmasDayTest.php b/tests/Croatia/ChristmasDayTest.php index 2cc74042f..56c5d31c9 100644 --- a/tests/Croatia/ChristmasDayTest.php +++ b/tests/Croatia/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/CorpusChristiTest.php b/tests/Croatia/CorpusChristiTest.php index 92854ea41..6602c763c 100644 --- a/tests/Croatia/CorpusChristiTest.php +++ b/tests/Croatia/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/EasterMondayTest.php b/tests/Croatia/EasterMondayTest.php index aef5299ac..74075bd2b 100644 --- a/tests/Croatia/EasterMondayTest.php +++ b/tests/Croatia/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/EasterTest.php b/tests/Croatia/EasterTest.php index 9454db1c9..6f0c23abb 100644 --- a/tests/Croatia/EasterTest.php +++ b/tests/Croatia/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/EpiphanyTest.php b/tests/Croatia/EpiphanyTest.php index 0025f85b9..3daddb0d4 100644 --- a/tests/Croatia/EpiphanyTest.php +++ b/tests/Croatia/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/HomelandThanksgivingDayTest.php b/tests/Croatia/HomelandThanksgivingDayTest.php index 875221563..4035147ea 100644 --- a/tests/Croatia/HomelandThanksgivingDayTest.php +++ b/tests/Croatia/HomelandThanksgivingDayTest.php @@ -65,7 +65,7 @@ public function testHomelandThanksgivingDayBefore1995() * Tests translated name of Homeland Thanksgiving Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Croatia/IndependenceDayTest.php b/tests/Croatia/IndependenceDayTest.php index e5370cdff..42959b6e2 100644 --- a/tests/Croatia/IndependenceDayTest.php +++ b/tests/Croatia/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testIndependenceDayBefore1991() * Tests translated name of Independence Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Croatia/InternationalWorkersDayTest.php b/tests/Croatia/InternationalWorkersDayTest.php index 04d86a6be..805e8306e 100644 --- a/tests/Croatia/InternationalWorkersDayTest.php +++ b/tests/Croatia/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/NewYearsDayTest.php b/tests/Croatia/NewYearsDayTest.php index a87249bc9..87953bbbc 100644 --- a/tests/Croatia/NewYearsDayTest.php +++ b/tests/Croatia/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/StStephensDayTest.php b/tests/Croatia/StStephensDayTest.php index 78424f352..8ce175c9f 100644 --- a/tests/Croatia/StStephensDayTest.php +++ b/tests/Croatia/StStephensDayTest.php @@ -56,7 +56,7 @@ public function stStephensDayDataProvider(): array * Tests translated name of St. Stephen's Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/StatehoodDayTest.php b/tests/Croatia/StatehoodDayTest.php index 2cb47a823..ccd5ecf43 100644 --- a/tests/Croatia/StatehoodDayTest.php +++ b/tests/Croatia/StatehoodDayTest.php @@ -65,7 +65,7 @@ public function testStatehoodDayBefore1991() * Tests translated name of Statehood Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/CzechRepublic/ChristmasDayTest.php b/tests/CzechRepublic/ChristmasDayTest.php index 1d9783e89..2357c4beb 100644 --- a/tests/CzechRepublic/ChristmasDayTest.php +++ b/tests/CzechRepublic/ChristmasDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/ChristmasEveTest.php b/tests/CzechRepublic/ChristmasEveTest.php index 8d34dbe26..01dbad67c 100644 --- a/tests/CzechRepublic/ChristmasEveTest.php +++ b/tests/CzechRepublic/ChristmasEveTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/CzechRepublic/CzechRepublicTest.php b/tests/CzechRepublic/CzechRepublicTest.php index ef47ee528..fa0b37ad1 100644 --- a/tests/CzechRepublic/CzechRepublicTest.php +++ b/tests/CzechRepublic/CzechRepublicTest.php @@ -32,7 +32,7 @@ class CzechRepublicTest extends CzechRepublicBaseTestCase * Tests if all official holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -54,7 +54,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['christmasEve',], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/CzechRepublic/CzechStateHoodDayTest.php b/tests/CzechRepublic/CzechStateHoodDayTest.php index 991780935..9fe192d5f 100644 --- a/tests/CzechRepublic/CzechStateHoodDayTest.php +++ b/tests/CzechRepublic/CzechStateHoodDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/EasterMondayTest.php b/tests/CzechRepublic/EasterMondayTest.php index 243394e0d..453c27395 100644 --- a/tests/CzechRepublic/EasterMondayTest.php +++ b/tests/CzechRepublic/EasterMondayTest.php @@ -51,7 +51,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -65,7 +65,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/GoodFridayTest.php b/tests/CzechRepublic/GoodFridayTest.php index c2de4e79f..457c2b682 100644 --- a/tests/CzechRepublic/GoodFridayTest.php +++ b/tests/CzechRepublic/GoodFridayTest.php @@ -51,7 +51,7 @@ public function testGoodFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -65,7 +65,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php index a1f58c85d..0b08365e6 100644 --- a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php +++ b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/InternationalWorkersDayTest.php b/tests/CzechRepublic/InternationalWorkersDayTest.php index b3896baa1..94f6c8977 100644 --- a/tests/CzechRepublic/InternationalWorkersDayTest.php +++ b/tests/CzechRepublic/InternationalWorkersDayTest.php @@ -49,7 +49,7 @@ public function testHoliday($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -63,7 +63,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/JanHusDayTest.php b/tests/CzechRepublic/JanHusDayTest.php index d3ec3d420..4e05f22d5 100644 --- a/tests/CzechRepublic/JanHusDayTest.php +++ b/tests/CzechRepublic/JanHusDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/NewYearsDayTest.php b/tests/CzechRepublic/NewYearsDayTest.php index 9226521a2..4b77c8cac 100644 --- a/tests/CzechRepublic/NewYearsDayTest.php +++ b/tests/CzechRepublic/NewYearsDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php index dbdf602ee..6bf231375 100644 --- a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/SecondChristmasDayTest.php b/tests/CzechRepublic/SecondChristmasDayTest.php index a5b32bbe9..3b1315370 100644 --- a/tests/CzechRepublic/SecondChristmasDayTest.php +++ b/tests/CzechRepublic/SecondChristmasDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php index 0167e24d8..f9943485d 100644 --- a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/VictoryInEuropeDayTest.php b/tests/CzechRepublic/VictoryInEuropeDayTest.php index 422c871b8..b271f0d00 100644 --- a/tests/CzechRepublic/VictoryInEuropeDayTest.php +++ b/tests/CzechRepublic/VictoryInEuropeDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/AscensionDayTest.php b/tests/Denmark/AscensionDayTest.php index 0e36390e6..b4503897f 100644 --- a/tests/Denmark/AscensionDayTest.php +++ b/tests/Denmark/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 830b9ab0b..b48474b0c 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/ChristmasEveTest.php b/tests/Denmark/ChristmasEveTest.php index 29cc3d70d..a2aa4b559 100644 --- a/tests/Denmark/ChristmasEveTest.php +++ b/tests/Denmark/ChristmasEveTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Denmark/ConstitutionDayTest.php b/tests/Denmark/ConstitutionDayTest.php index 693a12689..8cbff6a51 100644 --- a/tests/Denmark/ConstitutionDayTest.php +++ b/tests/Denmark/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Denmark/DenmarkTest.php b/tests/Denmark/DenmarkTest.php index 754e63e74..190488484 100644 --- a/tests/Denmark/DenmarkTest.php +++ b/tests/Denmark/DenmarkTest.php @@ -28,7 +28,7 @@ class DenmarkTest extends DenmarkBaseTestCase * Tests if all official holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'internationalWorkersDay', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $year = $this->generateRandomYear(1980, 2037); $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $year, Holiday::TYPE_SEASON); @@ -73,7 +73,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -82,7 +82,7 @@ public function testBankHolidays() * Tests if all other holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Denmark/EasterMondayTest.php b/tests/Denmark/EasterMondayTest.php index 2e1e1fc8c..5a6e067a8 100644 --- a/tests/Denmark/EasterMondayTest.php +++ b/tests/Denmark/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/EasterTest.php b/tests/Denmark/EasterTest.php index 71d9a9583..6f286f4ce 100644 --- a/tests/Denmark/EasterTest.php +++ b/tests/Denmark/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/GoodFridayTest.php b/tests/Denmark/GoodFridayTest.php index e619b81e5..6aadb77ff 100644 --- a/tests/Denmark/GoodFridayTest.php +++ b/tests/Denmark/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/GreatPrayerDayTest.php b/tests/Denmark/GreatPrayerDayTest.php index 403f067bb..a142c5bf7 100644 --- a/tests/Denmark/GreatPrayerDayTest.php +++ b/tests/Denmark/GreatPrayerDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Denmark/InternationalWorkersDayTest.php b/tests/Denmark/InternationalWorkersDayTest.php index 21599834d..236a3bb5e 100644 --- a/tests/Denmark/InternationalWorkersDayTest.php +++ b/tests/Denmark/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function InternationalWorkersDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Denmark/MaundyThursdayTest.php b/tests/Denmark/MaundyThursdayTest.php index f35000e80..cea50ed98 100644 --- a/tests/Denmark/MaundyThursdayTest.php +++ b/tests/Denmark/MaundyThursdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/NewYearsDayTest.php b/tests/Denmark/NewYearsDayTest.php index fbad872ec..f05eee8de 100644 --- a/tests/Denmark/NewYearsDayTest.php +++ b/tests/Denmark/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/NewYearsEveTest.php b/tests/Denmark/NewYearsEveTest.php index 7b518da2d..17def1099 100644 --- a/tests/Denmark/NewYearsEveTest.php +++ b/tests/Denmark/NewYearsEveTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Denmark/PentecostMondayTest.php b/tests/Denmark/PentecostMondayTest.php index c1b6f857f..39a8ac9c3 100644 --- a/tests/Denmark/PentecostMondayTest.php +++ b/tests/Denmark/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/PentecostTest.php b/tests/Denmark/PentecostTest.php index 5bf5f8e0b..f0b4ccaa4 100644 --- a/tests/Denmark/PentecostTest.php +++ b/tests/Denmark/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/SecondChristmasDayTest.php b/tests/Denmark/SecondChristmasDayTest.php index 3cbd709c7..591cdebc0 100644 --- a/tests/Denmark/SecondChristmasDayTest.php +++ b/tests/Denmark/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php index d9d5df2a5..d706f5281 100644 --- a/tests/Denmark/SummerTimeTest.php +++ b/tests/Denmark/SummerTimeTest.php @@ -57,7 +57,7 @@ public function testSummerTime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1980, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Denmark/WinterTimeTest.php b/tests/Denmark/WinterTimeTest.php index 6f103cea3..8d0f9d16e 100644 --- a/tests/Denmark/WinterTimeTest.php +++ b/tests/Denmark/WinterTimeTest.php @@ -58,7 +58,7 @@ public function testWinterTime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1980, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Estonia/ChristmasDayTest.php b/tests/Estonia/ChristmasDayTest.php index 46c26dad3..cbe91f0d7 100644 --- a/tests/Estonia/ChristmasDayTest.php +++ b/tests/Estonia/ChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/ChristmasEveDayTest.php b/tests/Estonia/ChristmasEveDayTest.php index 9c5b550ad..19f7fc7a7 100644 --- a/tests/Estonia/ChristmasEveDayTest.php +++ b/tests/Estonia/ChristmasEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index dbd124f2f..39e0d0edb 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/EstoniaTest.php b/tests/Estonia/EstoniaTest.php index cd014f7e3..522f720e7 100644 --- a/tests/Estonia/EstoniaTest.php +++ b/tests/Estonia/EstoniaTest.php @@ -27,7 +27,7 @@ class EstoniaTest extends EstoniaBaseTestCase * Tests if all official holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'christmasDay', @@ -62,7 +62,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -71,7 +71,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -80,7 +80,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -89,7 +89,7 @@ public function testBankHolidays() * Tests if all other holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Estonia/GoodFridayDayTest.php b/tests/Estonia/GoodFridayDayTest.php index b08517799..09724dd04 100644 --- a/tests/Estonia/GoodFridayDayTest.php +++ b/tests/Estonia/GoodFridayDayTest.php @@ -63,7 +63,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -77,7 +77,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/IndependenceDayTest.php b/tests/Estonia/IndependenceDayTest.php index 43fdd4a7a..88cc5f89d 100644 --- a/tests/Estonia/IndependenceDayTest.php +++ b/tests/Estonia/IndependenceDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Estonia/InternationalWorkersDayTest.php b/tests/Estonia/InternationalWorkersDayTest.php index 3b59db730..7ac8c7f34 100644 --- a/tests/Estonia/InternationalWorkersDayTest.php +++ b/tests/Estonia/InternationalWorkersDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/NewYearsDayTest.php b/tests/Estonia/NewYearsDayTest.php index e12c835aa..cbbf69e95 100644 --- a/tests/Estonia/NewYearsDayTest.php +++ b/tests/Estonia/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/PentecostTest.php b/tests/Estonia/PentecostTest.php index 7b8bd2d06..52221390b 100644 --- a/tests/Estonia/PentecostTest.php +++ b/tests/Estonia/PentecostTest.php @@ -63,7 +63,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -77,7 +77,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/RestorationOfIndependenceDayTest.php b/tests/Estonia/RestorationOfIndependenceDayTest.php index 7ef04471d..45105876c 100644 --- a/tests/Estonia/RestorationOfIndependenceDayTest.php +++ b/tests/Estonia/RestorationOfIndependenceDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Estonia/SecondChristmasDayTest.php b/tests/Estonia/SecondChristmasDayTest.php index fa4227178..694568422 100644 --- a/tests/Estonia/SecondChristmasDayTest.php +++ b/tests/Estonia/SecondChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/StJohnsDayTest.php b/tests/Estonia/StJohnsDayTest.php index 5e8834f4f..2a3bf590e 100644 --- a/tests/Estonia/StJohnsDayTest.php +++ b/tests/Estonia/StJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/VictoryDayTest.php b/tests/Estonia/VictoryDayTest.php index 5d62ef70d..4fcaa36c0 100644 --- a/tests/Estonia/VictoryDayTest.php +++ b/tests/Estonia/VictoryDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Finland/AllSaintsDayTest.php b/tests/Finland/AllSaintsDayTest.php index 002a7e21d..de92950aa 100644 --- a/tests/Finland/AllSaintsDayTest.php +++ b/tests/Finland/AllSaintsDayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/AscensionDayTest.php b/tests/Finland/AscensionDayTest.php index b3d9f5bc9..5d848273f 100644 --- a/tests/Finland/AscensionDayTest.php +++ b/tests/Finland/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/ChristmasDayTest.php b/tests/Finland/ChristmasDayTest.php index e3ffbf857..c3b1dfa14 100644 --- a/tests/Finland/ChristmasDayTest.php +++ b/tests/Finland/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/EasterMondayTest.php b/tests/Finland/EasterMondayTest.php index 1444ae862..91970d0ce 100644 --- a/tests/Finland/EasterMondayTest.php +++ b/tests/Finland/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/EasterTest.php b/tests/Finland/EasterTest.php index e2d1b8c22..25d5f4ed4 100644 --- a/tests/Finland/EasterTest.php +++ b/tests/Finland/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/EpiphanyTest.php b/tests/Finland/EpiphanyTest.php index 92705a62b..ad70e7aeb 100644 --- a/tests/Finland/EpiphanyTest.php +++ b/tests/Finland/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/FinlandTest.php b/tests/Finland/FinlandTest.php index 77f618092..1cddb0c80 100644 --- a/tests/Finland/FinlandTest.php +++ b/tests/Finland/FinlandTest.php @@ -28,7 +28,7 @@ class FinlandTest extends FinlandBaseTestCase * Tests if all official holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Finland/GoodFridayTest.php b/tests/Finland/GoodFridayTest.php index e096ee17b..c5e22985a 100644 --- a/tests/Finland/GoodFridayTest.php +++ b/tests/Finland/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/IndependenceDayTest.php b/tests/Finland/IndependenceDayTest.php index 65634f766..eaae9484e 100644 --- a/tests/Finland/IndependenceDayTest.php +++ b/tests/Finland/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Finland/InternationalWorkersDayTest.php b/tests/Finland/InternationalWorkersDayTest.php index 072f69812..22eeb73c9 100644 --- a/tests/Finland/InternationalWorkersDayTest.php +++ b/tests/Finland/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/NewYearsDayTest.php b/tests/Finland/NewYearsDayTest.php index 84597a13a..12344bd53 100644 --- a/tests/Finland/NewYearsDayTest.php +++ b/tests/Finland/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/PentecostTest.php b/tests/Finland/PentecostTest.php index 0fc218934..b153a888f 100644 --- a/tests/Finland/PentecostTest.php +++ b/tests/Finland/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/SecondChristmasDayTest.php b/tests/Finland/SecondChristmasDayTest.php index 5e650d3dc..0d846a188 100644 --- a/tests/Finland/SecondChristmasDayTest.php +++ b/tests/Finland/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/stJohnsDayTest.php b/tests/Finland/stJohnsDayTest.php index 4f1be3ce8..9b5fa9ec6 100644 --- a/tests/Finland/stJohnsDayTest.php +++ b/tests/Finland/stJohnsDayTest.php @@ -81,7 +81,7 @@ public function testHolidayAfterAdjustment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/AllSaintsDayTest.php b/tests/France/AllSaintsDayTest.php index 10f86c139..f7baff4bf 100644 --- a/tests/France/AllSaintsDayTest.php +++ b/tests/France/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/ArmisticeDayTest.php b/tests/France/ArmisticeDayTest.php index 27c060ad2..e6cc7c4b2 100644 --- a/tests/France/ArmisticeDayTest.php +++ b/tests/France/ArmisticeDayTest.php @@ -65,7 +65,7 @@ public function testArmisticeDayBefore1919() * Tests translated name of Armistice Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/France/AscensionDayTest.php b/tests/France/AscensionDayTest.php index 946e5e11d..9b232f7ed 100644 --- a/tests/France/AscensionDayTest.php +++ b/tests/France/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/AssumptionOfMaryTest.php b/tests/France/AssumptionOfMaryTest.php index b124fb280..a0910dd37 100644 --- a/tests/France/AssumptionOfMaryTest.php +++ b/tests/France/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/BasRhin/BasRhinTest.php b/tests/France/BasRhin/BasRhinTest.php index 899bee13d..4009a0a3a 100644 --- a/tests/France/BasRhin/BasRhinTest.php +++ b/tests/France/BasRhin/BasRhinTest.php @@ -28,7 +28,7 @@ class BasRhinTest extends BasRhinBaseTestCase * Tests if all official holidays in Bas-Rhin are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/BasRhin/GoodFridayTest.php b/tests/France/BasRhin/GoodFridayTest.php index 2705547c0..4d7a688f9 100644 --- a/tests/France/BasRhin/GoodFridayTest.php +++ b/tests/France/BasRhin/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/BasRhin/stStephensDayTest.php b/tests/France/BasRhin/stStephensDayTest.php index 69b009b0f..a0b111358 100644 --- a/tests/France/BasRhin/stStephensDayTest.php +++ b/tests/France/BasRhin/stStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/BastilleDayTest.php b/tests/France/BastilleDayTest.php index fb49e4da3..ecb32bd2d 100644 --- a/tests/France/BastilleDayTest.php +++ b/tests/France/BastilleDayTest.php @@ -65,7 +65,7 @@ public function testBastilleDayBefore1790() * Tests translated name of Bastille Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/France/ChristmasDayTest.php b/tests/France/ChristmasDayTest.php index 81cd72fe0..a8caa9701 100644 --- a/tests/France/ChristmasDayTest.php +++ b/tests/France/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/EasterMondayTest.php b/tests/France/EasterMondayTest.php index 91804dc6d..6171d0e9a 100644 --- a/tests/France/EasterMondayTest.php +++ b/tests/France/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/FranceTest.php b/tests/France/FranceTest.php index dfcf1b3ef..d30e0e9bd 100644 --- a/tests/France/FranceTest.php +++ b/tests/France/FranceTest.php @@ -28,7 +28,7 @@ class FranceTest extends FranceBaseTestCase * Tests if all official holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -58,7 +58,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -67,7 +67,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -76,7 +76,7 @@ public function testBankHolidays() * Tests if all other holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/HautRhin/GoodFridayTest.php b/tests/France/HautRhin/GoodFridayTest.php index a49d51d77..8b04e7b63 100644 --- a/tests/France/HautRhin/GoodFridayTest.php +++ b/tests/France/HautRhin/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/HautRhin/HautRhinTest.php b/tests/France/HautRhin/HautRhinTest.php index 951cd185c..4c0da79e4 100644 --- a/tests/France/HautRhin/HautRhinTest.php +++ b/tests/France/HautRhin/HautRhinTest.php @@ -28,7 +28,7 @@ class HautRhinTest extends HautRhinBaseTestCase * Tests if all official holidays in Haut-Rhin are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/HautRhin/stStephensDayTest.php b/tests/France/HautRhin/stStephensDayTest.php index a9f1e345a..efaee6358 100644 --- a/tests/France/HautRhin/stStephensDayTest.php +++ b/tests/France/HautRhin/stStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/InternationalWorkersDayTest.php b/tests/France/InternationalWorkersDayTest.php index 97a1db15a..34383f2f4 100644 --- a/tests/France/InternationalWorkersDayTest.php +++ b/tests/France/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/Moselle/GoodFridayTest.php b/tests/France/Moselle/GoodFridayTest.php index dc915951a..f9ed7a834 100644 --- a/tests/France/Moselle/GoodFridayTest.php +++ b/tests/France/Moselle/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/Moselle/MoselleTest.php b/tests/France/Moselle/MoselleTest.php index be5d37343..d4b5660df 100644 --- a/tests/France/Moselle/MoselleTest.php +++ b/tests/France/Moselle/MoselleTest.php @@ -28,7 +28,7 @@ class MoselleTest extends MoselleBaseTestCase * Tests if all official holidays in Moselle are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/Moselle/stStephensDayTest.php b/tests/France/Moselle/stStephensDayTest.php index 3609fe169..52a0528ca 100644 --- a/tests/France/Moselle/stStephensDayTest.php +++ b/tests/France/Moselle/stStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/NewYearsDayTest.php b/tests/France/NewYearsDayTest.php index 5a745b790..bb12ca651 100644 --- a/tests/France/NewYearsDayTest.php +++ b/tests/France/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/PentecostMondayTest.php b/tests/France/PentecostMondayTest.php index b9c9b1272..26432f5b7 100644 --- a/tests/France/PentecostMondayTest.php +++ b/tests/France/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/VictoryInEuropeDayTest.php b/tests/France/VictoryInEuropeDayTest.php index 239e5b60a..a4ab98d11 100644 --- a/tests/France/VictoryInEuropeDayTest.php +++ b/tests/France/VictoryInEuropeDayTest.php @@ -65,7 +65,7 @@ public function testVictoryInEuropeDayBefore1945() * Tests translated name of Victory in Europe Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/AscensionDayTest.php b/tests/Germany/AscensionDayTest.php index 1212848d8..532166856 100644 --- a/tests/Germany/AscensionDayTest.php +++ b/tests/Germany/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php index 22a72f757..dc214a17f 100644 --- a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php +++ b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php index 61556ca0e..7c7f45e6c 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php @@ -28,7 +28,7 @@ class BadenWurttembergTest extends BadenWurttembergBaseTestCase * Tests if all official holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays( ['epiphany', 'corpusChristi', 'allSaintsDay'], diff --git a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php index 5fcf33d1e..72e4ba234 100644 --- a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php +++ b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/BadenWurttemberg/EpiphanyTest.php b/tests/Germany/BadenWurttemberg/EpiphanyTest.php index df812d4c4..8e762ba62 100644 --- a/tests/Germany/BadenWurttemberg/EpiphanyTest.php +++ b/tests/Germany/BadenWurttemberg/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bavaria/AllSaintsDayTest.php b/tests/Germany/Bavaria/AllSaintsDayTest.php index dc6325932..d85bec9c7 100644 --- a/tests/Germany/Bavaria/AllSaintsDayTest.php +++ b/tests/Germany/Bavaria/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bavaria/BavariaTest.php b/tests/Germany/Bavaria/BavariaTest.php index 5e62113d5..bc5c530bc 100644 --- a/tests/Germany/Bavaria/BavariaTest.php +++ b/tests/Germany/Bavaria/BavariaTest.php @@ -28,7 +28,7 @@ class BavariaTest extends BavariaBaseTestCase * Tests if all official holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays( ['epiphany', 'corpusChristi', 'allSaintsDay'], diff --git a/tests/Germany/Bavaria/CorpusChristiTest.php b/tests/Germany/Bavaria/CorpusChristiTest.php index 687ca65d0..656c9cc7e 100644 --- a/tests/Germany/Bavaria/CorpusChristiTest.php +++ b/tests/Germany/Bavaria/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bavaria/EpiphanyTest.php b/tests/Germany/Bavaria/EpiphanyTest.php index f7a55c4ea..da1a37750 100644 --- a/tests/Germany/Bavaria/EpiphanyTest.php +++ b/tests/Germany/Bavaria/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Berlin/BerlinTest.php b/tests/Germany/Berlin/BerlinTest.php index 2403411c5..1b8c24d91 100644 --- a/tests/Germany/Berlin/BerlinTest.php +++ b/tests/Germany/Berlin/BerlinTest.php @@ -28,7 +28,7 @@ class BerlinTest extends BerlinBaseTestCase * Tests if all official holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Brandenburg/BrandenburgTest.php b/tests/Germany/Brandenburg/BrandenburgTest.php index ebe148614..06ec34f28 100644 --- a/tests/Germany/Brandenburg/BrandenburgTest.php +++ b/tests/Germany/Brandenburg/BrandenburgTest.php @@ -28,7 +28,7 @@ class BrandenburgTest extends BrandenburgBaseTestCase * Tests if all official holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -58,7 +58,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -67,7 +67,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -76,7 +76,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -85,7 +85,7 @@ public function testBankHolidays() * Tests if all other holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Brandenburg/ReformationDayTest.php b/tests/Germany/Brandenburg/ReformationDayTest.php index 79d88252d..f7a2c5f5e 100644 --- a/tests/Germany/Brandenburg/ReformationDayTest.php +++ b/tests/Germany/Brandenburg/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Bremen/BremenTest.php b/tests/Germany/Bremen/BremenTest.php index fdcd1da02..a0a135033 100644 --- a/tests/Germany/Bremen/BremenTest.php +++ b/tests/Germany/Bremen/BremenTest.php @@ -28,7 +28,7 @@ class BremenTest extends BremenBaseTestCase * Tests if all official holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bremen/ReformationDayTest.php b/tests/Germany/Bremen/ReformationDayTest.php index d438df914..0e1ab75c2 100644 --- a/tests/Germany/Bremen/ReformationDayTest.php +++ b/tests/Germany/Bremen/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/ChristmasTest.php b/tests/Germany/ChristmasTest.php index a970bf085..fe9b6f773 100644 --- a/tests/Germany/ChristmasTest.php +++ b/tests/Germany/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/EasterMondayTest.php b/tests/Germany/EasterMondayTest.php index 25d9d7537..56eefe6fc 100644 --- a/tests/Germany/EasterMondayTest.php +++ b/tests/Germany/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/GermanUnityDayTest.php b/tests/Germany/GermanUnityDayTest.php index 816627b46..70f3350ae 100644 --- a/tests/Germany/GermanUnityDayTest.php +++ b/tests/Germany/GermanUnityDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/GermanyTest.php b/tests/Germany/GermanyTest.php index 5cc1561c9..3eff63ad5 100644 --- a/tests/Germany/GermanyTest.php +++ b/tests/Germany/GermanyTest.php @@ -28,7 +28,7 @@ class GermanyTest extends GermanyBaseTestCase * Tests if all official holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'ascensionDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/GoodFridayTest.php b/tests/Germany/GoodFridayTest.php index 5f9009d64..13ddfaf2d 100644 --- a/tests/Germany/GoodFridayTest.php +++ b/tests/Germany/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testGoodFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index 5cbacb4fe..4fa53ac0f 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Hamburg/HamburgTest.php b/tests/Germany/Hamburg/HamburgTest.php index e2b804ee3..776f967c1 100644 --- a/tests/Germany/Hamburg/HamburgTest.php +++ b/tests/Germany/Hamburg/HamburgTest.php @@ -28,7 +28,7 @@ class HamburgTest extends HamburgBaseTestCase * Tests if all official holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Hesse/CorpusChristiTest.php b/tests/Germany/Hesse/CorpusChristiTest.php index 785fe605a..bce107e49 100644 --- a/tests/Germany/Hesse/CorpusChristiTest.php +++ b/tests/Germany/Hesse/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Hesse/HesseTest.php b/tests/Germany/Hesse/HesseTest.php index 96873095e..fa7ae8ec9 100644 --- a/tests/Germany/Hesse/HesseTest.php +++ b/tests/Germany/Hesse/HesseTest.php @@ -28,7 +28,7 @@ class HesseTest extends HesseBaseTestCase * Tests if all official holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/InternationalWorkersDayTest.php b/tests/Germany/InternationalWorkersDayTest.php index 2758b7288..e5e6af22b 100644 --- a/tests/Germany/InternationalWorkersDayTest.php +++ b/tests/Germany/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/LowerSaxony/LowerSaxonyTest.php b/tests/Germany/LowerSaxony/LowerSaxonyTest.php index 6531cf949..a3bc6a710 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyTest.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyTest.php @@ -28,7 +28,7 @@ class LowerSaxonyTest extends LowerSaxonyBaseTestCase * Tests if all official holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/LowerSaxony/ReformationDayTest.php b/tests/Germany/LowerSaxony/ReformationDayTest.php index 08116dad2..bdac6f83d 100644 --- a/tests/Germany/LowerSaxony/ReformationDayTest.php +++ b/tests/Germany/LowerSaxony/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php index 066b17ba9..cd529dae6 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php @@ -28,7 +28,7 @@ class MecklenburgWesternPomeraniaTest extends MecklenburgWesternPomeraniaBaseTes * Tests if all official holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -56,7 +56,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -65,7 +65,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -74,7 +74,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -83,7 +83,7 @@ public function testBankHolidays() * Tests if all other holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php index b6802e5b7..5c81764c6 100644 --- a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php @@ -67,7 +67,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/NewYearsDayTest.php b/tests/Germany/NewYearsDayTest.php index 6f4a9f7fa..5a0c6a8d6 100644 --- a/tests/Germany/NewYearsDayTest.php +++ b/tests/Germany/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php index 21cfc04bd..067e7074f 100644 --- a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php index 3976b61e3..c1e4f7748 100644 --- a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php +++ b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php index 3c581c7aa..89c94f508 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php @@ -28,7 +28,7 @@ class NorthRhineWestphaliaTest extends NorthRhineWestphaliaBaseTestCase * Tests if all official holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi', 'allSaintsDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/PentecostMondayTest.php b/tests/Germany/PentecostMondayTest.php index e861574c3..419c9b446 100644 --- a/tests/Germany/PentecostMondayTest.php +++ b/tests/Germany/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/ReformationDay2017Test.php b/tests/Germany/ReformationDay2017Test.php index 46a9e5a29..60ced0dba 100644 --- a/tests/Germany/ReformationDay2017Test.php +++ b/tests/Germany/ReformationDay2017Test.php @@ -73,7 +73,7 @@ public function testHolidayAfterCompletion() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php index 6a6a16751..f00ce5b30 100644 --- a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php +++ b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php index bda903705..449794c87 100644 --- a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php +++ b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php index ff8036852..db9ec4544 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php @@ -28,7 +28,7 @@ class RhinelandPalatinateTest extends RhinelandPalatinateBaseTestCase * Tests if all official holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi', 'allSaintsDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/AllSaintsDayTest.php b/tests/Germany/Saarland/AllSaintsDayTest.php index b80429999..dbf289179 100644 --- a/tests/Germany/Saarland/AllSaintsDayTest.php +++ b/tests/Germany/Saarland/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/AssumptionOfMaryTest.php b/tests/Germany/Saarland/AssumptionOfMaryTest.php index e7cb1c345..33d8ca259 100644 --- a/tests/Germany/Saarland/AssumptionOfMaryTest.php +++ b/tests/Germany/Saarland/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/CorpusChristiTest.php b/tests/Germany/Saarland/CorpusChristiTest.php index 31fb393b4..bdde9c41f 100644 --- a/tests/Germany/Saarland/CorpusChristiTest.php +++ b/tests/Germany/Saarland/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/SaarlandTest.php b/tests/Germany/Saarland/SaarlandTest.php index 4f0c8603f..8cc7a81d7 100644 --- a/tests/Germany/Saarland/SaarlandTest.php +++ b/tests/Germany/Saarland/SaarlandTest.php @@ -28,7 +28,7 @@ class SaarlandTest extends SaarlandBaseTestCase * Tests if all official holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([ 'corpusChristi', diff --git a/tests/Germany/Saxony/ReformationDayTest.php b/tests/Germany/Saxony/ReformationDayTest.php index a02995ca2..571dcde52 100644 --- a/tests/Germany/Saxony/ReformationDayTest.php +++ b/tests/Germany/Saxony/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php index 85375258b..cf33667d4 100644 --- a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php +++ b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php @@ -73,7 +73,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Saxony/SaxonyTest.php b/tests/Germany/Saxony/SaxonyTest.php index 88c7ca554..bdea0fe4d 100644 --- a/tests/Germany/Saxony/SaxonyTest.php +++ b/tests/Germany/Saxony/SaxonyTest.php @@ -28,7 +28,7 @@ class SaxonyTest extends SaxonyBaseTestCase * Tests if all official holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -60,7 +60,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -69,7 +69,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -78,7 +78,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -87,7 +87,7 @@ public function testBankHolidays() * Tests if all other holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php index 7abdf4c88..84c004665 100644 --- a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php +++ b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php index 564aa40a8..142dd2cff 100644 --- a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php +++ b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php index 9db13bf7b..889c52ca1 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php @@ -28,7 +28,7 @@ class SaxonyAnhaltTest extends SaxonyAnhaltBaseTestCase * Tests if all official holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -56,7 +56,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -65,7 +65,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -74,7 +74,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -83,7 +83,7 @@ public function testBankHolidays() * Tests if all other holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['epiphany'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SchleswigHolstein/ReformationDayTest.php b/tests/Germany/SchleswigHolstein/ReformationDayTest.php index 5b492cf58..8f91536c4 100644 --- a/tests/Germany/SchleswigHolstein/ReformationDayTest.php +++ b/tests/Germany/SchleswigHolstein/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php index d97b452d9..459192c8a 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php @@ -28,7 +28,7 @@ class SchleswigHolsteinTest extends SchleswigHolsteinBaseTestCase * Tests if all official holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SecondChristmasDayTest.php b/tests/Germany/SecondChristmasDayTest.php index 889aa64c8..552f1168e 100644 --- a/tests/Germany/SecondChristmasDayTest.php +++ b/tests/Germany/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/Thuringia/ReformationDayTest.php b/tests/Germany/Thuringia/ReformationDayTest.php index f0c369464..6e639c948 100644 --- a/tests/Germany/Thuringia/ReformationDayTest.php +++ b/tests/Germany/Thuringia/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Thuringia/ThuringiaTest.php b/tests/Germany/Thuringia/ThuringiaTest.php index 31e9d9b0e..81c78832e 100644 --- a/tests/Germany/Thuringia/ThuringiaTest.php +++ b/tests/Germany/Thuringia/ThuringiaTest.php @@ -28,7 +28,7 @@ class ThuringiaTest extends ThuringiaBaseTestCase * Tests if all official holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -56,7 +56,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -65,7 +65,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -74,7 +74,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -83,7 +83,7 @@ public function testBankHolidays() * Tests if all other holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Greece/AnnunciationTest.php b/tests/Greece/AnnunciationTest.php index f454b6924..0aa080820 100644 --- a/tests/Greece/AnnunciationTest.php +++ b/tests/Greece/AnnunciationTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/AscensionDayTest.php b/tests/Greece/AscensionDayTest.php index 704fcaa0e..fa9ec8b0e 100644 --- a/tests/Greece/AscensionDayTest.php +++ b/tests/Greece/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/AssumptionOfMaryTest.php b/tests/Greece/AssumptionOfMaryTest.php index c4ca394cc..c9945b051 100644 --- a/tests/Greece/AssumptionOfMaryTest.php +++ b/tests/Greece/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/ChristmasDayTest.php b/tests/Greece/ChristmasDayTest.php index 371dc35fa..29174fb01 100644 --- a/tests/Greece/ChristmasDayTest.php +++ b/tests/Greece/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/CleanMondayTest.php b/tests/Greece/CleanMondayTest.php index e8d3e998c..d1673df1e 100644 --- a/tests/Greece/CleanMondayTest.php +++ b/tests/Greece/CleanMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/EasterMondayTest.php b/tests/Greece/EasterMondayTest.php index 8eaa604e7..1122d697b 100644 --- a/tests/Greece/EasterMondayTest.php +++ b/tests/Greece/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/EasterTest.php b/tests/Greece/EasterTest.php index 9e1c61df0..07516a7b2 100644 --- a/tests/Greece/EasterTest.php +++ b/tests/Greece/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Easter. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/EpiphanyTest.php b/tests/Greece/EpiphanyTest.php index 771dcf95b..e8d1f2f5a 100644 --- a/tests/Greece/EpiphanyTest.php +++ b/tests/Greece/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Epiphany. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/GreeceTest.php b/tests/Greece/GreeceTest.php index 62614c6ff..e38fb0798 100644 --- a/tests/Greece/GreeceTest.php +++ b/tests/Greece/GreeceTest.php @@ -28,7 +28,7 @@ class GreeceTest extends GreeceBaseTestCase * Tests if all official holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -53,7 +53,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays( ['threeHolyHierarchs', 'polytechnio'], diff --git a/tests/Greece/IndepencenceDayTest.php b/tests/Greece/IndepencenceDayTest.php index 3fb2290a0..71a7dced3 100644 --- a/tests/Greece/IndepencenceDayTest.php +++ b/tests/Greece/IndepencenceDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Greece/InternationalWorkersDayTest.php b/tests/Greece/InternationalWorkersDayTest.php index 1337507c7..5d68a7dd4 100644 --- a/tests/Greece/InternationalWorkersDayTest.php +++ b/tests/Greece/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/NewYearsDayTest.php b/tests/Greece/NewYearsDayTest.php index 0ae851d65..1564aaa8b 100644 --- a/tests/Greece/NewYearsDayTest.php +++ b/tests/Greece/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/OhiDayTest.php b/tests/Greece/OhiDayTest.php index 30bd10524..a984dd8fb 100644 --- a/tests/Greece/OhiDayTest.php +++ b/tests/Greece/OhiDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Greece/PentecostMondayTest.php b/tests/Greece/PentecostMondayTest.php index be6dd09da..69156fb78 100644 --- a/tests/Greece/PentecostMondayTest.php +++ b/tests/Greece/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/PentecostTest.php b/tests/Greece/PentecostTest.php index 01fb44bd5..55211469a 100644 --- a/tests/Greece/PentecostTest.php +++ b/tests/Greece/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/PolytechnioTest.php b/tests/Greece/PolytechnioTest.php index e7a03e487..72bded03a 100644 --- a/tests/Greece/PolytechnioTest.php +++ b/tests/Greece/PolytechnioTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Greece/ThreeHolyHierarchsTest.php b/tests/Greece/ThreeHolyHierarchsTest.php index 780ee85ec..1948e384b 100644 --- a/tests/Greece/ThreeHolyHierarchsTest.php +++ b/tests/Greece/ThreeHolyHierarchsTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Greece/goodFridayTest.php b/tests/Greece/goodFridayTest.php index f7e0db5ba..598bdf5f2 100644 --- a/tests/Greece/goodFridayTest.php +++ b/tests/Greece/goodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/AllSaintsDayTest.php b/tests/Hungary/AllSaintsDayTest.php index 8dbf8d0c4..32a4f9323 100644 --- a/tests/Hungary/AllSaintsDayTest.php +++ b/tests/Hungary/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/ChristmasTest.php b/tests/Hungary/ChristmasTest.php index aa85b38cb..dc1faca58 100644 --- a/tests/Hungary/ChristmasTest.php +++ b/tests/Hungary/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/EasterMondayTest.php b/tests/Hungary/EasterMondayTest.php index aaad5fd1f..7f5120a91 100644 --- a/tests/Hungary/EasterMondayTest.php +++ b/tests/Hungary/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/EasterTest.php b/tests/Hungary/EasterTest.php index ba74438bb..6c77ca6c5 100644 --- a/tests/Hungary/EasterTest.php +++ b/tests/Hungary/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/HungaryTest.php b/tests/Hungary/HungaryTest.php index 8504f9a95..bebf39a2c 100644 --- a/tests/Hungary/HungaryTest.php +++ b/tests/Hungary/HungaryTest.php @@ -28,7 +28,7 @@ class HungaryTest extends HungaryBaseTestCase * Tests if all official holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = [ 'newYearsDay', @@ -64,7 +64,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['pentecost'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Hungary/InternationalWorkersDayTest.php b/tests/Hungary/InternationalWorkersDayTest.php index e0b368418..8b582c175 100644 --- a/tests/Hungary/InternationalWorkersDayTest.php +++ b/tests/Hungary/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/MemorialDay1848Test.php b/tests/Hungary/MemorialDay1848Test.php index 0df623476..3a95cb67c 100644 --- a/tests/Hungary/MemorialDay1848Test.php +++ b/tests/Hungary/MemorialDay1848Test.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Hungary/MemorialDay1956Test.php b/tests/Hungary/MemorialDay1956Test.php index e51f46326..f49392df7 100644 --- a/tests/Hungary/MemorialDay1956Test.php +++ b/tests/Hungary/MemorialDay1956Test.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Hungary/NewYearsDayTest.php b/tests/Hungary/NewYearsDayTest.php index 41bba75fa..91c134c68 100644 --- a/tests/Hungary/NewYearsDayTest.php +++ b/tests/Hungary/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/PentecostMondayTest.php b/tests/Hungary/PentecostMondayTest.php index 667b7c541..904f87242 100644 --- a/tests/Hungary/PentecostMondayTest.php +++ b/tests/Hungary/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/PentecostTest.php b/tests/Hungary/PentecostTest.php index 6342f6d45..f1c3a3ca9 100644 --- a/tests/Hungary/PentecostTest.php +++ b/tests/Hungary/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Hungary/SecondChristmasDayTest.php b/tests/Hungary/SecondChristmasDayTest.php index 71db8267c..6700f5c5e 100644 --- a/tests/Hungary/SecondChristmasDayTest.php +++ b/tests/Hungary/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/StateFoundationDayTest.php b/tests/Hungary/StateFoundationDayTest.php index e8305aaf3..5f8ce1ed9 100644 --- a/tests/Hungary/StateFoundationDayTest.php +++ b/tests/Hungary/StateFoundationDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/AugustHolidayTest.php b/tests/Ireland/AugustHolidayTest.php index 3f6b33789..8a8d618eb 100644 --- a/tests/Ireland/AugustHolidayTest.php +++ b/tests/Ireland/AugustHolidayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -94,7 +94,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index cdc41485c..c9987b790 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index 1608b6a77..d2703af63 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index ee7b93e47..92b3f0238 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index 38625c811..d50204f24 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -94,7 +94,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Ireland/IrelandTest.php b/tests/Ireland/IrelandTest.php index 911d61c75..d9a1c3d16 100644 --- a/tests/Ireland/IrelandTest.php +++ b/tests/Ireland/IrelandTest.php @@ -28,7 +28,7 @@ class IrelandTest extends IrelandBaseTestCase * Tests if all official holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = ['easter', 'easterMonday', 'augustHoliday', 'christmasDay', 'stStephensDay']; if ($this->year >= 1974) { @@ -59,7 +59,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['goodFriday', 'pentecost'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -68,7 +68,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -77,7 +77,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -86,7 +86,7 @@ public function testBankHolidays() * Tests if all other holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Ireland/JuneHolidayTest.php b/tests/Ireland/JuneHolidayTest.php index d1dcdc8da..1f78b8236 100644 --- a/tests/Ireland/JuneHolidayTest.php +++ b/tests/Ireland/JuneHolidayTest.php @@ -92,7 +92,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -112,7 +112,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/MayDayTest.php b/tests/Ireland/MayDayTest.php index 238dd5fc8..219959588 100644 --- a/tests/Ireland/MayDayTest.php +++ b/tests/Ireland/MayDayTest.php @@ -93,7 +93,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -113,7 +113,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index 047083a0e..035164d27 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -91,7 +91,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/OctoberHolidayTest.php b/tests/Ireland/OctoberHolidayTest.php index 268f4db56..83954a53f 100644 --- a/tests/Ireland/OctoberHolidayTest.php +++ b/tests/Ireland/OctoberHolidayTest.php @@ -93,7 +93,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -113,7 +113,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index e0e1decfb..bbcf12e3b 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index a76425de8..fe5a991c3 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -91,7 +91,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index fc834c4b9..83b4ea9dc 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index 817ce84ae..6aed88641 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -88,7 +88,7 @@ public function testHolidayDayAfterAbolishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -108,7 +108,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Italy/AllSaintsDayTest.php b/tests/Italy/AllSaintsDayTest.php index 540bdd725..fbe88e7a1 100644 --- a/tests/Italy/AllSaintsDayTest.php +++ b/tests/Italy/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function AllSaintsDayDataProvider(): array * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/AssumptionOfMaryTest.php b/tests/Italy/AssumptionOfMaryTest.php index 9b6011237..b53866a49 100644 --- a/tests/Italy/AssumptionOfMaryTest.php +++ b/tests/Italy/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function AssumptionOfMaryDataProvider(): array * Tests translated name of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/ChristmasTest.php b/tests/Italy/ChristmasTest.php index c5fa4ea79..66a3fe35c 100644 --- a/tests/Italy/ChristmasTest.php +++ b/tests/Italy/ChristmasTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/EasterMondayTest.php b/tests/Italy/EasterMondayTest.php index 2fad60e75..43020a674 100644 --- a/tests/Italy/EasterMondayTest.php +++ b/tests/Italy/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/EasterTest.php b/tests/Italy/EasterTest.php index 68eabf3fb..780d01a4d 100644 --- a/tests/Italy/EasterTest.php +++ b/tests/Italy/EasterTest.php @@ -47,7 +47,7 @@ public function testEaster() * Tests translated name of Easter. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/EpiphanyTest.php b/tests/Italy/EpiphanyTest.php index fe6c7cc07..6b2d4b822 100644 --- a/tests/Italy/EpiphanyTest.php +++ b/tests/Italy/EpiphanyTest.php @@ -56,7 +56,7 @@ public function EpiphanyDataProvider(): array * Tests translated name of Epiphany. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/ImmaculateConceptionTest.php b/tests/Italy/ImmaculateConceptionTest.php index 20c48eb0d..802b9f535 100644 --- a/tests/Italy/ImmaculateConceptionTest.php +++ b/tests/Italy/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function ImmaculateConceptionDataProvider(): array * Tests translated name of the day of Immaculate Conception. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/InternationalWorkersDayTest.php b/tests/Italy/InternationalWorkersDayTest.php index 2fb198bd1..00d0eefd2 100644 --- a/tests/Italy/InternationalWorkersDayTest.php +++ b/tests/Italy/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function InternationalWorkersDayDataProvider(): array * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/ItalyTest.php b/tests/Italy/ItalyTest.php index 262b1db4b..9d7d24a94 100644 --- a/tests/Italy/ItalyTest.php +++ b/tests/Italy/ItalyTest.php @@ -28,7 +28,7 @@ class ItalyTest extends ItalyBaseTestCase * Tests if all official holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Italy/LiberationDayTest.php b/tests/Italy/LiberationDayTest.php index 33328b998..e07dd8540 100644 --- a/tests/Italy/LiberationDayTest.php +++ b/tests/Italy/LiberationDayTest.php @@ -72,7 +72,7 @@ public function testLiberationDayBefore1949() * Tests translated name of Liberation Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Italy/NewYearsDayTest.php b/tests/Italy/NewYearsDayTest.php index cc09d206e..8f9f3e7cf 100644 --- a/tests/Italy/NewYearsDayTest.php +++ b/tests/Italy/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function NewYearsDayDataProvider(): array * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/RepublicDayTest.php b/tests/Italy/RepublicDayTest.php index aceec4962..dbacc71fe 100644 --- a/tests/Italy/RepublicDayTest.php +++ b/tests/Italy/RepublicDayTest.php @@ -72,7 +72,7 @@ public function testRepublicDayBefore1946() * Tests translated name of Republic Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Italy/stStephensDayTest.php b/tests/Italy/stStephensDayTest.php index 9ae62e23c..fbbdfcca0 100644 --- a/tests/Italy/stStephensDayTest.php +++ b/tests/Italy/stStephensDayTest.php @@ -56,7 +56,7 @@ public function stStephensDayDataProvider(): array * Tests translated name of St. Stephen's Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Japan/AutumnalEquinoxDayTest.php b/tests/Japan/AutumnalEquinoxDayTest.php index 4b631b78e..46a76d12d 100644 --- a/tests/Japan/AutumnalEquinoxDayTest.php +++ b/tests/Japan/AutumnalEquinoxDayTest.php @@ -121,7 +121,7 @@ public function testAutumnalEquinoxDayBetween1851And1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -135,7 +135,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ChildrensDayTest.php b/tests/Japan/ChildrensDayTest.php index 5bc1880cb..167100122 100644 --- a/tests/Japan/ChildrensDayTest.php +++ b/tests/Japan/ChildrensDayTest.php @@ -81,7 +81,7 @@ public function testChildrensDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ComingOfAgeDayTest.php b/tests/Japan/ComingOfAgeDayTest.php index 0bbe69914..b528835ba 100644 --- a/tests/Japan/ComingOfAgeDayTest.php +++ b/tests/Japan/ComingOfAgeDayTest.php @@ -85,7 +85,7 @@ public function testConstitutionMemorialDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -99,7 +99,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ConstitutionMemorialDayTest.php b/tests/Japan/ConstitutionMemorialDayTest.php index 549b7f981..c8bc151c2 100644 --- a/tests/Japan/ConstitutionMemorialDayTest.php +++ b/tests/Japan/ConstitutionMemorialDayTest.php @@ -82,7 +82,7 @@ public function testConstitutionMemorialDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/CultureDayTest.php b/tests/Japan/CultureDayTest.php index 81809cd7d..3c976a07b 100644 --- a/tests/Japan/CultureDayTest.php +++ b/tests/Japan/CultureDayTest.php @@ -81,7 +81,7 @@ public function testCultureDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/EmperorsBirthdayTest.php b/tests/Japan/EmperorsBirthdayTest.php index 91b1e9d43..f64220dc9 100644 --- a/tests/Japan/EmperorsBirthdayTest.php +++ b/tests/Japan/EmperorsBirthdayTest.php @@ -86,7 +86,7 @@ public function testEmperorsBirthdayBefore1989() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -100,7 +100,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/GreeneryDayTest.php b/tests/Japan/GreeneryDayTest.php index a7587f3c3..d6b2e06b9 100644 --- a/tests/Japan/GreeneryDayTest.php +++ b/tests/Japan/GreeneryDayTest.php @@ -116,7 +116,7 @@ public function testHolidayBefore1989() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -130,7 +130,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/HealthAndSportsDayTest.php b/tests/Japan/HealthAndSportsDayTest.php index af7649d6a..f51521afa 100644 --- a/tests/Japan/HealthAndSportsDayTest.php +++ b/tests/Japan/HealthAndSportsDayTest.php @@ -117,7 +117,7 @@ public function testHealthAndSportsDayBefore1996() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -131,7 +131,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/JapanTest.php b/tests/Japan/JapanTest.php index eb6e26386..b69b815f0 100644 --- a/tests/Japan/JapanTest.php +++ b/tests/Japan/JapanTest.php @@ -28,7 +28,7 @@ class JapanTest extends JapanBaseTestCase * Tests if all official holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -55,7 +55,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -64,7 +64,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -73,7 +73,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -82,7 +82,7 @@ public function testBankHolidays() * Tests if all other holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Japan/LabourThanksgivingDayTest.php b/tests/Japan/LabourThanksgivingDayTest.php index 6d08144e8..428c239de 100644 --- a/tests/Japan/LabourThanksgivingDayTest.php +++ b/tests/Japan/LabourThanksgivingDayTest.php @@ -84,7 +84,7 @@ public function testLabourThanksgivingDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/MarineDayTest.php b/tests/Japan/MarineDayTest.php index 22cfc184c..494c1545c 100644 --- a/tests/Japan/MarineDayTest.php +++ b/tests/Japan/MarineDayTest.php @@ -116,7 +116,7 @@ public function testMarineDayBefore1996() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -130,7 +130,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/MountainDayTest.php b/tests/Japan/MountainDayTest.php index 54cdcf9bc..735a34330 100644 --- a/tests/Japan/MountainDayTest.php +++ b/tests/Japan/MountainDayTest.php @@ -97,7 +97,7 @@ public function testMountainDayBefore2016() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/NationalFoundationDayTest.php b/tests/Japan/NationalFoundationDayTest.php index 56313bbde..829cc6342 100644 --- a/tests/Japan/NationalFoundationDayTest.php +++ b/tests/Japan/NationalFoundationDayTest.php @@ -82,7 +82,7 @@ public function testNationalFoundationDayBefore1966() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/NewYearsDayTest.php b/tests/Japan/NewYearsDayTest.php index aea8afc35..1b3fb0f97 100644 --- a/tests/Japan/NewYearsDayTest.php +++ b/tests/Japan/NewYearsDayTest.php @@ -81,7 +81,7 @@ public function testNewYearsDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/PublicBridgeDayTest.php b/tests/Japan/PublicBridgeDayTest.php index 71a97fb2d..bdc963bf5 100644 --- a/tests/Japan/PublicBridgeDayTest.php +++ b/tests/Japan/PublicBridgeDayTest.php @@ -50,7 +50,7 @@ public function testPublicBridgeDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $this->year, [self::LOCALE => '国民の休日']); } @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->year, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Japan/RespectForTheAgedDayTest.php b/tests/Japan/RespectForTheAgedDayTest.php index b5cfba4e4..ba7070e1a 100644 --- a/tests/Japan/RespectForTheAgedDayTest.php +++ b/tests/Japan/RespectForTheAgedDayTest.php @@ -101,7 +101,7 @@ public function testRespectForTheAgedDayBefore1996() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -115,7 +115,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ShowaDayTest.php b/tests/Japan/ShowaDayTest.php index 86967e1a6..380391398 100644 --- a/tests/Japan/ShowaDayTest.php +++ b/tests/Japan/ShowaDayTest.php @@ -81,7 +81,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/VernalEquinoxDayTest.php b/tests/Japan/VernalEquinoxDayTest.php index 2fbbfc3eb..003671230 100644 --- a/tests/Japan/VernalEquinoxDayTest.php +++ b/tests/Japan/VernalEquinoxDayTest.php @@ -122,7 +122,7 @@ public function testVernalEquinoxDayBetween1851And1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -136,7 +136,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Latvia/ChristmasDayTest.php b/tests/Latvia/ChristmasDayTest.php index 26fbf97cb..2e1f26e81 100644 --- a/tests/Latvia/ChristmasDayTest.php +++ b/tests/Latvia/ChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/ChristmasEveDayTest.php b/tests/Latvia/ChristmasEveDayTest.php index 1d1c2a46a..d1e347aff 100644 --- a/tests/Latvia/ChristmasEveDayTest.php +++ b/tests/Latvia/ChristmasEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index f8ecaceca..89b8be74e 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index 7143d7cfe..e09bd490c 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index b9424056a..7540c9ada 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/InternationalWorkersDayTest.php b/tests/Latvia/InternationalWorkersDayTest.php index 4c85b187b..c62a67c71 100644 --- a/tests/Latvia/InternationalWorkersDayTest.php +++ b/tests/Latvia/InternationalWorkersDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/LatviaTest.php b/tests/Latvia/LatviaTest.php index c23b58a1b..4988fda1b 100644 --- a/tests/Latvia/LatviaTest.php +++ b/tests/Latvia/LatviaTest.php @@ -27,7 +27,7 @@ class LatviaTest extends LatviaBaseTestCase * Tests if all official holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -60,7 +60,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -69,7 +69,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -78,7 +78,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -87,7 +87,7 @@ public function testBankHolidays() * Tests if all other holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Latvia/MidsummerEveDayTest.php b/tests/Latvia/MidsummerEveDayTest.php index 4b35ee5c2..9f06d01c0 100644 --- a/tests/Latvia/MidsummerEveDayTest.php +++ b/tests/Latvia/MidsummerEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/NewYearsDayTest.php b/tests/Latvia/NewYearsDayTest.php index 52ea1bd53..89c175080 100644 --- a/tests/Latvia/NewYearsDayTest.php +++ b/tests/Latvia/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/NewYearsEveDayTest.php b/tests/Latvia/NewYearsEveDayTest.php index 5d1ba82a8..09f19955c 100644 --- a/tests/Latvia/NewYearsEveDayTest.php +++ b/tests/Latvia/NewYearsEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index 5d8b8a7e6..e68cb1a22 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -82,7 +82,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -99,7 +99,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index 908af1185..f9ee55aea 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -82,7 +82,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -99,7 +99,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Latvia/SecondChristmasDayTest.php b/tests/Latvia/SecondChristmasDayTest.php index dcb713ca2..7eb0ffce9 100644 --- a/tests/Latvia/SecondChristmasDayTest.php +++ b/tests/Latvia/SecondChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/StJohnsDayTest.php b/tests/Latvia/StJohnsDayTest.php index dd341cb41..80dfc2b33 100644 --- a/tests/Latvia/StJohnsDayTest.php +++ b/tests/Latvia/StJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/AllSaintsDayTest.php b/tests/Lithuania/AllSaintsDayTest.php index 5325a73ca..50983d4ac 100644 --- a/tests/Lithuania/AllSaintsDayTest.php +++ b/tests/Lithuania/AllSaintsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/AssumptionOfMaryDayTest.php b/tests/Lithuania/AssumptionOfMaryDayTest.php index 43b771639..5a358fa91 100644 --- a/tests/Lithuania/AssumptionOfMaryDayTest.php +++ b/tests/Lithuania/AssumptionOfMaryDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/ChristmasDayTest.php b/tests/Lithuania/ChristmasDayTest.php index 20e2de18a..798b03be3 100644 --- a/tests/Lithuania/ChristmasDayTest.php +++ b/tests/Lithuania/ChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/ChristmasEveDayTest.php b/tests/Lithuania/ChristmasEveDayTest.php index 9e2b4a104..b1e25c710 100644 --- a/tests/Lithuania/ChristmasEveDayTest.php +++ b/tests/Lithuania/ChristmasEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index 8e47eb06f..04fea788c 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index 7de0b3ea1..c88b5e179 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/InternationalWorkersDayTest.php b/tests/Lithuania/InternationalWorkersDayTest.php index c42d3a8c9..41bc8319e 100644 --- a/tests/Lithuania/InternationalWorkersDayTest.php +++ b/tests/Lithuania/InternationalWorkersDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/LithuaniaTest.php b/tests/Lithuania/LithuaniaTest.php index 93f8a6777..f4d95d7f2 100644 --- a/tests/Lithuania/LithuaniaTest.php +++ b/tests/Lithuania/LithuaniaTest.php @@ -27,7 +27,7 @@ class LithuaniaTest extends LithuaniaBaseTestCase * Tests if all official holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -63,7 +63,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -72,7 +72,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -81,7 +81,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -90,7 +90,7 @@ public function testBankHolidays() * Tests if all other holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Lithuania/NewYearsDayTest.php b/tests/Lithuania/NewYearsDayTest.php index a601efc29..74d05a0b0 100644 --- a/tests/Lithuania/NewYearsDayTest.php +++ b/tests/Lithuania/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php index 62811c5d3..fe901ab69 100644 --- a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfterRestoration() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php index f3b707ab1..576d192d7 100644 --- a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfterRestoration() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Lithuania/SecondChristmasDayTest.php b/tests/Lithuania/SecondChristmasDayTest.php index 2e599b35e..e4922fd99 100644 --- a/tests/Lithuania/SecondChristmasDayTest.php +++ b/tests/Lithuania/SecondChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/StJohnsDayTest.php b/tests/Lithuania/StJohnsDayTest.php index 11320b1a4..f93c97d54 100644 --- a/tests/Lithuania/StJohnsDayTest.php +++ b/tests/Lithuania/StJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/StatehoodDayTest.php b/tests/Lithuania/StatehoodDayTest.php index 1e740c9b2..0cb69ff74 100644 --- a/tests/Lithuania/StatehoodDayTest.php +++ b/tests/Lithuania/StatehoodDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfterRestoration() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/AscensionDayTest.php b/tests/Netherlands/AscensionDayTest.php index 0b519a291..d737ba2be 100644 --- a/tests/Netherlands/AscensionDayTest.php +++ b/tests/Netherlands/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/AshWednesdayTest.php b/tests/Netherlands/AshWednesdayTest.php index b9ac129d7..6576c79df 100644 --- a/tests/Netherlands/AshWednesdayTest.php +++ b/tests/Netherlands/AshWednesdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Ash Wednesday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/ChristmasDayTest.php b/tests/Netherlands/ChristmasDayTest.php index c1a0c0e9e..508bdd5a6 100644 --- a/tests/Netherlands/ChristmasDayTest.php +++ b/tests/Netherlands/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/CommemorationDayTest.php b/tests/Netherlands/CommemorationDayTest.php index cd6eb98a6..9050043ce 100644 --- a/tests/Netherlands/CommemorationDayTest.php +++ b/tests/Netherlands/CommemorationDayTest.php @@ -65,7 +65,7 @@ public function testCommemorationDayOnAfter1947() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/EasterMondayTest.php b/tests/Netherlands/EasterMondayTest.php index d74908550..d12746fc8 100644 --- a/tests/Netherlands/EasterMondayTest.php +++ b/tests/Netherlands/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/EasterTest.php b/tests/Netherlands/EasterTest.php index c851b1b79..32c9d1a37 100644 --- a/tests/Netherlands/EasterTest.php +++ b/tests/Netherlands/EasterTest.php @@ -47,7 +47,7 @@ public function testEaster() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/EpiphanyTest.php b/tests/Netherlands/EpiphanyTest.php index 99dc5a5e4..cfdf9f4a9 100644 --- a/tests/Netherlands/EpiphanyTest.php +++ b/tests/Netherlands/EpiphanyTest.php @@ -56,7 +56,7 @@ public function EpiphanyDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/FathersDayTest.php b/tests/Netherlands/FathersDayTest.php index 1c2e8cb31..ed4577d20 100644 --- a/tests/Netherlands/FathersDayTest.php +++ b/tests/Netherlands/FathersDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/GoodFridayTest.php b/tests/Netherlands/GoodFridayTest.php index aa4305e78..df2eb3075 100644 --- a/tests/Netherlands/GoodFridayTest.php +++ b/tests/Netherlands/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testGoodFriday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/HalloweenTest.php b/tests/Netherlands/HalloweenTest.php index 1de93b24e..35585826c 100644 --- a/tests/Netherlands/HalloweenTest.php +++ b/tests/Netherlands/HalloweenTest.php @@ -56,7 +56,7 @@ public function HalloweenDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/InternationalWorkersDayTest.php b/tests/Netherlands/InternationalWorkersDayTest.php index 5ab38eee1..86fad8cde 100644 --- a/tests/Netherlands/InternationalWorkersDayTest.php +++ b/tests/Netherlands/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function InternationalWorkersDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/KingsDayTest.php b/tests/Netherlands/KingsDayTest.php index cf2eeb395..3ba65e6f3 100644 --- a/tests/Netherlands/KingsDayTest.php +++ b/tests/Netherlands/KingsDayTest.php @@ -81,7 +81,7 @@ public function testKingsDayBefore2014() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/LiberationDayTest.php b/tests/Netherlands/LiberationDayTest.php index 940adc336..f8e4ad60c 100644 --- a/tests/Netherlands/LiberationDayTest.php +++ b/tests/Netherlands/LiberationDayTest.php @@ -65,7 +65,7 @@ public function testLiberationDayOnAfter1947() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/MothersDayTest.php b/tests/Netherlands/MothersDayTest.php index 844cd7306..27c521267 100644 --- a/tests/Netherlands/MothersDayTest.php +++ b/tests/Netherlands/MothersDayTest.php @@ -47,7 +47,7 @@ public function testMothersDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/NetherlandsTest.php b/tests/Netherlands/NetherlandsTest.php index a567aed35..2dacd5ce1 100644 --- a/tests/Netherlands/NetherlandsTest.php +++ b/tests/Netherlands/NetherlandsTest.php @@ -28,7 +28,7 @@ class NetherlandsTest extends NetherlandsBaseTestCase * Tests if all official holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stMartinsDay', @@ -67,7 +67,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $year = $this->generateRandomYear(1978, 2037); $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $year, Holiday::TYPE_SEASON); @@ -77,7 +77,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -86,7 +86,7 @@ public function testBankHolidays() * Tests if all other holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([ 'internationalWorkersDay', diff --git a/tests/Netherlands/NewYearsDayTest.php b/tests/Netherlands/NewYearsDayTest.php index 7639b74ae..08a40a1dd 100644 --- a/tests/Netherlands/NewYearsDayTest.php +++ b/tests/Netherlands/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function NewYearsDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/PentecostTest.php b/tests/Netherlands/PentecostTest.php index 5b02abcb5..aa8d08517 100644 --- a/tests/Netherlands/PentecostTest.php +++ b/tests/Netherlands/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/QueensDayTest.php b/tests/Netherlands/QueensDayTest.php index 85d02383d..99ab5a78e 100644 --- a/tests/Netherlands/QueensDayTest.php +++ b/tests/Netherlands/QueensDayTest.php @@ -129,7 +129,7 @@ public function testQueensDayAfter2013() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -143,7 +143,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/SummertimeTest.php b/tests/Netherlands/SummertimeTest.php index 1ae96644d..4334f3ee3 100644 --- a/tests/Netherlands/SummertimeTest.php +++ b/tests/Netherlands/SummertimeTest.php @@ -58,7 +58,7 @@ public function testSummertime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1978, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Netherlands/ValentinesDayTest.php b/tests/Netherlands/ValentinesDayTest.php index eedd6cf27..9344b667b 100644 --- a/tests/Netherlands/ValentinesDayTest.php +++ b/tests/Netherlands/ValentinesDayTest.php @@ -57,7 +57,7 @@ public function ValentinesDayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } @@ -66,7 +66,7 @@ public function testHolidayType() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/WintertimeTest.php b/tests/Netherlands/WintertimeTest.php index c25070739..e5fcdf126 100644 --- a/tests/Netherlands/WintertimeTest.php +++ b/tests/Netherlands/WintertimeTest.php @@ -57,7 +57,7 @@ public function testWintertime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1978, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Netherlands/WorldAnimalDayTest.php b/tests/Netherlands/WorldAnimalDayTest.php index 4b8da85be..aa44862ce 100644 --- a/tests/Netherlands/WorldAnimalDayTest.php +++ b/tests/Netherlands/WorldAnimalDayTest.php @@ -65,7 +65,7 @@ public function testWorldAnimalBefore1931() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, @@ -79,7 +79,7 @@ public function testHolidayType() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/carnivalDayTest.php b/tests/Netherlands/carnivalDayTest.php index 38f9b9f25..8518936c3 100644 --- a/tests/Netherlands/carnivalDayTest.php +++ b/tests/Netherlands/carnivalDayTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testHolidayType() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/pentecostMondayTest.php b/tests/Netherlands/pentecostMondayTest.php index ae587268c..8d3bd7797 100644 --- a/tests/Netherlands/pentecostMondayTest.php +++ b/tests/Netherlands/pentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/princesDayTest.php b/tests/Netherlands/princesDayTest.php index dd89fd68c..ca696b1f0 100644 --- a/tests/Netherlands/princesDayTest.php +++ b/tests/Netherlands/princesDayTest.php @@ -47,7 +47,7 @@ public function testPrincesDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/secondCarnivalDay.php b/tests/Netherlands/secondCarnivalDay.php index 7771088dc..88fc749cd 100644 --- a/tests/Netherlands/secondCarnivalDay.php +++ b/tests/Netherlands/secondCarnivalDay.php @@ -58,7 +58,7 @@ public function testHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -72,7 +72,7 @@ public function testHolidayType() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/secondChristmasdayTest.php b/tests/Netherlands/secondChristmasdayTest.php index c8c6eeb55..4371d8a18 100644 --- a/tests/Netherlands/secondChristmasdayTest.php +++ b/tests/Netherlands/secondChristmasdayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/stMartinsDayTest.php b/tests/Netherlands/stMartinsDayTest.php index 02dd13591..8d83a33e8 100644 --- a/tests/Netherlands/stMartinsDayTest.php +++ b/tests/Netherlands/stMartinsDayTest.php @@ -56,7 +56,7 @@ public function stMartinsDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/stNicholasDayTest.php b/tests/Netherlands/stNicholasDayTest.php index db4e990bb..13c76dfb0 100644 --- a/tests/Netherlands/stNicholasDayTest.php +++ b/tests/Netherlands/stNicholasDayTest.php @@ -57,7 +57,7 @@ public function stNicholasDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/thirdCarnivalDay.php b/tests/Netherlands/thirdCarnivalDay.php index c3fa911f8..a6ff63f68 100644 --- a/tests/Netherlands/thirdCarnivalDay.php +++ b/tests/Netherlands/thirdCarnivalDay.php @@ -58,7 +58,7 @@ public function testHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -72,7 +72,7 @@ public function testHolidayType() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Norway/AscensionDayTest.php b/tests/Norway/AscensionDayTest.php index 8188d6bca..4e0278c8e 100644 --- a/tests/Norway/AscensionDayTest.php +++ b/tests/Norway/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/ChristmasDayTest.php b/tests/Norway/ChristmasDayTest.php index 9cdad398b..271624175 100644 --- a/tests/Norway/ChristmasDayTest.php +++ b/tests/Norway/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/ConstitutionDayTest.php b/tests/Norway/ConstitutionDayTest.php index 659d09ef6..cac5ce94b 100644 --- a/tests/Norway/ConstitutionDayTest.php +++ b/tests/Norway/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Norway/EasterMondayTest.php b/tests/Norway/EasterMondayTest.php index 283293c4f..e7eb773eb 100644 --- a/tests/Norway/EasterMondayTest.php +++ b/tests/Norway/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/EasterTest.php b/tests/Norway/EasterTest.php index 69a2fd9b4..b18f84fc6 100644 --- a/tests/Norway/EasterTest.php +++ b/tests/Norway/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/GoodFridayTest.php b/tests/Norway/GoodFridayTest.php index fd455440e..361eee5b2 100644 --- a/tests/Norway/GoodFridayTest.php +++ b/tests/Norway/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/InternationalWorkersDayTest.php b/tests/Norway/InternationalWorkersDayTest.php index b6c66f644..084bf38b1 100644 --- a/tests/Norway/InternationalWorkersDayTest.php +++ b/tests/Norway/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/MaundyThursdayTest.php b/tests/Norway/MaundyThursdayTest.php index 0dbfc4720..5be075298 100644 --- a/tests/Norway/MaundyThursdayTest.php +++ b/tests/Norway/MaundyThursdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/NewYearsDayTest.php b/tests/Norway/NewYearsDayTest.php index e2b21ef29..d789a4bc0 100644 --- a/tests/Norway/NewYearsDayTest.php +++ b/tests/Norway/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/NorwayTest.php b/tests/Norway/NorwayTest.php index 2fa232206..4ed420f95 100644 --- a/tests/Norway/NorwayTest.php +++ b/tests/Norway/NorwayTest.php @@ -28,7 +28,7 @@ class NorwayTest extends NorwayBaseTestCase * Tests if all official holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Norway/PentecostMondayTest.php b/tests/Norway/PentecostMondayTest.php index e02e97241..c9f3c8ac9 100644 --- a/tests/Norway/PentecostMondayTest.php +++ b/tests/Norway/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/PentecostTest.php b/tests/Norway/PentecostTest.php index 2f94d2dc1..997601173 100644 --- a/tests/Norway/PentecostTest.php +++ b/tests/Norway/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/SecondChristmasDayTest.php b/tests/Norway/SecondChristmasDayTest.php index bd479a90b..a1147ab4b 100644 --- a/tests/Norway/SecondChristmasDayTest.php +++ b/tests/Norway/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/AllSaintsDayTest.php b/tests/Poland/AllSaintsDayTest.php index 47c601780..8e03a557a 100644 --- a/tests/Poland/AllSaintsDayTest.php +++ b/tests/Poland/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/AssumptionOfMaryTest.php b/tests/Poland/AssumptionOfMaryTest.php index b681fff8e..c83f41ea7 100644 --- a/tests/Poland/AssumptionOfMaryTest.php +++ b/tests/Poland/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/ChristmasTest.php b/tests/Poland/ChristmasTest.php index 4cdedadd6..e71bfe978 100644 --- a/tests/Poland/ChristmasTest.php +++ b/tests/Poland/ChristmasTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/ConstitutionDayTest.php b/tests/Poland/ConstitutionDayTest.php index 2b1be965b..474e600f2 100644 --- a/tests/Poland/ConstitutionDayTest.php +++ b/tests/Poland/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Poland/CorpusChristiTest.php b/tests/Poland/CorpusChristiTest.php index 4afb6d388..789882a0c 100644 --- a/tests/Poland/CorpusChristiTest.php +++ b/tests/Poland/CorpusChristiTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Corpus Christi. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Poland/EasterMondayTest.php b/tests/Poland/EasterMondayTest.php index bcbdbeedd..7f87744df 100644 --- a/tests/Poland/EasterMondayTest.php +++ b/tests/Poland/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/EasterTest.php b/tests/Poland/EasterTest.php index 7d9a4d983..1187399d7 100644 --- a/tests/Poland/EasterTest.php +++ b/tests/Poland/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/EpiphanyTest.php b/tests/Poland/EpiphanyTest.php index dbc82f658..b64a40362 100644 --- a/tests/Poland/EpiphanyTest.php +++ b/tests/Poland/EpiphanyTest.php @@ -56,7 +56,7 @@ public function EpiphanyDataProvider(): array * Tests translated name of Epiphany. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/IndependenceDayTest.php b/tests/Poland/IndependenceDayTest.php index f4421bc45..6c5bc2b42 100644 --- a/tests/Poland/IndependenceDayTest.php +++ b/tests/Poland/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Poland/InternationalWorkersDayTest.php b/tests/Poland/InternationalWorkersDayTest.php index 4ec7b95e9..77c0e5edc 100644 --- a/tests/Poland/InternationalWorkersDayTest.php +++ b/tests/Poland/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/NewYearsDayTest.php b/tests/Poland/NewYearsDayTest.php index 2c772b9a2..d40ac0beb 100644 --- a/tests/Poland/NewYearsDayTest.php +++ b/tests/Poland/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/PentecostTest.php b/tests/Poland/PentecostTest.php index 75bef478d..af5081ac3 100644 --- a/tests/Poland/PentecostTest.php +++ b/tests/Poland/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/PolandTest.php b/tests/Poland/PolandTest.php index afae94879..b523629fe 100644 --- a/tests/Poland/PolandTest.php +++ b/tests/Poland/PolandTest.php @@ -28,7 +28,7 @@ class PolandTest extends PolandBaseTestCase * Tests if all official holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Poland/SecondChristmasDayTest.php b/tests/Poland/SecondChristmasDayTest.php index 05ed45948..d28404870 100644 --- a/tests/Poland/SecondChristmasDayTest.php +++ b/tests/Poland/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/AllSaintsDayTest.php b/tests/Portugal/AllSaintsDayTest.php index 492e9de5d..4afac9092 100644 --- a/tests/Portugal/AllSaintsDayTest.php +++ b/tests/Portugal/AllSaintsDayTest.php @@ -69,7 +69,7 @@ public function testNotHoliday() * Tests translated name of Corpus Christi. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED); $this->assertTranslatedHolidayName( @@ -85,7 +85,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { // After restoration $year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED); diff --git a/tests/Portugal/AssumptionOfMaryTest.php b/tests/Portugal/AssumptionOfMaryTest.php index 3b74f048d..63e338766 100644 --- a/tests/Portugal/AssumptionOfMaryTest.php +++ b/tests/Portugal/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/CarnationRevolutionDayTest.php b/tests/Portugal/CarnationRevolutionDayTest.php index 6ccb79a81..b1470c583 100644 --- a/tests/Portugal/CarnationRevolutionDayTest.php +++ b/tests/Portugal/CarnationRevolutionDayTest.php @@ -58,7 +58,7 @@ public function testNotHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia da Liberdade']); @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Portugal/ChristmasTest.php b/tests/Portugal/ChristmasTest.php index 0124161cd..50c91ca63 100644 --- a/tests/Portugal/ChristmasTest.php +++ b/tests/Portugal/ChristmasTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/CorpusChristiTest.php b/tests/Portugal/CorpusChristiTest.php index e6d28f758..0d3dc59f9 100644 --- a/tests/Portugal/CorpusChristiTest.php +++ b/tests/Portugal/CorpusChristiTest.php @@ -63,7 +63,7 @@ public function testNotHoliday() * Tests translated name of Corpus Christi. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Corpo de Deus']); @@ -74,7 +74,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { // Before abolishment $year = $this->generateRandomYear(1000, self::HOLIDAY_YEAR_ABOLISHED - 1); diff --git a/tests/Portugal/EasterTest.php b/tests/Portugal/EasterTest.php index 8b97195bf..d99945082 100644 --- a/tests/Portugal/EasterTest.php +++ b/tests/Portugal/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/GoodFridayTest.php b/tests/Portugal/GoodFridayTest.php index 0e02ad716..c1c9d67b4 100644 --- a/tests/Portugal/GoodFridayTest.php +++ b/tests/Portugal/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/ImmaculateConceptionTest.php b/tests/Portugal/ImmaculateConceptionTest.php index 06a4ebdba..e4e930051 100644 --- a/tests/Portugal/ImmaculateConceptionTest.php +++ b/tests/Portugal/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/InternationalWorkersDayTest.php b/tests/Portugal/InternationalWorkersDayTest.php index 737bad77a..8ccc69266 100644 --- a/tests/Portugal/InternationalWorkersDayTest.php +++ b/tests/Portugal/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/NewYearsDayTest.php b/tests/Portugal/NewYearsDayTest.php index 354656a61..b4feb9b29 100644 --- a/tests/Portugal/NewYearsDayTest.php +++ b/tests/Portugal/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/PortugalDayTest.php b/tests/Portugal/PortugalDayTest.php index aac275b04..349c1652e 100644 --- a/tests/Portugal/PortugalDayTest.php +++ b/tests/Portugal/PortugalDayTest.php @@ -84,7 +84,7 @@ public function testNotHolidayDuringAbolishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR_BEFORE); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia de Portugal']); @@ -98,7 +98,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR_BEFORE); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index ef8535b13..6d3192387 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -28,7 +28,7 @@ class PortugalTest extends PortugalBaseTestCase * Tests if all official holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in PortugalPortugal are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $holidays = []; diff --git a/tests/Portugal/PortugueseRepublicDayTest.php b/tests/Portugal/PortugueseRepublicDayTest.php index 74cbd34a9..fbde1d4e5 100644 --- a/tests/Portugal/PortugueseRepublicDayTest.php +++ b/tests/Portugal/PortugueseRepublicDayTest.php @@ -69,7 +69,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -83,7 +83,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Portugal/RestorationOfIndependenceTest.php b/tests/Portugal/RestorationOfIndependenceTest.php index e75f7d6db..3ccad8eae 100644 --- a/tests/Portugal/RestorationOfIndependenceTest.php +++ b/tests/Portugal/RestorationOfIndependenceTest.php @@ -110,7 +110,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR, self::HOLIDAY_YEAR_ABOLISHED - 1); $this->assertTranslatedHolidayName( @@ -134,7 +134,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { // After establishment and before abolishment $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR, self::HOLIDAY_YEAR_ABOLISHED - 1); diff --git a/tests/Romania/AssumptionOfMaryTest.php b/tests/Romania/AssumptionOfMaryTest.php index 368a5b8ea..51e38dad5 100644 --- a/tests/Romania/AssumptionOfMaryTest.php +++ b/tests/Romania/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testAssumptionOfMaryDayBefore2008() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/ChildrensDayTest.php b/tests/Romania/ChildrensDayTest.php index 7d662cefc..1bcbf41b1 100644 --- a/tests/Romania/ChildrensDayTest.php +++ b/tests/Romania/ChildrensDayTest.php @@ -65,7 +65,7 @@ public function testChildrensDayBefore1950() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/ChristmasDayTest.php b/tests/Romania/ChristmasDayTest.php index c571de1e5..7e276ce76 100644 --- a/tests/Romania/ChristmasDayTest.php +++ b/tests/Romania/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/ConstantinBrancusiDayTest.php b/tests/Romania/ConstantinBrancusiDayTest.php index 5a058d4e4..e176f2390 100644 --- a/tests/Romania/ConstantinBrancusiDayTest.php +++ b/tests/Romania/ConstantinBrancusiDayTest.php @@ -65,7 +65,7 @@ public function testConstantinBrancusiDayBefore2016() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/DayAfterNewYearsDayTest.php b/tests/Romania/DayAfterNewYearsDayTest.php index 6d8bf5a93..264dfb4de 100644 --- a/tests/Romania/DayAfterNewYearsDayTest.php +++ b/tests/Romania/DayAfterNewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/EasterMondayTest.php b/tests/Romania/EasterMondayTest.php index 176507d4c..1e5585084 100755 --- a/tests/Romania/EasterMondayTest.php +++ b/tests/Romania/EasterMondayTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/EasterTest.php b/tests/Romania/EasterTest.php index fc5a99427..c79d6ba35 100755 --- a/tests/Romania/EasterTest.php +++ b/tests/Romania/EasterTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/InternationalWorkersDayTest.php b/tests/Romania/InternationalWorkersDayTest.php index ada2aa18c..fe860285a 100755 --- a/tests/Romania/InternationalWorkersDayTest.php +++ b/tests/Romania/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/NationalDayTest.php b/tests/Romania/NationalDayTest.php index 27b7e4b0e..b078e2c97 100644 --- a/tests/Romania/NationalDayTest.php +++ b/tests/Romania/NationalDayTest.php @@ -97,7 +97,7 @@ public function testNationalDayBefore1865() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/NewYearsDayTest.php b/tests/Romania/NewYearsDayTest.php index 120309853..30766ec45 100644 --- a/tests/Romania/NewYearsDayTest.php +++ b/tests/Romania/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/PentecostMondayTest.php b/tests/Romania/PentecostMondayTest.php index c1a28fc60..d357c06d6 100644 --- a/tests/Romania/PentecostMondayTest.php +++ b/tests/Romania/PentecostMondayTest.php @@ -66,7 +66,7 @@ public function testPentecostMondayBefore2008() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/PentecostTest.php b/tests/Romania/PentecostTest.php index 0653ba4dd..41164c5b2 100644 --- a/tests/Romania/PentecostTest.php +++ b/tests/Romania/PentecostTest.php @@ -66,7 +66,7 @@ public function testPentecostDayBefore2008() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/RomaniaTest.php b/tests/Romania/RomaniaTest.php index 38ec74512..2ecef9abc 100755 --- a/tests/Romania/RomaniaTest.php +++ b/tests/Romania/RomaniaTest.php @@ -30,7 +30,7 @@ class RomaniaTest extends RomaniaBaseTestCase * Tests if all official holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $national_holidays = [ 'newYearsDay', @@ -59,7 +59,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $ObservedHolidays = []; @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Romania/SecondChristmasDayTest.php b/tests/Romania/SecondChristmasDayTest.php index 51d203ef8..c7dacb67f 100644 --- a/tests/Romania/SecondChristmasDayTest.php +++ b/tests/Romania/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/StAndrewDayTest.php b/tests/Romania/StAndrewDayTest.php index 35c0657ff..e07e650e6 100644 --- a/tests/Romania/StAndrewDayTest.php +++ b/tests/Romania/StAndrewDayTest.php @@ -65,7 +65,7 @@ public function testStAndrewDayBefore2012() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/UnitedPrincipalitiesDayTest.php b/tests/Romania/UnitedPrincipalitiesDayTest.php index db5dad57f..efcf8d273 100644 --- a/tests/Romania/UnitedPrincipalitiesDayTest.php +++ b/tests/Romania/UnitedPrincipalitiesDayTest.php @@ -65,7 +65,7 @@ public function testUnitedPrincipalitiesDayBefore2015() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/DefenceOfTheFatherlandDayTest.php b/tests/Russia/DefenceOfTheFatherlandDayTest.php index dc24a1f57..f39bc455a 100644 --- a/tests/Russia/DefenceOfTheFatherlandDayTest.php +++ b/tests/Russia/DefenceOfTheFatherlandDayTest.php @@ -63,7 +63,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -83,7 +83,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/InternationalWomensDayTest.php b/tests/Russia/InternationalWomensDayTest.php index 9b7b0a4ee..bd1a2983e 100644 --- a/tests/Russia/InternationalWomensDayTest.php +++ b/tests/Russia/InternationalWomensDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay2Test.php b/tests/Russia/NewYearHolidaysDay2Test.php index 1046181c2..71a9580cf 100644 --- a/tests/Russia/NewYearHolidaysDay2Test.php +++ b/tests/Russia/NewYearHolidaysDay2Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay3Test.php b/tests/Russia/NewYearHolidaysDay3Test.php index c41ead1ed..7e0c11b35 100644 --- a/tests/Russia/NewYearHolidaysDay3Test.php +++ b/tests/Russia/NewYearHolidaysDay3Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay4Test.php b/tests/Russia/NewYearHolidaysDay4Test.php index cfee1b11e..f47599133 100644 --- a/tests/Russia/NewYearHolidaysDay4Test.php +++ b/tests/Russia/NewYearHolidaysDay4Test.php @@ -53,7 +53,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay5Test.php b/tests/Russia/NewYearHolidaysDay5Test.php index 2186322f8..1e40951e0 100644 --- a/tests/Russia/NewYearHolidaysDay5Test.php +++ b/tests/Russia/NewYearHolidaysDay5Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay6Test.php b/tests/Russia/NewYearHolidaysDay6Test.php index 7afe4494a..c7f9b50e2 100644 --- a/tests/Russia/NewYearHolidaysDay6Test.php +++ b/tests/Russia/NewYearHolidaysDay6Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay8Test.php b/tests/Russia/NewYearHolidaysDay8Test.php index 8adf232e0..9c87f5ba7 100644 --- a/tests/Russia/NewYearHolidaysDay8Test.php +++ b/tests/Russia/NewYearHolidaysDay8Test.php @@ -53,7 +53,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearsDayTest.php b/tests/Russia/NewYearsDayTest.php index 3121b4db7..1128da96b 100644 --- a/tests/Russia/NewYearsDayTest.php +++ b/tests/Russia/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/OrthodoxChristmasDayTest.php b/tests/Russia/OrthodoxChristmasDayTest.php index 0a0085151..9b31c8fdd 100644 --- a/tests/Russia/OrthodoxChristmasDayTest.php +++ b/tests/Russia/OrthodoxChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/RussiaDayTest.php b/tests/Russia/RussiaDayTest.php index c63445a6c..a6d37ed91 100644 --- a/tests/Russia/RussiaDayTest.php +++ b/tests/Russia/RussiaDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/RussiaTest.php b/tests/Russia/RussiaTest.php index 42cef5004..3ad00eed8 100644 --- a/tests/Russia/RussiaTest.php +++ b/tests/Russia/RussiaTest.php @@ -27,7 +27,7 @@ class RussiaTest extends RussiaBaseTestCase * Tests if all official holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -64,7 +64,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Russia/SpringAndLabourDayTest.php b/tests/Russia/SpringAndLabourDayTest.php index e0804aa47..69cdd350a 100644 --- a/tests/Russia/SpringAndLabourDayTest.php +++ b/tests/Russia/SpringAndLabourDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/UnityDayTest.php b/tests/Russia/UnityDayTest.php index c01061c95..fddd335bc 100644 --- a/tests/Russia/UnityDayTest.php +++ b/tests/Russia/UnityDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/VictoryDayTest.php b/tests/Russia/VictoryDayTest.php index 13cb67f10..e2cbd3173 100644 --- a/tests/Russia/VictoryDayTest.php +++ b/tests/Russia/VictoryDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/AllSaintsDayTest.php b/tests/Slovakia/AllSaintsDayTest.php index 75f69bf74..2431e02a4 100644 --- a/tests/Slovakia/AllSaintsDayTest.php +++ b/tests/Slovakia/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/ChristmasDayTest.php b/tests/Slovakia/ChristmasDayTest.php index 14539bb1c..af5e75da0 100644 --- a/tests/Slovakia/ChristmasDayTest.php +++ b/tests/Slovakia/ChristmasDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/ChristmasEveTest.php b/tests/Slovakia/ChristmasEveTest.php index c1073d02b..c27288545 100644 --- a/tests/Slovakia/ChristmasEveTest.php +++ b/tests/Slovakia/ChristmasEveTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Eve. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/EasterMondayTest.php b/tests/Slovakia/EasterMondayTest.php index 1bd042f9c..a73ddfb79 100644 --- a/tests/Slovakia/EasterMondayTest.php +++ b/tests/Slovakia/EasterMondayTest.php @@ -77,7 +77,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -92,7 +92,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/EpiphanyTest.php b/tests/Slovakia/EpiphanyTest.php index 1b7a32b15..8c4c1352d 100644 --- a/tests/Slovakia/EpiphanyTest.php +++ b/tests/Slovakia/EpiphanyTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/GoodFridayTest.php b/tests/Slovakia/GoodFridayTest.php index 7d3a0c5d0..9b757ab0a 100644 --- a/tests/Slovakia/GoodFridayTest.php +++ b/tests/Slovakia/GoodFridayTest.php @@ -77,7 +77,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -92,7 +92,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/InternationalWorkersDayTest.php b/tests/Slovakia/InternationalWorkersDayTest.php index 1f953dea3..de8d8d1ad 100644 --- a/tests/Slovakia/InternationalWorkersDayTest.php +++ b/tests/Slovakia/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/NewYearsDayTest.php b/tests/Slovakia/NewYearsDayTest.php index 43d17e6b8..cdaa94da2 100644 --- a/tests/Slovakia/NewYearsDayTest.php +++ b/tests/Slovakia/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/OurLadyOfSorrowsDayTest.php b/tests/Slovakia/OurLadyOfSorrowsDayTest.php index c178b778d..1758dd32f 100644 --- a/tests/Slovakia/OurLadyOfSorrowsDayTest.php +++ b/tests/Slovakia/OurLadyOfSorrowsDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php index 96b55f660..95dbeceb4 100644 --- a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/SecondChristmasDayTest.php b/tests/Slovakia/SecondChristmasDayTest.php index 589df2839..6f9f9f114 100644 --- a/tests/Slovakia/SecondChristmasDayTest.php +++ b/tests/Slovakia/SecondChristmasDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests translated name of Second Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/SlovakConstitutionDayTest.php b/tests/Slovakia/SlovakConstitutionDayTest.php index 7e191349b..02498edd5 100644 --- a/tests/Slovakia/SlovakConstitutionDayTest.php +++ b/tests/Slovakia/SlovakConstitutionDayTest.php @@ -64,7 +64,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/SlovakNationalUprisingDayTest.php b/tests/Slovakia/SlovakNationalUprisingDayTest.php index 4ff4620c2..5b21fa1b1 100644 --- a/tests/Slovakia/SlovakNationalUprisingDayTest.php +++ b/tests/Slovakia/SlovakNationalUprisingDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/SlovakiaTest.php b/tests/Slovakia/SlovakiaTest.php index ad033e992..f134c50d2 100644 --- a/tests/Slovakia/SlovakiaTest.php +++ b/tests/Slovakia/SlovakiaTest.php @@ -35,7 +35,7 @@ class SlovakiaTest extends SlovakiaBaseTestCase * Tests if all official holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all bank holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([ 'epiphany', @@ -72,7 +72,7 @@ public function testBankHolidays() * Tests if all observed holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -82,7 +82,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -92,7 +92,7 @@ public function testSeasonalHolidays() * Tests if all other holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php index bdd0a9b3f..1bf3aa96b 100644 --- a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/VictoryInEuropeDayTest.php b/tests/Slovakia/VictoryInEuropeDayTest.php index 4f3add8af..4a92c15e1 100644 --- a/tests/Slovakia/VictoryInEuropeDayTest.php +++ b/tests/Slovakia/VictoryInEuropeDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index 87a5f75b0..5ce3ba864 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index 7d4824316..8ef2c2e19 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -95,7 +95,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -109,7 +109,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index 57da49fbc..81f8acb48 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index ee1490d6d..7b7e45be9 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -95,7 +95,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -109,7 +109,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index 579f99a55..b761744f6 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index 6e18ca02b..cc9fb0e5b 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/MunicipalElections2016DayTest.php b/tests/SouthAfrica/MunicipalElections2016DayTest.php index 3ceda1b98..8276e9d3a 100644 --- a/tests/SouthAfrica/MunicipalElections2016DayTest.php +++ b/tests/SouthAfrica/MunicipalElections2016DayTest.php @@ -77,7 +77,7 @@ public function testHolidayDayAfterCompletion() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -91,7 +91,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index 34bc25ddc..690890044 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index a321e5e48..89877de56 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index 888eba4f8..d7cf225e5 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index 4e8dbeac7..5c73614bb 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/SouthAfricaTest.php b/tests/SouthAfrica/SouthAfricaTest.php index 62b990fec..263104f8b 100644 --- a/tests/SouthAfrica/SouthAfricaTest.php +++ b/tests/SouthAfrica/SouthAfricaTest.php @@ -32,7 +32,7 @@ class SouthAfricaTest extends SouthAfricaBaseTestCase * Tests if all official holidays in SouthAfrica are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = [ 'newYearsDay', @@ -61,7 +61,7 @@ public function testOfficialHolidays() * Tests if all bank holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -70,7 +70,7 @@ public function testBankHolidays() * Tests if all observed holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -79,7 +79,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -88,7 +88,7 @@ public function testSeasonalHolidays() * Tests if all other holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php index c4240ef8a..4aa10f7e2 100644 --- a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php +++ b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php @@ -77,7 +77,7 @@ public function testHolidayDayAfterCompletion() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -91,7 +91,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index 5f6f06c1f..7acfe18a8 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index 2e788fbc2..d586f1d97 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/AllSaintsDayTest.php b/tests/Spain/AllSaintsDayTest.php index a51b2a488..fe5d1de6c 100644 --- a/tests/Spain/AllSaintsDayTest.php +++ b/tests/Spain/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/Andalusia/AndalusiaDayTest.php b/tests/Spain/Andalusia/AndalusiaDayTest.php index 89cb17e00..b3eb56729 100644 --- a/tests/Spain/Andalusia/AndalusiaDayTest.php +++ b/tests/Spain/Andalusia/AndalusiaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Andalusia/AndalusiaTest.php b/tests/Spain/Andalusia/AndalusiaTest.php index c169e3f43..3ec3fcc60 100644 --- a/tests/Spain/Andalusia/AndalusiaTest.php +++ b/tests/Spain/Andalusia/AndalusiaTest.php @@ -28,7 +28,7 @@ class AndalusiaTest extends AndalusiaBaseTestCase * Tests if all official holidays in Andalusia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Aragon/AragonTest.php b/tests/Spain/Aragon/AragonTest.php index 4bdabfefb..928c7d1de 100644 --- a/tests/Spain/Aragon/AragonTest.php +++ b/tests/Spain/Aragon/AragonTest.php @@ -28,7 +28,7 @@ class AragonTest extends AragonBaseTestCase * Tests if all official holidays in Aragon (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Aragon/StGeorgesDayTest.php b/tests/Spain/Aragon/StGeorgesDayTest.php index 1b773ffc7..922ee21dd 100644 --- a/tests/Spain/Aragon/StGeorgesDayTest.php +++ b/tests/Spain/Aragon/StGeorgesDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/AssumptionOfMaryTest.php b/tests/Spain/AssumptionOfMaryTest.php index b8c7be8b6..ca52d3132 100644 --- a/tests/Spain/AssumptionOfMaryTest.php +++ b/tests/Spain/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/Asturias/AsturiasDayTest.php b/tests/Spain/Asturias/AsturiasDayTest.php index 6f7fef439..87447548e 100644 --- a/tests/Spain/Asturias/AsturiasDayTest.php +++ b/tests/Spain/Asturias/AsturiasDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Asturias/AsturiasTest.php b/tests/Spain/Asturias/AsturiasTest.php index ed82625af..d4532a20f 100644 --- a/tests/Spain/Asturias/AsturiasTest.php +++ b/tests/Spain/Asturias/AsturiasTest.php @@ -28,7 +28,7 @@ class AsturiasTest extends AsturiasBaseTestCase * Tests if all official holidays in Asturias (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php index d7026fe71..55c4e8f11 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/BalearicIslands/BalearicIslandsTest.php b/tests/Spain/BalearicIslands/BalearicIslandsTest.php index 86034ad89..8850fc865 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsTest.php @@ -28,7 +28,7 @@ class BalearicIslandsTest extends BalearicIslandsBaseTestCase * Tests if all official holidays in the Balearic Islands (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -64,7 +64,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -73,7 +73,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -82,7 +82,7 @@ public function testBankHolidays() * Tests if all other holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php index 6336cfbd8..9b65ef58b 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php @@ -79,7 +79,7 @@ public function testHolidayDayAfterAbolishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/BasqueCountry/BasqueCountryTest.php b/tests/Spain/BasqueCountry/BasqueCountryTest.php index 275e2f433..742121110 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryTest.php @@ -28,7 +28,7 @@ class BasqueCountryTest extends BasqueCountryBaseTestCase * Tests if all official holidays in Basque Country (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php index e6e1f85f1..dc1a3eb3e 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/CanaryIslands/CanaryIslandsTest.php b/tests/Spain/CanaryIslands/CanaryIslandsTest.php index 2d9cb1b3d..8ab7983a8 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsTest.php @@ -28,7 +28,7 @@ class CanaryIslandsTest extends CanaryIslandsBaseTestCase * Tests if all official holidays in the Canary Islands (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Cantabria/CantabriaDayTest.php b/tests/Spain/Cantabria/CantabriaDayTest.php index 1bffa772c..afbc24080 100644 --- a/tests/Spain/Cantabria/CantabriaDayTest.php +++ b/tests/Spain/Cantabria/CantabriaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Cantabria/CantabriaTest.php b/tests/Spain/Cantabria/CantabriaTest.php index 35080f936..ebff05205 100644 --- a/tests/Spain/Cantabria/CantabriaTest.php +++ b/tests/Spain/Cantabria/CantabriaTest.php @@ -28,7 +28,7 @@ class CantabriaTest extends CantabriaBaseTestCase * Tests if all official holidays in Cantabria (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php index da733cb8d..bed03d85b 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php index 54fd70be3..adfadbb2c 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php @@ -28,7 +28,7 @@ class CastileAndLeonTest extends CastileAndLeonBaseTestCase * Tests if all official holidays in Castile And Leon (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php index 7890200ee..df0772d0f 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php index 5e706a8fe..fe3037e7d 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php @@ -28,7 +28,7 @@ class CastillaLaManchaTest extends CastillaLaManchaBaseTestCase * Tests if all official holidays in Castilla-La Mancha (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Catalonia/CataloniaTest.php b/tests/Spain/Catalonia/CataloniaTest.php index f3bc28ae8..9880c198d 100644 --- a/tests/Spain/Catalonia/CataloniaTest.php +++ b/tests/Spain/Catalonia/CataloniaTest.php @@ -28,7 +28,7 @@ class CataloniaTest extends CataloniaBaseTestCase * Tests if all official holidays in Catalonia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'easter', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Catalonia/nationalCataloniaDayTest.php b/tests/Spain/Catalonia/nationalCataloniaDayTest.php index 292270da6..b6385f183 100644 --- a/tests/Spain/Catalonia/nationalCataloniaDayTest.php +++ b/tests/Spain/Catalonia/nationalCataloniaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Catalonia/stJohnsDayTest.php b/tests/Spain/Catalonia/stJohnsDayTest.php index 3e195ea83..75e48ebe4 100644 --- a/tests/Spain/Catalonia/stJohnsDayTest.php +++ b/tests/Spain/Catalonia/stJohnsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/Ceuta/CeutaTest.php b/tests/Spain/Ceuta/CeutaTest.php index 662a71230..cf3144196 100644 --- a/tests/Spain/Ceuta/CeutaTest.php +++ b/tests/Spain/Ceuta/CeutaTest.php @@ -28,7 +28,7 @@ class CeutaTest extends CeutaBaseTestCase * Tests if all official holidays in Ceuta (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Ceuta/ceutaDayTest.php b/tests/Spain/Ceuta/ceutaDayTest.php index 42685f227..fcae69cc9 100644 --- a/tests/Spain/Ceuta/ceutaDayTest.php +++ b/tests/Spain/Ceuta/ceutaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/ChristmasTest.php b/tests/Spain/ChristmasTest.php index 391354ee5..af54f26e8 100644 --- a/tests/Spain/ChristmasTest.php +++ b/tests/Spain/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php index c3334d308..2fe035e41 100644 --- a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php +++ b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php @@ -28,7 +28,7 @@ class CommunityOfMadridTest extends CommunityOfMadridBaseTestCase * Tests if all official holidays in the Community of Madrid (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php index 3c81e3d46..bf0b92edd 100644 --- a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php +++ b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/ConstitutionDayTest.php b/tests/Spain/ConstitutionDayTest.php index 156cde9eb..fe9cb9e73 100644 --- a/tests/Spain/ConstitutionDayTest.php +++ b/tests/Spain/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/EasterMondayTest.php b/tests/Spain/EasterMondayTest.php index 4f8adfd9b..67e990d07 100644 --- a/tests/Spain/EasterMondayTest.php +++ b/tests/Spain/EasterMondayTest.php @@ -53,7 +53,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/EpiphanyTest.php b/tests/Spain/EpiphanyTest.php index acf0f0062..23f02c78d 100644 --- a/tests/Spain/EpiphanyTest.php +++ b/tests/Spain/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/Extremadura/ExtremaduraDayTest.php b/tests/Spain/Extremadura/ExtremaduraDayTest.php index f7b503fb1..b064c2c3d 100644 --- a/tests/Spain/Extremadura/ExtremaduraDayTest.php +++ b/tests/Spain/Extremadura/ExtremaduraDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Extremadura/ExtremaduraTest.php b/tests/Spain/Extremadura/ExtremaduraTest.php index ac253fc76..e1bbfcf2e 100644 --- a/tests/Spain/Extremadura/ExtremaduraTest.php +++ b/tests/Spain/Extremadura/ExtremaduraTest.php @@ -28,7 +28,7 @@ class ExtremaduraTest extends ExtremaduraBaseTestCase * Tests if all official holidays in Extremadura (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Galicia/GaliciaTest.php b/tests/Spain/Galicia/GaliciaTest.php index 38e8af34b..9027603fd 100644 --- a/tests/Spain/Galicia/GaliciaTest.php +++ b/tests/Spain/Galicia/GaliciaTest.php @@ -28,7 +28,7 @@ class GaliciaTest extends GaliciaBaseTestCase * Tests if all official holidays in Galicia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Galicia/GalicianLiteratureDayTest.php b/tests/Spain/Galicia/GalicianLiteratureDayTest.php index fa31491c5..b1779c075 100644 --- a/tests/Spain/Galicia/GalicianLiteratureDayTest.php +++ b/tests/Spain/Galicia/GalicianLiteratureDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Galicia/stJamesDayTest.php b/tests/Spain/Galicia/stJamesDayTest.php index 6675ab411..e7a4ad630 100644 --- a/tests/Spain/Galicia/stJamesDayTest.php +++ b/tests/Spain/Galicia/stJamesDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/GoodFridayTest.php b/tests/Spain/GoodFridayTest.php index 08791a0e7..57d56a282 100644 --- a/tests/Spain/GoodFridayTest.php +++ b/tests/Spain/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/ImmaculateConceptionTest.php b/tests/Spain/ImmaculateConceptionTest.php index b7658ca68..8fe5cc655 100644 --- a/tests/Spain/ImmaculateConceptionTest.php +++ b/tests/Spain/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/InternationalWorkersDayTest.php b/tests/Spain/InternationalWorkersDayTest.php index 96b0833f3..7be3c7971 100644 --- a/tests/Spain/InternationalWorkersDayTest.php +++ b/tests/Spain/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/LaRioja/LaRiojaDayTest.php b/tests/Spain/LaRioja/LaRiojaDayTest.php index fa81e5d80..43363c26e 100644 --- a/tests/Spain/LaRioja/LaRiojaDayTest.php +++ b/tests/Spain/LaRioja/LaRiojaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/LaRioja/LaRiojaTest.php b/tests/Spain/LaRioja/LaRiojaTest.php index 4c9f881bf..9dff92452 100644 --- a/tests/Spain/LaRioja/LaRiojaTest.php +++ b/tests/Spain/LaRioja/LaRiojaTest.php @@ -28,7 +28,7 @@ class LaRiojaTest extends LaRiojaBaseTestCase * Tests if all official holidays in La Rioja (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/MaundyThursdayTest.php b/tests/Spain/MaundyThursdayTest.php index c16cc1269..ab72b930a 100644 --- a/tests/Spain/MaundyThursdayTest.php +++ b/tests/Spain/MaundyThursdayTest.php @@ -53,7 +53,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/Melilla/MelillaTest.php b/tests/Spain/Melilla/MelillaTest.php index d2a6a8eeb..eaab2d2f0 100644 --- a/tests/Spain/Melilla/MelillaTest.php +++ b/tests/Spain/Melilla/MelillaTest.php @@ -28,7 +28,7 @@ class MelillaTest extends MelillaBaseTestCase * Tests if all official holidays in Melilla (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/NationalDayTest.php b/tests/Spain/NationalDayTest.php index 915071742..dcf03f8a0 100644 --- a/tests/Spain/NationalDayTest.php +++ b/tests/Spain/NationalDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Navarre/NavarreTest.php b/tests/Spain/Navarre/NavarreTest.php index 05404144e..080f68977 100644 --- a/tests/Spain/Navarre/NavarreTest.php +++ b/tests/Spain/Navarre/NavarreTest.php @@ -28,7 +28,7 @@ class NavarreTest extends NavarreBaseTestCase * Tests if all official holidays in Navarre (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/NewYearsDayTest.php b/tests/Spain/NewYearsDayTest.php index 849465294..4475813e8 100644 --- a/tests/Spain/NewYearsDayTest.php +++ b/tests/Spain/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php index d1796570f..8be0e5335 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php index 1fd3e7c5f..b462ff338 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php @@ -28,7 +28,7 @@ class RegionOfMurciaTest extends RegionOfMurciaBaseTestCase * Tests if all official holidays in the Region of Murcia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/SpainTest.php b/tests/Spain/SpainTest.php index bd1c4a446..e6ac37ac7 100644 --- a/tests/Spain/SpainTest.php +++ b/tests/Spain/SpainTest.php @@ -28,7 +28,7 @@ class SpainTest extends SpainBaseTestCase * Tests if all official holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['easter'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -66,7 +66,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -75,7 +75,7 @@ public function testBankHolidays() * Tests if all other holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php index 92e813b31..ae431eccb 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php index 886108b5b..16ee3f717 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php @@ -28,7 +28,7 @@ class ValencianCommunityTest extends ValencianCommunityBaseTestCase * Tests if all official holidays in the Valencian Community (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/ValentinesDayTest.php b/tests/Spain/ValentinesDayTest.php index a445a25da..64f3f128a 100644 --- a/tests/Spain/ValentinesDayTest.php +++ b/tests/Spain/ValentinesDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Spain/stJosephsDayTest.php b/tests/Spain/stJosephsDayTest.php index f789d18e1..0e82eecf8 100644 --- a/tests/Spain/stJosephsDayTest.php +++ b/tests/Spain/stJosephsDayTest.php @@ -62,7 +62,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Sweden/AllSaintsDayTest.php b/tests/Sweden/AllSaintsDayTest.php index c82b0c820..f53e8cf12 100644 --- a/tests/Sweden/AllSaintsDayTest.php +++ b/tests/Sweden/AllSaintsDayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/AscensionDayTest.php b/tests/Sweden/AscensionDayTest.php index f7d0cf23d..983b419e9 100644 --- a/tests/Sweden/AscensionDayTest.php +++ b/tests/Sweden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/ChristmasDayTest.php b/tests/Sweden/ChristmasDayTest.php index 9667ce598..1d98ea646 100644 --- a/tests/Sweden/ChristmasDayTest.php +++ b/tests/Sweden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/ChristmasEveTest.php b/tests/Sweden/ChristmasEveTest.php index 47c4c0b27..d0c7eb967 100644 --- a/tests/Sweden/ChristmasEveTest.php +++ b/tests/Sweden/ChristmasEveTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/EasterMondayTest.php b/tests/Sweden/EasterMondayTest.php index 069dac480..92c9d53ea 100644 --- a/tests/Sweden/EasterMondayTest.php +++ b/tests/Sweden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/EasterTest.php b/tests/Sweden/EasterTest.php index 9f0b1c368..7e4265e3f 100644 --- a/tests/Sweden/EasterTest.php +++ b/tests/Sweden/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/EpiphanyTest.php b/tests/Sweden/EpiphanyTest.php index 9788a2f58..1547e9fee 100644 --- a/tests/Sweden/EpiphanyTest.php +++ b/tests/Sweden/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/GoodFridayTest.php b/tests/Sweden/GoodFridayTest.php index 8edc23227..3f8d993f4 100644 --- a/tests/Sweden/GoodFridayTest.php +++ b/tests/Sweden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/InternationalWorkersDayTest.php b/tests/Sweden/InternationalWorkersDayTest.php index ebb175857..8ec4003ee 100644 --- a/tests/Sweden/InternationalWorkersDayTest.php +++ b/tests/Sweden/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/NationalDayTest.php b/tests/Sweden/NationalDayTest.php index 9f73c9bf6..59b93a054 100644 --- a/tests/Sweden/NationalDayTest.php +++ b/tests/Sweden/NationalDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test on or after establishment. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Sweden/NewYearsDayTest.php b/tests/Sweden/NewYearsDayTest.php index 65ccdd817..f87db7cf8 100644 --- a/tests/Sweden/NewYearsDayTest.php +++ b/tests/Sweden/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/PentecostTest.php b/tests/Sweden/PentecostTest.php index a02769401..57c62dbca 100644 --- a/tests/Sweden/PentecostTest.php +++ b/tests/Sweden/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/SecondChristmasDayTest.php b/tests/Sweden/SecondChristmasDayTest.php index 64b697a32..967d5aa9f 100644 --- a/tests/Sweden/SecondChristmasDayTest.php +++ b/tests/Sweden/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/SwedenTest.php b/tests/Sweden/SwedenTest.php index 7b647c96f..a9b56c57b 100644 --- a/tests/Sweden/SwedenTest.php +++ b/tests/Sweden/SwedenTest.php @@ -28,7 +28,7 @@ class SwedenTest extends SwedenBaseTestCase * Tests if all official holidays in Sweden (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -52,7 +52,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Sweden/stJohnsDayTest.php b/tests/Sweden/stJohnsDayTest.php index e73c65ba0..b70c108c5 100644 --- a/tests/Sweden/stJohnsDayTest.php +++ b/tests/Sweden/stJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Switzerland/Aargau/AargauTest.php b/tests/Switzerland/Aargau/AargauTest.php index b87426e67..01df0d9ad 100644 --- a/tests/Switzerland/Aargau/AargauTest.php +++ b/tests/Switzerland/Aargau/AargauTest.php @@ -29,7 +29,7 @@ class AargauTest extends AargauBaseTestCase * * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -43,7 +43,7 @@ public function testOfficialHolidays() * * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -58,7 +58,7 @@ public function testRegionalHolidays() * * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -93,7 +93,7 @@ public function testBankHolidays() * * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/AscensionDayTest.php b/tests/Switzerland/Aargau/AscensionDayTest.php index e7695b1e1..68f596701 100644 --- a/tests/Switzerland/Aargau/AscensionDayTest.php +++ b/tests/Switzerland/Aargau/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/ChristmasDayTest.php b/tests/Switzerland/Aargau/ChristmasDayTest.php index 6bbb3caa4..c63e6c89a 100644 --- a/tests/Switzerland/Aargau/ChristmasDayTest.php +++ b/tests/Switzerland/Aargau/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/GoodFridayTest.php b/tests/Switzerland/Aargau/GoodFridayTest.php index e2dd3f071..d5fdc92a8 100644 --- a/tests/Switzerland/Aargau/GoodFridayTest.php +++ b/tests/Switzerland/Aargau/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/NewYearsDayTest.php b/tests/Switzerland/Aargau/NewYearsDayTest.php index 5c6a006bb..fd9a6118c 100644 --- a/tests/Switzerland/Aargau/NewYearsDayTest.php +++ b/tests/Switzerland/Aargau/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php index 6c1468fb8..657bed6bb 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php @@ -28,7 +28,7 @@ class AppenzellAusserrhodenTest extends AppenzellAusserrhodenBaseTestCase * Tests if all official holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -58,7 +58,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -72,7 +72,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -81,7 +81,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -90,7 +90,7 @@ public function testBankHolidays() * Tests if all other holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php index 651fc4155..b4d50a241 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php index f13038fd6..5c9e93b8f 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php index c8ced3eef..2a7d584ac 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php index 6e1d71e56..842e71428 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php index 7548c3caa..584b3962f 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php index 474cb9ef2..73e288d44 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php index b563b2f83..a841297bf 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php index 21b7102bb..8bfb8ce38 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php index f736053a5..af30e4757 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php @@ -28,7 +28,7 @@ class AppenzellInnerrhodenTest extends AppenzellInnerrhodenBaseTestCase * Tests if all official holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -62,7 +62,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -76,7 +76,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -85,7 +85,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -94,7 +94,7 @@ public function testBankHolidays() * Tests if all other holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php index d89c152d4..599e704e5 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php index ee7d084ee..29a0bad27 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php index 01cfed204..b4f6023c1 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php index 456e0664c..3ee8a5d31 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php index 1aa38237e..bbfa64464 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php index ae145a7b8..662677557 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php index 5b4003554..f88f023f6 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php index 6728fd23d..b2a0b9ba3 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php index f6c1564b2..e70729a20 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php index a4f0cfb72..b25e3c361 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php index bc56329a3..43548e229 100644 --- a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php +++ b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php index 2c8b84b9d..88f245081 100644 --- a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php +++ b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php @@ -28,7 +28,7 @@ class BaselLandschaftTest extends BaselLandschaftBaseTestCase * Tests if all official holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php index c1cdde48f..8fca557d6 100644 --- a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php +++ b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php index 535535c59..e183c74ab 100644 --- a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php index cbcb51cf2..af822c9af 100644 --- a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php +++ b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php index 70ad9c9a7..675ce200e 100644 --- a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php +++ b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php index 7d55323df..ba42f5336 100644 --- a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php index b800b2fdf..280a1271f 100644 --- a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php +++ b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index 7eb816f4a..14b758716 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/AscensionDayTest.php b/tests/Switzerland/BaselStadt/AscensionDayTest.php index fc16f6622..26ba32905 100644 --- a/tests/Switzerland/BaselStadt/AscensionDayTest.php +++ b/tests/Switzerland/BaselStadt/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/BaselStadtTest.php b/tests/Switzerland/BaselStadt/BaselStadtTest.php index b6627783f..b0c82a2f4 100644 --- a/tests/Switzerland/BaselStadt/BaselStadtTest.php +++ b/tests/Switzerland/BaselStadt/BaselStadtTest.php @@ -28,7 +28,7 @@ class BaselStadtTest extends BaselStadtBaseTestCase * Tests if all official holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/ChristmasDayTest.php b/tests/Switzerland/BaselStadt/ChristmasDayTest.php index 6908a0437..e0c89c661 100644 --- a/tests/Switzerland/BaselStadt/ChristmasDayTest.php +++ b/tests/Switzerland/BaselStadt/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/EasterMondayTest.php b/tests/Switzerland/BaselStadt/EasterMondayTest.php index ecba180f1..c673dff22 100644 --- a/tests/Switzerland/BaselStadt/EasterMondayTest.php +++ b/tests/Switzerland/BaselStadt/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/GoodFridayTest.php b/tests/Switzerland/BaselStadt/GoodFridayTest.php index 5782affb7..63da9fc6e 100644 --- a/tests/Switzerland/BaselStadt/GoodFridayTest.php +++ b/tests/Switzerland/BaselStadt/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/NewYearsDayTest.php b/tests/Switzerland/BaselStadt/NewYearsDayTest.php index b59c3e0e0..772db2b7b 100644 --- a/tests/Switzerland/BaselStadt/NewYearsDayTest.php +++ b/tests/Switzerland/BaselStadt/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/PentecostMondayTest.php b/tests/Switzerland/BaselStadt/PentecostMondayTest.php index 12db2c595..342f3799b 100644 --- a/tests/Switzerland/BaselStadt/PentecostMondayTest.php +++ b/tests/Switzerland/BaselStadt/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/StStephensDayTest.php b/tests/Switzerland/BaselStadt/StStephensDayTest.php index 98f52abcd..2fdfcd171 100644 --- a/tests/Switzerland/BaselStadt/StStephensDayTest.php +++ b/tests/Switzerland/BaselStadt/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index 02e19fde3..be327dde3 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/AscensionDayTest.php b/tests/Switzerland/Bern/AscensionDayTest.php index d5fbe4516..b9008a546 100644 --- a/tests/Switzerland/Bern/AscensionDayTest.php +++ b/tests/Switzerland/Bern/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/BerchtoldsTagTest.php b/tests/Switzerland/Bern/BerchtoldsTagTest.php index 3cc47b734..1c895eeed 100644 --- a/tests/Switzerland/Bern/BerchtoldsTagTest.php +++ b/tests/Switzerland/Bern/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/BernTest.php b/tests/Switzerland/Bern/BernTest.php index 7a12411b7..4d2efd5a6 100644 --- a/tests/Switzerland/Bern/BernTest.php +++ b/tests/Switzerland/Bern/BernTest.php @@ -28,7 +28,7 @@ class BernTest extends BernBaseTestCase * Tests if all official holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/ChristmasDayTest.php b/tests/Switzerland/Bern/ChristmasDayTest.php index 5dbd59fbb..d95cbea52 100644 --- a/tests/Switzerland/Bern/ChristmasDayTest.php +++ b/tests/Switzerland/Bern/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/EasterMondayTest.php b/tests/Switzerland/Bern/EasterMondayTest.php index f49b897bc..04e38a5b9 100644 --- a/tests/Switzerland/Bern/EasterMondayTest.php +++ b/tests/Switzerland/Bern/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/GoodFridayTest.php b/tests/Switzerland/Bern/GoodFridayTest.php index 5c46fcc65..28c887ead 100644 --- a/tests/Switzerland/Bern/GoodFridayTest.php +++ b/tests/Switzerland/Bern/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/NewYearsDayTest.php b/tests/Switzerland/Bern/NewYearsDayTest.php index 3bcbe7251..03b8cddc5 100644 --- a/tests/Switzerland/Bern/NewYearsDayTest.php +++ b/tests/Switzerland/Bern/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/PentecostMondayTest.php b/tests/Switzerland/Bern/PentecostMondayTest.php index a460991fd..ed11bd0ac 100644 --- a/tests/Switzerland/Bern/PentecostMondayTest.php +++ b/tests/Switzerland/Bern/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/StStephensDayTest.php b/tests/Switzerland/Bern/StStephensDayTest.php index ba5175071..9fc26b02d 100644 --- a/tests/Switzerland/Bern/StStephensDayTest.php +++ b/tests/Switzerland/Bern/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/AscensionDayTest.php b/tests/Switzerland/Fribourg/AscensionDayTest.php index 68adc0cf0..0d1414cac 100644 --- a/tests/Switzerland/Fribourg/AscensionDayTest.php +++ b/tests/Switzerland/Fribourg/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/ChristmasDayTest.php b/tests/Switzerland/Fribourg/ChristmasDayTest.php index a48cf9d02..be07daa19 100644 --- a/tests/Switzerland/Fribourg/ChristmasDayTest.php +++ b/tests/Switzerland/Fribourg/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/EasterMondayTest.php b/tests/Switzerland/Fribourg/EasterMondayTest.php index d552e1eb3..c8dd5fe95 100644 --- a/tests/Switzerland/Fribourg/EasterMondayTest.php +++ b/tests/Switzerland/Fribourg/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/FribourgTest.php b/tests/Switzerland/Fribourg/FribourgTest.php index d6ed75cd0..da67975a6 100644 --- a/tests/Switzerland/Fribourg/FribourgTest.php +++ b/tests/Switzerland/Fribourg/FribourgTest.php @@ -28,7 +28,7 @@ class FribourgTest extends FribourgBaseTestCase * Tests if all official holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -57,7 +57,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -71,7 +71,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -80,7 +80,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -89,7 +89,7 @@ public function testBankHolidays() * Tests if all other holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/GoodFridayTest.php b/tests/Switzerland/Fribourg/GoodFridayTest.php index 95372dd81..3a7455cd8 100644 --- a/tests/Switzerland/Fribourg/GoodFridayTest.php +++ b/tests/Switzerland/Fribourg/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/NewYearsDayTest.php b/tests/Switzerland/Fribourg/NewYearsDayTest.php index 4e375d646..a6b28e393 100644 --- a/tests/Switzerland/Fribourg/NewYearsDayTest.php +++ b/tests/Switzerland/Fribourg/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/PentecostMondayTest.php b/tests/Switzerland/Fribourg/PentecostMondayTest.php index 1ebf515da..682f5a393 100644 --- a/tests/Switzerland/Fribourg/PentecostMondayTest.php +++ b/tests/Switzerland/Fribourg/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/AscensionDayTest.php b/tests/Switzerland/Geneva/AscensionDayTest.php index 57374751f..1b7693bec 100644 --- a/tests/Switzerland/Geneva/AscensionDayTest.php +++ b/tests/Switzerland/Geneva/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/ChristmasDayTest.php b/tests/Switzerland/Geneva/ChristmasDayTest.php index 662dae545..60fc758b2 100644 --- a/tests/Switzerland/Geneva/ChristmasDayTest.php +++ b/tests/Switzerland/Geneva/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/EasterMondayTest.php b/tests/Switzerland/Geneva/EasterMondayTest.php index 3c231b411..d6756cf64 100644 --- a/tests/Switzerland/Geneva/EasterMondayTest.php +++ b/tests/Switzerland/Geneva/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/GenevaTest.php b/tests/Switzerland/Geneva/GenevaTest.php index e73618690..693db8309 100644 --- a/tests/Switzerland/Geneva/GenevaTest.php +++ b/tests/Switzerland/Geneva/GenevaTest.php @@ -28,7 +28,7 @@ class GenevaTest extends GenevaBaseTestCase * Tests if all official holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $regionalHolidays = [ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -81,7 +81,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -90,7 +90,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -99,7 +99,7 @@ public function testBankHolidays() * Tests if all other holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $otherHolidays = []; if (($this->year >= 1840 && $this->year <= 1869) || $this->year >= 1966) { diff --git a/tests/Switzerland/Geneva/GoodFridayTest.php b/tests/Switzerland/Geneva/GoodFridayTest.php index 93951d4b7..15fa98fd2 100644 --- a/tests/Switzerland/Geneva/GoodFridayTest.php +++ b/tests/Switzerland/Geneva/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/JeuneGenevoisTest.php b/tests/Switzerland/Geneva/JeuneGenevoisTest.php index aac904e1a..5dcc25ce6 100644 --- a/tests/Switzerland/Geneva/JeuneGenevoisTest.php +++ b/tests/Switzerland/Geneva/JeuneGenevoisTest.php @@ -96,7 +96,7 @@ public function testJeuneGenevoisBefore1840() * Tests translated name of Jeune Genevois. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1966), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/NewYearsDayTest.php b/tests/Switzerland/Geneva/NewYearsDayTest.php index ccb31f85a..5314017e0 100644 --- a/tests/Switzerland/Geneva/NewYearsDayTest.php +++ b/tests/Switzerland/Geneva/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/PentecostMondayTest.php b/tests/Switzerland/Geneva/PentecostMondayTest.php index a9b29d650..ce1d8d0cf 100644 --- a/tests/Switzerland/Geneva/PentecostMondayTest.php +++ b/tests/Switzerland/Geneva/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php index 70cf8ce02..84e07713f 100644 --- a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php +++ b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php @@ -48,7 +48,7 @@ public function testRestaurationGenevoiseAfter1813() * Tests translated name of Restauration Genevoise. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1814), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/AllSaintsDayTest.php b/tests/Switzerland/Glarus/AllSaintsDayTest.php index f061c17d4..337400a3d 100644 --- a/tests/Switzerland/Glarus/AllSaintsDayTest.php +++ b/tests/Switzerland/Glarus/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/AscensionDayTest.php b/tests/Switzerland/Glarus/AscensionDayTest.php index 88b7a9ff0..de0701ebf 100644 --- a/tests/Switzerland/Glarus/AscensionDayTest.php +++ b/tests/Switzerland/Glarus/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/BerchtoldsTagTest.php b/tests/Switzerland/Glarus/BerchtoldsTagTest.php index 4b89c77fd..33fb69dff 100644 --- a/tests/Switzerland/Glarus/BerchtoldsTagTest.php +++ b/tests/Switzerland/Glarus/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/ChristmasDayTest.php b/tests/Switzerland/Glarus/ChristmasDayTest.php index 87e77a935..d3e0df6bd 100644 --- a/tests/Switzerland/Glarus/ChristmasDayTest.php +++ b/tests/Switzerland/Glarus/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/EasterMondayTest.php b/tests/Switzerland/Glarus/EasterMondayTest.php index ad6e30fc3..ba5155acf 100644 --- a/tests/Switzerland/Glarus/EasterMondayTest.php +++ b/tests/Switzerland/Glarus/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/GlarusTest.php b/tests/Switzerland/Glarus/GlarusTest.php index de96c63c1..fba0312a6 100644 --- a/tests/Switzerland/Glarus/GlarusTest.php +++ b/tests/Switzerland/Glarus/GlarusTest.php @@ -28,7 +28,7 @@ class GlarusTest extends GlarusBaseTestCase * Tests if all official holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -61,7 +61,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -75,7 +75,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -84,7 +84,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -93,7 +93,7 @@ public function testBankHolidays() * Tests if all other holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/GoodFridayTest.php b/tests/Switzerland/Glarus/GoodFridayTest.php index 95a3ec5d7..587fe53e3 100644 --- a/tests/Switzerland/Glarus/GoodFridayTest.php +++ b/tests/Switzerland/Glarus/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/NafelserFahrtTest.php b/tests/Switzerland/Glarus/NafelserFahrtTest.php index 30cef80a9..0f1ff6255 100644 --- a/tests/Switzerland/Glarus/NafelserFahrtTest.php +++ b/tests/Switzerland/Glarus/NafelserFahrtTest.php @@ -59,7 +59,7 @@ public function testNafelserFahrtBefore1389() * Tests translated name of Näfelser Fahrt. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -73,7 +73,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/Glarus/NewYearsDayTest.php b/tests/Switzerland/Glarus/NewYearsDayTest.php index b00ce666b..915c4f1d1 100644 --- a/tests/Switzerland/Glarus/NewYearsDayTest.php +++ b/tests/Switzerland/Glarus/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/PentecostMondayTest.php b/tests/Switzerland/Glarus/PentecostMondayTest.php index 102c7bd13..bab326a1a 100644 --- a/tests/Switzerland/Glarus/PentecostMondayTest.php +++ b/tests/Switzerland/Glarus/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/StStephensDayTest.php b/tests/Switzerland/Glarus/StStephensDayTest.php index 7a373ba10..46d666862 100644 --- a/tests/Switzerland/Glarus/StStephensDayTest.php +++ b/tests/Switzerland/Glarus/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/AscensionDayTest.php b/tests/Switzerland/Grisons/AscensionDayTest.php index 5c41e05df..3702675d7 100644 --- a/tests/Switzerland/Grisons/AscensionDayTest.php +++ b/tests/Switzerland/Grisons/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/ChristmasDayTest.php b/tests/Switzerland/Grisons/ChristmasDayTest.php index 6ec5a407d..753da15ca 100644 --- a/tests/Switzerland/Grisons/ChristmasDayTest.php +++ b/tests/Switzerland/Grisons/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/EasterMondayTest.php b/tests/Switzerland/Grisons/EasterMondayTest.php index e26ca60ee..2b61b1490 100644 --- a/tests/Switzerland/Grisons/EasterMondayTest.php +++ b/tests/Switzerland/Grisons/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/GoodFridayTest.php b/tests/Switzerland/Grisons/GoodFridayTest.php index fea763292..6b88ac619 100644 --- a/tests/Switzerland/Grisons/GoodFridayTest.php +++ b/tests/Switzerland/Grisons/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/GrisonsTest.php b/tests/Switzerland/Grisons/GrisonsTest.php index 235dd9570..4ac400833 100644 --- a/tests/Switzerland/Grisons/GrisonsTest.php +++ b/tests/Switzerland/Grisons/GrisonsTest.php @@ -28,7 +28,7 @@ class GrisonsTest extends GrisonsBaseTestCase * Tests if all official holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -58,7 +58,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -72,7 +72,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -81,7 +81,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -90,7 +90,7 @@ public function testBankHolidays() * Tests if all other holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/NewYearsDayTest.php b/tests/Switzerland/Grisons/NewYearsDayTest.php index 19536dbc4..bc4079d29 100644 --- a/tests/Switzerland/Grisons/NewYearsDayTest.php +++ b/tests/Switzerland/Grisons/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/PentecostMondayTest.php b/tests/Switzerland/Grisons/PentecostMondayTest.php index d087d19b3..0a13bf1a2 100644 --- a/tests/Switzerland/Grisons/PentecostMondayTest.php +++ b/tests/Switzerland/Grisons/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/StStephensDayTest.php b/tests/Switzerland/Grisons/StStephensDayTest.php index 970b65a60..a6f8ec8c0 100644 --- a/tests/Switzerland/Grisons/StStephensDayTest.php +++ b/tests/Switzerland/Grisons/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/AllSaintsDayTest.php b/tests/Switzerland/Jura/AllSaintsDayTest.php index c10e1dcd6..541ffc4ee 100644 --- a/tests/Switzerland/Jura/AllSaintsDayTest.php +++ b/tests/Switzerland/Jura/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/AscensionDayTest.php b/tests/Switzerland/Jura/AscensionDayTest.php index fbeefe7ed..fa9a5e342 100644 --- a/tests/Switzerland/Jura/AscensionDayTest.php +++ b/tests/Switzerland/Jura/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/AssumptionOfMaryTest.php b/tests/Switzerland/Jura/AssumptionOfMaryTest.php index 6974626f0..ee32521bd 100644 --- a/tests/Switzerland/Jura/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Jura/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/BerchtoldsTagTest.php b/tests/Switzerland/Jura/BerchtoldsTagTest.php index 911dec844..8df4b3343 100644 --- a/tests/Switzerland/Jura/BerchtoldsTagTest.php +++ b/tests/Switzerland/Jura/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/ChristmasDayTest.php b/tests/Switzerland/Jura/ChristmasDayTest.php index eed3e80eb..aff31ae7c 100644 --- a/tests/Switzerland/Jura/ChristmasDayTest.php +++ b/tests/Switzerland/Jura/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/CorpusChristiTest.php b/tests/Switzerland/Jura/CorpusChristiTest.php index b336b59ce..096750be7 100644 --- a/tests/Switzerland/Jura/CorpusChristiTest.php +++ b/tests/Switzerland/Jura/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/EasterMondayTest.php b/tests/Switzerland/Jura/EasterMondayTest.php index e98113350..b3ceb36c3 100644 --- a/tests/Switzerland/Jura/EasterMondayTest.php +++ b/tests/Switzerland/Jura/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/GoodFridayTest.php b/tests/Switzerland/Jura/GoodFridayTest.php index 8e54d7676..5b41e66b0 100644 --- a/tests/Switzerland/Jura/GoodFridayTest.php +++ b/tests/Switzerland/Jura/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/JuraTest.php b/tests/Switzerland/Jura/JuraTest.php index e5918343e..ee7ca33b1 100644 --- a/tests/Switzerland/Jura/JuraTest.php +++ b/tests/Switzerland/Jura/JuraTest.php @@ -28,7 +28,7 @@ class JuraTest extends JuraBaseTestCase * Tests if all official holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/NewYearsDayTest.php b/tests/Switzerland/Jura/NewYearsDayTest.php index d3b851d52..017e2a4b2 100644 --- a/tests/Switzerland/Jura/NewYearsDayTest.php +++ b/tests/Switzerland/Jura/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/PentecostMondayTest.php b/tests/Switzerland/Jura/PentecostMondayTest.php index f3f3a936d..62fc84892 100644 --- a/tests/Switzerland/Jura/PentecostMondayTest.php +++ b/tests/Switzerland/Jura/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/PlebisciteJurassienTest.php b/tests/Switzerland/Jura/PlebisciteJurassienTest.php index 689b1ed7b..bbe904701 100644 --- a/tests/Switzerland/Jura/PlebisciteJurassienTest.php +++ b/tests/Switzerland/Jura/PlebisciteJurassienTest.php @@ -65,7 +65,7 @@ public function testInstaurationRepubliqueBefore1975() * Tests translated name of Plébiscite jurassien. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index 3cce40ece..7a6ed5708 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/AllSaintsDayTest.php b/tests/Switzerland/Lucerne/AllSaintsDayTest.php index 5737059e0..4e1d37d98 100644 --- a/tests/Switzerland/Lucerne/AllSaintsDayTest.php +++ b/tests/Switzerland/Lucerne/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/AscensionDayTest.php b/tests/Switzerland/Lucerne/AscensionDayTest.php index 202e599ae..b1bce4638 100644 --- a/tests/Switzerland/Lucerne/AscensionDayTest.php +++ b/tests/Switzerland/Lucerne/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php index c0b2a7334..bc2adedd1 100644 --- a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php index f0e00fa05..cfeb8b86c 100644 --- a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php +++ b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/ChristmasDayTest.php b/tests/Switzerland/Lucerne/ChristmasDayTest.php index d34f83247..83681619b 100644 --- a/tests/Switzerland/Lucerne/ChristmasDayTest.php +++ b/tests/Switzerland/Lucerne/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/CorpusChristiTest.php b/tests/Switzerland/Lucerne/CorpusChristiTest.php index 97594037f..dea7e1285 100644 --- a/tests/Switzerland/Lucerne/CorpusChristiTest.php +++ b/tests/Switzerland/Lucerne/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/EasterMondayTest.php b/tests/Switzerland/Lucerne/EasterMondayTest.php index 8040677c4..dde3582a2 100644 --- a/tests/Switzerland/Lucerne/EasterMondayTest.php +++ b/tests/Switzerland/Lucerne/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/GoodFridayTest.php b/tests/Switzerland/Lucerne/GoodFridayTest.php index 6a5958c94..4dd256572 100644 --- a/tests/Switzerland/Lucerne/GoodFridayTest.php +++ b/tests/Switzerland/Lucerne/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php index 2b704a5aa..0eab721c1 100644 --- a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/LucerneTest.php b/tests/Switzerland/Lucerne/LucerneTest.php index 6300fc8bb..947429551 100644 --- a/tests/Switzerland/Lucerne/LucerneTest.php +++ b/tests/Switzerland/Lucerne/LucerneTest.php @@ -28,7 +28,7 @@ class LucerneTest extends LucerneBaseTestCase * Tests if all official holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/NewYearsDayTest.php b/tests/Switzerland/Lucerne/NewYearsDayTest.php index 9c0cc60ef..eee351c8f 100644 --- a/tests/Switzerland/Lucerne/NewYearsDayTest.php +++ b/tests/Switzerland/Lucerne/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/PentecostMondayTest.php b/tests/Switzerland/Lucerne/PentecostMondayTest.php index 06dfec57b..990b5f904 100644 --- a/tests/Switzerland/Lucerne/PentecostMondayTest.php +++ b/tests/Switzerland/Lucerne/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/StStephensDayTest.php b/tests/Switzerland/Lucerne/StStephensDayTest.php index ec1a5ecbf..3d6dfff95 100644 --- a/tests/Switzerland/Lucerne/StStephensDayTest.php +++ b/tests/Switzerland/Lucerne/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/AscensionDayTest.php b/tests/Switzerland/Neuchatel/AscensionDayTest.php index 48a2dd3c6..d68e10e89 100644 --- a/tests/Switzerland/Neuchatel/AscensionDayTest.php +++ b/tests/Switzerland/Neuchatel/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php index 6ad9206c9..51d1ee60b 100644 --- a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php +++ b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/BettagsMontagTest.php b/tests/Switzerland/Neuchatel/BettagsMontagTest.php index 2b964d55d..aed0f2650 100644 --- a/tests/Switzerland/Neuchatel/BettagsMontagTest.php +++ b/tests/Switzerland/Neuchatel/BettagsMontagTest.php @@ -60,7 +60,7 @@ public function testBettagsMontagBefore1832() * Tests translated name of Bettags Montag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1900), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/ChristmasDayTest.php b/tests/Switzerland/Neuchatel/ChristmasDayTest.php index 9faf4a56d..0b679cc59 100644 --- a/tests/Switzerland/Neuchatel/ChristmasDayTest.php +++ b/tests/Switzerland/Neuchatel/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/EasterMondayTest.php b/tests/Switzerland/Neuchatel/EasterMondayTest.php index e06d9dbe9..9b59bc15e 100644 --- a/tests/Switzerland/Neuchatel/EasterMondayTest.php +++ b/tests/Switzerland/Neuchatel/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/GoodFridayTest.php b/tests/Switzerland/Neuchatel/GoodFridayTest.php index a42788411..86cd6135e 100644 --- a/tests/Switzerland/Neuchatel/GoodFridayTest.php +++ b/tests/Switzerland/Neuchatel/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php index d1a014442..258385937 100644 --- a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php +++ b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php @@ -65,7 +65,7 @@ public function testInstaurationRepubliqueBefore1849() * Tests translated name of Instauration de la République. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/Neuchatel/NeuchatelTest.php b/tests/Switzerland/Neuchatel/NeuchatelTest.php index 5b78fc9ca..46c5f75f5 100644 --- a/tests/Switzerland/Neuchatel/NeuchatelTest.php +++ b/tests/Switzerland/Neuchatel/NeuchatelTest.php @@ -28,7 +28,7 @@ class NeuchatelTest extends NeuchatelBaseTestCase * Tests if all official holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -61,7 +61,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -75,7 +75,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -84,7 +84,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -93,7 +93,7 @@ public function testBankHolidays() * Tests if all other holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/NewYearsDayTest.php b/tests/Switzerland/Neuchatel/NewYearsDayTest.php index 10e8f98ba..efd18d79b 100644 --- a/tests/Switzerland/Neuchatel/NewYearsDayTest.php +++ b/tests/Switzerland/Neuchatel/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/PentecostMondayTest.php b/tests/Switzerland/Neuchatel/PentecostMondayTest.php index 57dfa5b16..5304750f9 100644 --- a/tests/Switzerland/Neuchatel/PentecostMondayTest.php +++ b/tests/Switzerland/Neuchatel/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index 4d9b90ca1..d1106f94f 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php index 95aaf8909..fb2fb6643 100644 --- a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/AscensionDayTest.php b/tests/Switzerland/Nidwalden/AscensionDayTest.php index 7551e8cdf..4dcb85569 100644 --- a/tests/Switzerland/Nidwalden/AscensionDayTest.php +++ b/tests/Switzerland/Nidwalden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php index 5ebf2c09c..0b4138cb5 100644 --- a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/ChristmasDayTest.php b/tests/Switzerland/Nidwalden/ChristmasDayTest.php index cf468011e..025a37302 100644 --- a/tests/Switzerland/Nidwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Nidwalden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/CorpusChristiTest.php b/tests/Switzerland/Nidwalden/CorpusChristiTest.php index 135aba0bf..a97cda2e6 100644 --- a/tests/Switzerland/Nidwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Nidwalden/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/EasterMondayTest.php b/tests/Switzerland/Nidwalden/EasterMondayTest.php index 046be156b..ab15cc62c 100644 --- a/tests/Switzerland/Nidwalden/EasterMondayTest.php +++ b/tests/Switzerland/Nidwalden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/GoodFridayTest.php b/tests/Switzerland/Nidwalden/GoodFridayTest.php index b496142bb..8fbbf2880 100644 --- a/tests/Switzerland/Nidwalden/GoodFridayTest.php +++ b/tests/Switzerland/Nidwalden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php index 0a84657df..c8af8ea48 100644 --- a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/NewYearsDayTest.php b/tests/Switzerland/Nidwalden/NewYearsDayTest.php index 38a9d8506..1680220a9 100644 --- a/tests/Switzerland/Nidwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Nidwalden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/NidwaldenTest.php b/tests/Switzerland/Nidwalden/NidwaldenTest.php index 19fc4894c..5805ccbbf 100644 --- a/tests/Switzerland/Nidwalden/NidwaldenTest.php +++ b/tests/Switzerland/Nidwalden/NidwaldenTest.php @@ -28,7 +28,7 @@ class NidwaldenTest extends NidwaldenBaseTestCase * Tests if all official holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/PentecostMondayTest.php b/tests/Switzerland/Nidwalden/PentecostMondayTest.php index d8c41b2e7..bd2510749 100644 --- a/tests/Switzerland/Nidwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Nidwalden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index c68ab2b53..7f7827a82 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/StStephensDayTest.php b/tests/Switzerland/Nidwalden/StStephensDayTest.php index b83e19819..3442684aa 100644 --- a/tests/Switzerland/Nidwalden/StStephensDayTest.php +++ b/tests/Switzerland/Nidwalden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/AllSaintsDayTest.php b/tests/Switzerland/Obwalden/AllSaintsDayTest.php index 05b5ddbda..439286f8b 100644 --- a/tests/Switzerland/Obwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Obwalden/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/AscensionDayTest.php b/tests/Switzerland/Obwalden/AscensionDayTest.php index 024e594aa..ac021274a 100644 --- a/tests/Switzerland/Obwalden/AscensionDayTest.php +++ b/tests/Switzerland/Obwalden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php index 19040539d..3e64b2056 100644 --- a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php index e57a327b5..1239edc29 100644 --- a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php +++ b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php index a2b971bfc..351f63b6c 100644 --- a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php +++ b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php @@ -71,7 +71,7 @@ public function testBruderKlausenFestBefore1648() * Tests translated name of Bruder-Klausen-Fest. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -85,7 +85,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1947), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/ChristmasDayTest.php b/tests/Switzerland/Obwalden/ChristmasDayTest.php index 2f340b6c7..b73fab73b 100644 --- a/tests/Switzerland/Obwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Obwalden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/CorpusChristiTest.php b/tests/Switzerland/Obwalden/CorpusChristiTest.php index 2b4837e2e..6c5372fd0 100644 --- a/tests/Switzerland/Obwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Obwalden/CorpusChristiTest.php @@ -49,7 +49,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -63,7 +63,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/EasterMondayTest.php b/tests/Switzerland/Obwalden/EasterMondayTest.php index 90f7f0c46..aa6f5b5f1 100644 --- a/tests/Switzerland/Obwalden/EasterMondayTest.php +++ b/tests/Switzerland/Obwalden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/GoodFridayTest.php b/tests/Switzerland/Obwalden/GoodFridayTest.php index 96930168d..2c7c89a28 100644 --- a/tests/Switzerland/Obwalden/GoodFridayTest.php +++ b/tests/Switzerland/Obwalden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php index 176462503..d5176261a 100644 --- a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/NewYearsDayTest.php b/tests/Switzerland/Obwalden/NewYearsDayTest.php index b82a07488..49688e464 100644 --- a/tests/Switzerland/Obwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Obwalden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/ObwaldenTest.php b/tests/Switzerland/Obwalden/ObwaldenTest.php index aa72e4973..d33445a5b 100644 --- a/tests/Switzerland/Obwalden/ObwaldenTest.php +++ b/tests/Switzerland/Obwalden/ObwaldenTest.php @@ -28,7 +28,7 @@ class ObwaldenTest extends ObwaldenBaseTestCase * Tests if all official holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -64,7 +64,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/PentecostMondayTest.php b/tests/Switzerland/Obwalden/PentecostMondayTest.php index 385f1ce39..3ad5c99b1 100644 --- a/tests/Switzerland/Obwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Obwalden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/StStephensDayTest.php b/tests/Switzerland/Obwalden/StStephensDayTest.php index 274ba8ca0..5d406dd8e 100644 --- a/tests/Switzerland/Obwalden/StStephensDayTest.php +++ b/tests/Switzerland/Obwalden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/AscensionDayTest.php b/tests/Switzerland/Schaffhausen/AscensionDayTest.php index 41a3742a3..71e446d88 100644 --- a/tests/Switzerland/Schaffhausen/AscensionDayTest.php +++ b/tests/Switzerland/Schaffhausen/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php index 700bb451d..a4f6046b4 100644 --- a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php +++ b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php index 5899abe2b..fe3f72334 100644 --- a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php +++ b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/EasterMondayTest.php b/tests/Switzerland/Schaffhausen/EasterMondayTest.php index a55790a9d..dbae3e39f 100644 --- a/tests/Switzerland/Schaffhausen/EasterMondayTest.php +++ b/tests/Switzerland/Schaffhausen/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/GoodFridayTest.php b/tests/Switzerland/Schaffhausen/GoodFridayTest.php index 390baa8ea..105bf57dc 100644 --- a/tests/Switzerland/Schaffhausen/GoodFridayTest.php +++ b/tests/Switzerland/Schaffhausen/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php index cc66d331e..53e0e0175 100644 --- a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php +++ b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php index be360973d..afb8d2a81 100644 --- a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php +++ b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php index 8d0e2da5d..42a8f7f81 100644 --- a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php +++ b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php @@ -28,7 +28,7 @@ class SchaffhausenTest extends SchaffhausenBaseTestCase * Tests if all official holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -60,7 +60,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -74,7 +74,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -92,7 +92,7 @@ public function testBankHolidays() * Tests if all other holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/StStephensDayTest.php b/tests/Switzerland/Schaffhausen/StStephensDayTest.php index 9374c153c..92154dd17 100644 --- a/tests/Switzerland/Schaffhausen/StStephensDayTest.php +++ b/tests/Switzerland/Schaffhausen/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index 6db14a1ea..7077f3246 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/AllSaintsDayTest.php b/tests/Switzerland/Schwyz/AllSaintsDayTest.php index f9f83be52..7a138abf2 100644 --- a/tests/Switzerland/Schwyz/AllSaintsDayTest.php +++ b/tests/Switzerland/Schwyz/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/AscensionDayTest.php b/tests/Switzerland/Schwyz/AscensionDayTest.php index 2b2ad0027..e8d7e0ddd 100644 --- a/tests/Switzerland/Schwyz/AscensionDayTest.php +++ b/tests/Switzerland/Schwyz/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php index c98404905..71e59624a 100644 --- a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/ChristmasDayTest.php b/tests/Switzerland/Schwyz/ChristmasDayTest.php index d43cce74c..ea2376d53 100644 --- a/tests/Switzerland/Schwyz/ChristmasDayTest.php +++ b/tests/Switzerland/Schwyz/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/CorpusChristiTest.php b/tests/Switzerland/Schwyz/CorpusChristiTest.php index 2bfba4ff2..fe2c4a605 100644 --- a/tests/Switzerland/Schwyz/CorpusChristiTest.php +++ b/tests/Switzerland/Schwyz/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/EasterMondayTest.php b/tests/Switzerland/Schwyz/EasterMondayTest.php index 57b88332c..822d78ed9 100644 --- a/tests/Switzerland/Schwyz/EasterMondayTest.php +++ b/tests/Switzerland/Schwyz/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/EpiphanyTest.php b/tests/Switzerland/Schwyz/EpiphanyTest.php index 1cc74627c..2914041a9 100644 --- a/tests/Switzerland/Schwyz/EpiphanyTest.php +++ b/tests/Switzerland/Schwyz/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/GoodFridayTest.php b/tests/Switzerland/Schwyz/GoodFridayTest.php index d51a2c892..811136021 100644 --- a/tests/Switzerland/Schwyz/GoodFridayTest.php +++ b/tests/Switzerland/Schwyz/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php index 67d516637..cd9e40bfb 100644 --- a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/NewYearsDayTest.php b/tests/Switzerland/Schwyz/NewYearsDayTest.php index 2f4c176f9..aeb1675c1 100644 --- a/tests/Switzerland/Schwyz/NewYearsDayTest.php +++ b/tests/Switzerland/Schwyz/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/PentecostMondayTest.php b/tests/Switzerland/Schwyz/PentecostMondayTest.php index b63d7805d..74fed62cd 100644 --- a/tests/Switzerland/Schwyz/PentecostMondayTest.php +++ b/tests/Switzerland/Schwyz/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/SchwyzTest.php b/tests/Switzerland/Schwyz/SchwyzTest.php index e5cd97115..5e533ea18 100644 --- a/tests/Switzerland/Schwyz/SchwyzTest.php +++ b/tests/Switzerland/Schwyz/SchwyzTest.php @@ -28,7 +28,7 @@ class SchwyzTest extends SchwyzBaseTestCase * Tests if all official holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'epiphany', @@ -64,7 +64,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index e9216d83e..fa70f9eec 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/StStephensDayTest.php b/tests/Switzerland/Schwyz/StStephensDayTest.php index 98813e300..00d31bf8b 100644 --- a/tests/Switzerland/Schwyz/StStephensDayTest.php +++ b/tests/Switzerland/Schwyz/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/AscensionDayTest.php b/tests/Switzerland/Solothurn/AscensionDayTest.php index 16b77044e..c033ee5d2 100644 --- a/tests/Switzerland/Solothurn/AscensionDayTest.php +++ b/tests/Switzerland/Solothurn/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php index 29e248191..044b53232 100644 --- a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php +++ b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/ChristmasDayTest.php b/tests/Switzerland/Solothurn/ChristmasDayTest.php index 20bd315f3..6d74b17c7 100644 --- a/tests/Switzerland/Solothurn/ChristmasDayTest.php +++ b/tests/Switzerland/Solothurn/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/GoodFridayTest.php b/tests/Switzerland/Solothurn/GoodFridayTest.php index d108b7de1..7c9888014 100644 --- a/tests/Switzerland/Solothurn/GoodFridayTest.php +++ b/tests/Switzerland/Solothurn/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/NewYearsDayTest.php b/tests/Switzerland/Solothurn/NewYearsDayTest.php index 7443aa22a..475ba6535 100644 --- a/tests/Switzerland/Solothurn/NewYearsDayTest.php +++ b/tests/Switzerland/Solothurn/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/SolothurnTest.php b/tests/Switzerland/Solothurn/SolothurnTest.php index 082378ede..0cd0d5bdc 100644 --- a/tests/Switzerland/Solothurn/SolothurnTest.php +++ b/tests/Switzerland/Solothurn/SolothurnTest.php @@ -28,7 +28,7 @@ class SolothurnTest extends SolothurnBaseTestCase * Tests if all official holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -42,7 +42,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -57,7 +57,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -71,7 +71,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -80,7 +80,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -89,7 +89,7 @@ public function testBankHolidays() * Tests if all other holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/AllSaintsDayTest.php b/tests/Switzerland/StGallen/AllSaintsDayTest.php index 122f821ed..c304112f4 100644 --- a/tests/Switzerland/StGallen/AllSaintsDayTest.php +++ b/tests/Switzerland/StGallen/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/AscensionDayTest.php b/tests/Switzerland/StGallen/AscensionDayTest.php index 170f26e7e..f90458006 100644 --- a/tests/Switzerland/StGallen/AscensionDayTest.php +++ b/tests/Switzerland/StGallen/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/ChristmasDayTest.php b/tests/Switzerland/StGallen/ChristmasDayTest.php index 4706b34f7..dcca16403 100644 --- a/tests/Switzerland/StGallen/ChristmasDayTest.php +++ b/tests/Switzerland/StGallen/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/EasterMondayTest.php b/tests/Switzerland/StGallen/EasterMondayTest.php index b51887720..2ca19955f 100644 --- a/tests/Switzerland/StGallen/EasterMondayTest.php +++ b/tests/Switzerland/StGallen/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/GoodFridayTest.php b/tests/Switzerland/StGallen/GoodFridayTest.php index afe86158b..67c621105 100644 --- a/tests/Switzerland/StGallen/GoodFridayTest.php +++ b/tests/Switzerland/StGallen/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/NewYearsDayTest.php b/tests/Switzerland/StGallen/NewYearsDayTest.php index 1cc55864e..fee4f1e5d 100644 --- a/tests/Switzerland/StGallen/NewYearsDayTest.php +++ b/tests/Switzerland/StGallen/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/PentecostMondayTest.php b/tests/Switzerland/StGallen/PentecostMondayTest.php index 037088d7d..54c694c06 100644 --- a/tests/Switzerland/StGallen/PentecostMondayTest.php +++ b/tests/Switzerland/StGallen/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/StGallenTest.php b/tests/Switzerland/StGallen/StGallenTest.php index 97db6663a..bd15f6b47 100644 --- a/tests/Switzerland/StGallen/StGallenTest.php +++ b/tests/Switzerland/StGallen/StGallenTest.php @@ -28,7 +28,7 @@ class StGallenTest extends StGallenBaseTestCase * Tests if all official holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/StStephensDayTest.php b/tests/Switzerland/StGallen/StStephensDayTest.php index dd32a86f9..8471ab718 100644 --- a/tests/Switzerland/StGallen/StStephensDayTest.php +++ b/tests/Switzerland/StGallen/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/SwissNationalDayTest.php b/tests/Switzerland/SwissNationalDayTest.php index e3f79d4a4..bb7882fdf 100644 --- a/tests/Switzerland/SwissNationalDayTest.php +++ b/tests/Switzerland/SwissNationalDayTest.php @@ -121,7 +121,7 @@ public function testNationalDayBetween1891And1899() * Tests translated name of National Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -135,7 +135,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/SwitzerlandTest.php b/tests/Switzerland/SwitzerlandTest.php index 7bac0bce6..f0528bd8a 100644 --- a/tests/Switzerland/SwitzerlandTest.php +++ b/tests/Switzerland/SwitzerlandTest.php @@ -28,7 +28,7 @@ class SwitzerlandTest extends SwitzerlandBaseTestCase * Tests if all official holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -55,7 +55,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -64,7 +64,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -73,7 +73,7 @@ public function testBankHolidays() * Tests if all other holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/AscensionDayTest.php b/tests/Switzerland/Thurgau/AscensionDayTest.php index 0a9c348bc..94e86652e 100644 --- a/tests/Switzerland/Thurgau/AscensionDayTest.php +++ b/tests/Switzerland/Thurgau/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php index 9b7ac8cf7..581961e22 100644 --- a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php +++ b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/ChristmasDayTest.php b/tests/Switzerland/Thurgau/ChristmasDayTest.php index 8f5b72027..b795c814b 100644 --- a/tests/Switzerland/Thurgau/ChristmasDayTest.php +++ b/tests/Switzerland/Thurgau/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/EasterMondayTest.php b/tests/Switzerland/Thurgau/EasterMondayTest.php index 0e1e0dfad..c058d40f2 100644 --- a/tests/Switzerland/Thurgau/EasterMondayTest.php +++ b/tests/Switzerland/Thurgau/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/GoodFridayTest.php b/tests/Switzerland/Thurgau/GoodFridayTest.php index d20a65550..2df96c8e3 100644 --- a/tests/Switzerland/Thurgau/GoodFridayTest.php +++ b/tests/Switzerland/Thurgau/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/NewYearsDayTest.php b/tests/Switzerland/Thurgau/NewYearsDayTest.php index 59115439c..aff521353 100644 --- a/tests/Switzerland/Thurgau/NewYearsDayTest.php +++ b/tests/Switzerland/Thurgau/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/PentecostMondayTest.php b/tests/Switzerland/Thurgau/PentecostMondayTest.php index 031ff5538..fb3344250 100644 --- a/tests/Switzerland/Thurgau/PentecostMondayTest.php +++ b/tests/Switzerland/Thurgau/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/StStephensDayTest.php b/tests/Switzerland/Thurgau/StStephensDayTest.php index 03d3586cc..d67c193f5 100644 --- a/tests/Switzerland/Thurgau/StStephensDayTest.php +++ b/tests/Switzerland/Thurgau/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/ThurgauTest.php b/tests/Switzerland/Thurgau/ThurgauTest.php index fa2ba8097..3547ae651 100644 --- a/tests/Switzerland/Thurgau/ThurgauTest.php +++ b/tests/Switzerland/Thurgau/ThurgauTest.php @@ -28,7 +28,7 @@ class ThurgauTest extends ThurgauBaseTestCase * Tests if all official holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -60,7 +60,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -74,7 +74,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -92,7 +92,7 @@ public function testBankHolidays() * Tests if all other holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index f371e1510..fb9203023 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/AllSaintsDayTest.php b/tests/Switzerland/Ticino/AllSaintsDayTest.php index 5cd758461..4fcb01d7d 100644 --- a/tests/Switzerland/Ticino/AllSaintsDayTest.php +++ b/tests/Switzerland/Ticino/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/AscensionDayTest.php b/tests/Switzerland/Ticino/AscensionDayTest.php index 46c8c654f..c0e17b22a 100644 --- a/tests/Switzerland/Ticino/AscensionDayTest.php +++ b/tests/Switzerland/Ticino/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php index 843741df6..48d45d636 100644 --- a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/ChristmasDayTest.php b/tests/Switzerland/Ticino/ChristmasDayTest.php index d44b070de..23b1c82c1 100644 --- a/tests/Switzerland/Ticino/ChristmasDayTest.php +++ b/tests/Switzerland/Ticino/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/CorpusChristiTest.php b/tests/Switzerland/Ticino/CorpusChristiTest.php index ae0076a2b..afc35e3c9 100644 --- a/tests/Switzerland/Ticino/CorpusChristiTest.php +++ b/tests/Switzerland/Ticino/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/EasterMondayTest.php b/tests/Switzerland/Ticino/EasterMondayTest.php index 9ae6335ae..fa65844a7 100644 --- a/tests/Switzerland/Ticino/EasterMondayTest.php +++ b/tests/Switzerland/Ticino/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/EpiphanyTest.php b/tests/Switzerland/Ticino/EpiphanyTest.php index 06c893091..7e5493c69 100644 --- a/tests/Switzerland/Ticino/EpiphanyTest.php +++ b/tests/Switzerland/Ticino/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php index 34f8cfea1..0147e3fac 100644 --- a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/NewYearsDayTest.php b/tests/Switzerland/Ticino/NewYearsDayTest.php index abcbfdd3f..0af7ab9bb 100644 --- a/tests/Switzerland/Ticino/NewYearsDayTest.php +++ b/tests/Switzerland/Ticino/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/PentecostMondayTest.php b/tests/Switzerland/Ticino/PentecostMondayTest.php index 82118af36..cce3d2f9b 100644 --- a/tests/Switzerland/Ticino/PentecostMondayTest.php +++ b/tests/Switzerland/Ticino/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index ebc9a4d9b..df9c545a5 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index 921f65086..0e2c04469 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -56,7 +56,7 @@ public function StPeterPaulDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/StStephensDayTest.php b/tests/Switzerland/Ticino/StStephensDayTest.php index 6769c52ef..763766d60 100644 --- a/tests/Switzerland/Ticino/StStephensDayTest.php +++ b/tests/Switzerland/Ticino/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/TicinoTest.php b/tests/Switzerland/Ticino/TicinoTest.php index ea6a6ae0d..a38db9a5f 100644 --- a/tests/Switzerland/Ticino/TicinoTest.php +++ b/tests/Switzerland/Ticino/TicinoTest.php @@ -28,7 +28,7 @@ class TicinoTest extends TicinoBaseTestCase * Tests if all official holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'corpusChristi', @@ -65,7 +65,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -79,7 +79,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -88,7 +88,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -97,7 +97,7 @@ public function testBankHolidays() * Tests if all other holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index 3c50d567c..ad7b04c10 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/AllSaintsDayTest.php b/tests/Switzerland/Uri/AllSaintsDayTest.php index 6254157c2..1220e627a 100644 --- a/tests/Switzerland/Uri/AllSaintsDayTest.php +++ b/tests/Switzerland/Uri/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/AscensionDayTest.php b/tests/Switzerland/Uri/AscensionDayTest.php index 2ce2bc90b..689711edc 100644 --- a/tests/Switzerland/Uri/AscensionDayTest.php +++ b/tests/Switzerland/Uri/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/AssumptionOfMaryTest.php b/tests/Switzerland/Uri/AssumptionOfMaryTest.php index c71c3c164..3e72fa663 100644 --- a/tests/Switzerland/Uri/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Uri/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/ChristmasDayTest.php b/tests/Switzerland/Uri/ChristmasDayTest.php index f3a85b845..43d3da16c 100644 --- a/tests/Switzerland/Uri/ChristmasDayTest.php +++ b/tests/Switzerland/Uri/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/CorpusChristiTest.php b/tests/Switzerland/Uri/CorpusChristiTest.php index 559867a3e..30a7f2e13 100644 --- a/tests/Switzerland/Uri/CorpusChristiTest.php +++ b/tests/Switzerland/Uri/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/EasterMondayTest.php b/tests/Switzerland/Uri/EasterMondayTest.php index ead97eadf..d73d5595d 100644 --- a/tests/Switzerland/Uri/EasterMondayTest.php +++ b/tests/Switzerland/Uri/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/EpiphanyTest.php b/tests/Switzerland/Uri/EpiphanyTest.php index 1c21b5130..3f6e1c4cb 100644 --- a/tests/Switzerland/Uri/EpiphanyTest.php +++ b/tests/Switzerland/Uri/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/GoodFridayTest.php b/tests/Switzerland/Uri/GoodFridayTest.php index cb57ab831..482eefa0a 100644 --- a/tests/Switzerland/Uri/GoodFridayTest.php +++ b/tests/Switzerland/Uri/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/ImmaculateConceptionTest.php b/tests/Switzerland/Uri/ImmaculateConceptionTest.php index 31374c116..1245fe344 100644 --- a/tests/Switzerland/Uri/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Uri/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/NewYearsDayTest.php b/tests/Switzerland/Uri/NewYearsDayTest.php index a276b726b..96b3a51b6 100644 --- a/tests/Switzerland/Uri/NewYearsDayTest.php +++ b/tests/Switzerland/Uri/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/PentecostMondayTest.php b/tests/Switzerland/Uri/PentecostMondayTest.php index 023d6b8aa..2c6cb4526 100644 --- a/tests/Switzerland/Uri/PentecostMondayTest.php +++ b/tests/Switzerland/Uri/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index 30b57ae48..51b907e06 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/StStephensDayTest.php b/tests/Switzerland/Uri/StStephensDayTest.php index 050f30c79..ca9559829 100644 --- a/tests/Switzerland/Uri/StStephensDayTest.php +++ b/tests/Switzerland/Uri/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/UriTest.php b/tests/Switzerland/Uri/UriTest.php index 668c766e3..0ac7d594c 100644 --- a/tests/Switzerland/Uri/UriTest.php +++ b/tests/Switzerland/Uri/UriTest.php @@ -28,7 +28,7 @@ class UriTest extends UriBaseTestCase * Tests if all official holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -64,7 +64,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/AllSaintsDayTest.php b/tests/Switzerland/Valais/AllSaintsDayTest.php index 27a962c70..c6e869f56 100644 --- a/tests/Switzerland/Valais/AllSaintsDayTest.php +++ b/tests/Switzerland/Valais/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/AscensionDayTest.php b/tests/Switzerland/Valais/AscensionDayTest.php index e0874627f..68f8fdf65 100644 --- a/tests/Switzerland/Valais/AscensionDayTest.php +++ b/tests/Switzerland/Valais/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/AssumptionOfMaryTest.php b/tests/Switzerland/Valais/AssumptionOfMaryTest.php index f7d63cba8..54bca2957 100644 --- a/tests/Switzerland/Valais/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Valais/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/ChristmasDayTest.php b/tests/Switzerland/Valais/ChristmasDayTest.php index f2a9aee2b..72d0a8891 100644 --- a/tests/Switzerland/Valais/ChristmasDayTest.php +++ b/tests/Switzerland/Valais/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/CorpusChristiTest.php b/tests/Switzerland/Valais/CorpusChristiTest.php index a6ea3013e..7398c5c2c 100644 --- a/tests/Switzerland/Valais/CorpusChristiTest.php +++ b/tests/Switzerland/Valais/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/ImmaculateConceptionTest.php b/tests/Switzerland/Valais/ImmaculateConceptionTest.php index 5caa53f96..924835a1f 100644 --- a/tests/Switzerland/Valais/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Valais/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/NewYearsDayTest.php b/tests/Switzerland/Valais/NewYearsDayTest.php index ace92ee3a..d104b7548 100644 --- a/tests/Switzerland/Valais/NewYearsDayTest.php +++ b/tests/Switzerland/Valais/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index 75aeed1da..33054209f 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/ValaisTest.php b/tests/Switzerland/Valais/ValaisTest.php index 4c8373c46..f00e96384 100644 --- a/tests/Switzerland/Valais/ValaisTest.php +++ b/tests/Switzerland/Valais/ValaisTest.php @@ -28,7 +28,7 @@ class ValaisTest extends ValaisBaseTestCase * Tests if all official holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'ascensionDay', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/AscensionDayTest.php b/tests/Switzerland/Vaud/AscensionDayTest.php index c99578ae3..fac6c7579 100644 --- a/tests/Switzerland/Vaud/AscensionDayTest.php +++ b/tests/Switzerland/Vaud/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/BerchtoldsTagTest.php b/tests/Switzerland/Vaud/BerchtoldsTagTest.php index 33a341888..2829e06fb 100644 --- a/tests/Switzerland/Vaud/BerchtoldsTagTest.php +++ b/tests/Switzerland/Vaud/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/BettagsMontagTest.php b/tests/Switzerland/Vaud/BettagsMontagTest.php index 13b70033b..8f2fe56c9 100644 --- a/tests/Switzerland/Vaud/BettagsMontagTest.php +++ b/tests/Switzerland/Vaud/BettagsMontagTest.php @@ -60,7 +60,7 @@ public function testBettagsMontagBefore1832() * Tests translated name of Bettags Montag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1900), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/ChristmasDayTest.php b/tests/Switzerland/Vaud/ChristmasDayTest.php index 1be3cde44..10d93f9d5 100644 --- a/tests/Switzerland/Vaud/ChristmasDayTest.php +++ b/tests/Switzerland/Vaud/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/EasterMondayTest.php b/tests/Switzerland/Vaud/EasterMondayTest.php index f0ea349df..bd1f28727 100644 --- a/tests/Switzerland/Vaud/EasterMondayTest.php +++ b/tests/Switzerland/Vaud/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/GoodFridayTest.php b/tests/Switzerland/Vaud/GoodFridayTest.php index 74934fd54..32ee4122f 100644 --- a/tests/Switzerland/Vaud/GoodFridayTest.php +++ b/tests/Switzerland/Vaud/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/NewYearsDayTest.php b/tests/Switzerland/Vaud/NewYearsDayTest.php index 507ea2c12..09c87662a 100644 --- a/tests/Switzerland/Vaud/NewYearsDayTest.php +++ b/tests/Switzerland/Vaud/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/PentecostMondayTest.php b/tests/Switzerland/Vaud/PentecostMondayTest.php index 52a417cd3..75a62cd47 100644 --- a/tests/Switzerland/Vaud/PentecostMondayTest.php +++ b/tests/Switzerland/Vaud/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/VaudTest.php b/tests/Switzerland/Vaud/VaudTest.php index 9282662f7..107814d94 100644 --- a/tests/Switzerland/Vaud/VaudTest.php +++ b/tests/Switzerland/Vaud/VaudTest.php @@ -28,7 +28,7 @@ class VaudTest extends VaudBaseTestCase * Tests if all official holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/AllSaintsDayTest.php b/tests/Switzerland/Zug/AllSaintsDayTest.php index a9caf2bb4..7a0e23ccc 100644 --- a/tests/Switzerland/Zug/AllSaintsDayTest.php +++ b/tests/Switzerland/Zug/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/AscensionDayTest.php b/tests/Switzerland/Zug/AscensionDayTest.php index da6e57b2d..e96c318a2 100644 --- a/tests/Switzerland/Zug/AscensionDayTest.php +++ b/tests/Switzerland/Zug/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/AssumptionOfMaryTest.php b/tests/Switzerland/Zug/AssumptionOfMaryTest.php index b9177f87b..695e01bd7 100644 --- a/tests/Switzerland/Zug/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Zug/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/BerchtoldsTagTest.php b/tests/Switzerland/Zug/BerchtoldsTagTest.php index 84da3e087..ca915f1a9 100644 --- a/tests/Switzerland/Zug/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zug/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/ChristmasDayTest.php b/tests/Switzerland/Zug/ChristmasDayTest.php index a4d286d7e..879ba97c2 100644 --- a/tests/Switzerland/Zug/ChristmasDayTest.php +++ b/tests/Switzerland/Zug/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/CorpusChristiTest.php b/tests/Switzerland/Zug/CorpusChristiTest.php index d7e9256d9..17c9b3225 100644 --- a/tests/Switzerland/Zug/CorpusChristiTest.php +++ b/tests/Switzerland/Zug/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/EasterMondayTest.php b/tests/Switzerland/Zug/EasterMondayTest.php index 31ff224bb..2075ddf28 100644 --- a/tests/Switzerland/Zug/EasterMondayTest.php +++ b/tests/Switzerland/Zug/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/GoodFridayTest.php b/tests/Switzerland/Zug/GoodFridayTest.php index 184619789..435a46a3a 100644 --- a/tests/Switzerland/Zug/GoodFridayTest.php +++ b/tests/Switzerland/Zug/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/ImmaculateConceptionTest.php b/tests/Switzerland/Zug/ImmaculateConceptionTest.php index ac07d1481..2e861114d 100644 --- a/tests/Switzerland/Zug/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Zug/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/NewYearsDayTest.php b/tests/Switzerland/Zug/NewYearsDayTest.php index f229a1b0a..e248d0a4c 100644 --- a/tests/Switzerland/Zug/NewYearsDayTest.php +++ b/tests/Switzerland/Zug/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/PentecostMondayTest.php b/tests/Switzerland/Zug/PentecostMondayTest.php index 0352ce679..a3e5051d8 100644 --- a/tests/Switzerland/Zug/PentecostMondayTest.php +++ b/tests/Switzerland/Zug/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/StStephensDayTest.php b/tests/Switzerland/Zug/StStephensDayTest.php index 2e0987576..c6a349bfd 100644 --- a/tests/Switzerland/Zug/StStephensDayTest.php +++ b/tests/Switzerland/Zug/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/ZugTest.php b/tests/Switzerland/Zug/ZugTest.php index 756d5addb..71888781a 100644 --- a/tests/Switzerland/Zug/ZugTest.php +++ b/tests/Switzerland/Zug/ZugTest.php @@ -28,7 +28,7 @@ class ZugTest extends ZugBaseTestCase * Tests if all official holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/AscensionDayTest.php b/tests/Switzerland/Zurich/AscensionDayTest.php index 14be7f355..2f7de222b 100644 --- a/tests/Switzerland/Zurich/AscensionDayTest.php +++ b/tests/Switzerland/Zurich/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/BerchtoldsTagTest.php b/tests/Switzerland/Zurich/BerchtoldsTagTest.php index c2febbb30..bfa4f0986 100644 --- a/tests/Switzerland/Zurich/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zurich/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/ChristmasDayTest.php b/tests/Switzerland/Zurich/ChristmasDayTest.php index 3b23f9fe1..91d74048b 100644 --- a/tests/Switzerland/Zurich/ChristmasDayTest.php +++ b/tests/Switzerland/Zurich/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/EasterMondayTest.php b/tests/Switzerland/Zurich/EasterMondayTest.php index de5957527..f4d051047 100644 --- a/tests/Switzerland/Zurich/EasterMondayTest.php +++ b/tests/Switzerland/Zurich/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/GoodFridayTest.php b/tests/Switzerland/Zurich/GoodFridayTest.php index df132b712..915467187 100644 --- a/tests/Switzerland/Zurich/GoodFridayTest.php +++ b/tests/Switzerland/Zurich/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/NewYearsDayTest.php b/tests/Switzerland/Zurich/NewYearsDayTest.php index 5694d9017..8fa6c83f1 100644 --- a/tests/Switzerland/Zurich/NewYearsDayTest.php +++ b/tests/Switzerland/Zurich/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/PentecostMondayTest.php b/tests/Switzerland/Zurich/PentecostMondayTest.php index b2ef4b73c..8dfbfaded 100644 --- a/tests/Switzerland/Zurich/PentecostMondayTest.php +++ b/tests/Switzerland/Zurich/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/StStephensDayTest.php b/tests/Switzerland/Zurich/StStephensDayTest.php index aecce8291..a8806e6d4 100644 --- a/tests/Switzerland/Zurich/StStephensDayTest.php +++ b/tests/Switzerland/Zurich/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index 419cb9f68..716fbcc67 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/ZurichTest.php b/tests/Switzerland/Zurich/ZurichTest.php index 8b8e9347b..77e890eed 100644 --- a/tests/Switzerland/Zurich/ZurichTest.php +++ b/tests/Switzerland/Zurich/ZurichTest.php @@ -28,7 +28,7 @@ class ZurichTest extends ZurichBaseTestCase * Tests if all official holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -60,7 +60,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -74,7 +74,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -92,7 +92,7 @@ public function testBankHolidays() * Tests if all other holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/USA/ChristmasDayTest.php b/tests/USA/ChristmasDayTest.php index 9982d78c6..b2bb5156e 100644 --- a/tests/USA/ChristmasDayTest.php +++ b/tests/USA/ChristmasDayTest.php @@ -81,7 +81,7 @@ public function testChristmasDaySubstitutedFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/USA/ColumbusDayTest.php b/tests/USA/ColumbusDayTest.php index 9ae4e76b8..49c1d5cad 100644 --- a/tests/USA/ColumbusDayTest.php +++ b/tests/USA/ColumbusDayTest.php @@ -84,7 +84,7 @@ public function testColumbusDayBefore1937() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/IndependenceDayTest.php b/tests/USA/IndependenceDayTest.php index 3bc9a5f97..49aad2e0e 100644 --- a/tests/USA/IndependenceDayTest.php +++ b/tests/USA/IndependenceDayTest.php @@ -97,7 +97,7 @@ public function testIndependenceDayBefore1776() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/LabourDayTest.php b/tests/USA/LabourDayTest.php index 442c101e6..4d01322d9 100644 --- a/tests/USA/LabourDayTest.php +++ b/tests/USA/LabourDayTest.php @@ -65,7 +65,7 @@ public function testLabourDayBefore1887() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/MartinLutherKingDayTest.php b/tests/USA/MartinLutherKingDayTest.php index 7f0420ac2..6ad829a8c 100644 --- a/tests/USA/MartinLutherKingDayTest.php +++ b/tests/USA/MartinLutherKingDayTest.php @@ -67,7 +67,7 @@ public function testMartinLutherKingDayBefore1986() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/MemorialDayTest.php b/tests/USA/MemorialDayTest.php index 6c7d64410..2a6b4cbe4 100644 --- a/tests/USA/MemorialDayTest.php +++ b/tests/USA/MemorialDayTest.php @@ -84,7 +84,7 @@ public function testMemorialDayBefore1865() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/NewYearsDayTest.php b/tests/USA/NewYearsDayTest.php index dd0ce4034..f89498420 100644 --- a/tests/USA/NewYearsDayTest.php +++ b/tests/USA/NewYearsDayTest.php @@ -80,7 +80,7 @@ public function testNewYearsDaySubstitutedFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -94,7 +94,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/USA/ThanksgivingDayTest.php b/tests/USA/ThanksgivingDayTest.php index 251b6f971..20a0b34fd 100644 --- a/tests/USA/ThanksgivingDayTest.php +++ b/tests/USA/ThanksgivingDayTest.php @@ -67,7 +67,7 @@ public function testThanksgivingDayBefore1863() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/USATest.php b/tests/USA/USATest.php index ba282ebcd..644451df2 100644 --- a/tests/USA/USATest.php +++ b/tests/USA/USATest.php @@ -28,7 +28,7 @@ class USATest extends USABaseTestCase * Tests if all official holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -66,7 +66,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -75,7 +75,7 @@ public function testBankHolidays() * Tests if all other holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/USA/VeteransDayTest.php b/tests/USA/VeteransDayTest.php index 3a68112b9..0f8dcac34 100644 --- a/tests/USA/VeteransDayTest.php +++ b/tests/USA/VeteransDayTest.php @@ -92,7 +92,7 @@ public function testVeteransDayNameAfter1954() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -106,7 +106,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/WashingtonsBirthdayTest.php b/tests/USA/WashingtonsBirthdayTest.php index 3094c1503..5ce977125 100644 --- a/tests/USA/WashingtonsBirthdayTest.php +++ b/tests/USA/WashingtonsBirthdayTest.php @@ -84,7 +84,7 @@ public function testWashingtonsBirthdayBefore1879() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ukraine/ChristmasDayTest.php b/tests/Ukraine/ChristmasDayTest.php index a7dbd5e50..89bec1935 100644 --- a/tests/Ukraine/ChristmasDayTest.php +++ b/tests/Ukraine/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/ConstitutionDayTest.php b/tests/Ukraine/ConstitutionDayTest.php index 13c706a34..abb929beb 100644 --- a/tests/Ukraine/ConstitutionDayTest.php +++ b/tests/Ukraine/ConstitutionDayTest.php @@ -45,7 +45,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, 2020, [self::LOCALE => 'День Конституції']); } @@ -54,7 +54,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, 2020, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/DefenderOfUkraineDayTest.php b/tests/Ukraine/DefenderOfUkraineDayTest.php index 0f157c958..dc646e176 100644 --- a/tests/Ukraine/DefenderOfUkraineDayTest.php +++ b/tests/Ukraine/DefenderOfUkraineDayTest.php @@ -45,7 +45,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, 2020, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/EasterTest.php b/tests/Ukraine/EasterTest.php index 52d057095..035011ce7 100644 --- a/tests/Ukraine/EasterTest.php +++ b/tests/Ukraine/EasterTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/IndependenceDayTest.php b/tests/Ukraine/IndependenceDayTest.php index 3f93b8064..f220e0773 100644 --- a/tests/Ukraine/IndependenceDayTest.php +++ b/tests/Ukraine/IndependenceDayTest.php @@ -45,7 +45,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, 2020, [self::LOCALE => 'День Незалежності']); } @@ -54,7 +54,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, 2020, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/InternationalWomensDayTest.php b/tests/Ukraine/InternationalWomensDayTest.php index 7133b5370..82a551dc0 100644 --- a/tests/Ukraine/InternationalWomensDayTest.php +++ b/tests/Ukraine/InternationalWomensDayTest.php @@ -54,7 +54,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/InternationalWorkersDayTest.php b/tests/Ukraine/InternationalWorkersDayTest.php index 6a313552e..8aa671ecc 100644 --- a/tests/Ukraine/InternationalWorkersDayTest.php +++ b/tests/Ukraine/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/NewYearsDayTest.php b/tests/Ukraine/NewYearsDayTest.php index 77574d26e..3854db7b0 100644 --- a/tests/Ukraine/NewYearsDayTest.php +++ b/tests/Ukraine/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/PentecostTest.php b/tests/Ukraine/PentecostTest.php index a25c72ed5..790177b98 100644 --- a/tests/Ukraine/PentecostTest.php +++ b/tests/Ukraine/PentecostTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/SecondInternationalWorkersDayTest.php b/tests/Ukraine/SecondInternationalWorkersDayTest.php index 62cc26c59..a8ea256a7 100644 --- a/tests/Ukraine/SecondInternationalWorkersDayTest.php +++ b/tests/Ukraine/SecondInternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testSecondInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/UkraineTest.php b/tests/Ukraine/UkraineTest.php index 4d2231c7e..afc9bde7c 100644 --- a/tests/Ukraine/UkraineTest.php +++ b/tests/Ukraine/UkraineTest.php @@ -29,7 +29,7 @@ class UkraineTest extends UkraineBaseTestCase * Tests if all official holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Ukraine/VictoryDayTest.php b/tests/Ukraine/VictoryDayTest.php index 15ad69e3c..d08286646 100644 --- a/tests/Ukraine/VictoryDayTest.php +++ b/tests/Ukraine/VictoryDayTest.php @@ -54,7 +54,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index 59b91e2f3..f5b6f1924 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -89,7 +89,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index c87d35195..096cfc9b1 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -89,7 +89,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index 60ee985c9..565062311 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/UnitedKingdom/GoodFridayTest.php b/tests/UnitedKingdom/GoodFridayTest.php index cb37a1036..4f573581a 100644 --- a/tests/UnitedKingdom/GoodFridayTest.php +++ b/tests/UnitedKingdom/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/UnitedKingdom/MayDayBankHolidayTest.php b/tests/UnitedKingdom/MayDayBankHolidayTest.php index 70654dc84..757f1e713 100644 --- a/tests/UnitedKingdom/MayDayBankHolidayTest.php +++ b/tests/UnitedKingdom/MayDayBankHolidayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 07dedc60d..725172893 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -100,7 +100,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -114,7 +114,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/SpringBankHolidayTest.php b/tests/UnitedKingdom/SpringBankHolidayTest.php index dcc95ffc3..79c390e20 100644 --- a/tests/UnitedKingdom/SpringBankHolidayTest.php +++ b/tests/UnitedKingdom/SpringBankHolidayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/SummerBankHolidayTest.php b/tests/UnitedKingdom/SummerBankHolidayTest.php index fca9945ea..ad0ee64f9 100644 --- a/tests/UnitedKingdom/SummerBankHolidayTest.php +++ b/tests/UnitedKingdom/SummerBankHolidayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/UnitedKingdomTest.php b/tests/UnitedKingdom/UnitedKingdomTest.php index b62d2a9cf..67834127b 100644 --- a/tests/UnitedKingdom/UnitedKingdomTest.php +++ b/tests/UnitedKingdom/UnitedKingdomTest.php @@ -28,7 +28,7 @@ class UnitedKingdomTest extends UnitedKingdomBaseTestCase * Tests if all official holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -40,7 +40,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -49,7 +49,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -58,7 +58,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -73,7 +73,7 @@ public function testBankHolidays() * Tests if all other holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index d93d9073e..b7b16756b 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -46,7 +46,7 @@ trait YasumiBase * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type) + public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type): void { $holidays = Yasumi::create($provider, $year); @@ -91,7 +91,7 @@ public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException */ - public function assertHoliday($provider, $shortName, $year, $expected) + public function assertHoliday($provider, $shortName, $year, $expected): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -119,7 +119,7 @@ public function assertHoliday($provider, $shortName, $year, $expected) * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException */ - public function assertNotHoliday($provider, $shortName, $year) + public function assertNotHoliday($provider, $shortName, $year): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -144,7 +144,7 @@ public function assertNotHoliday($provider, $shortName, $year) * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException */ - public function assertTranslatedHolidayName($provider, $shortName, $year, $translations) + public function assertTranslatedHolidayName($provider, $shortName, $year, $translations): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -180,7 +180,7 @@ public function assertTranslatedHolidayName($provider, $shortName, $year, $trans * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function assertHolidayType($provider, $shortName, $year, $type) + public function assertHolidayType($provider, $shortName, $year, $type): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -208,7 +208,7 @@ public function assertHolidayType($provider, $shortName, $year, $type) * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek) + public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); From 4aab969ae01f63678d8947e80a3c8391d760e1a0 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 12:33:27 +0900 Subject: [PATCH 122/132] Removed unnecessary attributes as they are the same as the attribute of the parent. Signed-off-by: Sacha Telgenhof --- tests/Australia/ACT/ACTTest.php | 4 +- tests/Australia/ACT/CanberraDayTest.php | 4 +- tests/Australia/ACT/EasterSaturdayTest.php | 4 +- tests/Australia/ACT/EasterSundayTest.php | 4 +- tests/Australia/ACT/LabourDayTest.php | 4 +- tests/Australia/ACT/QueensBirthdayTest.php | 4 +- tests/Australia/ACT/ReconciliationDayTest.php | 4 +- tests/Australia/AnzacDayTest.php | 4 +- tests/Australia/AustraliaDayTest.php | 6 +- tests/Australia/AustraliaTest.php | 10 ++-- tests/Australia/BoxingDayTest.php | 4 +- tests/Australia/ChristmasDayTest.php | 4 +- tests/Australia/EasterMondayTest.php | 4 +- tests/Australia/GoodFridayTest.php | 4 +- tests/Australia/NSW/BankHolidayTest.php | 4 +- tests/Australia/NSW/EasterSaturdayTest.php | 4 +- tests/Australia/NSW/EasterSundayTest.php | 4 +- tests/Australia/NSW/LabourDayTest.php | 4 +- tests/Australia/NSW/NSWTest.php | 6 +- tests/Australia/NSW/QueensBirthdayTest.php | 4 +- tests/Australia/NT/EasterSaturdayTest.php | 4 +- tests/Australia/NT/MayDayTest.php | 4 +- tests/Australia/NT/NTTest.php | 4 +- tests/Australia/NT/PicnicDayTest.php | 4 +- tests/Australia/NT/QueensBirthdayTest.php | 4 +- tests/Australia/NewYearsDayTest.php | 4 +- .../Queensland/Brisbane/BrisbaneTest.php | 3 +- .../Queensland/Brisbane/PeoplesDayTest.php | 4 +- tests/Australia/Queensland/LabourDayTest.php | 4 +- .../Queensland/QueensBirthdayTest.php | 4 +- tests/Australia/Queensland/QueenslandTest.php | 3 +- tests/Australia/SA/AdelaideCupDayTest.php | 4 +- tests/Australia/SA/ChristmasDayTest.php | 6 +- tests/Australia/SA/EasterSaturdayTest.php | 4 +- tests/Australia/SA/LabourDayTest.php | 4 +- tests/Australia/SA/ProclamationDayTest.php | 4 +- tests/Australia/SA/QueensBirthdayTest.php | 4 +- tests/Australia/SA/SATest.php | 4 +- .../CentralNorth/CentralNorthBaseTestCase.php | 5 -- .../CentralNorth/CentralNorthTest.php | 4 +- .../CentralNorth/DevonportShowTest.php | 4 +- tests/Australia/Tasmania/EightHourDayTest.php | 4 +- .../FlindersIslandBaseTestCase.php | 5 -- .../FlindersIsland/FlindersIslandShowTest.php | 4 +- .../FlindersIsland/FlindersIslandTest.php | 3 +- .../KingIsland/KingIslandBaseTestCase.php | 5 -- .../KingIsland/KingIslandShowTest.php | 4 +- .../Tasmania/KingIsland/KingIslandTest.php | 3 +- .../Tasmania/Northeast/LauncestonShowTest.php | 4 +- .../Northeast/NortheastBaseTestCase.php | 5 -- .../Tasmania/Northeast/NortheastTest.php | 3 +- .../Tasmania/Northwest/BurnieShowTest.php | 4 +- .../Northwest/CircularHead/AGFESTTest.php | 4 +- .../CircularHead/CircularHeadBaseTestCase.php | 5 -- .../CircularHead/CircularHeadTest.php | 3 +- .../Northwest/NorthwestBaseTestCase.php | 5 -- .../Tasmania/Northwest/NorthwestTest.php | 3 +- .../Australia/Tasmania/QueensBirthdayTest.php | 4 +- .../Australia/Tasmania/RecreationDayTest.php | 4 +- .../Tasmania/South/HobartShowTest.php | 4 +- .../Tasmania/South/SouthBaseTestCase.php | 5 -- tests/Australia/Tasmania/South/SouthTest.php | 3 +- .../South/Southeast/HobartRegattaTest.php | 4 +- .../South/Southeast/SoutheastTest.php | 3 +- tests/Australia/Tasmania/TasmaniaTest.php | 4 +- .../Victoria/AFLGrandFinalFridayTest.php | 4 +- .../Australia/Victoria/EasterSaturdayTest.php | 4 +- tests/Australia/Victoria/EasterSundayTest.php | 4 +- tests/Australia/Victoria/LabourDayTest.php | 4 +- .../Victoria/MelbourneCupDayTest.php | 4 +- .../Australia/Victoria/QueensBirthdayTest.php | 4 +- tests/Australia/Victoria/VictoriaTest.php | 3 +- tests/Australia/WA/LabourDayTest.php | 4 +- tests/Australia/WA/QueensBirthdayTest.php | 4 +- tests/Australia/WA/WATest.php | 3 +- .../Australia/WA/WesternAustraliaDayTest.php | 4 +- tests/Austria/AllSaintsDayTest.php | 4 +- tests/Austria/AscensionDayTest.php | 4 +- tests/Austria/AssumptionOfMaryTest.php | 4 +- tests/Austria/AustriaTest.php | 10 ++-- tests/Austria/ChristmasTest.php | 4 +- tests/Austria/CorpusChristiTest.php | 4 +- tests/Austria/EasterMondayTest.php | 4 +- tests/Austria/EasterTest.php | 4 +- tests/Austria/EpiphanyTest.php | 4 +- tests/Austria/ImmaculateConceptionTest.php | 4 +- tests/Austria/InternationalWorkersDayTest.php | 4 +- tests/Austria/NationalDayTest.php | 4 +- tests/Austria/NewYearsDayTest.php | 4 +- tests/Austria/PentecostMondayTest.php | 4 +- tests/Austria/PentecostTest.php | 4 +- tests/Austria/SecondChristmasDayTest.php | 4 +- tests/Base/HolidayBetweenFilterTest.php | 22 +++---- tests/Base/HolidayFiltersTest.php | 10 ++-- tests/Base/HolidayOnFilterTest.php | 6 +- tests/Base/HolidayTest.php | 20 +++---- tests/Base/TranslationsTest.php | 20 +++---- tests/Base/YasumiExternalProvider.php | 2 +- tests/Base/YasumiTest.php | 58 +++++++++---------- tests/Base/YasumiWorkdayTest.php | 6 +- tests/Belgium/AllSaintsDayTest.php | 4 +- tests/Belgium/ArmisticeDayTest.php | 4 +- tests/Belgium/AscensionDayTest.php | 4 +- tests/Belgium/AssumptionOfMaryTest.php | 4 +- tests/Belgium/BelgiumTest.php | 10 ++-- tests/Belgium/ChristmasTest.php | 4 +- tests/Belgium/EasterMondayTest.php | 4 +- tests/Belgium/EasterTest.php | 4 +- tests/Belgium/InternationalWorkersDayTest.php | 4 +- tests/Belgium/NationalDayTest.php | 4 +- tests/Belgium/NewYearsDayTest.php | 4 +- tests/Belgium/PentecostTest.php | 4 +- tests/Belgium/pentecostMondayTest.php | 4 +- tests/Bosnia/BosniaTest.php | 10 ++-- tests/Bosnia/ChristmasDayTest.php | 6 +- tests/Bosnia/DayAfterNewYearsDay.php | 6 +- tests/Bosnia/EasterTest.php | 4 +- tests/Bosnia/IndependenceDayTest.php | 4 +- tests/Bosnia/InternationalWorkersDayTest.php | 6 +- tests/Bosnia/NewYearsDayTest.php | 6 +- tests/Bosnia/OrthodoxChristmasDay.php | 6 +- tests/Bosnia/SecondLabourDay.php | 6 +- tests/Bosnia/StatehoodDayTest.php | 4 +- tests/Brazil/AllSoulsDayTest.php | 4 +- tests/Brazil/AshWednesdayTest.php | 4 +- tests/Brazil/BrazilTest.php | 10 ++-- tests/Brazil/CarnavalMondayTest.php | 4 +- tests/Brazil/CarnavalTuesdayTest.php | 4 +- tests/Brazil/ChristmasDayTest.php | 4 +- tests/Brazil/CorpusChristiTest.php | 4 +- tests/Brazil/EasterTest.php | 4 +- tests/Brazil/GoodFridayTest.php | 4 +- tests/Brazil/IndependenceDayTest.php | 4 +- tests/Brazil/InternationalWorkersDayTest.php | 4 +- tests/Brazil/NewYearsDayTest.php | 4 +- tests/Brazil/OurLadyOfAparecidaDayTest.php | 4 +- .../Brazil/ProclamationOfRepublicDayTest.php | 4 +- tests/Brazil/TiradentesDayTest.php | 4 +- tests/Croatia/AllSaintsDayTest.php | 4 +- tests/Croatia/AntifascistStruggleDayTest.php | 4 +- tests/Croatia/AssumptionOfMaryTest.php | 4 +- tests/Croatia/ChristmasDayTest.php | 4 +- tests/Croatia/CorpusChristiTest.php | 4 +- tests/Croatia/EasterMondayTest.php | 4 +- tests/Croatia/EasterTest.php | 4 +- tests/Croatia/EpiphanyTest.php | 4 +- tests/Croatia/HomelandThanksgivingDayTest.php | 4 +- tests/Croatia/IndependenceDayTest.php | 4 +- tests/Croatia/InternationalWorkersDayTest.php | 4 +- tests/Croatia/NewYearsDayTest.php | 4 +- tests/Croatia/StStephensDayTest.php | 4 +- tests/Croatia/StatehoodDayTest.php | 4 +- tests/CzechRepublic/ChristmasDayTest.php | 4 +- tests/CzechRepublic/ChristmasEveTest.php | 4 +- tests/CzechRepublic/CzechRepublicTest.php | 10 ++-- tests/CzechRepublic/CzechStateHoodDayTest.php | 4 +- tests/CzechRepublic/EasterMondayTest.php | 4 +- tests/CzechRepublic/GoodFridayTest.php | 4 +- .../IndependentCzechoslovakStateDayTest.php | 4 +- .../InternationalWorkersDayTest.php | 4 +- tests/CzechRepublic/JanHusDayTest.php | 4 +- tests/CzechRepublic/NewYearsDayTest.php | 4 +- .../SaintsCyrilAndMethodiusDayTest.php | 4 +- .../CzechRepublic/SecondChristmasDayTest.php | 4 +- .../StruggleForFreedomAndDemocracyDayTest.php | 4 +- .../CzechRepublic/VictoryInEuropeDayTest.php | 4 +- tests/Denmark/AscensionDayTest.php | 4 +- tests/Denmark/ChristmasDayTest.php | 4 +- tests/Denmark/ChristmasEveTest.php | 4 +- tests/Denmark/ConstitutionDayTest.php | 4 +- tests/Denmark/DenmarkTest.php | 10 ++-- tests/Denmark/EasterMondayTest.php | 4 +- tests/Denmark/EasterTest.php | 4 +- tests/Denmark/GoodFridayTest.php | 4 +- tests/Denmark/GreatPrayerDayTest.php | 4 +- tests/Denmark/InternationalWorkersDayTest.php | 4 +- tests/Denmark/MaundyThursdayTest.php | 4 +- tests/Denmark/NewYearsDayTest.php | 4 +- tests/Denmark/NewYearsEveTest.php | 4 +- tests/Denmark/PentecostMondayTest.php | 4 +- tests/Denmark/PentecostTest.php | 4 +- tests/Denmark/SecondChristmasDayTest.php | 4 +- tests/Denmark/SummerTimeTest.php | 4 +- tests/Denmark/WinterTimeTest.php | 4 +- tests/Estonia/ChristmasDayTest.php | 4 +- tests/Estonia/ChristmasEveDayTest.php | 4 +- tests/Estonia/EasterDayTest.php | 4 +- tests/Estonia/EstoniaTest.php | 10 ++-- tests/Estonia/GoodFridayDayTest.php | 4 +- tests/Estonia/IndependenceDayTest.php | 4 +- tests/Estonia/InternationalWorkersDayTest.php | 4 +- tests/Estonia/NewYearsDayTest.php | 4 +- tests/Estonia/PentecostTest.php | 4 +- .../RestorationOfIndependenceDayTest.php | 4 +- tests/Estonia/SecondChristmasDayTest.php | 4 +- tests/Estonia/StJohnsDayTest.php | 4 +- tests/Estonia/VictoryDayTest.php | 4 +- tests/Finland/AllSaintsDayTest.php | 4 +- tests/Finland/AscensionDayTest.php | 4 +- tests/Finland/ChristmasDayTest.php | 4 +- tests/Finland/EasterMondayTest.php | 4 +- tests/Finland/EasterTest.php | 4 +- tests/Finland/EpiphanyTest.php | 4 +- tests/Finland/FinlandTest.php | 10 ++-- tests/Finland/GoodFridayTest.php | 4 +- tests/Finland/IndependenceDayTest.php | 4 +- tests/Finland/InternationalWorkersDayTest.php | 4 +- tests/Finland/NewYearsDayTest.php | 4 +- tests/Finland/PentecostTest.php | 4 +- tests/Finland/SecondChristmasDayTest.php | 4 +- tests/Finland/stJohnsDayTest.php | 4 +- tests/France/AllSaintsDayTest.php | 4 +- tests/France/ArmisticeDayTest.php | 4 +- tests/France/AscensionDayTest.php | 4 +- tests/France/AssumptionOfMaryTest.php | 4 +- tests/France/BasRhin/BasRhinTest.php | 10 ++-- tests/France/BasRhin/GoodFridayTest.php | 4 +- tests/France/BasRhin/stStephensDayTest.php | 4 +- tests/France/BastilleDayTest.php | 4 +- tests/France/ChristmasDayTest.php | 4 +- tests/France/EasterMondayTest.php | 4 +- tests/France/FranceTest.php | 10 ++-- tests/France/HautRhin/GoodFridayTest.php | 4 +- tests/France/HautRhin/HautRhinTest.php | 10 ++-- tests/France/HautRhin/stStephensDayTest.php | 4 +- tests/France/InternationalWorkersDayTest.php | 4 +- tests/France/Moselle/GoodFridayTest.php | 4 +- tests/France/Moselle/MoselleTest.php | 10 ++-- tests/France/Moselle/stStephensDayTest.php | 4 +- tests/France/NewYearsDayTest.php | 4 +- tests/France/PentecostMondayTest.php | 4 +- tests/France/VictoryInEuropeDayTest.php | 4 +- tests/Germany/AscensionDayTest.php | 4 +- .../BadenWurttemberg/AllSaintsDayTest.php | 4 +- .../BadenWurttemberg/BadenWurttembergTest.php | 10 ++-- .../BadenWurttemberg/CorpusChristiTest.php | 4 +- .../Germany/BadenWurttemberg/EpiphanyTest.php | 4 +- tests/Germany/Bavaria/AllSaintsDayTest.php | 4 +- tests/Germany/Bavaria/BavariaTest.php | 10 ++-- tests/Germany/Bavaria/CorpusChristiTest.php | 4 +- tests/Germany/Bavaria/EpiphanyTest.php | 4 +- tests/Germany/Berlin/BerlinTest.php | 10 ++-- tests/Germany/Brandenburg/BrandenburgTest.php | 10 ++-- .../Brandenburg/ReformationDayTest.php | 4 +- tests/Germany/Bremen/BremenTest.php | 10 ++-- tests/Germany/Bremen/ReformationDayTest.php | 4 +- tests/Germany/ChristmasTest.php | 4 +- tests/Germany/EasterMondayTest.php | 4 +- tests/Germany/GermanUnityDayTest.php | 4 +- tests/Germany/GermanyTest.php | 10 ++-- tests/Germany/GoodFridayTest.php | 4 +- .../Germany/Hamburg/DayOfReformationTest.php | 4 +- tests/Germany/Hamburg/HamburgTest.php | 10 ++-- tests/Germany/Hesse/CorpusChristiTest.php | 4 +- tests/Germany/Hesse/HesseTest.php | 10 ++-- tests/Germany/InternationalWorkersDayTest.php | 4 +- tests/Germany/LowerSaxony/LowerSaxonyTest.php | 10 ++-- .../LowerSaxony/ReformationDayTest.php | 4 +- .../MecklenburgWesternPomeraniaTest.php | 10 ++-- .../ReformationDayTest.php | 4 +- tests/Germany/NewYearsDayTest.php | 4 +- .../NorthRhineWestphalia/AllSaintsDayTest.php | 4 +- .../CorpusChristiTest.php | 4 +- .../NorthRhineWestphaliaTest.php | 10 ++-- tests/Germany/PentecostMondayTest.php | 4 +- tests/Germany/ReformationDay2017Test.php | 4 +- .../RhinelandPalatinate/AllSaintsDayTest.php | 4 +- .../RhinelandPalatinate/CorpusChristiTest.php | 4 +- .../RhinelandPalatinateTest.php | 10 ++-- tests/Germany/Saarland/AllSaintsDayTest.php | 4 +- .../Germany/Saarland/AssumptionOfMaryTest.php | 4 +- tests/Germany/Saarland/CorpusChristiTest.php | 4 +- tests/Germany/Saarland/SaarlandTest.php | 10 ++-- tests/Germany/Saxony/ReformationDayTest.php | 4 +- .../Saxony/RepentanceAndPrayerDayTest.php | 4 +- tests/Germany/Saxony/SaxonyTest.php | 10 ++-- tests/Germany/SaxonyAnhalt/EpiphanyTest.php | 4 +- .../SaxonyAnhalt/ReformationDayTest.php | 4 +- .../Germany/SaxonyAnhalt/SaxonyAnhaltTest.php | 10 ++-- .../SchleswigHolstein/ReformationDayTest.php | 4 +- .../SchleswigHolsteinTest.php | 10 ++-- tests/Germany/SecondChristmasDayTest.php | 4 +- .../Germany/Thuringia/ReformationDayTest.php | 4 +- tests/Germany/Thuringia/ThuringiaTest.php | 10 ++-- tests/Greece/AnnunciationTest.php | 4 +- tests/Greece/AscensionDayTest.php | 4 +- tests/Greece/AssumptionOfMaryTest.php | 4 +- tests/Greece/ChristmasDayTest.php | 4 +- tests/Greece/CleanMondayTest.php | 4 +- tests/Greece/EasterMondayTest.php | 4 +- tests/Greece/EasterTest.php | 4 +- tests/Greece/EpiphanyTest.php | 4 +- tests/Greece/GreeceTest.php | 10 ++-- tests/Greece/IndepencenceDayTest.php | 4 +- tests/Greece/InternationalWorkersDayTest.php | 4 +- tests/Greece/NewYearsDayTest.php | 4 +- tests/Greece/OhiDayTest.php | 4 +- tests/Greece/PentecostMondayTest.php | 4 +- tests/Greece/PentecostTest.php | 4 +- tests/Greece/PolytechnioTest.php | 4 +- tests/Greece/ThreeHolyHierarchsTest.php | 4 +- tests/Greece/goodFridayTest.php | 4 +- tests/Hungary/AllSaintsDayTest.php | 4 +- tests/Hungary/ChristmasTest.php | 4 +- tests/Hungary/EasterMondayTest.php | 4 +- tests/Hungary/EasterTest.php | 4 +- tests/Hungary/HungaryTest.php | 10 ++-- tests/Hungary/InternationalWorkersDayTest.php | 4 +- tests/Hungary/MemorialDay1848Test.php | 4 +- tests/Hungary/MemorialDay1956Test.php | 4 +- tests/Hungary/NewYearsDayTest.php | 4 +- tests/Hungary/PentecostMondayTest.php | 4 +- tests/Hungary/PentecostTest.php | 4 +- tests/Hungary/SecondChristmasDayTest.php | 4 +- tests/Hungary/StateFoundationDayTest.php | 4 +- tests/Ireland/AugustHolidayTest.php | 4 +- tests/Ireland/ChristmasDayTest.php | 4 +- tests/Ireland/EasterMondayTest.php | 4 +- tests/Ireland/EasterTest.php | 4 +- tests/Ireland/GoodFridayTest.php | 4 +- tests/Ireland/IrelandTest.php | 10 ++-- tests/Ireland/JuneHolidayTest.php | 4 +- tests/Ireland/MayDayTest.php | 4 +- tests/Ireland/NewYearsDayTest.php | 4 +- tests/Ireland/OctoberHolidayTest.php | 4 +- tests/Ireland/PentecostTest.php | 4 +- tests/Ireland/StPatricksDayTest.php | 4 +- tests/Ireland/StStephensDayTest.php | 4 +- tests/Ireland/pentecostMondayTest.php | 4 +- tests/Italy/AllSaintsDayTest.php | 4 +- tests/Italy/AssumptionOfMaryTest.php | 4 +- tests/Italy/ChristmasTest.php | 4 +- tests/Italy/EasterMondayTest.php | 4 +- tests/Italy/EasterTest.php | 4 +- tests/Italy/EpiphanyTest.php | 4 +- tests/Italy/ImmaculateConceptionTest.php | 4 +- tests/Italy/InternationalWorkersDayTest.php | 4 +- tests/Italy/ItalyTest.php | 10 ++-- tests/Italy/LiberationDayTest.php | 4 +- tests/Italy/NewYearsDayTest.php | 4 +- tests/Italy/RepublicDayTest.php | 4 +- tests/Italy/stStephensDayTest.php | 4 +- tests/Japan/AutumnalEquinoxDayTest.php | 4 +- tests/Japan/ChildrensDayTest.php | 4 +- tests/Japan/ComingOfAgeDayTest.php | 4 +- tests/Japan/ConstitutionMemorialDayTest.php | 4 +- tests/Japan/CultureDayTest.php | 4 +- tests/Japan/EmperorsBirthdayTest.php | 4 +- tests/Japan/GreeneryDayTest.php | 4 +- tests/Japan/HealthAndSportsDayTest.php | 4 +- tests/Japan/JapanTest.php | 10 ++-- tests/Japan/LabourThanksgivingDayTest.php | 4 +- tests/Japan/MarineDayTest.php | 4 +- tests/Japan/MountainDayTest.php | 4 +- tests/Japan/NationalFoundationDayTest.php | 4 +- tests/Japan/NewYearsDayTest.php | 4 +- tests/Japan/PublicBridgeDayTest.php | 4 +- tests/Japan/RespectForTheAgedDayTest.php | 4 +- tests/Japan/ShowaDayTest.php | 4 +- tests/Japan/VernalEquinoxDayTest.php | 4 +- tests/Latvia/ChristmasDayTest.php | 4 +- tests/Latvia/ChristmasEveDayTest.php | 4 +- tests/Latvia/EasterDayTest.php | 4 +- tests/Latvia/EasterMondayDayTest.php | 4 +- tests/Latvia/GoodFridayDayTest.php | 4 +- tests/Latvia/InternationalWorkersDayTest.php | 4 +- tests/Latvia/LatviaTest.php | 10 ++-- tests/Latvia/MidsummerEveDayTest.php | 4 +- tests/Latvia/NewYearsDayTest.php | 4 +- tests/Latvia/NewYearsEveDayTest.php | 4 +- ...oclamationOfTheRepublicOfLatviaDayTest.php | 4 +- .../RestorationOfIndependenceDayTest.php | 4 +- tests/Latvia/SecondChristmasDayTest.php | 4 +- tests/Latvia/StJohnsDayTest.php | 4 +- tests/Lithuania/AllSaintsDayTest.php | 4 +- tests/Lithuania/AssumptionOfMaryDayTest.php | 4 +- tests/Lithuania/ChristmasDayTest.php | 4 +- tests/Lithuania/ChristmasEveDayTest.php | 4 +- tests/Lithuania/EasterDayTest.php | 4 +- tests/Lithuania/EasterMondayDayTest.php | 4 +- .../Lithuania/InternationalWorkersDayTest.php | 4 +- tests/Lithuania/LithuaniaTest.php | 10 ++-- tests/Lithuania/NewYearsDayTest.php | 4 +- ...rationOfIndependenceOfLithuaniaDayTest.php | 4 +- ...estorationOfTheStateOfLithuaniaDayTest.php | 4 +- tests/Lithuania/SecondChristmasDayTest.php | 4 +- tests/Lithuania/StJohnsDayTest.php | 4 +- tests/Lithuania/StatehoodDayTest.php | 4 +- tests/Netherlands/AscensionDayTest.php | 4 +- tests/Netherlands/AshWednesdayTest.php | 4 +- tests/Netherlands/ChristmasDayTest.php | 4 +- tests/Netherlands/CommemorationDayTest.php | 4 +- tests/Netherlands/EasterMondayTest.php | 4 +- tests/Netherlands/EasterTest.php | 4 +- tests/Netherlands/EpiphanyTest.php | 4 +- tests/Netherlands/FathersDayTest.php | 4 +- tests/Netherlands/GoodFridayTest.php | 4 +- tests/Netherlands/HalloweenTest.php | 4 +- .../InternationalWorkersDayTest.php | 4 +- tests/Netherlands/KingsDayTest.php | 4 +- tests/Netherlands/LiberationDayTest.php | 4 +- tests/Netherlands/MothersDayTest.php | 4 +- tests/Netherlands/NetherlandsTest.php | 10 ++-- tests/Netherlands/NewYearsDayTest.php | 4 +- tests/Netherlands/PentecostTest.php | 4 +- tests/Netherlands/QueensDayTest.php | 4 +- tests/Netherlands/SummertimeTest.php | 4 +- tests/Netherlands/ValentinesDayTest.php | 4 +- tests/Netherlands/WintertimeTest.php | 4 +- tests/Netherlands/WorldAnimalDayTest.php | 4 +- tests/Netherlands/carnivalDayTest.php | 4 +- tests/Netherlands/pentecostMondayTest.php | 4 +- tests/Netherlands/princesDayTest.php | 4 +- tests/Netherlands/secondCarnivalDay.php | 4 +- tests/Netherlands/secondChristmasdayTest.php | 4 +- tests/Netherlands/stMartinsDayTest.php | 4 +- tests/Netherlands/stNicholasDayTest.php | 4 +- tests/Netherlands/thirdCarnivalDay.php | 4 +- tests/Norway/AscensionDayTest.php | 4 +- tests/Norway/ChristmasDayTest.php | 4 +- tests/Norway/ConstitutionDayTest.php | 4 +- tests/Norway/EasterMondayTest.php | 4 +- tests/Norway/EasterTest.php | 4 +- tests/Norway/GoodFridayTest.php | 4 +- tests/Norway/InternationalWorkersDayTest.php | 4 +- tests/Norway/MaundyThursdayTest.php | 4 +- tests/Norway/NewYearsDayTest.php | 4 +- tests/Norway/NorwayTest.php | 10 ++-- tests/Norway/PentecostMondayTest.php | 4 +- tests/Norway/PentecostTest.php | 4 +- tests/Norway/SecondChristmasDayTest.php | 4 +- tests/Poland/AllSaintsDayTest.php | 4 +- tests/Poland/AssumptionOfMaryTest.php | 4 +- tests/Poland/ChristmasTest.php | 4 +- tests/Poland/ConstitutionDayTest.php | 4 +- tests/Poland/CorpusChristiTest.php | 4 +- tests/Poland/EasterMondayTest.php | 4 +- tests/Poland/EasterTest.php | 4 +- tests/Poland/EpiphanyTest.php | 4 +- tests/Poland/IndependenceDayTest.php | 4 +- tests/Poland/InternationalWorkersDayTest.php | 4 +- tests/Poland/NewYearsDayTest.php | 4 +- tests/Poland/PentecostTest.php | 4 +- tests/Poland/PolandTest.php | 10 ++-- tests/Poland/SecondChristmasDayTest.php | 4 +- tests/Portugal/AllSaintsDayTest.php | 4 +- tests/Portugal/AssumptionOfMaryTest.php | 4 +- tests/Portugal/CarnationRevolutionDayTest.php | 4 +- tests/Portugal/ChristmasTest.php | 4 +- tests/Portugal/CorpusChristiTest.php | 4 +- tests/Portugal/EasterTest.php | 4 +- tests/Portugal/GoodFridayTest.php | 4 +- tests/Portugal/ImmaculateConceptionTest.php | 4 +- .../Portugal/InternationalWorkersDayTest.php | 4 +- tests/Portugal/NewYearsDayTest.php | 4 +- tests/Portugal/PortugalDayTest.php | 4 +- tests/Portugal/PortugalTest.php | 10 ++-- tests/Portugal/PortugueseRepublicDayTest.php | 4 +- .../RestorationOfIndependenceTest.php | 4 +- tests/Romania/AssumptionOfMaryTest.php | 4 +- tests/Romania/ChildrensDayTest.php | 4 +- tests/Romania/ChristmasDayTest.php | 4 +- tests/Romania/ConstantinBrancusiDayTest.php | 4 +- tests/Romania/DayAfterNewYearsDayTest.php | 4 +- tests/Romania/EasterMondayTest.php | 4 +- tests/Romania/EasterTest.php | 4 +- tests/Romania/InternationalWorkersDayTest.php | 4 +- tests/Romania/NationalDayTest.php | 4 +- tests/Romania/NewYearsDayTest.php | 4 +- tests/Romania/PentecostMondayTest.php | 4 +- tests/Romania/PentecostTest.php | 4 +- tests/Romania/RomaniaTest.php | 10 ++-- tests/Romania/SecondChristmasDayTest.php | 4 +- tests/Romania/StAndrewDayTest.php | 4 +- tests/Romania/UnitedPrincipalitiesDayTest.php | 4 +- .../Russia/DefenceOfTheFatherlandDayTest.php | 4 +- tests/Russia/InternationalWomensDayTest.php | 4 +- tests/Russia/NewYearHolidaysDay2Test.php | 4 +- tests/Russia/NewYearHolidaysDay3Test.php | 4 +- tests/Russia/NewYearHolidaysDay4Test.php | 4 +- tests/Russia/NewYearHolidaysDay5Test.php | 4 +- tests/Russia/NewYearHolidaysDay6Test.php | 4 +- tests/Russia/NewYearHolidaysDay8Test.php | 4 +- tests/Russia/NewYearsDayTest.php | 4 +- tests/Russia/OrthodoxChristmasDayTest.php | 4 +- tests/Russia/RussiaDayTest.php | 4 +- tests/Russia/RussiaTest.php | 10 ++-- tests/Russia/SpringAndLabourDayTest.php | 4 +- tests/Russia/UnityDayTest.php | 4 +- tests/Russia/VictoryDayTest.php | 4 +- tests/Slovakia/AllSaintsDayTest.php | 4 +- tests/Slovakia/ChristmasDayTest.php | 4 +- tests/Slovakia/ChristmasEveTest.php | 4 +- tests/Slovakia/EasterMondayTest.php | 4 +- tests/Slovakia/EpiphanyTest.php | 4 +- tests/Slovakia/GoodFridayTest.php | 4 +- .../Slovakia/InternationalWorkersDayTest.php | 4 +- tests/Slovakia/NewYearsDayTest.php | 4 +- tests/Slovakia/OurLadyOfSorrowsDayTest.php | 4 +- .../SaintsCyrilAndMethodiusDayTest.php | 4 +- tests/Slovakia/SecondChristmasDayTest.php | 4 +- tests/Slovakia/SlovakConstitutionDayTest.php | 4 +- .../SlovakNationalUprisingDayTest.php | 4 +- tests/Slovakia/SlovakiaTest.php | 10 ++-- .../StruggleForFreedomAndDemocracyDayTest.php | 4 +- tests/Slovakia/VictoryInEuropeDayTest.php | 4 +- tests/SouthAfrica/ChristmasDayTest.php | 4 +- tests/SouthAfrica/FamilyDayTest.php | 4 +- tests/SouthAfrica/FreedomDayTest.php | 4 +- tests/SouthAfrica/GoodFridayTest.php | 4 +- tests/SouthAfrica/HeritageDayTest.php | 4 +- tests/SouthAfrica/HumanRightsDayTest.php | 4 +- .../MunicipalElections2016DayTest.php | 4 +- tests/SouthAfrica/NationalWomensDayTest.php | 4 +- tests/SouthAfrica/NewYearsDayTest.php | 4 +- tests/SouthAfrica/ReconciliationDayTest.php | 4 +- tests/SouthAfrica/SecondChristmasDayTest.php | 4 +- tests/SouthAfrica/SouthAfricaTest.php | 10 ++-- .../SubstituteDayOfGoodwillTest.php | 4 +- tests/SouthAfrica/WorkersDayTest.php | 4 +- tests/SouthAfrica/YouthDayTest.php | 4 +- tests/Spain/AllSaintsDayTest.php | 4 +- tests/Spain/Andalusia/AndalusiaDayTest.php | 4 +- tests/Spain/Andalusia/AndalusiaTest.php | 10 ++-- tests/Spain/Aragon/AragonTest.php | 10 ++-- tests/Spain/Aragon/StGeorgesDayTest.php | 4 +- tests/Spain/AssumptionOfMaryTest.php | 4 +- tests/Spain/Asturias/AsturiasDayTest.php | 4 +- tests/Spain/Asturias/AsturiasTest.php | 10 ++-- .../BalearicIslandsDayTest.php | 4 +- .../BalearicIslands/BalearicIslandsTest.php | 10 ++-- .../BasqueCountry/BasqueCountryDayTest.php | 4 +- .../Spain/BasqueCountry/BasqueCountryTest.php | 10 ++-- .../CanaryIslands/CanaryIslandsDayTest.php | 4 +- .../Spain/CanaryIslands/CanaryIslandsTest.php | 10 ++-- tests/Spain/Cantabria/CantabriaDayTest.php | 4 +- tests/Spain/Cantabria/CantabriaTest.php | 10 ++-- .../CastileAndLeon/CastileAndLeonDayTest.php | 4 +- .../CastileAndLeon/CastileAndLeonTest.php | 10 ++-- .../CastillaLaManchaDayTest.php | 4 +- .../CastillaLaMancha/CastillaLaManchaTest.php | 10 ++-- tests/Spain/Catalonia/CataloniaTest.php | 10 ++-- .../Catalonia/nationalCataloniaDayTest.php | 4 +- tests/Spain/Catalonia/stJohnsDayTest.php | 4 +- tests/Spain/Ceuta/CeutaTest.php | 10 ++-- tests/Spain/Ceuta/ceutaDayTest.php | 4 +- tests/Spain/ChristmasTest.php | 4 +- .../CommunityOfMadridTest.php | 10 ++-- .../DosdeMayoUprisingDayTest.php | 4 +- tests/Spain/ConstitutionDayTest.php | 4 +- tests/Spain/EasterMondayTest.php | 4 +- tests/Spain/EpiphanyTest.php | 4 +- .../Spain/Extremadura/ExtremaduraDayTest.php | 4 +- tests/Spain/Extremadura/ExtremaduraTest.php | 10 ++-- tests/Spain/Galicia/GaliciaTest.php | 10 ++-- .../Galicia/GalicianLiteratureDayTest.php | 4 +- tests/Spain/Galicia/stJamesDayTest.php | 4 +- tests/Spain/GoodFridayTest.php | 4 +- tests/Spain/ImmaculateConceptionTest.php | 4 +- tests/Spain/InternationalWorkersDayTest.php | 4 +- tests/Spain/LaRioja/LaRiojaDayTest.php | 4 +- tests/Spain/LaRioja/LaRiojaTest.php | 10 ++-- tests/Spain/MaundyThursdayTest.php | 4 +- tests/Spain/Melilla/MelillaTest.php | 10 ++-- tests/Spain/NationalDayTest.php | 4 +- tests/Spain/Navarre/NavarreTest.php | 10 ++-- tests/Spain/NewYearsDayTest.php | 4 +- .../RegionOfMurcia/RegionOfMurciaDayTest.php | 4 +- .../RegionOfMurcia/RegionOfMurciaTest.php | 10 ++-- tests/Spain/SpainTest.php | 10 ++-- .../ValencianCommunityDayTest.php | 4 +- .../ValencianCommunityTest.php | 10 ++-- tests/Spain/ValentinesDayTest.php | 4 +- tests/Spain/stJosephsDayTest.php | 4 +- tests/Sweden/AllSaintsDayTest.php | 4 +- tests/Sweden/AscensionDayTest.php | 4 +- tests/Sweden/ChristmasDayTest.php | 4 +- tests/Sweden/ChristmasEveTest.php | 4 +- tests/Sweden/EasterMondayTest.php | 4 +- tests/Sweden/EasterTest.php | 4 +- tests/Sweden/EpiphanyTest.php | 4 +- tests/Sweden/GoodFridayTest.php | 4 +- tests/Sweden/InternationalWorkersDayTest.php | 4 +- tests/Sweden/NationalDayTest.php | 4 +- tests/Sweden/NewYearsDayTest.php | 4 +- tests/Sweden/PentecostTest.php | 4 +- tests/Sweden/SecondChristmasDayTest.php | 4 +- tests/Sweden/SwedenTest.php | 10 ++-- tests/Sweden/stJohnsDayTest.php | 4 +- tests/Switzerland/Aargau/AargauTest.php | 12 ++-- tests/Switzerland/Aargau/AscensionDayTest.php | 4 +- tests/Switzerland/Aargau/ChristmasDayTest.php | 4 +- tests/Switzerland/Aargau/GoodFridayTest.php | 4 +- tests/Switzerland/Aargau/NewYearsDayTest.php | 4 +- .../AppenzellAusserrhodenTest.php | 12 ++-- .../AscensionDayTest.php | 4 +- .../ChristmasDayTest.php | 4 +- .../EasterMondayTest.php | 4 +- .../AppenzellAusserrhoden/GoodFridayTest.php | 4 +- .../AppenzellAusserrhoden/NewYearsDayTest.php | 4 +- .../PentecostMondayTest.php | 4 +- .../StStephensDayTest.php | 4 +- .../AppenzellInnerrhoden/AllSaintsDayTest.php | 4 +- .../AppenzellInnerrhodenTest.php | 12 ++-- .../AppenzellInnerrhoden/AscensionDayTest.php | 4 +- .../AssumptionOfMaryTest.php | 4 +- .../AppenzellInnerrhoden/ChristmasDayTest.php | 4 +- .../CorpusChristiTest.php | 4 +- .../AppenzellInnerrhoden/EasterMondayTest.php | 4 +- .../AppenzellInnerrhoden/GoodFridayTest.php | 4 +- .../ImmaculateConceptionTest.php | 4 +- .../AppenzellInnerrhoden/NewYearsDayTest.php | 4 +- .../PentecostMondayTest.php | 4 +- .../StStephensDayTest.php | 4 +- .../BaselLandschaft/AscensionDayTest.php | 4 +- .../BaselLandschaft/BaselLandschaftTest.php | 12 ++-- .../BaselLandschaft/ChristmasDayTest.php | 4 +- .../BaselLandschaft/EasterMondayTest.php | 4 +- .../BaselLandschaft/GoodFridayTest.php | 4 +- .../BaselLandschaft/NewYearsDayTest.php | 4 +- .../BaselLandschaft/PentecostMondayTest.php | 4 +- .../BaselLandschaft/StStephensDayTest.php | 4 +- .../BaselLandschaft/WorkersDayTest.php | 4 +- .../BaselStadt/AscensionDayTest.php | 4 +- .../Switzerland/BaselStadt/BaselStadtTest.php | 12 ++-- .../BaselStadt/ChristmasDayTest.php | 4 +- .../BaselStadt/EasterMondayTest.php | 4 +- .../Switzerland/BaselStadt/GoodFridayTest.php | 4 +- .../BaselStadt/NewYearsDayTest.php | 4 +- .../BaselStadt/PentecostMondayTest.php | 4 +- .../BaselStadt/StStephensDayTest.php | 4 +- .../Switzerland/BaselStadt/WorkersDayTest.php | 4 +- tests/Switzerland/Bern/AscensionDayTest.php | 4 +- tests/Switzerland/Bern/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Bern/BernTest.php | 12 ++-- tests/Switzerland/Bern/ChristmasDayTest.php | 4 +- tests/Switzerland/Bern/EasterMondayTest.php | 4 +- tests/Switzerland/Bern/GoodFridayTest.php | 4 +- tests/Switzerland/Bern/NewYearsDayTest.php | 4 +- .../Switzerland/Bern/PentecostMondayTest.php | 4 +- tests/Switzerland/Bern/StStephensDayTest.php | 4 +- .../Switzerland/Fribourg/AscensionDayTest.php | 4 +- .../Switzerland/Fribourg/ChristmasDayTest.php | 4 +- .../Switzerland/Fribourg/EasterMondayTest.php | 4 +- tests/Switzerland/Fribourg/FribourgTest.php | 12 ++-- tests/Switzerland/Fribourg/GoodFridayTest.php | 4 +- .../Switzerland/Fribourg/NewYearsDayTest.php | 4 +- .../Fribourg/PentecostMondayTest.php | 4 +- tests/Switzerland/Geneva/AscensionDayTest.php | 4 +- tests/Switzerland/Geneva/ChristmasDayTest.php | 4 +- tests/Switzerland/Geneva/EasterMondayTest.php | 4 +- tests/Switzerland/Geneva/GenevaTest.php | 12 ++-- tests/Switzerland/Geneva/GoodFridayTest.php | 4 +- .../Switzerland/Geneva/JeuneGenevoisTest.php | 4 +- tests/Switzerland/Geneva/NewYearsDayTest.php | 4 +- .../Geneva/PentecostMondayTest.php | 4 +- .../Geneva/RestaurationGenevoiseTest.php | 4 +- tests/Switzerland/Glarus/AllSaintsDayTest.php | 4 +- tests/Switzerland/Glarus/AscensionDayTest.php | 4 +- .../Switzerland/Glarus/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Glarus/ChristmasDayTest.php | 4 +- tests/Switzerland/Glarus/EasterMondayTest.php | 4 +- tests/Switzerland/Glarus/GlarusTest.php | 12 ++-- tests/Switzerland/Glarus/GoodFridayTest.php | 4 +- .../Switzerland/Glarus/NafelserFahrtTest.php | 4 +- tests/Switzerland/Glarus/NewYearsDayTest.php | 4 +- .../Glarus/PentecostMondayTest.php | 4 +- .../Switzerland/Glarus/StStephensDayTest.php | 4 +- .../Switzerland/Grisons/AscensionDayTest.php | 4 +- .../Switzerland/Grisons/ChristmasDayTest.php | 4 +- .../Switzerland/Grisons/EasterMondayTest.php | 4 +- tests/Switzerland/Grisons/GoodFridayTest.php | 4 +- tests/Switzerland/Grisons/GrisonsTest.php | 12 ++-- tests/Switzerland/Grisons/NewYearsDayTest.php | 4 +- .../Grisons/PentecostMondayTest.php | 4 +- .../Switzerland/Grisons/StStephensDayTest.php | 4 +- tests/Switzerland/Jura/AllSaintsDayTest.php | 4 +- tests/Switzerland/Jura/AscensionDayTest.php | 4 +- .../Switzerland/Jura/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Jura/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Jura/ChristmasDayTest.php | 4 +- tests/Switzerland/Jura/CorpusChristiTest.php | 4 +- tests/Switzerland/Jura/EasterMondayTest.php | 4 +- tests/Switzerland/Jura/GoodFridayTest.php | 4 +- tests/Switzerland/Jura/JuraTest.php | 12 ++-- tests/Switzerland/Jura/NewYearsDayTest.php | 4 +- .../Switzerland/Jura/PentecostMondayTest.php | 4 +- .../Jura/PlebisciteJurassienTest.php | 4 +- tests/Switzerland/Jura/WorkersDayTest.php | 4 +- .../Switzerland/Lucerne/AllSaintsDayTest.php | 4 +- .../Switzerland/Lucerne/AscensionDayTest.php | 4 +- .../Lucerne/AssumptionOfMaryTest.php | 4 +- .../Switzerland/Lucerne/BerchtoldsTagTest.php | 4 +- .../Switzerland/Lucerne/ChristmasDayTest.php | 4 +- .../Switzerland/Lucerne/CorpusChristiTest.php | 4 +- .../Switzerland/Lucerne/EasterMondayTest.php | 4 +- tests/Switzerland/Lucerne/GoodFridayTest.php | 4 +- .../Lucerne/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Lucerne/LucerneTest.php | 12 ++-- tests/Switzerland/Lucerne/NewYearsDayTest.php | 4 +- .../Lucerne/PentecostMondayTest.php | 4 +- .../Switzerland/Lucerne/StStephensDayTest.php | 4 +- .../Neuchatel/AscensionDayTest.php | 4 +- .../Neuchatel/BerchtoldsTagTest.php | 4 +- .../Neuchatel/BettagsMontagTest.php | 4 +- .../Neuchatel/ChristmasDayTest.php | 4 +- .../Neuchatel/EasterMondayTest.php | 4 +- .../Switzerland/Neuchatel/GoodFridayTest.php | 4 +- .../Neuchatel/InstaurationRepubliqueTest.php | 4 +- tests/Switzerland/Neuchatel/NeuchatelTest.php | 12 ++-- .../Switzerland/Neuchatel/NewYearsDayTest.php | 4 +- .../Neuchatel/PentecostMondayTest.php | 4 +- .../Switzerland/Neuchatel/WorkersDayTest.php | 4 +- .../Nidwalden/AllSaintsDayTest.php | 4 +- .../Nidwalden/AscensionDayTest.php | 4 +- .../Nidwalden/AssumptionOfMaryTest.php | 4 +- .../Nidwalden/ChristmasDayTest.php | 4 +- .../Nidwalden/CorpusChristiTest.php | 4 +- .../Nidwalden/EasterMondayTest.php | 4 +- .../Switzerland/Nidwalden/GoodFridayTest.php | 4 +- .../Nidwalden/ImmaculateConceptionTest.php | 4 +- .../Switzerland/Nidwalden/NewYearsDayTest.php | 4 +- tests/Switzerland/Nidwalden/NidwaldenTest.php | 12 ++-- .../Nidwalden/PentecostMondayTest.php | 4 +- .../Switzerland/Nidwalden/StJosephDayTest.php | 4 +- .../Nidwalden/StStephensDayTest.php | 4 +- .../Switzerland/Obwalden/AllSaintsDayTest.php | 4 +- .../Switzerland/Obwalden/AscensionDayTest.php | 4 +- .../Obwalden/AssumptionOfMaryTest.php | 4 +- .../Obwalden/BerchtoldsTagTest.php | 4 +- .../Obwalden/BruderKlausenFestTest.php | 4 +- .../Switzerland/Obwalden/ChristmasDayTest.php | 4 +- .../Obwalden/CorpusChristiTest.php | 4 +- .../Switzerland/Obwalden/EasterMondayTest.php | 4 +- tests/Switzerland/Obwalden/GoodFridayTest.php | 4 +- .../Obwalden/ImmaculateConceptionTest.php | 4 +- .../Switzerland/Obwalden/NewYearsDayTest.php | 4 +- tests/Switzerland/Obwalden/ObwaldenTest.php | 12 ++-- .../Obwalden/PentecostMondayTest.php | 4 +- .../Obwalden/StStephensDayTest.php | 4 +- .../Schaffhausen/AscensionDayTest.php | 4 +- .../Schaffhausen/BerchtoldsTagTest.php | 4 +- .../Schaffhausen/ChristmasDayTest.php | 4 +- .../Schaffhausen/EasterMondayTest.php | 4 +- .../Schaffhausen/GoodFridayTest.php | 4 +- .../Schaffhausen/NewYearsDayTest.php | 4 +- .../Schaffhausen/PentecostMondayTest.php | 4 +- .../Schaffhausen/SchaffhausenTest.php | 12 ++-- .../Schaffhausen/StStephensDayTest.php | 4 +- .../Schaffhausen/WorkersDayTest.php | 4 +- tests/Switzerland/Schwyz/AllSaintsDayTest.php | 4 +- tests/Switzerland/Schwyz/AscensionDayTest.php | 4 +- .../Schwyz/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Schwyz/ChristmasDayTest.php | 4 +- .../Switzerland/Schwyz/CorpusChristiTest.php | 4 +- tests/Switzerland/Schwyz/EasterMondayTest.php | 4 +- tests/Switzerland/Schwyz/EpiphanyTest.php | 4 +- tests/Switzerland/Schwyz/GoodFridayTest.php | 4 +- .../Schwyz/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Schwyz/NewYearsDayTest.php | 4 +- .../Schwyz/PentecostMondayTest.php | 4 +- tests/Switzerland/Schwyz/SchwyzTest.php | 12 ++-- tests/Switzerland/Schwyz/StJosephDayTest.php | 4 +- .../Switzerland/Schwyz/StStephensDayTest.php | 4 +- .../Solothurn/AscensionDayTest.php | 4 +- .../Solothurn/BerchtoldsTagTest.php | 4 +- .../Solothurn/ChristmasDayTest.php | 4 +- .../Switzerland/Solothurn/GoodFridayTest.php | 4 +- .../Switzerland/Solothurn/NewYearsDayTest.php | 4 +- tests/Switzerland/Solothurn/SolothurnTest.php | 12 ++-- .../Switzerland/StGallen/AllSaintsDayTest.php | 4 +- .../Switzerland/StGallen/AscensionDayTest.php | 4 +- .../Switzerland/StGallen/ChristmasDayTest.php | 4 +- .../Switzerland/StGallen/EasterMondayTest.php | 4 +- tests/Switzerland/StGallen/GoodFridayTest.php | 4 +- .../Switzerland/StGallen/NewYearsDayTest.php | 4 +- .../StGallen/PentecostMondayTest.php | 4 +- tests/Switzerland/StGallen/StGallenTest.php | 12 ++-- .../StGallen/StStephensDayTest.php | 4 +- tests/Switzerland/SwissNationalDayTest.php | 4 +- tests/Switzerland/SwitzerlandTest.php | 10 ++-- .../Switzerland/Thurgau/AscensionDayTest.php | 4 +- .../Switzerland/Thurgau/BerchtoldsTagTest.php | 4 +- .../Switzerland/Thurgau/ChristmasDayTest.php | 4 +- .../Switzerland/Thurgau/EasterMondayTest.php | 4 +- tests/Switzerland/Thurgau/GoodFridayTest.php | 4 +- tests/Switzerland/Thurgau/NewYearsDayTest.php | 4 +- .../Thurgau/PentecostMondayTest.php | 4 +- .../Switzerland/Thurgau/StStephensDayTest.php | 4 +- tests/Switzerland/Thurgau/ThurgauTest.php | 12 ++-- tests/Switzerland/Thurgau/WorkersDayTest.php | 4 +- tests/Switzerland/Ticino/AllSaintsDayTest.php | 4 +- tests/Switzerland/Ticino/AscensionDayTest.php | 4 +- .../Ticino/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Ticino/ChristmasDayTest.php | 4 +- .../Switzerland/Ticino/CorpusChristiTest.php | 4 +- tests/Switzerland/Ticino/EasterMondayTest.php | 4 +- tests/Switzerland/Ticino/EpiphanyTest.php | 4 +- .../Ticino/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Ticino/NewYearsDayTest.php | 4 +- .../Ticino/PentecostMondayTest.php | 4 +- tests/Switzerland/Ticino/StJosephDayTest.php | 4 +- tests/Switzerland/Ticino/StPeterPaulTest.php | 4 +- .../Switzerland/Ticino/StStephensDayTest.php | 4 +- tests/Switzerland/Ticino/TicinoTest.php | 12 ++-- tests/Switzerland/Ticino/WorkersDayTest.php | 4 +- tests/Switzerland/Uri/AllSaintsDayTest.php | 4 +- tests/Switzerland/Uri/AscensionDayTest.php | 4 +- .../Switzerland/Uri/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Uri/ChristmasDayTest.php | 4 +- tests/Switzerland/Uri/CorpusChristiTest.php | 4 +- tests/Switzerland/Uri/EasterMondayTest.php | 4 +- tests/Switzerland/Uri/EpiphanyTest.php | 4 +- tests/Switzerland/Uri/GoodFridayTest.php | 4 +- .../Uri/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Uri/NewYearsDayTest.php | 4 +- tests/Switzerland/Uri/PentecostMondayTest.php | 4 +- tests/Switzerland/Uri/StJosephDayTest.php | 4 +- tests/Switzerland/Uri/StStephensDayTest.php | 4 +- tests/Switzerland/Uri/UriTest.php | 12 ++-- tests/Switzerland/Valais/AllSaintsDayTest.php | 4 +- tests/Switzerland/Valais/AscensionDayTest.php | 4 +- .../Valais/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Valais/ChristmasDayTest.php | 4 +- .../Switzerland/Valais/CorpusChristiTest.php | 4 +- .../Valais/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Valais/NewYearsDayTest.php | 4 +- tests/Switzerland/Valais/StJosephDayTest.php | 4 +- tests/Switzerland/Valais/ValaisTest.php | 12 ++-- tests/Switzerland/Vaud/AscensionDayTest.php | 4 +- tests/Switzerland/Vaud/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Vaud/BettagsMontagTest.php | 4 +- tests/Switzerland/Vaud/ChristmasDayTest.php | 4 +- tests/Switzerland/Vaud/EasterMondayTest.php | 4 +- tests/Switzerland/Vaud/GoodFridayTest.php | 4 +- tests/Switzerland/Vaud/NewYearsDayTest.php | 4 +- .../Switzerland/Vaud/PentecostMondayTest.php | 4 +- tests/Switzerland/Vaud/VaudTest.php | 12 ++-- tests/Switzerland/Zug/AllSaintsDayTest.php | 4 +- tests/Switzerland/Zug/AscensionDayTest.php | 4 +- .../Switzerland/Zug/AssumptionOfMaryTest.php | 4 +- tests/Switzerland/Zug/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Zug/ChristmasDayTest.php | 4 +- tests/Switzerland/Zug/CorpusChristiTest.php | 4 +- tests/Switzerland/Zug/EasterMondayTest.php | 4 +- tests/Switzerland/Zug/GoodFridayTest.php | 4 +- .../Zug/ImmaculateConceptionTest.php | 4 +- tests/Switzerland/Zug/NewYearsDayTest.php | 4 +- tests/Switzerland/Zug/PentecostMondayTest.php | 4 +- tests/Switzerland/Zug/StStephensDayTest.php | 4 +- tests/Switzerland/Zug/ZugTest.php | 12 ++-- tests/Switzerland/Zurich/AscensionDayTest.php | 4 +- .../Switzerland/Zurich/BerchtoldsTagTest.php | 4 +- tests/Switzerland/Zurich/ChristmasDayTest.php | 4 +- tests/Switzerland/Zurich/EasterMondayTest.php | 4 +- tests/Switzerland/Zurich/GoodFridayTest.php | 4 +- tests/Switzerland/Zurich/NewYearsDayTest.php | 4 +- .../Zurich/PentecostMondayTest.php | 4 +- .../Switzerland/Zurich/StStephensDayTest.php | 4 +- tests/Switzerland/Zurich/WorkersDayTest.php | 4 +- tests/Switzerland/Zurich/ZurichTest.php | 12 ++-- tests/USA/ChristmasDayTest.php | 4 +- tests/USA/ColumbusDayTest.php | 4 +- tests/USA/IndependenceDayTest.php | 4 +- tests/USA/LabourDayTest.php | 4 +- tests/USA/MartinLutherKingDayTest.php | 4 +- tests/USA/MemorialDayTest.php | 4 +- tests/USA/NewYearsDayTest.php | 4 +- tests/USA/ThanksgivingDayTest.php | 4 +- tests/USA/USATest.php | 10 ++-- tests/USA/VeteransDayTest.php | 4 +- tests/USA/WashingtonsBirthdayTest.php | 4 +- tests/Ukraine/ChristmasDayTest.php | 4 +- tests/Ukraine/ConstitutionDayTest.php | 4 +- tests/Ukraine/DefenderOfUkraineDayTest.php | 4 +- tests/Ukraine/EasterTest.php | 4 +- tests/Ukraine/IndependenceDayTest.php | 4 +- tests/Ukraine/InternationalWomensDayTest.php | 4 +- tests/Ukraine/InternationalWorkersDayTest.php | 4 +- tests/Ukraine/NewYearsDayTest.php | 4 +- tests/Ukraine/PentecostTest.php | 4 +- .../SecondInternationalWorkersDayTest.php | 4 +- tests/Ukraine/UkraineTest.php | 10 ++-- tests/Ukraine/VictoryDayTest.php | 4 +- tests/UnitedKingdom/BoxingDayTest.php | 4 +- tests/UnitedKingdom/ChristmasDayTest.php | 4 +- tests/UnitedKingdom/EasterMondayTest.php | 4 +- tests/UnitedKingdom/GoodFridayTest.php | 4 +- tests/UnitedKingdom/MayDayBankHolidayTest.php | 4 +- tests/UnitedKingdom/NewYearsDayTest.php | 4 +- tests/UnitedKingdom/SpringBankHolidayTest.php | 4 +- tests/UnitedKingdom/SummerBankHolidayTest.php | 4 +- tests/UnitedKingdom/UnitedKingdomTest.php | 10 ++-- tests/YasumiBase.php | 12 ++-- 894 files changed, 2140 insertions(+), 2198 deletions(-) diff --git a/tests/Australia/ACT/ACTTest.php b/tests/Australia/ACT/ACTTest.php index dc2224841..c57dc2f0e 100644 --- a/tests/Australia/ACT/ACTTest.php +++ b/tests/Australia/ACT/ACTTest.php @@ -19,8 +19,6 @@ */ class ACTTest extends ACTBaseTestCase { - public $region = 'Australia\ACT'; - /** * @var int year random year number used for all tests in this Test Case */ @@ -30,7 +28,7 @@ class ACTTest extends ACTBaseTestCase * Tests if all official holidays in ACT (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/ACT/CanberraDayTest.php b/tests/Australia/ACT/CanberraDayTest.php index f757df470..033b3bcda 100644 --- a/tests/Australia/ACT/CanberraDayTest.php +++ b/tests/Australia/ACT/CanberraDayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/ACT/EasterSaturdayTest.php b/tests/Australia/ACT/EasterSaturdayTest.php index 655c145ba..92c50f97b 100644 --- a/tests/Australia/ACT/EasterSaturdayTest.php +++ b/tests/Australia/ACT/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/ACT/EasterSundayTest.php b/tests/Australia/ACT/EasterSundayTest.php index b750ff8ff..8cf3efd36 100644 --- a/tests/Australia/ACT/EasterSundayTest.php +++ b/tests/Australia/ACT/EasterSundayTest.php @@ -72,7 +72,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/ACT/LabourDayTest.php b/tests/Australia/ACT/LabourDayTest.php index 2da6a30d9..391af8199 100644 --- a/tests/Australia/ACT/LabourDayTest.php +++ b/tests/Australia/ACT/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/ACT/QueensBirthdayTest.php b/tests/Australia/ACT/QueensBirthdayTest.php index 24cb99f61..4f271bd8b 100644 --- a/tests/Australia/ACT/QueensBirthdayTest.php +++ b/tests/Australia/ACT/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/ACT/ReconciliationDayTest.php b/tests/Australia/ACT/ReconciliationDayTest.php index 179a3457d..00f55ee6e 100644 --- a/tests/Australia/ACT/ReconciliationDayTest.php +++ b/tests/Australia/ACT/ReconciliationDayTest.php @@ -83,7 +83,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -97,7 +97,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/AnzacDayTest.php b/tests/Australia/AnzacDayTest.php index bc061c7b5..ad5b8a2de 100644 --- a/tests/Australia/AnzacDayTest.php +++ b/tests/Australia/AnzacDayTest.php @@ -91,7 +91,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -105,7 +105,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/AustraliaDayTest.php b/tests/Australia/AustraliaDayTest.php index 3ada88ce0..7e565261b 100644 --- a/tests/Australia/AustraliaDayTest.php +++ b/tests/Australia/AustraliaDayTest.php @@ -53,7 +53,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(2000), Holiday::TYPE_OFFICIAL); } @@ -77,7 +77,7 @@ public function testHolidayType() * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-01-26'], diff --git a/tests/Australia/AustraliaTest.php b/tests/Australia/AustraliaTest.php index 1a95df3b2..6b8066988 100644 --- a/tests/Australia/AustraliaTest.php +++ b/tests/Australia/AustraliaTest.php @@ -28,7 +28,7 @@ class AustraliaTest extends AustraliaBaseTestCase * Tests if all official holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -45,7 +45,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -54,7 +54,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_SEASON); } @@ -63,7 +63,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_BANK); } @@ -72,7 +72,7 @@ public function testBankHolidays() * Tests if all other holidays in Australia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], $this->region, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Australia/BoxingDayTest.php b/tests/Australia/BoxingDayTest.php index f4369b260..2ddf836e3 100644 --- a/tests/Australia/BoxingDayTest.php +++ b/tests/Australia/BoxingDayTest.php @@ -93,7 +93,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2020, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/ChristmasDayTest.php b/tests/Australia/ChristmasDayTest.php index 40dbd917a..70bc08cab 100644 --- a/tests/Australia/ChristmasDayTest.php +++ b/tests/Australia/ChristmasDayTest.php @@ -93,7 +93,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2016, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/EasterMondayTest.php b/tests/Australia/EasterMondayTest.php index 4e3307b8c..f0039d19b 100644 --- a/tests/Australia/EasterMondayTest.php +++ b/tests/Australia/EasterMondayTest.php @@ -114,7 +114,7 @@ public function HolidayDataProvider2(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -135,7 +135,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2011, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/GoodFridayTest.php b/tests/Australia/GoodFridayTest.php index 0aef08e59..e0c7a64d4 100644 --- a/tests/Australia/GoodFridayTest.php +++ b/tests/Australia/GoodFridayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/BankHolidayTest.php b/tests/Australia/NSW/BankHolidayTest.php index c81394160..def296b86 100644 --- a/tests/Australia/NSW/BankHolidayTest.php +++ b/tests/Australia/NSW/BankHolidayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_BANK); } diff --git a/tests/Australia/NSW/EasterSaturdayTest.php b/tests/Australia/NSW/EasterSaturdayTest.php index 3d0da139b..064aca9eb 100644 --- a/tests/Australia/NSW/EasterSaturdayTest.php +++ b/tests/Australia/NSW/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/EasterSundayTest.php b/tests/Australia/NSW/EasterSundayTest.php index 2d357edf7..f14724a66 100644 --- a/tests/Australia/NSW/EasterSundayTest.php +++ b/tests/Australia/NSW/EasterSundayTest.php @@ -72,7 +72,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/LabourDayTest.php b/tests/Australia/NSW/LabourDayTest.php index 2a72030e2..56c7bdcaf 100644 --- a/tests/Australia/NSW/LabourDayTest.php +++ b/tests/Australia/NSW/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NSW/NSWTest.php b/tests/Australia/NSW/NSWTest.php index 8fd04fe3d..f777d1012 100644 --- a/tests/Australia/NSW/NSWTest.php +++ b/tests/Australia/NSW/NSWTest.php @@ -19,8 +19,6 @@ */ class NSWTest extends NSWBaseTestCase { - public $region = 'Australia\NSW'; - /** * @var int year random year number used for all tests in this Test Case */ @@ -30,7 +28,7 @@ class NSWTest extends NSWBaseTestCase * Tests if all official holidays in NSW (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +49,7 @@ public function testOfficialHolidays() * Tests if all bank holidays in NSW (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([ 'bankHoliday', diff --git a/tests/Australia/NSW/QueensBirthdayTest.php b/tests/Australia/NSW/QueensBirthdayTest.php index a90e66681..4c587d53a 100644 --- a/tests/Australia/NSW/QueensBirthdayTest.php +++ b/tests/Australia/NSW/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/NT/EasterSaturdayTest.php b/tests/Australia/NT/EasterSaturdayTest.php index 151c855d7..79c8b2dc5 100644 --- a/tests/Australia/NT/EasterSaturdayTest.php +++ b/tests/Australia/NT/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NT/MayDayTest.php b/tests/Australia/NT/MayDayTest.php index c8062ba3b..d8b760927 100644 --- a/tests/Australia/NT/MayDayTest.php +++ b/tests/Australia/NT/MayDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NT/NTTest.php b/tests/Australia/NT/NTTest.php index ef0605442..d33118c3e 100644 --- a/tests/Australia/NT/NTTest.php +++ b/tests/Australia/NT/NTTest.php @@ -19,8 +19,6 @@ */ class NTTest extends NTBaseTestCase { - public $region = 'Australia\NT'; - /** * @var int year random year number used for all tests in this Test Case */ @@ -30,7 +28,7 @@ class NTTest extends NTBaseTestCase * Tests if all official holidays in NT (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/NT/PicnicDayTest.php b/tests/Australia/NT/PicnicDayTest.php index 92214435b..f67d2320a 100644 --- a/tests/Australia/NT/PicnicDayTest.php +++ b/tests/Australia/NT/PicnicDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/NT/QueensBirthdayTest.php b/tests/Australia/NT/QueensBirthdayTest.php index 3a03c4467..9e3c4ec83 100644 --- a/tests/Australia/NT/QueensBirthdayTest.php +++ b/tests/Australia/NT/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/NewYearsDayTest.php b/tests/Australia/NewYearsDayTest.php index 009726e5d..4af07ea72 100644 --- a/tests/Australia/NewYearsDayTest.php +++ b/tests/Australia/NewYearsDayTest.php @@ -93,7 +93,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2017, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php index fcb9a77d3..33417dcbb 100644 --- a/tests/Australia/Queensland/Brisbane/BrisbaneTest.php +++ b/tests/Australia/Queensland/Brisbane/BrisbaneTest.php @@ -19,7 +19,6 @@ */ class BrisbaneTest extends BrisbaneBaseTestCase { - public $region = 'Australia\Queensland\Brisbane'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class BrisbaneTest extends BrisbaneBaseTestCase * Tests if all official holidays in Queensland (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php index 2f10b9f6f..0b977a7b3 100644 --- a/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php +++ b/tests/Australia/Queensland/Brisbane/PeoplesDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Queensland/LabourDayTest.php b/tests/Australia/Queensland/LabourDayTest.php index 543ee6c32..18bb0db61 100644 --- a/tests/Australia/Queensland/LabourDayTest.php +++ b/tests/Australia/Queensland/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Queensland/QueensBirthdayTest.php b/tests/Australia/Queensland/QueensBirthdayTest.php index bcacec4fa..d2054a83e 100644 --- a/tests/Australia/Queensland/QueensBirthdayTest.php +++ b/tests/Australia/Queensland/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Queensland/QueenslandTest.php b/tests/Australia/Queensland/QueenslandTest.php index 27ced6027..996375bde 100644 --- a/tests/Australia/Queensland/QueenslandTest.php +++ b/tests/Australia/Queensland/QueenslandTest.php @@ -19,7 +19,6 @@ */ class QueenslandTest extends QueenslandBaseTestCase { - public $region = 'Australia\Queensland'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class QueenslandTest extends QueenslandBaseTestCase * Tests if all official holidays in Queensland (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/SA/AdelaideCupDayTest.php b/tests/Australia/SA/AdelaideCupDayTest.php index 7c717bf0d..559b939a3 100644 --- a/tests/Australia/SA/AdelaideCupDayTest.php +++ b/tests/Australia/SA/AdelaideCupDayTest.php @@ -91,7 +91,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -105,7 +105,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/SA/ChristmasDayTest.php b/tests/Australia/SA/ChristmasDayTest.php index 079cc23a3..e7b248eb4 100644 --- a/tests/Australia/SA/ChristmasDayTest.php +++ b/tests/Australia/SA/ChristmasDayTest.php @@ -69,7 +69,7 @@ public function testHoliday($year, $expected, $expectedExtra) * * @return array list of test dates for the holiday defined in this test */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { $data = [ [2010, '2010-12-25', '2010-12-27'], @@ -93,7 +93,7 @@ public function HolidayDataProvider() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -114,7 +114,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); $this->assertHolidayType($this->region, self::HOLIDAY2, 2016, Holiday::TYPE_OFFICIAL); diff --git a/tests/Australia/SA/EasterSaturdayTest.php b/tests/Australia/SA/EasterSaturdayTest.php index a13cd2ff6..068d5d493 100644 --- a/tests/Australia/SA/EasterSaturdayTest.php +++ b/tests/Australia/SA/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/SA/LabourDayTest.php b/tests/Australia/SA/LabourDayTest.php index 97a8c461c..5207d9bd6 100644 --- a/tests/Australia/SA/LabourDayTest.php +++ b/tests/Australia/SA/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/SA/ProclamationDayTest.php b/tests/Australia/SA/ProclamationDayTest.php index 8513b3ce6..19ed2d373 100644 --- a/tests/Australia/SA/ProclamationDayTest.php +++ b/tests/Australia/SA/ProclamationDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/SA/QueensBirthdayTest.php b/tests/Australia/SA/QueensBirthdayTest.php index aae9d487c..97d1e58d6 100644 --- a/tests/Australia/SA/QueensBirthdayTest.php +++ b/tests/Australia/SA/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/SA/SATest.php b/tests/Australia/SA/SATest.php index f7b0705d8..b2baaffec 100644 --- a/tests/Australia/SA/SATest.php +++ b/tests/Australia/SA/SATest.php @@ -19,8 +19,6 @@ */ class SATest extends SABaseTestCase { - public $region = 'Australia\SA'; - /** * @var int year random year number used for all tests in this Test Case */ @@ -30,7 +28,7 @@ class SATest extends SABaseTestCase * Tests if all official holidays in SA (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php index 8336d2f2a..7dce26cc5 100644 --- a/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthBaseTestCase.php @@ -26,9 +26,4 @@ abstract class CentralNorthBaseTestCase extends TasmaniaBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\CentralNorth'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php index 7112734d9..2d9daf03a 100644 --- a/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php +++ b/tests/Australia/Tasmania/CentralNorth/CentralNorthTest.php @@ -19,8 +19,6 @@ */ class CentralNorthTest extends CentralNorthBaseTestCase { - public $region = 'Australia\Tasmania\CentralNorth'; - /** * @var int year random year number used for all tests in this Test Case */ @@ -30,7 +28,7 @@ class CentralNorthTest extends CentralNorthBaseTestCase * Tests if all official holidays in central north Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php index 7a7c8b6ad..d986a775f 100644 --- a/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php +++ b/tests/Australia/Tasmania/CentralNorth/DevonportShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/EightHourDayTest.php b/tests/Australia/Tasmania/EightHourDayTest.php index 56c2f39fd..ac7c4fd39 100644 --- a/tests/Australia/Tasmania/EightHourDayTest.php +++ b/tests/Australia/Tasmania/EightHourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php index f39c3bb8c..aba5e54c8 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandBaseTestCase.php @@ -26,9 +26,4 @@ abstract class FlindersIslandBaseTestCase extends TasmaniaBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\FlindersIsland'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php index e38630fcb..4dbbc762a 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php index 5c7f37358..7c3abf6db 100644 --- a/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php +++ b/tests/Australia/Tasmania/FlindersIsland/FlindersIslandTest.php @@ -19,7 +19,6 @@ */ class FlindersIslandTest extends FlindersIslandBaseTestCase { - public $region = 'Australia\Tasmania\FlindersIsland'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class FlindersIslandTest extends FlindersIslandBaseTestCase * Tests if all official holidays in Flinders Island (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php b/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php index 5bdc84aeb..eac356a2c 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandBaseTestCase.php @@ -26,9 +26,4 @@ abstract class KingIslandBaseTestCase extends TasmaniaBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\KingIsland'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php index d68723cc1..ed87f8dde 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php index d80ef4a8b..1fe944563 100644 --- a/tests/Australia/Tasmania/KingIsland/KingIslandTest.php +++ b/tests/Australia/Tasmania/KingIsland/KingIslandTest.php @@ -19,7 +19,6 @@ */ class KingIslandTest extends KingIslandBaseTestCase { - public $region = 'Australia\Tasmania\KingIsland'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class KingIslandTest extends KingIslandBaseTestCase * Tests if all official holidays in King Island (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php index 7a2ccd5f2..51e600325 100644 --- a/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php +++ b/tests/Australia/Tasmania/Northeast/LauncestonShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php b/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php index e81e475eb..3a3bc0057 100644 --- a/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php +++ b/tests/Australia/Tasmania/Northeast/NortheastBaseTestCase.php @@ -26,9 +26,4 @@ abstract class NortheastBaseTestCase extends TasmaniaBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\Northeast'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/Northeast/NortheastTest.php b/tests/Australia/Tasmania/Northeast/NortheastTest.php index b0d93afec..231fc9a35 100644 --- a/tests/Australia/Tasmania/Northeast/NortheastTest.php +++ b/tests/Australia/Tasmania/Northeast/NortheastTest.php @@ -19,7 +19,6 @@ */ class NortheastTest extends NortheastBaseTestCase { - public $region = 'Australia\Tasmania\Northeast'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class NortheastTest extends NortheastBaseTestCase * Tests if all official holidays in northeastern Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php index 89f4bad5e..f620814d1 100644 --- a/tests/Australia/Tasmania/Northwest/BurnieShowTest.php +++ b/tests/Australia/Tasmania/Northwest/BurnieShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php index 3bd036700..95df6fefd 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/AGFESTTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php index 9ef83e18d..08f395dc9 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadBaseTestCase.php @@ -26,9 +26,4 @@ abstract class CircularHeadBaseTestCase extends NorthwestBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\Northwest\CircularHead'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php index 59ace839e..add83b131 100644 --- a/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php +++ b/tests/Australia/Tasmania/Northwest/CircularHead/CircularHeadTest.php @@ -19,7 +19,6 @@ */ class CircularHeadTest extends CircularHeadBaseTestCase { - public $region = 'Australia\Tasmania\Northwest\CircularHead'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class CircularHeadTest extends CircularHeadBaseTestCase * Tests if all official holidays in Circular Head (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php b/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php index 4c59e3b97..604b6f8f5 100644 --- a/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php +++ b/tests/Australia/Tasmania/Northwest/NorthwestBaseTestCase.php @@ -26,9 +26,4 @@ abstract class NorthwestBaseTestCase extends TasmaniaBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\Northwest'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/Northwest/NorthwestTest.php b/tests/Australia/Tasmania/Northwest/NorthwestTest.php index bb4884917..65bcb955a 100644 --- a/tests/Australia/Tasmania/Northwest/NorthwestTest.php +++ b/tests/Australia/Tasmania/Northwest/NorthwestTest.php @@ -19,7 +19,6 @@ */ class NorthwestTest extends NorthwestBaseTestCase { - public $region = 'Australia\Tasmania\Northwest'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class NorthwestTest extends NorthwestBaseTestCase * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/QueensBirthdayTest.php b/tests/Australia/Tasmania/QueensBirthdayTest.php index d7764cd48..ce5d70ba1 100644 --- a/tests/Australia/Tasmania/QueensBirthdayTest.php +++ b/tests/Australia/Tasmania/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Tasmania/RecreationDayTest.php b/tests/Australia/Tasmania/RecreationDayTest.php index 1b8ebe98d..12ca81c54 100644 --- a/tests/Australia/Tasmania/RecreationDayTest.php +++ b/tests/Australia/Tasmania/RecreationDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/South/HobartShowTest.php b/tests/Australia/Tasmania/South/HobartShowTest.php index d5a50a31a..516f6c300 100644 --- a/tests/Australia/Tasmania/South/HobartShowTest.php +++ b/tests/Australia/Tasmania/South/HobartShowTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/South/SouthBaseTestCase.php b/tests/Australia/Tasmania/South/SouthBaseTestCase.php index 0b7853565..8a0510677 100644 --- a/tests/Australia/Tasmania/South/SouthBaseTestCase.php +++ b/tests/Australia/Tasmania/South/SouthBaseTestCase.php @@ -26,9 +26,4 @@ abstract class SouthBaseTestCase extends TasmaniaBaseTestCase * Name of the region (e.g. country / state) to be tested */ public $region = 'Australia\Tasmania\South'; - - /** - * Timezone in which this provider has holidays defined - */ - public $timezone = 'Australia/Tasmania'; } diff --git a/tests/Australia/Tasmania/South/SouthTest.php b/tests/Australia/Tasmania/South/SouthTest.php index 3ffcb6316..6d83ed001 100644 --- a/tests/Australia/Tasmania/South/SouthTest.php +++ b/tests/Australia/Tasmania/South/SouthTest.php @@ -19,7 +19,6 @@ */ class SouthTest extends SouthBaseTestCase { - public $region = 'Australia\Tasmania\South'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class SouthTest extends SouthBaseTestCase * Tests if all official holidays in northwestern Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php index eb7cbb349..e8d689368 100644 --- a/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php +++ b/tests/Australia/Tasmania/South/Southeast/HobartRegattaTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php index e3544e9ea..d4bff35ab 100644 --- a/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php +++ b/tests/Australia/Tasmania/South/Southeast/SoutheastTest.php @@ -19,7 +19,6 @@ */ class SoutheastTest extends SoutheastBaseTestCase { - public $region = 'Australia\Tasmania\South\Southeast'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class SoutheastTest extends SoutheastBaseTestCase * Tests if all official holidays in Circular Head (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Tasmania/TasmaniaTest.php b/tests/Australia/Tasmania/TasmaniaTest.php index 0d0b6635f..bb977385f 100644 --- a/tests/Australia/Tasmania/TasmaniaTest.php +++ b/tests/Australia/Tasmania/TasmaniaTest.php @@ -19,8 +19,6 @@ */ class TasmaniaTest extends TasmaniaBaseTestCase { - public $region = 'Australia\Tasmania'; - /** * @var int year random year number used for all tests in this Test Case */ @@ -30,7 +28,7 @@ class TasmaniaTest extends TasmaniaBaseTestCase * Tests if all official holidays in Tasmania (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php index 54b869881..07c9a6ef1 100644 --- a/tests/Australia/Victoria/AFLGrandFinalFridayTest.php +++ b/tests/Australia/Victoria/AFLGrandFinalFridayTest.php @@ -56,7 +56,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Victoria/EasterSaturdayTest.php b/tests/Australia/Victoria/EasterSaturdayTest.php index ca6d3d774..a7e53fd63 100644 --- a/tests/Australia/Victoria/EasterSaturdayTest.php +++ b/tests/Australia/Victoria/EasterSaturdayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Victoria/EasterSundayTest.php b/tests/Australia/Victoria/EasterSundayTest.php index df7d22f7f..370b718d8 100644 --- a/tests/Australia/Victoria/EasterSundayTest.php +++ b/tests/Australia/Victoria/EasterSundayTest.php @@ -72,7 +72,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Victoria/LabourDayTest.php b/tests/Australia/Victoria/LabourDayTest.php index 89f990311..55332201c 100644 --- a/tests/Australia/Victoria/LabourDayTest.php +++ b/tests/Australia/Victoria/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/Victoria/MelbourneCupDayTest.php b/tests/Australia/Victoria/MelbourneCupDayTest.php index cfdaaba19..2d6b914c7 100644 --- a/tests/Australia/Victoria/MelbourneCupDayTest.php +++ b/tests/Australia/Victoria/MelbourneCupDayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Victoria/QueensBirthdayTest.php b/tests/Australia/Victoria/QueensBirthdayTest.php index f70a85d4c..b7ce7cc56 100644 --- a/tests/Australia/Victoria/QueensBirthdayTest.php +++ b/tests/Australia/Victoria/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/Victoria/VictoriaTest.php b/tests/Australia/Victoria/VictoriaTest.php index dace27d1c..d9713f62d 100644 --- a/tests/Australia/Victoria/VictoriaTest.php +++ b/tests/Australia/Victoria/VictoriaTest.php @@ -19,7 +19,6 @@ */ class VictoriaTest extends VictoriaBaseTestCase { - public $region = 'Australia\Victoria'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class VictoriaTest extends VictoriaBaseTestCase * Tests if all official holidays in Victoria (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/WA/LabourDayTest.php b/tests/Australia/WA/LabourDayTest.php index c70ec383e..fad438794 100644 --- a/tests/Australia/WA/LabourDayTest.php +++ b/tests/Australia/WA/LabourDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Australia/WA/QueensBirthdayTest.php b/tests/Australia/WA/QueensBirthdayTest.php index 76495e0ab..ca4bdab20 100644 --- a/tests/Australia/WA/QueensBirthdayTest.php +++ b/tests/Australia/WA/QueensBirthdayTest.php @@ -81,7 +81,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( $this->region, diff --git a/tests/Australia/WA/WATest.php b/tests/Australia/WA/WATest.php index 4350fa5d1..bb55af236 100644 --- a/tests/Australia/WA/WATest.php +++ b/tests/Australia/WA/WATest.php @@ -19,7 +19,6 @@ */ class WATest extends WABaseTestCase { - public $region = 'Australia\WA'; /** * @var int year random year number used for all tests in this Test Case @@ -30,7 +29,7 @@ class WATest extends WABaseTestCase * Tests if all official holidays in WA (Australia) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', diff --git a/tests/Australia/WA/WesternAustraliaDayTest.php b/tests/Australia/WA/WesternAustraliaDayTest.php index 7f02dde92..8c1148dbf 100644 --- a/tests/Australia/WA/WesternAustraliaDayTest.php +++ b/tests/Australia/WA/WesternAustraliaDayTest.php @@ -76,7 +76,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( $this->region, @@ -90,7 +90,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType($this->region, self::HOLIDAY, $this->generateRandomYear(1990), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AllSaintsDayTest.php b/tests/Austria/AllSaintsDayTest.php index d6ea284e9..764da59b5 100644 --- a/tests/Austria/AllSaintsDayTest.php +++ b/tests/Austria/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AscensionDayTest.php b/tests/Austria/AscensionDayTest.php index bbb853347..35368a152 100644 --- a/tests/Austria/AscensionDayTest.php +++ b/tests/Austria/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AssumptionOfMaryTest.php b/tests/Austria/AssumptionOfMaryTest.php index 00be0791a..f194d72dc 100644 --- a/tests/Austria/AssumptionOfMaryTest.php +++ b/tests/Austria/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/AustriaTest.php b/tests/Austria/AustriaTest.php index 5e811d85b..64cc5dda0 100644 --- a/tests/Austria/AustriaTest.php +++ b/tests/Austria/AustriaTest.php @@ -28,7 +28,7 @@ class AustriaTest extends AustriaBaseTestCase * Tests if all official holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'ascensionDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['pentecost'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Austria are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Austria/ChristmasTest.php b/tests/Austria/ChristmasTest.php index 46d86c235..1a1b3e0ed 100644 --- a/tests/Austria/ChristmasTest.php +++ b/tests/Austria/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/CorpusChristiTest.php b/tests/Austria/CorpusChristiTest.php index c3a2e042a..a82338d25 100644 --- a/tests/Austria/CorpusChristiTest.php +++ b/tests/Austria/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/EasterMondayTest.php b/tests/Austria/EasterMondayTest.php index af6a4a222..659bc9180 100644 --- a/tests/Austria/EasterMondayTest.php +++ b/tests/Austria/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/EasterTest.php b/tests/Austria/EasterTest.php index e8137a393..e0cd2b9ff 100644 --- a/tests/Austria/EasterTest.php +++ b/tests/Austria/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/EpiphanyTest.php b/tests/Austria/EpiphanyTest.php index 7bb136062..6c9de7bd4 100644 --- a/tests/Austria/EpiphanyTest.php +++ b/tests/Austria/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/ImmaculateConceptionTest.php b/tests/Austria/ImmaculateConceptionTest.php index e4e3acdcd..aaf254201 100644 --- a/tests/Austria/ImmaculateConceptionTest.php +++ b/tests/Austria/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/InternationalWorkersDayTest.php b/tests/Austria/InternationalWorkersDayTest.php index 98b1d4dc6..c24c41ddc 100644 --- a/tests/Austria/InternationalWorkersDayTest.php +++ b/tests/Austria/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/NationalDayTest.php b/tests/Austria/NationalDayTest.php index 2c7391381..8e1a35a8c 100644 --- a/tests/Austria/NationalDayTest.php +++ b/tests/Austria/NationalDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Austria/NewYearsDayTest.php b/tests/Austria/NewYearsDayTest.php index 985613200..50129f6cd 100644 --- a/tests/Austria/NewYearsDayTest.php +++ b/tests/Austria/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/PentecostMondayTest.php b/tests/Austria/PentecostMondayTest.php index b534e6b08..505e05db6 100644 --- a/tests/Austria/PentecostMondayTest.php +++ b/tests/Austria/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Austria/PentecostTest.php b/tests/Austria/PentecostTest.php index f2e4e0f12..c14858829 100644 --- a/tests/Austria/PentecostTest.php +++ b/tests/Austria/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Austria/SecondChristmasDayTest.php b/tests/Austria/SecondChristmasDayTest.php index d75279224..4a30a6898 100644 --- a/tests/Austria/SecondChristmasDayTest.php +++ b/tests/Austria/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Base/HolidayBetweenFilterTest.php b/tests/Base/HolidayBetweenFilterTest.php index e00a58f06..3d269c450 100644 --- a/tests/Base/HolidayBetweenFilterTest.php +++ b/tests/Base/HolidayBetweenFilterTest.php @@ -34,7 +34,7 @@ class HolidayBetweenFilterTest extends TestCase * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRange() + public function testHolidaysBetweenDateRange(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -89,7 +89,7 @@ public function testHolidaysBetweenDateRange() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeWithDateTimeImmutable() + public function testHolidaysBetweenDateRangeWithDateTimeImmutable(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -144,7 +144,7 @@ public function testHolidaysBetweenDateRangeWithDateTimeImmutable() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeDifferentTimezone() + public function testHolidaysBetweenDateRangeDifferentTimezone(): void { $holidays = Yasumi::create('Netherlands', 2016); @@ -171,7 +171,7 @@ public function testHolidaysBetweenDateRangeDifferentTimezone() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeExclusiveStartEndDate() + public function testHolidaysBetweenDateRangeExclusiveStartEndDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -227,7 +227,7 @@ public function testHolidaysBetweenDateRangeExclusiveStartEndDate() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() + public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear(): void { $year = 2015; $timezone = 'Europe/Oslo'; @@ -267,7 +267,7 @@ public function testHolidaysBetweenDateRangeWithStartBeforeInstanceYear() * @throws \Exception * @throws \ReflectionException */ - public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() + public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear(): void { $year = 2000; $timezone = 'Europe/Rome'; @@ -308,7 +308,7 @@ public function testHolidaysBetweenDateRangeWithEndAfterInstanceYear() * @throws \Exception * @throws \ReflectionException */ - public function testWrongDates() + public function testWrongDates(): void { $year = 2017; $timezone = 'America/New_York'; @@ -328,7 +328,7 @@ public function testWrongDates() * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenWithSubstitutes() + public function testCountBetweenWithSubstitutes(): void { // There are official 12 holidays in Ireland in the year 2018, with 1 substituted holiday. $year = 2018; @@ -369,7 +369,7 @@ public function testCountBetweenWithSubstitutes() * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenExcludingSubstituteHoliday() + public function testCountBetweenExcludingSubstituteHoliday(): void { // There are 2 official holidays in Ireland in the given date range, with 1 substituted holiday. $year = 2018; @@ -414,7 +414,7 @@ public function testCountBetweenExcludingSubstituteHoliday() * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHoliday() + public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHoliday(): void { // There are 2 official holidays in Ireland in the given date range, with 1 substituted holiday. $year = 2018; @@ -460,7 +460,7 @@ public function testCountBetweenExcludingSubstituteHolidayIncludingOriginalHolid * @throws \Exception * @throws \ReflectionException */ - public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday() + public function testCountBetweenExcludingSubstituteHolidayAndOriginalHoliday(): void { // There is 1 official holidays in Ireland in the given date range. $year = 2018; diff --git a/tests/Base/HolidayFiltersTest.php b/tests/Base/HolidayFiltersTest.php index 5ffca3215..fac3abb26 100644 --- a/tests/Base/HolidayFiltersTest.php +++ b/tests/Base/HolidayFiltersTest.php @@ -34,7 +34,7 @@ class HolidayFiltersTest extends TestCase * Tests the Official Holidays filter * @throws \ReflectionException */ - public function testOfficialHolidaysFilter() + public function testOfficialHolidaysFilter(): void { // There are 11 official holidays in Ireland in the year 2018, with 1 substituted holiday. $holidays = Yasumi::create('Ireland', 2018); @@ -68,7 +68,7 @@ public function testOfficialHolidaysFilter() * Tests the Observed Holidays filter * @throws \ReflectionException */ - public function testObservedHolidaysFilter() + public function testObservedHolidaysFilter(): void { // There are 2 observed holidays in Ireland in the year 2018. $holidays = Yasumi::create('Ireland', 2018); @@ -102,7 +102,7 @@ public function testObservedHolidaysFilter() * Tests Bank Holidays * @throws \ReflectionException */ - public function testBankHolidaysFilter() + public function testBankHolidaysFilter(): void { // There are no bank holidays in Ireland in the year 2018. $holidays = Yasumi::create('Ireland', 2018); @@ -136,7 +136,7 @@ public function testBankHolidaysFilter() * Tests Seasonal Holidays * @throws \ReflectionException */ - public function testSeasonalHolidaysFilter() + public function testSeasonalHolidaysFilter(): void { $holidays = Yasumi::create('Netherlands', 2017); @@ -184,7 +184,7 @@ public function testSeasonalHolidaysFilter() * Tests other type of Holidays * @throws \ReflectionException */ - public function testOtherHolidaysFilter() + public function testOtherHolidaysFilter(): void { $holidays = Yasumi::create('Netherlands', 2017); diff --git a/tests/Base/HolidayOnFilterTest.php b/tests/Base/HolidayOnFilterTest.php index 8c1f2082c..21d7bc787 100644 --- a/tests/Base/HolidayOnFilterTest.php +++ b/tests/Base/HolidayOnFilterTest.php @@ -33,7 +33,7 @@ class HolidayOnFilterTest extends TestCase * @throws \ReflectionException * @throws \Exception */ - public function testHolidaysOnDate() + public function testHolidaysOnDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -57,7 +57,7 @@ public function testHolidaysOnDate() * @throws \ReflectionException * @throws \Exception */ - public function testHolidaysNotOnDate() + public function testHolidaysNotOnDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); @@ -81,7 +81,7 @@ public function testHolidaysNotOnDate() * @throws \ReflectionException * @throws \Exception */ - public function testCorrectNumberOfHolidaysOnDate() + public function testCorrectNumberOfHolidaysOnDate(): void { $timezone = 'Europe/Amsterdam'; $holidays = Yasumi::create('Netherlands', 2016); diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index 5e8c7b943..4f7608064 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -34,7 +34,7 @@ class HolidayTest extends TestCase * @expectedException InvalidArgumentException * @throws \Exception */ - public function testHolidayBlankNameInvalidArgumentException() + public function testHolidayBlankNameInvalidArgumentException(): void { new Holiday('', [], new \DateTime()); } @@ -45,7 +45,7 @@ public function testHolidayBlankNameInvalidArgumentException() * @expectedException \Yasumi\Exception\UnknownLocaleException * @throws \Exception */ - public function testCreateHolidayUnknownLocaleException() + public function testCreateHolidayUnknownLocaleException(): void { new Holiday('testHoliday', [], new DateTime(), 'wx-YZ'); } @@ -54,7 +54,7 @@ public function testCreateHolidayUnknownLocaleException() * Tests that a Yasumi holiday instance can be serialized to a JSON object. * @throws \Exception */ - public function testHolidayIsJsonSerializable() + public function testHolidayIsJsonSerializable(): void { $holiday = new Holiday('testHoliday', [], new DateTime(), 'en_US'); $json = \json_encode($holiday); @@ -70,7 +70,7 @@ public function testHolidayIsJsonSerializable() * DateTime or DateTimeImmutable) * @throws \Exception */ - public function testHolidayWithDateTimeInterface() + public function testHolidayWithDateTimeInterface(): void { // Assert with DateTime instance $holiday = new Holiday('testHoliday', [], new \DateTime(), 'en_US'); @@ -87,7 +87,7 @@ public function testHolidayWithDateTimeInterface() * Tests the getName function of the Holiday object with no translations for the name given. * @throws \Exception */ - public function testHolidayGetNameWithNoTranslations() + public function testHolidayGetNameWithNoTranslations(): void { $name = 'testHoliday'; $holiday = new Holiday($name, [], new DateTime(), 'en_US'); @@ -100,7 +100,7 @@ public function testHolidayGetNameWithNoTranslations() * Tests the getName function of the Holiday object with only a default translation for the name given. * @throws \Exception */ - public function testHolidayGetNameWithOnlyDefaultTranslation() + public function testHolidayGetNameWithOnlyDefaultTranslation(): void { $name = 'testHoliday'; $translation = 'My Holiday'; @@ -116,7 +116,7 @@ public function testHolidayGetNameWithOnlyDefaultTranslation() * * @throws \Exception */ - public function testHolidayGetNameWithOneNonDefaultTranslation() + public function testHolidayGetNameWithOneNonDefaultTranslation(): void { $name = 'testHoliday'; $translation = 'My Holiday'; @@ -131,7 +131,7 @@ public function testHolidayGetNameWithOneNonDefaultTranslation() * Tests the getName function of the Holiday object with global translations and no custom translation. * @throws \Exception */ - public function testHolidayGetNameWithGlobalTranslations() + public function testHolidayGetNameWithGlobalTranslations(): void { /** @var TranslationsInterface|PHPUnit_Framework_MockObject_MockObject $translationsStub */ $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); @@ -157,7 +157,7 @@ public function testHolidayGetNameWithGlobalTranslations() * Tests the getName function of the Holiday object with global translations and a new custom translation. * @throws \Exception */ - public function testHolidayGetNameWithGlobalAndCustomTranslations() + public function testHolidayGetNameWithGlobalAndCustomTranslations(): void { /** @var TranslationsInterface|PHPUnit_Framework_MockObject_MockObject $translationsStub */ $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); @@ -189,7 +189,7 @@ public function testHolidayGetNameWithGlobalAndCustomTranslations() * Tests the getName function of the Holiday object with global translations and an overriding custom translation. * @throws \Exception */ - public function testHolidayGetNameWithOverridenGlobalTranslations() + public function testHolidayGetNameWithOverridenGlobalTranslations(): void { /** @var TranslationsInterface|PHPUnit_Framework_MockObject_MockObject $translationsStub */ $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index 8c16cd6a4..7437b65ff 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -33,7 +33,7 @@ class TranslationsTest extends TestCase /** * Tests adding single translation. */ - public function testAddTranslation() + public function testAddTranslation(): void { $translations = new Translations(self::LOCALES); @@ -58,7 +58,7 @@ public function testAddTranslation() /** * Tests adding multiple translations. */ - public function testAddMultipleTranslations() + public function testAddMultipleTranslations(): void { $translations = new Translations(self::LOCALES); @@ -113,7 +113,7 @@ public function testAddMultipleTranslations() * * @expectedException \Yasumi\Exception\UnknownLocaleException */ - public function testAddTranslationUnknownLocaleException() + public function testAddTranslationUnknownLocaleException(): void { $translations = new Translations(self::LOCALES); @@ -127,7 +127,7 @@ public function testAddTranslationUnknownLocaleException() /** * Tests that no translation is returned for an unknown holiday. */ - public function testNoTranslationForUnknownHoliday() + public function testNoTranslationForUnknownHoliday(): void { $translations = new Translations(self::LOCALES); @@ -146,7 +146,7 @@ public function testNoTranslationForUnknownHoliday() /** * Tests that no translation is returned for not translated locale. */ - public function testNoTranslationForNotTranslatedLocale() + public function testNoTranslationForNotTranslatedLocale(): void { $translations = new Translations(self::LOCALES); @@ -164,7 +164,7 @@ public function testNoTranslationForNotTranslatedLocale() /** * Tests loading one translation file from directory. */ - public function testLoadingTranslationsFromDirectory() + public function testLoadingTranslationsFromDirectory(): void { $shortName = 'newYearsDay'; $fileContents = <<<'FILE' @@ -193,7 +193,7 @@ public function testLoadingTranslationsFromDirectory() /** * Tests that translation is not loaded from file with invalid extension. */ - public function testNotLoadingTranslationsFromFileWithInvalidExtension() + public function testNotLoadingTranslationsFromFileWithInvalidExtension(): void { $shortName = 'newYearsDay'; $fileContents = <<<'FILE' @@ -219,7 +219,7 @@ public function testNotLoadingTranslationsFromFileWithInvalidExtension() * * @expectedException \Yasumi\Exception\UnknownLocaleException */ - public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException() + public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException(): void { $shortName = 'newYearsDay'; $fileContents = <<<'FILE' @@ -241,7 +241,7 @@ public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException() * * @expectedException InvalidArgumentException */ - public function testLoadingTranslationsFromInexistentDirectory() + public function testLoadingTranslationsFromInexistentDirectory(): void { vfsStream::setup('root'); @@ -252,7 +252,7 @@ public function testLoadingTranslationsFromInexistentDirectory() /** * Tests loading more than one translation file from directory. */ - public function testLoadingMultipleTranslationsFromDirectory() + public function testLoadingMultipleTranslationsFromDirectory(): void { $firstShortName = 'newYearsDay'; $firstFileContents = <<<'FILE' diff --git a/tests/Base/YasumiExternalProvider.php b/tests/Base/YasumiExternalProvider.php index e1bb3d6b6..7502e9709 100644 --- a/tests/Base/YasumiExternalProvider.php +++ b/tests/Base/YasumiExternalProvider.php @@ -24,7 +24,7 @@ class YasumiExternalProvider implements ProviderInterface /** * Initialize country holidays. */ - public function initialize() + public function initialize(): void { // We don't actually have to do anything here. } diff --git a/tests/Base/YasumiTest.php b/tests/Base/YasumiTest.php index 7f608dd26..09ca624d3 100644 --- a/tests/Base/YasumiTest.php +++ b/tests/Base/YasumiTest.php @@ -43,7 +43,7 @@ class YasumiTest extends TestCase * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithInvalidYear() + public function testCreateWithInvalidYear(): void { Yasumi::create('Japan', 10100); } @@ -54,7 +54,7 @@ public function testCreateWithInvalidYear() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithInvalidProvider() + public function testCreateWithInvalidProvider(): void { Yasumi::create('Mars'); } @@ -65,7 +65,7 @@ public function testCreateWithInvalidProvider() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithInvalidProviderBecauseItsATrait() + public function testCreateWithInvalidProviderBecauseItsATrait(): void { Yasumi::create('CommonHolidays'); } @@ -76,7 +76,7 @@ public function testCreateWithInvalidProviderBecauseItsATrait() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testCreateWithAbstractClassProvider() + public function testCreateWithAbstractClassProvider(): void { Yasumi::create('AbstractProvider'); } @@ -85,7 +85,7 @@ public function testCreateWithAbstractClassProvider() * Tests that Yasumi allows external classes that extend the ProviderInterface. * @throws \ReflectionException */ - public function testCreateWithAbstractExtension() + public function testCreateWithAbstractExtension(): void { $class = YasumiExternalProvider::class; $instance = Yasumi::create( @@ -101,7 +101,7 @@ public function testCreateWithAbstractExtension() * @expectedException \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testCreateWithInvalidLocale() + public function testCreateWithInvalidLocale(): void { Yasumi::create( 'Japan', @@ -114,7 +114,7 @@ public function testCreateWithInvalidLocale() * Tests that the getIterator function returns an ArrayIterator object * @throws \ReflectionException */ - public function testGetIterator() + public function testGetIterator(): void { $holidays = Yasumi::create( 'Japan', @@ -128,7 +128,7 @@ public function testGetIterator() * Tests that the count function returns an integer and a correct count for the test holiday provider * @throws \ReflectionException */ - public function testCount() + public function testCount(): void { // There are 16 holidays in Japan in the year 2015, with 1 substituted holiday. $holidays = Yasumi::create('Japan', 2015); @@ -142,7 +142,7 @@ public function testCount() * Tests that the getType function returns a string for the test holiday provider * @throws \ReflectionException */ - public function testGetType() + public function testGetType(): void { $holidays = Yasumi::create('Japan', Factory::create()->numberBetween(1949, self::YEAR_UPPER_BOUND)); $holiday = $holidays->getHoliday('newYearsDay'); @@ -154,7 +154,7 @@ public function testGetType() * Tests that the getYear function returns an integer for the test holiday provider * @throws \ReflectionException */ - public function testGetYear() + public function testGetYear(): void { $year = Factory::create()->numberBetween(self::YEAR_LOWER_BOUND, self::YEAR_UPPER_BOUND); $holidays = Yasumi::create('Netherlands', $year); @@ -168,7 +168,7 @@ public function testGetYear() * * @throws \ReflectionException */ - public function testNext() + public function testNext(): void { $country = 'Japan'; $name = 'childrensDay'; @@ -190,7 +190,7 @@ public function testNext() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testNextWithBlankName() + public function testNextWithBlankName(): void { $holidays = Yasumi::create( 'Netherlands', @@ -204,7 +204,7 @@ public function testNextWithBlankName() * * @throws \ReflectionException */ - public function testPrevious() + public function testPrevious(): void { $country = 'Netherlands'; $name = 'liberationDay'; @@ -227,7 +227,7 @@ public function testPrevious() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testPreviousWithBlankName() + public function testPreviousWithBlankName(): void { $holidays = Yasumi::create( 'Netherlands', @@ -240,7 +240,7 @@ public function testPreviousWithBlankName() * Tests that the getHolidayNames function returns an array and a correct count for the test holiday provider * @throws \ReflectionException */ - public function testGetHolidayNames() + public function testGetHolidayNames(): void { $holidays = Yasumi::create('Japan', 2015); $holidayNames = $holidays->getHolidayNames(); @@ -254,7 +254,7 @@ public function testGetHolidayNames() * Tests that the WhenIs function returns a string representation of the date the given holiday occurs. * @throws \ReflectionException */ - public function testWhenIs() + public function testWhenIs(): void { $holidays = Yasumi::create('Japan', 2010); @@ -270,7 +270,7 @@ public function testWhenIs() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testWhenIsWithBlankName() + public function testWhenIsWithBlankName(): void { $holidays = Yasumi::create('Japan', 2010); $holidays->whenIs(null); @@ -282,7 +282,7 @@ public function testWhenIsWithBlankName() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testGetHolidayWithBlankName() + public function testGetHolidayWithBlankName(): void { $holidays = Yasumi::create('Netherlands', 1999); $holidays->getHoliday(null); @@ -293,7 +293,7 @@ public function testGetHolidayWithBlankName() * is occurring. * @throws \ReflectionException */ - public function testWhatWeekDayIs() + public function testWhatWeekDayIs(): void { $holidays = Yasumi::create('Netherlands', 2110); $weekDay = $holidays->whatWeekDayIs('stMartinsDay'); @@ -308,7 +308,7 @@ public function testWhatWeekDayIs() * @expectedException InvalidArgumentException * @throws \ReflectionException */ - public function testWhatWeekDayIsWithBlankName() + public function testWhatWeekDayIsWithBlankName(): void { $holidays = Yasumi::create('Netherlands', 2388); $holidays->whatWeekDayIs(null); @@ -318,7 +318,7 @@ public function testWhatWeekDayIsWithBlankName() * Tests that the getProviders function returns an array containing all available holiday providers. * @throws \ReflectionException */ - public function testGetProviders() + public function testGetProviders(): void { $providers = Yasumi::getProviders(); @@ -334,7 +334,7 @@ public function testGetProviders() * * @throws \ReflectionException */ - public function testGetProvidersStaticCall() + public function testGetProvidersStaticCall(): void { $provider = 'Ireland'; $providers = Yasumi::getProviders(); @@ -358,7 +358,7 @@ public function testGetProvidersStaticCall() * @throws \Exception * @throws \ReflectionException */ - public function testIsHoliday() + public function testIsHoliday(): void { $year = 2110; $provider = 'Spain'; @@ -384,7 +384,7 @@ public function testIsHoliday() * @throws \Exception * @throws \ReflectionException */ - public function testIsNotHoliday() + public function testIsNotHoliday(): void { $year = 5220; $provider = 'Japan'; @@ -408,7 +408,7 @@ public function testIsNotHoliday() * implements the DateTimeInterface (e.g. DateTime or DateTimeImmutable) * @throws \ReflectionException */ - public function testIsHolidayException() + public function testIsHolidayException(): void { $this->expectException(\TypeError::class); @@ -428,7 +428,7 @@ public function testIsHolidayException() * @throws \Exception * @throws \ReflectionException */ - public function testIsWorkingDay() + public function testIsWorkingDay(): void { $year = 2020; $provider = 'Netherlands'; @@ -457,7 +457,7 @@ public function testIsWorkingDay() * @throws \Exception * @throws \ReflectionException */ - public function testIsNotWorkingDay() + public function testIsNotWorkingDay(): void { $year = 2016; $provider = 'Japan'; @@ -483,7 +483,7 @@ public function testIsNotWorkingDay() * @TODO Add additional unit tests for those holiday providers that differ from the global definition * @throws \ReflectionException */ - public function testIsWorkingDayException() + public function testIsWorkingDayException(): void { $this->expectException(\TypeError::class); @@ -498,7 +498,7 @@ public function testIsWorkingDayException() * * @throws \ReflectionException */ - public function testRemoveHoliday() + public function testRemoveHoliday(): void { $provider = Yasumi::create('Ireland', 2018); $holidays = $provider->getHolidays(); diff --git a/tests/Base/YasumiWorkdayTest.php b/tests/Base/YasumiWorkdayTest.php index 3218139b3..8b0ce05f6 100644 --- a/tests/Base/YasumiWorkdayTest.php +++ b/tests/Base/YasumiWorkdayTest.php @@ -25,7 +25,7 @@ class YasumiWorkdayTest extends TestCase * @throws \Exception * @throws \ReflectionException */ - public function testNextWorkingDay() + public function testNextWorkingDay(): void { // Includes a weekend and a holiday $provider = 'USA'; @@ -54,7 +54,7 @@ public function testNextWorkingDay() * @throws \Exception * @throws \ReflectionException */ - public function testPreviousWorkingDay() + public function testPreviousWorkingDay(): void { // Includes a weekend and a holiday $provider = 'USA'; @@ -84,7 +84,7 @@ public function testPreviousWorkingDay() * @throws \Exception * @throws \ReflectionException */ - public function testYearBoundary() + public function testYearBoundary(): void { /** * Use Case (USA): diff --git a/tests/Belgium/AllSaintsDayTest.php b/tests/Belgium/AllSaintsDayTest.php index e6b5f86a1..b98bc74d1 100644 --- a/tests/Belgium/AllSaintsDayTest.php +++ b/tests/Belgium/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/ArmisticeDayTest.php b/tests/Belgium/ArmisticeDayTest.php index 84e25eafe..220e25f39 100644 --- a/tests/Belgium/ArmisticeDayTest.php +++ b/tests/Belgium/ArmisticeDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/AscensionDayTest.php b/tests/Belgium/AscensionDayTest.php index 0d9326d1f..542dec794 100644 --- a/tests/Belgium/AscensionDayTest.php +++ b/tests/Belgium/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/AssumptionOfMaryTest.php b/tests/Belgium/AssumptionOfMaryTest.php index 46fcc15a7..623c685f0 100644 --- a/tests/Belgium/AssumptionOfMaryTest.php +++ b/tests/Belgium/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/BelgiumTest.php b/tests/Belgium/BelgiumTest.php index f0ddf6d46..84aed9382 100644 --- a/tests/Belgium/BelgiumTest.php +++ b/tests/Belgium/BelgiumTest.php @@ -28,7 +28,7 @@ class BelgiumTest extends BelgiumBaseTestCase * Tests if all official holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Belgium are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Belgium/ChristmasTest.php b/tests/Belgium/ChristmasTest.php index 4bedd8b77..1856d8a1e 100644 --- a/tests/Belgium/ChristmasTest.php +++ b/tests/Belgium/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/EasterMondayTest.php b/tests/Belgium/EasterMondayTest.php index 091d943d8..36a1d1587 100644 --- a/tests/Belgium/EasterMondayTest.php +++ b/tests/Belgium/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/EasterTest.php b/tests/Belgium/EasterTest.php index 7fe22a4b7..ab53a22ab 100644 --- a/tests/Belgium/EasterTest.php +++ b/tests/Belgium/EasterTest.php @@ -47,7 +47,7 @@ public function testEaster() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/InternationalWorkersDayTest.php b/tests/Belgium/InternationalWorkersDayTest.php index 4f905db95..a8b41c4c8 100644 --- a/tests/Belgium/InternationalWorkersDayTest.php +++ b/tests/Belgium/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/NationalDayTest.php b/tests/Belgium/NationalDayTest.php index f16559950..a22c73ad7 100644 --- a/tests/Belgium/NationalDayTest.php +++ b/tests/Belgium/NationalDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/NewYearsDayTest.php b/tests/Belgium/NewYearsDayTest.php index da00c5907..af1eeadf4 100644 --- a/tests/Belgium/NewYearsDayTest.php +++ b/tests/Belgium/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/PentecostTest.php b/tests/Belgium/PentecostTest.php index a8734290d..aa551f897 100644 --- a/tests/Belgium/PentecostTest.php +++ b/tests/Belgium/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Belgium/pentecostMondayTest.php b/tests/Belgium/pentecostMondayTest.php index 6c3643b8e..8557851f1 100644 --- a/tests/Belgium/pentecostMondayTest.php +++ b/tests/Belgium/pentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/BosniaTest.php b/tests/Bosnia/BosniaTest.php index 720ea3308..227f8da83 100644 --- a/tests/Bosnia/BosniaTest.php +++ b/tests/Bosnia/BosniaTest.php @@ -28,7 +28,7 @@ class BosniaTest extends BosniaBaseTestCase * Tests if all official holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -66,7 +66,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -75,7 +75,7 @@ public function testBankHolidays() * Tests if all other holidays in Bosnia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Bosnia/ChristmasDayTest.php b/tests/Bosnia/ChristmasDayTest.php index 26c4429cb..60541e82c 100644 --- a/tests/Bosnia/ChristmasDayTest.php +++ b/tests/Bosnia/ChristmasDayTest.php @@ -47,7 +47,7 @@ public function testHoliday($year, $expected) * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(12, 25, self::TIMEZONE); } @@ -56,7 +56,7 @@ public function HolidayDataProvider() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/DayAfterNewYearsDay.php b/tests/Bosnia/DayAfterNewYearsDay.php index e10752647..a440db3ad 100644 --- a/tests/Bosnia/DayAfterNewYearsDay.php +++ b/tests/Bosnia/DayAfterNewYearsDay.php @@ -47,7 +47,7 @@ public function testHoliday($year, $expected) * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 2, self::TIMEZONE); } @@ -56,7 +56,7 @@ public function HolidayDataProvider() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/EasterTest.php b/tests/Bosnia/EasterTest.php index f4e09b915..cc3be96e9 100644 --- a/tests/Bosnia/EasterTest.php +++ b/tests/Bosnia/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/IndependenceDayTest.php b/tests/Bosnia/IndependenceDayTest.php index d3e49d73a..984f87331 100644 --- a/tests/Bosnia/IndependenceDayTest.php +++ b/tests/Bosnia/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testIndependenceDayBefore1992() * Tests translated name of Independence Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Bosnia/InternationalWorkersDayTest.php b/tests/Bosnia/InternationalWorkersDayTest.php index dcd2a66e2..4607feede 100644 --- a/tests/Bosnia/InternationalWorkersDayTest.php +++ b/tests/Bosnia/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } @@ -70,7 +70,7 @@ public function testHolidayType() * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 1, self::TIMEZONE); } diff --git a/tests/Bosnia/NewYearsDayTest.php b/tests/Bosnia/NewYearsDayTest.php index 5b5566d47..220aa03d2 100644 --- a/tests/Bosnia/NewYearsDayTest.php +++ b/tests/Bosnia/NewYearsDayTest.php @@ -47,7 +47,7 @@ public function testHoliday($year, $expected) * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(1, 1, self::TIMEZONE); } @@ -56,7 +56,7 @@ public function HolidayDataProvider() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/OrthodoxChristmasDay.php b/tests/Bosnia/OrthodoxChristmasDay.php index 435dcb639..8c5814ba7 100644 --- a/tests/Bosnia/OrthodoxChristmasDay.php +++ b/tests/Bosnia/OrthodoxChristmasDay.php @@ -30,7 +30,7 @@ class OrthodoxChristmasDay extends BosniaBaseTestCase implements YasumiTestCaseI * @return array * @throws \Exception */ - public function holidayDataProvider() + public function holidayDataProvider(): array { return $this->generateRandomDates(1, 7, self::TIMEZONE); } @@ -52,7 +52,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -66,7 +66,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Bosnia/SecondLabourDay.php b/tests/Bosnia/SecondLabourDay.php index 44ade5864..03b0e6451 100644 --- a/tests/Bosnia/SecondLabourDay.php +++ b/tests/Bosnia/SecondLabourDay.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } @@ -70,7 +70,7 @@ public function testHolidayType() * @return array list of test dates for the holiday defined in this test * @throws \Exception */ - public function HolidayDataProvider() + public function HolidayDataProvider(): array { return $this->generateRandomDates(5, 2, self::TIMEZONE); } diff --git a/tests/Bosnia/StatehoodDayTest.php b/tests/Bosnia/StatehoodDayTest.php index 5a582eec6..ae31d77ee 100644 --- a/tests/Bosnia/StatehoodDayTest.php +++ b/tests/Bosnia/StatehoodDayTest.php @@ -65,7 +65,7 @@ public function testStatehoodDayBefore1943() * Tests translated name of Statehood Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Brazil/AllSoulsDayTest.php b/tests/Brazil/AllSoulsDayTest.php index 338bdee2f..f7e56c412 100644 --- a/tests/Brazil/AllSoulsDayTest.php +++ b/tests/Brazil/AllSoulsDayTest.php @@ -62,7 +62,7 @@ public function testDiaDosFinadosBefore1300() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia de Finados']); @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/AshWednesdayTest.php b/tests/Brazil/AshWednesdayTest.php index 8b1dd9e94..09c28dc61 100644 --- a/tests/Brazil/AshWednesdayTest.php +++ b/tests/Brazil/AshWednesdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Ash Wednesday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Brazil/BrazilTest.php b/tests/Brazil/BrazilTest.php index cbb0d90b4..9fdccc47d 100644 --- a/tests/Brazil/BrazilTest.php +++ b/tests/Brazil/BrazilTest.php @@ -28,7 +28,7 @@ class BrazilTest extends BrazilBaseTestCase * Tests if all official holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'carnavalMonday', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Brazil are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Brazil/CarnavalMondayTest.php b/tests/Brazil/CarnavalMondayTest.php index d8fe3c295..b207fc4c3 100644 --- a/tests/Brazil/CarnavalMondayTest.php +++ b/tests/Brazil/CarnavalMondayTest.php @@ -65,7 +65,7 @@ public function testCarnavalMondayBefore1700() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Segunda-feira de Carnaval']); @@ -75,7 +75,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OBSERVANCE); diff --git a/tests/Brazil/CarnavalTuesdayTest.php b/tests/Brazil/CarnavalTuesdayTest.php index be0276ba5..84e6b8281 100644 --- a/tests/Brazil/CarnavalTuesdayTest.php +++ b/tests/Brazil/CarnavalTuesdayTest.php @@ -65,7 +65,7 @@ public function testCarnavalTuesdayBefore1700() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Terça-feira de Carnaval']); @@ -75,7 +75,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OBSERVANCE); diff --git a/tests/Brazil/ChristmasDayTest.php b/tests/Brazil/ChristmasDayTest.php index 31a93f888..c67825709 100644 --- a/tests/Brazil/ChristmasDayTest.php +++ b/tests/Brazil/ChristmasDayTest.php @@ -47,7 +47,7 @@ public function testChristmasDay() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/CorpusChristiTest.php b/tests/Brazil/CorpusChristiTest.php index 04e9bb3ee..fc600e826 100644 --- a/tests/Brazil/CorpusChristiTest.php +++ b/tests/Brazil/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Brazil/EasterTest.php b/tests/Brazil/EasterTest.php index 1542e320e..a29ceb028 100644 --- a/tests/Brazil/EasterTest.php +++ b/tests/Brazil/EasterTest.php @@ -43,7 +43,7 @@ public function testEaster() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -57,7 +57,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Brazil/GoodFridayTest.php b/tests/Brazil/GoodFridayTest.php index 068d3a167..7b224dd89 100644 --- a/tests/Brazil/GoodFridayTest.php +++ b/tests/Brazil/GoodFridayTest.php @@ -50,7 +50,7 @@ public function testGoodFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/IndependenceDayTest.php b/tests/Brazil/IndependenceDayTest.php index b252c71cc..e58f9cfbd 100644 --- a/tests/Brazil/IndependenceDayTest.php +++ b/tests/Brazil/IndependenceDayTest.php @@ -62,7 +62,7 @@ public function testDiaDaIndependenciaDoBrasilBefore1822() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName( @@ -77,7 +77,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/InternationalWorkersDayTest.php b/tests/Brazil/InternationalWorkersDayTest.php index 9c3d12054..8f1d3aea6 100644 --- a/tests/Brazil/InternationalWorkersDayTest.php +++ b/tests/Brazil/InternationalWorkersDayTest.php @@ -47,7 +47,7 @@ public function testInternationalWorkersDay() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/NewYearsDayTest.php b/tests/Brazil/NewYearsDayTest.php index bc68af396..d02cdd9e0 100644 --- a/tests/Brazil/NewYearsDayTest.php +++ b/tests/Brazil/NewYearsDayTest.php @@ -47,7 +47,7 @@ public function testNewYearsDay() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Brazil/OurLadyOfAparecidaDayTest.php b/tests/Brazil/OurLadyOfAparecidaDayTest.php index 4157d8772..b07dbd2e9 100644 --- a/tests/Brazil/OurLadyOfAparecidaDayTest.php +++ b/tests/Brazil/OurLadyOfAparecidaDayTest.php @@ -62,7 +62,7 @@ public function testNossaSenhoraAparecidaBefore1980() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName( @@ -77,7 +77,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/ProclamationOfRepublicDayTest.php b/tests/Brazil/ProclamationOfRepublicDayTest.php index a1f40a94b..0ec657fb4 100644 --- a/tests/Brazil/ProclamationOfRepublicDayTest.php +++ b/tests/Brazil/ProclamationOfRepublicDayTest.php @@ -62,7 +62,7 @@ public function testProclamacaoDaRepublicaBefore1889() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName( @@ -77,7 +77,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Brazil/TiradentesDayTest.php b/tests/Brazil/TiradentesDayTest.php index 8d6ef34d2..33bdfc3e3 100644 --- a/tests/Brazil/TiradentesDayTest.php +++ b/tests/Brazil/TiradentesDayTest.php @@ -62,7 +62,7 @@ public function testDiaDeTiradentesBefore1792() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia de Tiradentes']); @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Croatia/AllSaintsDayTest.php b/tests/Croatia/AllSaintsDayTest.php index b33a946bf..eec55bb4f 100644 --- a/tests/Croatia/AllSaintsDayTest.php +++ b/tests/Croatia/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/AntifascistStruggleDayTest.php b/tests/Croatia/AntifascistStruggleDayTest.php index ae1fa5cf7..cfc706271 100644 --- a/tests/Croatia/AntifascistStruggleDayTest.php +++ b/tests/Croatia/AntifascistStruggleDayTest.php @@ -65,7 +65,7 @@ public function testAntifascistStruggleDayBefore1941() * Tests translated name of Day of Antifascist Struggle. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Croatia/AssumptionOfMaryTest.php b/tests/Croatia/AssumptionOfMaryTest.php index b00427a9a..e368677a6 100644 --- a/tests/Croatia/AssumptionOfMaryTest.php +++ b/tests/Croatia/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/ChristmasDayTest.php b/tests/Croatia/ChristmasDayTest.php index 2cc74042f..56c5d31c9 100644 --- a/tests/Croatia/ChristmasDayTest.php +++ b/tests/Croatia/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/CorpusChristiTest.php b/tests/Croatia/CorpusChristiTest.php index 92854ea41..6602c763c 100644 --- a/tests/Croatia/CorpusChristiTest.php +++ b/tests/Croatia/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/EasterMondayTest.php b/tests/Croatia/EasterMondayTest.php index aef5299ac..74075bd2b 100644 --- a/tests/Croatia/EasterMondayTest.php +++ b/tests/Croatia/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/EasterTest.php b/tests/Croatia/EasterTest.php index 9454db1c9..6f0c23abb 100644 --- a/tests/Croatia/EasterTest.php +++ b/tests/Croatia/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/EpiphanyTest.php b/tests/Croatia/EpiphanyTest.php index 0025f85b9..3daddb0d4 100644 --- a/tests/Croatia/EpiphanyTest.php +++ b/tests/Croatia/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/HomelandThanksgivingDayTest.php b/tests/Croatia/HomelandThanksgivingDayTest.php index 875221563..4035147ea 100644 --- a/tests/Croatia/HomelandThanksgivingDayTest.php +++ b/tests/Croatia/HomelandThanksgivingDayTest.php @@ -65,7 +65,7 @@ public function testHomelandThanksgivingDayBefore1995() * Tests translated name of Homeland Thanksgiving Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Croatia/IndependenceDayTest.php b/tests/Croatia/IndependenceDayTest.php index e5370cdff..42959b6e2 100644 --- a/tests/Croatia/IndependenceDayTest.php +++ b/tests/Croatia/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testIndependenceDayBefore1991() * Tests translated name of Independence Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Croatia/InternationalWorkersDayTest.php b/tests/Croatia/InternationalWorkersDayTest.php index 04d86a6be..805e8306e 100644 --- a/tests/Croatia/InternationalWorkersDayTest.php +++ b/tests/Croatia/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/NewYearsDayTest.php b/tests/Croatia/NewYearsDayTest.php index a87249bc9..87953bbbc 100644 --- a/tests/Croatia/NewYearsDayTest.php +++ b/tests/Croatia/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/StStephensDayTest.php b/tests/Croatia/StStephensDayTest.php index 78424f352..8ce175c9f 100644 --- a/tests/Croatia/StStephensDayTest.php +++ b/tests/Croatia/StStephensDayTest.php @@ -56,7 +56,7 @@ public function stStephensDayDataProvider(): array * Tests translated name of St. Stephen's Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Croatia/StatehoodDayTest.php b/tests/Croatia/StatehoodDayTest.php index 2cb47a823..ccd5ecf43 100644 --- a/tests/Croatia/StatehoodDayTest.php +++ b/tests/Croatia/StatehoodDayTest.php @@ -65,7 +65,7 @@ public function testStatehoodDayBefore1991() * Tests translated name of Statehood Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/CzechRepublic/ChristmasDayTest.php b/tests/CzechRepublic/ChristmasDayTest.php index 1d9783e89..2357c4beb 100644 --- a/tests/CzechRepublic/ChristmasDayTest.php +++ b/tests/CzechRepublic/ChristmasDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/ChristmasEveTest.php b/tests/CzechRepublic/ChristmasEveTest.php index 8d34dbe26..01dbad67c 100644 --- a/tests/CzechRepublic/ChristmasEveTest.php +++ b/tests/CzechRepublic/ChristmasEveTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/CzechRepublic/CzechRepublicTest.php b/tests/CzechRepublic/CzechRepublicTest.php index ef47ee528..fa0b37ad1 100644 --- a/tests/CzechRepublic/CzechRepublicTest.php +++ b/tests/CzechRepublic/CzechRepublicTest.php @@ -32,7 +32,7 @@ class CzechRepublicTest extends CzechRepublicBaseTestCase * Tests if all official holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -54,7 +54,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['christmasEve',], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in the Czech Republic are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/CzechRepublic/CzechStateHoodDayTest.php b/tests/CzechRepublic/CzechStateHoodDayTest.php index 991780935..9fe192d5f 100644 --- a/tests/CzechRepublic/CzechStateHoodDayTest.php +++ b/tests/CzechRepublic/CzechStateHoodDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/EasterMondayTest.php b/tests/CzechRepublic/EasterMondayTest.php index 243394e0d..453c27395 100644 --- a/tests/CzechRepublic/EasterMondayTest.php +++ b/tests/CzechRepublic/EasterMondayTest.php @@ -51,7 +51,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -65,7 +65,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/GoodFridayTest.php b/tests/CzechRepublic/GoodFridayTest.php index c2de4e79f..457c2b682 100644 --- a/tests/CzechRepublic/GoodFridayTest.php +++ b/tests/CzechRepublic/GoodFridayTest.php @@ -51,7 +51,7 @@ public function testGoodFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -65,7 +65,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php index a1f58c85d..0b08365e6 100644 --- a/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php +++ b/tests/CzechRepublic/IndependentCzechoslovakStateDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/InternationalWorkersDayTest.php b/tests/CzechRepublic/InternationalWorkersDayTest.php index b3896baa1..94f6c8977 100644 --- a/tests/CzechRepublic/InternationalWorkersDayTest.php +++ b/tests/CzechRepublic/InternationalWorkersDayTest.php @@ -49,7 +49,7 @@ public function testHoliday($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -63,7 +63,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/JanHusDayTest.php b/tests/CzechRepublic/JanHusDayTest.php index d3ec3d420..4e05f22d5 100644 --- a/tests/CzechRepublic/JanHusDayTest.php +++ b/tests/CzechRepublic/JanHusDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/NewYearsDayTest.php b/tests/CzechRepublic/NewYearsDayTest.php index 9226521a2..4b77c8cac 100644 --- a/tests/CzechRepublic/NewYearsDayTest.php +++ b/tests/CzechRepublic/NewYearsDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php index dbdf602ee..6bf231375 100644 --- a/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/CzechRepublic/SaintsCyrilAndMethodiusDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/SecondChristmasDayTest.php b/tests/CzechRepublic/SecondChristmasDayTest.php index a5b32bbe9..3b1315370 100644 --- a/tests/CzechRepublic/SecondChristmasDayTest.php +++ b/tests/CzechRepublic/SecondChristmasDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php index 0167e24d8..f9943485d 100644 --- a/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/CzechRepublic/StruggleForFreedomAndDemocracyDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/CzechRepublic/VictoryInEuropeDayTest.php b/tests/CzechRepublic/VictoryInEuropeDayTest.php index 422c871b8..b271f0d00 100644 --- a/tests/CzechRepublic/VictoryInEuropeDayTest.php +++ b/tests/CzechRepublic/VictoryInEuropeDayTest.php @@ -60,7 +60,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/AscensionDayTest.php b/tests/Denmark/AscensionDayTest.php index 0e36390e6..b4503897f 100644 --- a/tests/Denmark/AscensionDayTest.php +++ b/tests/Denmark/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/ChristmasDayTest.php b/tests/Denmark/ChristmasDayTest.php index 830b9ab0b..b48474b0c 100644 --- a/tests/Denmark/ChristmasDayTest.php +++ b/tests/Denmark/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/ChristmasEveTest.php b/tests/Denmark/ChristmasEveTest.php index 29cc3d70d..a2aa4b559 100644 --- a/tests/Denmark/ChristmasEveTest.php +++ b/tests/Denmark/ChristmasEveTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Denmark/ConstitutionDayTest.php b/tests/Denmark/ConstitutionDayTest.php index 693a12689..8cbff6a51 100644 --- a/tests/Denmark/ConstitutionDayTest.php +++ b/tests/Denmark/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Denmark/DenmarkTest.php b/tests/Denmark/DenmarkTest.php index 754e63e74..190488484 100644 --- a/tests/Denmark/DenmarkTest.php +++ b/tests/Denmark/DenmarkTest.php @@ -28,7 +28,7 @@ class DenmarkTest extends DenmarkBaseTestCase * Tests if all official holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'internationalWorkersDay', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $year = $this->generateRandomYear(1980, 2037); $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $year, Holiday::TYPE_SEASON); @@ -73,7 +73,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -82,7 +82,7 @@ public function testBankHolidays() * Tests if all other holidays in Denmark are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Denmark/EasterMondayTest.php b/tests/Denmark/EasterMondayTest.php index 2e1e1fc8c..5a6e067a8 100644 --- a/tests/Denmark/EasterMondayTest.php +++ b/tests/Denmark/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/EasterTest.php b/tests/Denmark/EasterTest.php index 71d9a9583..6f286f4ce 100644 --- a/tests/Denmark/EasterTest.php +++ b/tests/Denmark/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/GoodFridayTest.php b/tests/Denmark/GoodFridayTest.php index e619b81e5..6aadb77ff 100644 --- a/tests/Denmark/GoodFridayTest.php +++ b/tests/Denmark/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/GreatPrayerDayTest.php b/tests/Denmark/GreatPrayerDayTest.php index 403f067bb..a142c5bf7 100644 --- a/tests/Denmark/GreatPrayerDayTest.php +++ b/tests/Denmark/GreatPrayerDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Denmark/InternationalWorkersDayTest.php b/tests/Denmark/InternationalWorkersDayTest.php index 21599834d..236a3bb5e 100644 --- a/tests/Denmark/InternationalWorkersDayTest.php +++ b/tests/Denmark/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function InternationalWorkersDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Denmark/MaundyThursdayTest.php b/tests/Denmark/MaundyThursdayTest.php index f35000e80..cea50ed98 100644 --- a/tests/Denmark/MaundyThursdayTest.php +++ b/tests/Denmark/MaundyThursdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/NewYearsDayTest.php b/tests/Denmark/NewYearsDayTest.php index fbad872ec..f05eee8de 100644 --- a/tests/Denmark/NewYearsDayTest.php +++ b/tests/Denmark/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/NewYearsEveTest.php b/tests/Denmark/NewYearsEveTest.php index 7b518da2d..17def1099 100644 --- a/tests/Denmark/NewYearsEveTest.php +++ b/tests/Denmark/NewYearsEveTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Denmark/PentecostMondayTest.php b/tests/Denmark/PentecostMondayTest.php index c1b6f857f..39a8ac9c3 100644 --- a/tests/Denmark/PentecostMondayTest.php +++ b/tests/Denmark/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/PentecostTest.php b/tests/Denmark/PentecostTest.php index 5bf5f8e0b..f0b4ccaa4 100644 --- a/tests/Denmark/PentecostTest.php +++ b/tests/Denmark/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/SecondChristmasDayTest.php b/tests/Denmark/SecondChristmasDayTest.php index 3cbd709c7..591cdebc0 100644 --- a/tests/Denmark/SecondChristmasDayTest.php +++ b/tests/Denmark/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Denmark/SummerTimeTest.php b/tests/Denmark/SummerTimeTest.php index d9d5df2a5..d706f5281 100644 --- a/tests/Denmark/SummerTimeTest.php +++ b/tests/Denmark/SummerTimeTest.php @@ -57,7 +57,7 @@ public function testSummerTime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1980, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Denmark/WinterTimeTest.php b/tests/Denmark/WinterTimeTest.php index 6f103cea3..8d0f9d16e 100644 --- a/tests/Denmark/WinterTimeTest.php +++ b/tests/Denmark/WinterTimeTest.php @@ -58,7 +58,7 @@ public function testWinterTime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1980, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Estonia/ChristmasDayTest.php b/tests/Estonia/ChristmasDayTest.php index 46c26dad3..cbe91f0d7 100644 --- a/tests/Estonia/ChristmasDayTest.php +++ b/tests/Estonia/ChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/ChristmasEveDayTest.php b/tests/Estonia/ChristmasEveDayTest.php index 9c5b550ad..19f7fc7a7 100644 --- a/tests/Estonia/ChristmasEveDayTest.php +++ b/tests/Estonia/ChristmasEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/EasterDayTest.php b/tests/Estonia/EasterDayTest.php index dbd124f2f..39e0d0edb 100644 --- a/tests/Estonia/EasterDayTest.php +++ b/tests/Estonia/EasterDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/EstoniaTest.php b/tests/Estonia/EstoniaTest.php index cd014f7e3..522f720e7 100644 --- a/tests/Estonia/EstoniaTest.php +++ b/tests/Estonia/EstoniaTest.php @@ -27,7 +27,7 @@ class EstoniaTest extends EstoniaBaseTestCase * Tests if all official holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'christmasDay', @@ -62,7 +62,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -71,7 +71,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -80,7 +80,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -89,7 +89,7 @@ public function testBankHolidays() * Tests if all other holidays in Estonia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Estonia/GoodFridayDayTest.php b/tests/Estonia/GoodFridayDayTest.php index b08517799..09724dd04 100644 --- a/tests/Estonia/GoodFridayDayTest.php +++ b/tests/Estonia/GoodFridayDayTest.php @@ -63,7 +63,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -77,7 +77,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/IndependenceDayTest.php b/tests/Estonia/IndependenceDayTest.php index 43fdd4a7a..88cc5f89d 100644 --- a/tests/Estonia/IndependenceDayTest.php +++ b/tests/Estonia/IndependenceDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Estonia/InternationalWorkersDayTest.php b/tests/Estonia/InternationalWorkersDayTest.php index 3b59db730..7ac8c7f34 100644 --- a/tests/Estonia/InternationalWorkersDayTest.php +++ b/tests/Estonia/InternationalWorkersDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/NewYearsDayTest.php b/tests/Estonia/NewYearsDayTest.php index e12c835aa..cbbf69e95 100644 --- a/tests/Estonia/NewYearsDayTest.php +++ b/tests/Estonia/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/PentecostTest.php b/tests/Estonia/PentecostTest.php index 7b8bd2d06..52221390b 100644 --- a/tests/Estonia/PentecostTest.php +++ b/tests/Estonia/PentecostTest.php @@ -63,7 +63,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -77,7 +77,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/RestorationOfIndependenceDayTest.php b/tests/Estonia/RestorationOfIndependenceDayTest.php index 7ef04471d..45105876c 100644 --- a/tests/Estonia/RestorationOfIndependenceDayTest.php +++ b/tests/Estonia/RestorationOfIndependenceDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Estonia/SecondChristmasDayTest.php b/tests/Estonia/SecondChristmasDayTest.php index fa4227178..694568422 100644 --- a/tests/Estonia/SecondChristmasDayTest.php +++ b/tests/Estonia/SecondChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/StJohnsDayTest.php b/tests/Estonia/StJohnsDayTest.php index 5e8834f4f..2a3bf590e 100644 --- a/tests/Estonia/StJohnsDayTest.php +++ b/tests/Estonia/StJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Estonia/VictoryDayTest.php b/tests/Estonia/VictoryDayTest.php index 5d62ef70d..4fcaa36c0 100644 --- a/tests/Estonia/VictoryDayTest.php +++ b/tests/Estonia/VictoryDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Finland/AllSaintsDayTest.php b/tests/Finland/AllSaintsDayTest.php index 002a7e21d..de92950aa 100644 --- a/tests/Finland/AllSaintsDayTest.php +++ b/tests/Finland/AllSaintsDayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/AscensionDayTest.php b/tests/Finland/AscensionDayTest.php index b3d9f5bc9..5d848273f 100644 --- a/tests/Finland/AscensionDayTest.php +++ b/tests/Finland/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/ChristmasDayTest.php b/tests/Finland/ChristmasDayTest.php index e3ffbf857..c3b1dfa14 100644 --- a/tests/Finland/ChristmasDayTest.php +++ b/tests/Finland/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/EasterMondayTest.php b/tests/Finland/EasterMondayTest.php index 1444ae862..91970d0ce 100644 --- a/tests/Finland/EasterMondayTest.php +++ b/tests/Finland/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/EasterTest.php b/tests/Finland/EasterTest.php index e2d1b8c22..25d5f4ed4 100644 --- a/tests/Finland/EasterTest.php +++ b/tests/Finland/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/EpiphanyTest.php b/tests/Finland/EpiphanyTest.php index 92705a62b..ad70e7aeb 100644 --- a/tests/Finland/EpiphanyTest.php +++ b/tests/Finland/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/FinlandTest.php b/tests/Finland/FinlandTest.php index 77f618092..1cddb0c80 100644 --- a/tests/Finland/FinlandTest.php +++ b/tests/Finland/FinlandTest.php @@ -28,7 +28,7 @@ class FinlandTest extends FinlandBaseTestCase * Tests if all official holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Finland/GoodFridayTest.php b/tests/Finland/GoodFridayTest.php index e096ee17b..c5e22985a 100644 --- a/tests/Finland/GoodFridayTest.php +++ b/tests/Finland/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/IndependenceDayTest.php b/tests/Finland/IndependenceDayTest.php index 65634f766..eaae9484e 100644 --- a/tests/Finland/IndependenceDayTest.php +++ b/tests/Finland/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Finland/InternationalWorkersDayTest.php b/tests/Finland/InternationalWorkersDayTest.php index 072f69812..22eeb73c9 100644 --- a/tests/Finland/InternationalWorkersDayTest.php +++ b/tests/Finland/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/NewYearsDayTest.php b/tests/Finland/NewYearsDayTest.php index 84597a13a..12344bd53 100644 --- a/tests/Finland/NewYearsDayTest.php +++ b/tests/Finland/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/PentecostTest.php b/tests/Finland/PentecostTest.php index 0fc218934..b153a888f 100644 --- a/tests/Finland/PentecostTest.php +++ b/tests/Finland/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/SecondChristmasDayTest.php b/tests/Finland/SecondChristmasDayTest.php index 5e650d3dc..0d846a188 100644 --- a/tests/Finland/SecondChristmasDayTest.php +++ b/tests/Finland/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Finland/stJohnsDayTest.php b/tests/Finland/stJohnsDayTest.php index 4f1be3ce8..9b5fa9ec6 100644 --- a/tests/Finland/stJohnsDayTest.php +++ b/tests/Finland/stJohnsDayTest.php @@ -81,7 +81,7 @@ public function testHolidayAfterAdjustment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/AllSaintsDayTest.php b/tests/France/AllSaintsDayTest.php index 10f86c139..f7baff4bf 100644 --- a/tests/France/AllSaintsDayTest.php +++ b/tests/France/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/ArmisticeDayTest.php b/tests/France/ArmisticeDayTest.php index 27c060ad2..e6cc7c4b2 100644 --- a/tests/France/ArmisticeDayTest.php +++ b/tests/France/ArmisticeDayTest.php @@ -65,7 +65,7 @@ public function testArmisticeDayBefore1919() * Tests translated name of Armistice Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/France/AscensionDayTest.php b/tests/France/AscensionDayTest.php index 946e5e11d..9b232f7ed 100644 --- a/tests/France/AscensionDayTest.php +++ b/tests/France/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/AssumptionOfMaryTest.php b/tests/France/AssumptionOfMaryTest.php index b124fb280..a0910dd37 100644 --- a/tests/France/AssumptionOfMaryTest.php +++ b/tests/France/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/BasRhin/BasRhinTest.php b/tests/France/BasRhin/BasRhinTest.php index 899bee13d..4009a0a3a 100644 --- a/tests/France/BasRhin/BasRhinTest.php +++ b/tests/France/BasRhin/BasRhinTest.php @@ -28,7 +28,7 @@ class BasRhinTest extends BasRhinBaseTestCase * Tests if all official holidays in Bas-Rhin are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Bas-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/BasRhin/GoodFridayTest.php b/tests/France/BasRhin/GoodFridayTest.php index 2705547c0..4d7a688f9 100644 --- a/tests/France/BasRhin/GoodFridayTest.php +++ b/tests/France/BasRhin/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/BasRhin/stStephensDayTest.php b/tests/France/BasRhin/stStephensDayTest.php index 69b009b0f..a0b111358 100644 --- a/tests/France/BasRhin/stStephensDayTest.php +++ b/tests/France/BasRhin/stStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/BastilleDayTest.php b/tests/France/BastilleDayTest.php index fb49e4da3..ecb32bd2d 100644 --- a/tests/France/BastilleDayTest.php +++ b/tests/France/BastilleDayTest.php @@ -65,7 +65,7 @@ public function testBastilleDayBefore1790() * Tests translated name of Bastille Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/France/ChristmasDayTest.php b/tests/France/ChristmasDayTest.php index 81cd72fe0..a8caa9701 100644 --- a/tests/France/ChristmasDayTest.php +++ b/tests/France/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/EasterMondayTest.php b/tests/France/EasterMondayTest.php index 91804dc6d..6171d0e9a 100644 --- a/tests/France/EasterMondayTest.php +++ b/tests/France/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/FranceTest.php b/tests/France/FranceTest.php index dfcf1b3ef..d30e0e9bd 100644 --- a/tests/France/FranceTest.php +++ b/tests/France/FranceTest.php @@ -28,7 +28,7 @@ class FranceTest extends FranceBaseTestCase * Tests if all official holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -58,7 +58,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -67,7 +67,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -76,7 +76,7 @@ public function testBankHolidays() * Tests if all other holidays in France are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/HautRhin/GoodFridayTest.php b/tests/France/HautRhin/GoodFridayTest.php index a49d51d77..8b04e7b63 100644 --- a/tests/France/HautRhin/GoodFridayTest.php +++ b/tests/France/HautRhin/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/HautRhin/HautRhinTest.php b/tests/France/HautRhin/HautRhinTest.php index 951cd185c..4c0da79e4 100644 --- a/tests/France/HautRhin/HautRhinTest.php +++ b/tests/France/HautRhin/HautRhinTest.php @@ -28,7 +28,7 @@ class HautRhinTest extends HautRhinBaseTestCase * Tests if all official holidays in Haut-Rhin are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Haut-Rhin (France) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/HautRhin/stStephensDayTest.php b/tests/France/HautRhin/stStephensDayTest.php index a9f1e345a..efaee6358 100644 --- a/tests/France/HautRhin/stStephensDayTest.php +++ b/tests/France/HautRhin/stStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/InternationalWorkersDayTest.php b/tests/France/InternationalWorkersDayTest.php index 97a1db15a..34383f2f4 100644 --- a/tests/France/InternationalWorkersDayTest.php +++ b/tests/France/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/Moselle/GoodFridayTest.php b/tests/France/Moselle/GoodFridayTest.php index dc915951a..f9ed7a834 100644 --- a/tests/France/Moselle/GoodFridayTest.php +++ b/tests/France/Moselle/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/Moselle/MoselleTest.php b/tests/France/Moselle/MoselleTest.php index be5d37343..d4b5660df 100644 --- a/tests/France/Moselle/MoselleTest.php +++ b/tests/France/Moselle/MoselleTest.php @@ -28,7 +28,7 @@ class MoselleTest extends MoselleBaseTestCase * Tests if all official holidays in Moselle are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -60,7 +60,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -69,7 +69,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -78,7 +78,7 @@ public function testBankHolidays() * Tests if all other holidays in Moselle (France) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/France/Moselle/stStephensDayTest.php b/tests/France/Moselle/stStephensDayTest.php index 3609fe169..52a0528ca 100644 --- a/tests/France/Moselle/stStephensDayTest.php +++ b/tests/France/Moselle/stStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/NewYearsDayTest.php b/tests/France/NewYearsDayTest.php index 5a745b790..bb12ca651 100644 --- a/tests/France/NewYearsDayTest.php +++ b/tests/France/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/PentecostMondayTest.php b/tests/France/PentecostMondayTest.php index b9c9b1272..26432f5b7 100644 --- a/tests/France/PentecostMondayTest.php +++ b/tests/France/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/France/VictoryInEuropeDayTest.php b/tests/France/VictoryInEuropeDayTest.php index 239e5b60a..a4ab98d11 100644 --- a/tests/France/VictoryInEuropeDayTest.php +++ b/tests/France/VictoryInEuropeDayTest.php @@ -65,7 +65,7 @@ public function testVictoryInEuropeDayBefore1945() * Tests translated name of Victory in Europe Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/AscensionDayTest.php b/tests/Germany/AscensionDayTest.php index 1212848d8..532166856 100644 --- a/tests/Germany/AscensionDayTest.php +++ b/tests/Germany/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php index 22a72f757..dc214a17f 100644 --- a/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php +++ b/tests/Germany/BadenWurttemberg/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php index 61556ca0e..7c7f45e6c 100644 --- a/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php +++ b/tests/Germany/BadenWurttemberg/BadenWurttembergTest.php @@ -28,7 +28,7 @@ class BadenWurttembergTest extends BadenWurttembergBaseTestCase * Tests if all official holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Baden-Württemberg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays( ['epiphany', 'corpusChristi', 'allSaintsDay'], diff --git a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php index 5fcf33d1e..72e4ba234 100644 --- a/tests/Germany/BadenWurttemberg/CorpusChristiTest.php +++ b/tests/Germany/BadenWurttemberg/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/BadenWurttemberg/EpiphanyTest.php b/tests/Germany/BadenWurttemberg/EpiphanyTest.php index df812d4c4..8e762ba62 100644 --- a/tests/Germany/BadenWurttemberg/EpiphanyTest.php +++ b/tests/Germany/BadenWurttemberg/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bavaria/AllSaintsDayTest.php b/tests/Germany/Bavaria/AllSaintsDayTest.php index dc6325932..d85bec9c7 100644 --- a/tests/Germany/Bavaria/AllSaintsDayTest.php +++ b/tests/Germany/Bavaria/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bavaria/BavariaTest.php b/tests/Germany/Bavaria/BavariaTest.php index 5e62113d5..bc5c530bc 100644 --- a/tests/Germany/Bavaria/BavariaTest.php +++ b/tests/Germany/Bavaria/BavariaTest.php @@ -28,7 +28,7 @@ class BavariaTest extends BavariaBaseTestCase * Tests if all official holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Bavaria (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays( ['epiphany', 'corpusChristi', 'allSaintsDay'], diff --git a/tests/Germany/Bavaria/CorpusChristiTest.php b/tests/Germany/Bavaria/CorpusChristiTest.php index 687ca65d0..656c9cc7e 100644 --- a/tests/Germany/Bavaria/CorpusChristiTest.php +++ b/tests/Germany/Bavaria/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bavaria/EpiphanyTest.php b/tests/Germany/Bavaria/EpiphanyTest.php index f7a55c4ea..da1a37750 100644 --- a/tests/Germany/Bavaria/EpiphanyTest.php +++ b/tests/Germany/Bavaria/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Berlin/BerlinTest.php b/tests/Germany/Berlin/BerlinTest.php index 2403411c5..1b8c24d91 100644 --- a/tests/Germany/Berlin/BerlinTest.php +++ b/tests/Germany/Berlin/BerlinTest.php @@ -28,7 +28,7 @@ class BerlinTest extends BerlinBaseTestCase * Tests if all official holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Berlin (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Brandenburg/BrandenburgTest.php b/tests/Germany/Brandenburg/BrandenburgTest.php index ebe148614..06ec34f28 100644 --- a/tests/Germany/Brandenburg/BrandenburgTest.php +++ b/tests/Germany/Brandenburg/BrandenburgTest.php @@ -28,7 +28,7 @@ class BrandenburgTest extends BrandenburgBaseTestCase * Tests if all official holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -58,7 +58,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -67,7 +67,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -76,7 +76,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -85,7 +85,7 @@ public function testBankHolidays() * Tests if all other holidays in Brandenburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Brandenburg/ReformationDayTest.php b/tests/Germany/Brandenburg/ReformationDayTest.php index 79d88252d..f7a2c5f5e 100644 --- a/tests/Germany/Brandenburg/ReformationDayTest.php +++ b/tests/Germany/Brandenburg/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Bremen/BremenTest.php b/tests/Germany/Bremen/BremenTest.php index fdcd1da02..a0a135033 100644 --- a/tests/Germany/Bremen/BremenTest.php +++ b/tests/Germany/Bremen/BremenTest.php @@ -28,7 +28,7 @@ class BremenTest extends BremenBaseTestCase * Tests if all official holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Bremen (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Bremen/ReformationDayTest.php b/tests/Germany/Bremen/ReformationDayTest.php index d438df914..0e1ab75c2 100644 --- a/tests/Germany/Bremen/ReformationDayTest.php +++ b/tests/Germany/Bremen/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/ChristmasTest.php b/tests/Germany/ChristmasTest.php index a970bf085..fe9b6f773 100644 --- a/tests/Germany/ChristmasTest.php +++ b/tests/Germany/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/EasterMondayTest.php b/tests/Germany/EasterMondayTest.php index 25d9d7537..56eefe6fc 100644 --- a/tests/Germany/EasterMondayTest.php +++ b/tests/Germany/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/GermanUnityDayTest.php b/tests/Germany/GermanUnityDayTest.php index 816627b46..70f3350ae 100644 --- a/tests/Germany/GermanUnityDayTest.php +++ b/tests/Germany/GermanUnityDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/GermanyTest.php b/tests/Germany/GermanyTest.php index 5cc1561c9..3eff63ad5 100644 --- a/tests/Germany/GermanyTest.php +++ b/tests/Germany/GermanyTest.php @@ -28,7 +28,7 @@ class GermanyTest extends GermanyBaseTestCase * Tests if all official holidays in Finland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'ascensionDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Germany are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/GoodFridayTest.php b/tests/Germany/GoodFridayTest.php index 5f9009d64..13ddfaf2d 100644 --- a/tests/Germany/GoodFridayTest.php +++ b/tests/Germany/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testGoodFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/Hamburg/DayOfReformationTest.php b/tests/Germany/Hamburg/DayOfReformationTest.php index 5cbacb4fe..4fa53ac0f 100644 --- a/tests/Germany/Hamburg/DayOfReformationTest.php +++ b/tests/Germany/Hamburg/DayOfReformationTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Hamburg/HamburgTest.php b/tests/Germany/Hamburg/HamburgTest.php index e2b804ee3..776f967c1 100644 --- a/tests/Germany/Hamburg/HamburgTest.php +++ b/tests/Germany/Hamburg/HamburgTest.php @@ -28,7 +28,7 @@ class HamburgTest extends HamburgBaseTestCase * Tests if all official holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Hamburg (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Hesse/CorpusChristiTest.php b/tests/Germany/Hesse/CorpusChristiTest.php index 785fe605a..bce107e49 100644 --- a/tests/Germany/Hesse/CorpusChristiTest.php +++ b/tests/Germany/Hesse/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Hesse/HesseTest.php b/tests/Germany/Hesse/HesseTest.php index 96873095e..fa7ae8ec9 100644 --- a/tests/Germany/Hesse/HesseTest.php +++ b/tests/Germany/Hesse/HesseTest.php @@ -28,7 +28,7 @@ class HesseTest extends HesseBaseTestCase * Tests if all official holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Hesse (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/InternationalWorkersDayTest.php b/tests/Germany/InternationalWorkersDayTest.php index 2758b7288..e5e6af22b 100644 --- a/tests/Germany/InternationalWorkersDayTest.php +++ b/tests/Germany/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/LowerSaxony/LowerSaxonyTest.php b/tests/Germany/LowerSaxony/LowerSaxonyTest.php index 6531cf949..a3bc6a710 100644 --- a/tests/Germany/LowerSaxony/LowerSaxonyTest.php +++ b/tests/Germany/LowerSaxony/LowerSaxonyTest.php @@ -28,7 +28,7 @@ class LowerSaxonyTest extends LowerSaxonyBaseTestCase * Tests if all official holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Lower Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/LowerSaxony/ReformationDayTest.php b/tests/Germany/LowerSaxony/ReformationDayTest.php index 08116dad2..bdac6f83d 100644 --- a/tests/Germany/LowerSaxony/ReformationDayTest.php +++ b/tests/Germany/LowerSaxony/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php index 066b17ba9..cd529dae6 100644 --- a/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/MecklenburgWesternPomeraniaTest.php @@ -28,7 +28,7 @@ class MecklenburgWesternPomeraniaTest extends MecklenburgWesternPomeraniaBaseTes * Tests if all official holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -56,7 +56,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -65,7 +65,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -74,7 +74,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -83,7 +83,7 @@ public function testBankHolidays() * Tests if all other holidays in Mecklenburg-Western Pomerania (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php index b6802e5b7..5c81764c6 100644 --- a/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/ReformationDayTest.php @@ -67,7 +67,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/NewYearsDayTest.php b/tests/Germany/NewYearsDayTest.php index 6f4a9f7fa..5a0c6a8d6 100644 --- a/tests/Germany/NewYearsDayTest.php +++ b/tests/Germany/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php index 21cfc04bd..067e7074f 100644 --- a/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php +++ b/tests/Germany/NorthRhineWestphalia/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php index 3976b61e3..c1e4f7748 100644 --- a/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php +++ b/tests/Germany/NorthRhineWestphalia/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php index 3c581c7aa..89c94f508 100644 --- a/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php +++ b/tests/Germany/NorthRhineWestphalia/NorthRhineWestphaliaTest.php @@ -28,7 +28,7 @@ class NorthRhineWestphaliaTest extends NorthRhineWestphaliaBaseTestCase * Tests if all official holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in North Rhine-Westphalia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi', 'allSaintsDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/PentecostMondayTest.php b/tests/Germany/PentecostMondayTest.php index e861574c3..419c9b446 100644 --- a/tests/Germany/PentecostMondayTest.php +++ b/tests/Germany/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/ReformationDay2017Test.php b/tests/Germany/ReformationDay2017Test.php index 46a9e5a29..60ced0dba 100644 --- a/tests/Germany/ReformationDay2017Test.php +++ b/tests/Germany/ReformationDay2017Test.php @@ -73,7 +73,7 @@ public function testHolidayAfterCompletion() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php index 6a6a16751..f00ce5b30 100644 --- a/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php +++ b/tests/Germany/RhinelandPalatinate/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php index bda903705..449794c87 100644 --- a/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php +++ b/tests/Germany/RhinelandPalatinate/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php index ff8036852..db9ec4544 100644 --- a/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php +++ b/tests/Germany/RhinelandPalatinate/RhinelandPalatinateTest.php @@ -28,7 +28,7 @@ class RhinelandPalatinateTest extends RhinelandPalatinateBaseTestCase * Tests if all official holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Rhineland Palatinate (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi', 'allSaintsDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/AllSaintsDayTest.php b/tests/Germany/Saarland/AllSaintsDayTest.php index b80429999..dbf289179 100644 --- a/tests/Germany/Saarland/AllSaintsDayTest.php +++ b/tests/Germany/Saarland/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/AssumptionOfMaryTest.php b/tests/Germany/Saarland/AssumptionOfMaryTest.php index e7cb1c345..33d8ca259 100644 --- a/tests/Germany/Saarland/AssumptionOfMaryTest.php +++ b/tests/Germany/Saarland/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/CorpusChristiTest.php b/tests/Germany/Saarland/CorpusChristiTest.php index 31fb393b4..bdde9c41f 100644 --- a/tests/Germany/Saarland/CorpusChristiTest.php +++ b/tests/Germany/Saarland/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/Saarland/SaarlandTest.php b/tests/Germany/Saarland/SaarlandTest.php index 4f0c8603f..8cc7a81d7 100644 --- a/tests/Germany/Saarland/SaarlandTest.php +++ b/tests/Germany/Saarland/SaarlandTest.php @@ -28,7 +28,7 @@ class SaarlandTest extends SaarlandBaseTestCase * Tests if all official holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Saarland (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([ 'corpusChristi', diff --git a/tests/Germany/Saxony/ReformationDayTest.php b/tests/Germany/Saxony/ReformationDayTest.php index a02995ca2..571dcde52 100644 --- a/tests/Germany/Saxony/ReformationDayTest.php +++ b/tests/Germany/Saxony/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php index 85375258b..cf33667d4 100644 --- a/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php +++ b/tests/Germany/Saxony/RepentanceAndPrayerDayTest.php @@ -73,7 +73,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -87,7 +87,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Saxony/SaxonyTest.php b/tests/Germany/Saxony/SaxonyTest.php index 88c7ca554..bdea0fe4d 100644 --- a/tests/Germany/Saxony/SaxonyTest.php +++ b/tests/Germany/Saxony/SaxonyTest.php @@ -28,7 +28,7 @@ class SaxonyTest extends SaxonyBaseTestCase * Tests if all official holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -60,7 +60,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -69,7 +69,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -78,7 +78,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -87,7 +87,7 @@ public function testBankHolidays() * Tests if all other holidays in Saxony (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php index 7abdf4c88..84c004665 100644 --- a/tests/Germany/SaxonyAnhalt/EpiphanyTest.php +++ b/tests/Germany/SaxonyAnhalt/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php index 564aa40a8..142dd2cff 100644 --- a/tests/Germany/SaxonyAnhalt/ReformationDayTest.php +++ b/tests/Germany/SaxonyAnhalt/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php index 9db13bf7b..889c52ca1 100644 --- a/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php +++ b/tests/Germany/SaxonyAnhalt/SaxonyAnhaltTest.php @@ -28,7 +28,7 @@ class SaxonyAnhaltTest extends SaxonyAnhaltBaseTestCase * Tests if all official holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -56,7 +56,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -65,7 +65,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -74,7 +74,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -83,7 +83,7 @@ public function testBankHolidays() * Tests if all other holidays in Saxony-Anhalt (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['epiphany'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SchleswigHolstein/ReformationDayTest.php b/tests/Germany/SchleswigHolstein/ReformationDayTest.php index 5b492cf58..8f91536c4 100644 --- a/tests/Germany/SchleswigHolstein/ReformationDayTest.php +++ b/tests/Germany/SchleswigHolstein/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php index d97b452d9..459192c8a 100644 --- a/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php +++ b/tests/Germany/SchleswigHolstein/SchleswigHolsteinTest.php @@ -28,7 +28,7 @@ class SchleswigHolsteinTest extends SchleswigHolsteinBaseTestCase * Tests if all official holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -56,7 +56,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -65,7 +65,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -74,7 +74,7 @@ public function testBankHolidays() * Tests if all other holidays in Schleswig-Holstein (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Germany/SecondChristmasDayTest.php b/tests/Germany/SecondChristmasDayTest.php index 889aa64c8..552f1168e 100644 --- a/tests/Germany/SecondChristmasDayTest.php +++ b/tests/Germany/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Germany/Thuringia/ReformationDayTest.php b/tests/Germany/Thuringia/ReformationDayTest.php index f0c369464..6e639c948 100644 --- a/tests/Germany/Thuringia/ReformationDayTest.php +++ b/tests/Germany/Thuringia/ReformationDayTest.php @@ -82,7 +82,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Germany/Thuringia/ThuringiaTest.php b/tests/Germany/Thuringia/ThuringiaTest.php index 31e9d9b0e..81c78832e 100644 --- a/tests/Germany/Thuringia/ThuringiaTest.php +++ b/tests/Germany/Thuringia/ThuringiaTest.php @@ -28,7 +28,7 @@ class ThuringiaTest extends ThuringiaBaseTestCase * Tests if all official holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -56,7 +56,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -65,7 +65,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -74,7 +74,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -83,7 +83,7 @@ public function testBankHolidays() * Tests if all other holidays in Thuringia (Germany) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Greece/AnnunciationTest.php b/tests/Greece/AnnunciationTest.php index f454b6924..0aa080820 100644 --- a/tests/Greece/AnnunciationTest.php +++ b/tests/Greece/AnnunciationTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/AscensionDayTest.php b/tests/Greece/AscensionDayTest.php index 704fcaa0e..fa9ec8b0e 100644 --- a/tests/Greece/AscensionDayTest.php +++ b/tests/Greece/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/AssumptionOfMaryTest.php b/tests/Greece/AssumptionOfMaryTest.php index c4ca394cc..c9945b051 100644 --- a/tests/Greece/AssumptionOfMaryTest.php +++ b/tests/Greece/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/ChristmasDayTest.php b/tests/Greece/ChristmasDayTest.php index 371dc35fa..29174fb01 100644 --- a/tests/Greece/ChristmasDayTest.php +++ b/tests/Greece/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/CleanMondayTest.php b/tests/Greece/CleanMondayTest.php index e8d3e998c..d1673df1e 100644 --- a/tests/Greece/CleanMondayTest.php +++ b/tests/Greece/CleanMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/EasterMondayTest.php b/tests/Greece/EasterMondayTest.php index 8eaa604e7..1122d697b 100644 --- a/tests/Greece/EasterMondayTest.php +++ b/tests/Greece/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/EasterTest.php b/tests/Greece/EasterTest.php index 9e1c61df0..07516a7b2 100644 --- a/tests/Greece/EasterTest.php +++ b/tests/Greece/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Easter. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/EpiphanyTest.php b/tests/Greece/EpiphanyTest.php index 771dcf95b..e8d1f2f5a 100644 --- a/tests/Greece/EpiphanyTest.php +++ b/tests/Greece/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Epiphany. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/GreeceTest.php b/tests/Greece/GreeceTest.php index 62614c6ff..e38fb0798 100644 --- a/tests/Greece/GreeceTest.php +++ b/tests/Greece/GreeceTest.php @@ -28,7 +28,7 @@ class GreeceTest extends GreeceBaseTestCase * Tests if all official holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -53,7 +53,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Greece are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays( ['threeHolyHierarchs', 'polytechnio'], diff --git a/tests/Greece/IndepencenceDayTest.php b/tests/Greece/IndepencenceDayTest.php index 3fb2290a0..71a7dced3 100644 --- a/tests/Greece/IndepencenceDayTest.php +++ b/tests/Greece/IndepencenceDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Greece/InternationalWorkersDayTest.php b/tests/Greece/InternationalWorkersDayTest.php index 1337507c7..5d68a7dd4 100644 --- a/tests/Greece/InternationalWorkersDayTest.php +++ b/tests/Greece/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/NewYearsDayTest.php b/tests/Greece/NewYearsDayTest.php index 0ae851d65..1564aaa8b 100644 --- a/tests/Greece/NewYearsDayTest.php +++ b/tests/Greece/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testHoliday($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/OhiDayTest.php b/tests/Greece/OhiDayTest.php index 30bd10524..a984dd8fb 100644 --- a/tests/Greece/OhiDayTest.php +++ b/tests/Greece/OhiDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Greece/PentecostMondayTest.php b/tests/Greece/PentecostMondayTest.php index be6dd09da..69156fb78 100644 --- a/tests/Greece/PentecostMondayTest.php +++ b/tests/Greece/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/PentecostTest.php b/tests/Greece/PentecostTest.php index 01fb44bd5..55211469a 100644 --- a/tests/Greece/PentecostTest.php +++ b/tests/Greece/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Greece/PolytechnioTest.php b/tests/Greece/PolytechnioTest.php index e7a03e487..72bded03a 100644 --- a/tests/Greece/PolytechnioTest.php +++ b/tests/Greece/PolytechnioTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Greece/ThreeHolyHierarchsTest.php b/tests/Greece/ThreeHolyHierarchsTest.php index 780ee85ec..1948e384b 100644 --- a/tests/Greece/ThreeHolyHierarchsTest.php +++ b/tests/Greece/ThreeHolyHierarchsTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Greece/goodFridayTest.php b/tests/Greece/goodFridayTest.php index f7e0db5ba..598bdf5f2 100644 --- a/tests/Greece/goodFridayTest.php +++ b/tests/Greece/goodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/AllSaintsDayTest.php b/tests/Hungary/AllSaintsDayTest.php index 8dbf8d0c4..32a4f9323 100644 --- a/tests/Hungary/AllSaintsDayTest.php +++ b/tests/Hungary/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/ChristmasTest.php b/tests/Hungary/ChristmasTest.php index aa85b38cb..dc1faca58 100644 --- a/tests/Hungary/ChristmasTest.php +++ b/tests/Hungary/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/EasterMondayTest.php b/tests/Hungary/EasterMondayTest.php index aaad5fd1f..7f5120a91 100644 --- a/tests/Hungary/EasterMondayTest.php +++ b/tests/Hungary/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/EasterTest.php b/tests/Hungary/EasterTest.php index ba74438bb..6c77ca6c5 100644 --- a/tests/Hungary/EasterTest.php +++ b/tests/Hungary/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/HungaryTest.php b/tests/Hungary/HungaryTest.php index 8504f9a95..bebf39a2c 100644 --- a/tests/Hungary/HungaryTest.php +++ b/tests/Hungary/HungaryTest.php @@ -28,7 +28,7 @@ class HungaryTest extends HungaryBaseTestCase * Tests if all official holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = [ 'newYearsDay', @@ -64,7 +64,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['pentecost'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Hungary are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Hungary/InternationalWorkersDayTest.php b/tests/Hungary/InternationalWorkersDayTest.php index e0b368418..8b582c175 100644 --- a/tests/Hungary/InternationalWorkersDayTest.php +++ b/tests/Hungary/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/MemorialDay1848Test.php b/tests/Hungary/MemorialDay1848Test.php index 0df623476..3a95cb67c 100644 --- a/tests/Hungary/MemorialDay1848Test.php +++ b/tests/Hungary/MemorialDay1848Test.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Hungary/MemorialDay1956Test.php b/tests/Hungary/MemorialDay1956Test.php index e51f46326..f49392df7 100644 --- a/tests/Hungary/MemorialDay1956Test.php +++ b/tests/Hungary/MemorialDay1956Test.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Hungary/NewYearsDayTest.php b/tests/Hungary/NewYearsDayTest.php index 41bba75fa..91c134c68 100644 --- a/tests/Hungary/NewYearsDayTest.php +++ b/tests/Hungary/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/PentecostMondayTest.php b/tests/Hungary/PentecostMondayTest.php index 667b7c541..904f87242 100644 --- a/tests/Hungary/PentecostMondayTest.php +++ b/tests/Hungary/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/PentecostTest.php b/tests/Hungary/PentecostTest.php index 6342f6d45..f1c3a3ca9 100644 --- a/tests/Hungary/PentecostTest.php +++ b/tests/Hungary/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Hungary/SecondChristmasDayTest.php b/tests/Hungary/SecondChristmasDayTest.php index 71db8267c..6700f5c5e 100644 --- a/tests/Hungary/SecondChristmasDayTest.php +++ b/tests/Hungary/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Hungary/StateFoundationDayTest.php b/tests/Hungary/StateFoundationDayTest.php index e8305aaf3..5f8ce1ed9 100644 --- a/tests/Hungary/StateFoundationDayTest.php +++ b/tests/Hungary/StateFoundationDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/AugustHolidayTest.php b/tests/Ireland/AugustHolidayTest.php index 3f6b33789..8a8d618eb 100644 --- a/tests/Ireland/AugustHolidayTest.php +++ b/tests/Ireland/AugustHolidayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -94,7 +94,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/ChristmasDayTest.php b/tests/Ireland/ChristmasDayTest.php index cdc41485c..c9987b790 100644 --- a/tests/Ireland/ChristmasDayTest.php +++ b/tests/Ireland/ChristmasDayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/EasterMondayTest.php b/tests/Ireland/EasterMondayTest.php index 1608b6a77..d2703af63 100644 --- a/tests/Ireland/EasterMondayTest.php +++ b/tests/Ireland/EasterMondayTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/EasterTest.php b/tests/Ireland/EasterTest.php index ee7b93e47..92b3f0238 100644 --- a/tests/Ireland/EasterTest.php +++ b/tests/Ireland/EasterTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/GoodFridayTest.php b/tests/Ireland/GoodFridayTest.php index 38625c811..d50204f24 100644 --- a/tests/Ireland/GoodFridayTest.php +++ b/tests/Ireland/GoodFridayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -94,7 +94,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Ireland/IrelandTest.php b/tests/Ireland/IrelandTest.php index 911d61c75..d9a1c3d16 100644 --- a/tests/Ireland/IrelandTest.php +++ b/tests/Ireland/IrelandTest.php @@ -28,7 +28,7 @@ class IrelandTest extends IrelandBaseTestCase * Tests if all official holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = ['easter', 'easterMonday', 'augustHoliday', 'christmasDay', 'stStephensDay']; if ($this->year >= 1974) { @@ -59,7 +59,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['goodFriday', 'pentecost'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -68,7 +68,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -77,7 +77,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -86,7 +86,7 @@ public function testBankHolidays() * Tests if all other holidays in Ireland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Ireland/JuneHolidayTest.php b/tests/Ireland/JuneHolidayTest.php index d1dcdc8da..1f78b8236 100644 --- a/tests/Ireland/JuneHolidayTest.php +++ b/tests/Ireland/JuneHolidayTest.php @@ -92,7 +92,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -112,7 +112,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/MayDayTest.php b/tests/Ireland/MayDayTest.php index 238dd5fc8..219959588 100644 --- a/tests/Ireland/MayDayTest.php +++ b/tests/Ireland/MayDayTest.php @@ -93,7 +93,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -113,7 +113,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/NewYearsDayTest.php b/tests/Ireland/NewYearsDayTest.php index 047083a0e..035164d27 100644 --- a/tests/Ireland/NewYearsDayTest.php +++ b/tests/Ireland/NewYearsDayTest.php @@ -91,7 +91,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/OctoberHolidayTest.php b/tests/Ireland/OctoberHolidayTest.php index 268f4db56..83954a53f 100644 --- a/tests/Ireland/OctoberHolidayTest.php +++ b/tests/Ireland/OctoberHolidayTest.php @@ -93,7 +93,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -113,7 +113,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/PentecostTest.php b/tests/Ireland/PentecostTest.php index e0e1decfb..bbcf12e3b 100644 --- a/tests/Ireland/PentecostTest.php +++ b/tests/Ireland/PentecostTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Ireland/StPatricksDayTest.php b/tests/Ireland/StPatricksDayTest.php index a76425de8..fe5a991c3 100644 --- a/tests/Ireland/StPatricksDayTest.php +++ b/tests/Ireland/StPatricksDayTest.php @@ -91,7 +91,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ireland/StStephensDayTest.php b/tests/Ireland/StStephensDayTest.php index fc834c4b9..83b4ea9dc 100644 --- a/tests/Ireland/StStephensDayTest.php +++ b/tests/Ireland/StStephensDayTest.php @@ -73,7 +73,7 @@ public function HolidayDataProvider(): array * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ireland/pentecostMondayTest.php b/tests/Ireland/pentecostMondayTest.php index 817ce84ae..6aed88641 100644 --- a/tests/Ireland/pentecostMondayTest.php +++ b/tests/Ireland/pentecostMondayTest.php @@ -88,7 +88,7 @@ public function testHolidayDayAfterAbolishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -108,7 +108,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Italy/AllSaintsDayTest.php b/tests/Italy/AllSaintsDayTest.php index 540bdd725..fbe88e7a1 100644 --- a/tests/Italy/AllSaintsDayTest.php +++ b/tests/Italy/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function AllSaintsDayDataProvider(): array * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/AssumptionOfMaryTest.php b/tests/Italy/AssumptionOfMaryTest.php index 9b6011237..b53866a49 100644 --- a/tests/Italy/AssumptionOfMaryTest.php +++ b/tests/Italy/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function AssumptionOfMaryDataProvider(): array * Tests translated name of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/ChristmasTest.php b/tests/Italy/ChristmasTest.php index c5fa4ea79..66a3fe35c 100644 --- a/tests/Italy/ChristmasTest.php +++ b/tests/Italy/ChristmasTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/EasterMondayTest.php b/tests/Italy/EasterMondayTest.php index 2fad60e75..43020a674 100644 --- a/tests/Italy/EasterMondayTest.php +++ b/tests/Italy/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/EasterTest.php b/tests/Italy/EasterTest.php index 68eabf3fb..780d01a4d 100644 --- a/tests/Italy/EasterTest.php +++ b/tests/Italy/EasterTest.php @@ -47,7 +47,7 @@ public function testEaster() * Tests translated name of Easter. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/EpiphanyTest.php b/tests/Italy/EpiphanyTest.php index fe6c7cc07..6b2d4b822 100644 --- a/tests/Italy/EpiphanyTest.php +++ b/tests/Italy/EpiphanyTest.php @@ -56,7 +56,7 @@ public function EpiphanyDataProvider(): array * Tests translated name of Epiphany. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/ImmaculateConceptionTest.php b/tests/Italy/ImmaculateConceptionTest.php index 20c48eb0d..802b9f535 100644 --- a/tests/Italy/ImmaculateConceptionTest.php +++ b/tests/Italy/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function ImmaculateConceptionDataProvider(): array * Tests translated name of the day of Immaculate Conception. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/InternationalWorkersDayTest.php b/tests/Italy/InternationalWorkersDayTest.php index 2fb198bd1..00d0eefd2 100644 --- a/tests/Italy/InternationalWorkersDayTest.php +++ b/tests/Italy/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function InternationalWorkersDayDataProvider(): array * Tests translated name of International Workers' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/ItalyTest.php b/tests/Italy/ItalyTest.php index 262b1db4b..9d7d24a94 100644 --- a/tests/Italy/ItalyTest.php +++ b/tests/Italy/ItalyTest.php @@ -28,7 +28,7 @@ class ItalyTest extends ItalyBaseTestCase * Tests if all official holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Italy are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Italy/LiberationDayTest.php b/tests/Italy/LiberationDayTest.php index 33328b998..e07dd8540 100644 --- a/tests/Italy/LiberationDayTest.php +++ b/tests/Italy/LiberationDayTest.php @@ -72,7 +72,7 @@ public function testLiberationDayBefore1949() * Tests translated name of Liberation Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Italy/NewYearsDayTest.php b/tests/Italy/NewYearsDayTest.php index cc09d206e..8f9f3e7cf 100644 --- a/tests/Italy/NewYearsDayTest.php +++ b/tests/Italy/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function NewYearsDayDataProvider(): array * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Italy/RepublicDayTest.php b/tests/Italy/RepublicDayTest.php index aceec4962..dbacc71fe 100644 --- a/tests/Italy/RepublicDayTest.php +++ b/tests/Italy/RepublicDayTest.php @@ -72,7 +72,7 @@ public function testRepublicDayBefore1946() * Tests translated name of Republic Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -86,7 +86,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Italy/stStephensDayTest.php b/tests/Italy/stStephensDayTest.php index 9ae62e23c..fbbdfcca0 100644 --- a/tests/Italy/stStephensDayTest.php +++ b/tests/Italy/stStephensDayTest.php @@ -56,7 +56,7 @@ public function stStephensDayDataProvider(): array * Tests translated name of St. Stephen's Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Japan/AutumnalEquinoxDayTest.php b/tests/Japan/AutumnalEquinoxDayTest.php index 4b631b78e..46a76d12d 100644 --- a/tests/Japan/AutumnalEquinoxDayTest.php +++ b/tests/Japan/AutumnalEquinoxDayTest.php @@ -121,7 +121,7 @@ public function testAutumnalEquinoxDayBetween1851And1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -135,7 +135,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ChildrensDayTest.php b/tests/Japan/ChildrensDayTest.php index 5bc1880cb..167100122 100644 --- a/tests/Japan/ChildrensDayTest.php +++ b/tests/Japan/ChildrensDayTest.php @@ -81,7 +81,7 @@ public function testChildrensDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ComingOfAgeDayTest.php b/tests/Japan/ComingOfAgeDayTest.php index 0bbe69914..b528835ba 100644 --- a/tests/Japan/ComingOfAgeDayTest.php +++ b/tests/Japan/ComingOfAgeDayTest.php @@ -85,7 +85,7 @@ public function testConstitutionMemorialDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -99,7 +99,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ConstitutionMemorialDayTest.php b/tests/Japan/ConstitutionMemorialDayTest.php index 549b7f981..c8bc151c2 100644 --- a/tests/Japan/ConstitutionMemorialDayTest.php +++ b/tests/Japan/ConstitutionMemorialDayTest.php @@ -82,7 +82,7 @@ public function testConstitutionMemorialDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/CultureDayTest.php b/tests/Japan/CultureDayTest.php index 81809cd7d..3c976a07b 100644 --- a/tests/Japan/CultureDayTest.php +++ b/tests/Japan/CultureDayTest.php @@ -81,7 +81,7 @@ public function testCultureDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/EmperorsBirthdayTest.php b/tests/Japan/EmperorsBirthdayTest.php index 91b1e9d43..f64220dc9 100644 --- a/tests/Japan/EmperorsBirthdayTest.php +++ b/tests/Japan/EmperorsBirthdayTest.php @@ -86,7 +86,7 @@ public function testEmperorsBirthdayBefore1989() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -100,7 +100,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/GreeneryDayTest.php b/tests/Japan/GreeneryDayTest.php index a7587f3c3..d6b2e06b9 100644 --- a/tests/Japan/GreeneryDayTest.php +++ b/tests/Japan/GreeneryDayTest.php @@ -116,7 +116,7 @@ public function testHolidayBefore1989() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -130,7 +130,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/HealthAndSportsDayTest.php b/tests/Japan/HealthAndSportsDayTest.php index af7649d6a..f51521afa 100644 --- a/tests/Japan/HealthAndSportsDayTest.php +++ b/tests/Japan/HealthAndSportsDayTest.php @@ -117,7 +117,7 @@ public function testHealthAndSportsDayBefore1996() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -131,7 +131,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/JapanTest.php b/tests/Japan/JapanTest.php index eb6e26386..b69b815f0 100644 --- a/tests/Japan/JapanTest.php +++ b/tests/Japan/JapanTest.php @@ -28,7 +28,7 @@ class JapanTest extends JapanBaseTestCase * Tests if all official holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -55,7 +55,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -64,7 +64,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -73,7 +73,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -82,7 +82,7 @@ public function testBankHolidays() * Tests if all other holidays in Japan are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Japan/LabourThanksgivingDayTest.php b/tests/Japan/LabourThanksgivingDayTest.php index 6d08144e8..428c239de 100644 --- a/tests/Japan/LabourThanksgivingDayTest.php +++ b/tests/Japan/LabourThanksgivingDayTest.php @@ -84,7 +84,7 @@ public function testLabourThanksgivingDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/MarineDayTest.php b/tests/Japan/MarineDayTest.php index 22cfc184c..494c1545c 100644 --- a/tests/Japan/MarineDayTest.php +++ b/tests/Japan/MarineDayTest.php @@ -116,7 +116,7 @@ public function testMarineDayBefore1996() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -130,7 +130,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/MountainDayTest.php b/tests/Japan/MountainDayTest.php index 54cdcf9bc..735a34330 100644 --- a/tests/Japan/MountainDayTest.php +++ b/tests/Japan/MountainDayTest.php @@ -97,7 +97,7 @@ public function testMountainDayBefore2016() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/NationalFoundationDayTest.php b/tests/Japan/NationalFoundationDayTest.php index 56313bbde..829cc6342 100644 --- a/tests/Japan/NationalFoundationDayTest.php +++ b/tests/Japan/NationalFoundationDayTest.php @@ -82,7 +82,7 @@ public function testNationalFoundationDayBefore1966() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -96,7 +96,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/NewYearsDayTest.php b/tests/Japan/NewYearsDayTest.php index aea8afc35..1b3fb0f97 100644 --- a/tests/Japan/NewYearsDayTest.php +++ b/tests/Japan/NewYearsDayTest.php @@ -81,7 +81,7 @@ public function testNewYearsDayBefore1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/PublicBridgeDayTest.php b/tests/Japan/PublicBridgeDayTest.php index 71a97fb2d..bdc963bf5 100644 --- a/tests/Japan/PublicBridgeDayTest.php +++ b/tests/Japan/PublicBridgeDayTest.php @@ -50,7 +50,7 @@ public function testPublicBridgeDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $this->year, [self::LOCALE => '国民の休日']); } @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->year, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Japan/RespectForTheAgedDayTest.php b/tests/Japan/RespectForTheAgedDayTest.php index b5cfba4e4..ba7070e1a 100644 --- a/tests/Japan/RespectForTheAgedDayTest.php +++ b/tests/Japan/RespectForTheAgedDayTest.php @@ -101,7 +101,7 @@ public function testRespectForTheAgedDayBefore1996() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -115,7 +115,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/ShowaDayTest.php b/tests/Japan/ShowaDayTest.php index 86967e1a6..380391398 100644 --- a/tests/Japan/ShowaDayTest.php +++ b/tests/Japan/ShowaDayTest.php @@ -81,7 +81,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Japan/VernalEquinoxDayTest.php b/tests/Japan/VernalEquinoxDayTest.php index 2fbbfc3eb..003671230 100644 --- a/tests/Japan/VernalEquinoxDayTest.php +++ b/tests/Japan/VernalEquinoxDayTest.php @@ -122,7 +122,7 @@ public function testVernalEquinoxDayBetween1851And1948() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -136,7 +136,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Latvia/ChristmasDayTest.php b/tests/Latvia/ChristmasDayTest.php index 26fbf97cb..2e1f26e81 100644 --- a/tests/Latvia/ChristmasDayTest.php +++ b/tests/Latvia/ChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/ChristmasEveDayTest.php b/tests/Latvia/ChristmasEveDayTest.php index 1d1c2a46a..d1e347aff 100644 --- a/tests/Latvia/ChristmasEveDayTest.php +++ b/tests/Latvia/ChristmasEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/EasterDayTest.php b/tests/Latvia/EasterDayTest.php index f8ecaceca..89b8be74e 100644 --- a/tests/Latvia/EasterDayTest.php +++ b/tests/Latvia/EasterDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/EasterMondayDayTest.php b/tests/Latvia/EasterMondayDayTest.php index 7143d7cfe..e09bd490c 100644 --- a/tests/Latvia/EasterMondayDayTest.php +++ b/tests/Latvia/EasterMondayDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/GoodFridayDayTest.php b/tests/Latvia/GoodFridayDayTest.php index b9424056a..7540c9ada 100644 --- a/tests/Latvia/GoodFridayDayTest.php +++ b/tests/Latvia/GoodFridayDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/InternationalWorkersDayTest.php b/tests/Latvia/InternationalWorkersDayTest.php index 4c85b187b..c62a67c71 100644 --- a/tests/Latvia/InternationalWorkersDayTest.php +++ b/tests/Latvia/InternationalWorkersDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/LatviaTest.php b/tests/Latvia/LatviaTest.php index c23b58a1b..4988fda1b 100644 --- a/tests/Latvia/LatviaTest.php +++ b/tests/Latvia/LatviaTest.php @@ -27,7 +27,7 @@ class LatviaTest extends LatviaBaseTestCase * Tests if all official holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -60,7 +60,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -69,7 +69,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -78,7 +78,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -87,7 +87,7 @@ public function testBankHolidays() * Tests if all other holidays in Latvia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Latvia/MidsummerEveDayTest.php b/tests/Latvia/MidsummerEveDayTest.php index 4b35ee5c2..9f06d01c0 100644 --- a/tests/Latvia/MidsummerEveDayTest.php +++ b/tests/Latvia/MidsummerEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/NewYearsDayTest.php b/tests/Latvia/NewYearsDayTest.php index 52ea1bd53..89c175080 100644 --- a/tests/Latvia/NewYearsDayTest.php +++ b/tests/Latvia/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/NewYearsEveDayTest.php b/tests/Latvia/NewYearsEveDayTest.php index 5d1ba82a8..09f19955c 100644 --- a/tests/Latvia/NewYearsEveDayTest.php +++ b/tests/Latvia/NewYearsEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php index 5d8b8a7e6..e68cb1a22 100644 --- a/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php +++ b/tests/Latvia/ProclamationOfTheRepublicOfLatviaDayTest.php @@ -82,7 +82,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -99,7 +99,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Latvia/RestorationOfIndependenceDayTest.php b/tests/Latvia/RestorationOfIndependenceDayTest.php index 908af1185..f9ee55aea 100644 --- a/tests/Latvia/RestorationOfIndependenceDayTest.php +++ b/tests/Latvia/RestorationOfIndependenceDayTest.php @@ -82,7 +82,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -99,7 +99,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Latvia/SecondChristmasDayTest.php b/tests/Latvia/SecondChristmasDayTest.php index dcb713ca2..7eb0ffce9 100644 --- a/tests/Latvia/SecondChristmasDayTest.php +++ b/tests/Latvia/SecondChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Latvia/StJohnsDayTest.php b/tests/Latvia/StJohnsDayTest.php index dd341cb41..80dfc2b33 100644 --- a/tests/Latvia/StJohnsDayTest.php +++ b/tests/Latvia/StJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/AllSaintsDayTest.php b/tests/Lithuania/AllSaintsDayTest.php index 5325a73ca..50983d4ac 100644 --- a/tests/Lithuania/AllSaintsDayTest.php +++ b/tests/Lithuania/AllSaintsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/AssumptionOfMaryDayTest.php b/tests/Lithuania/AssumptionOfMaryDayTest.php index 43b771639..5a358fa91 100644 --- a/tests/Lithuania/AssumptionOfMaryDayTest.php +++ b/tests/Lithuania/AssumptionOfMaryDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/ChristmasDayTest.php b/tests/Lithuania/ChristmasDayTest.php index 20e2de18a..798b03be3 100644 --- a/tests/Lithuania/ChristmasDayTest.php +++ b/tests/Lithuania/ChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/ChristmasEveDayTest.php b/tests/Lithuania/ChristmasEveDayTest.php index 9e2b4a104..b1e25c710 100644 --- a/tests/Lithuania/ChristmasEveDayTest.php +++ b/tests/Lithuania/ChristmasEveDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/EasterDayTest.php b/tests/Lithuania/EasterDayTest.php index 8e47eb06f..04fea788c 100644 --- a/tests/Lithuania/EasterDayTest.php +++ b/tests/Lithuania/EasterDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/EasterMondayDayTest.php b/tests/Lithuania/EasterMondayDayTest.php index 7de0b3ea1..c88b5e179 100644 --- a/tests/Lithuania/EasterMondayDayTest.php +++ b/tests/Lithuania/EasterMondayDayTest.php @@ -62,7 +62,7 @@ public function testHoliday($year, $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/InternationalWorkersDayTest.php b/tests/Lithuania/InternationalWorkersDayTest.php index c42d3a8c9..41bc8319e 100644 --- a/tests/Lithuania/InternationalWorkersDayTest.php +++ b/tests/Lithuania/InternationalWorkersDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/LithuaniaTest.php b/tests/Lithuania/LithuaniaTest.php index 93f8a6777..f4d95d7f2 100644 --- a/tests/Lithuania/LithuaniaTest.php +++ b/tests/Lithuania/LithuaniaTest.php @@ -27,7 +27,7 @@ class LithuaniaTest extends LithuaniaBaseTestCase * Tests if all official holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -63,7 +63,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -72,7 +72,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -81,7 +81,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -90,7 +90,7 @@ public function testBankHolidays() * Tests if all other holidays in Lithuania are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Lithuania/NewYearsDayTest.php b/tests/Lithuania/NewYearsDayTest.php index a601efc29..74d05a0b0 100644 --- a/tests/Lithuania/NewYearsDayTest.php +++ b/tests/Lithuania/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php index 62811c5d3..fe901ab69 100644 --- a/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfIndependenceOfLithuaniaDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfterRestoration() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php index f3b707ab1..576d192d7 100644 --- a/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php +++ b/tests/Lithuania/RestorationOfTheStateOfLithuaniaDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfterRestoration() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Lithuania/SecondChristmasDayTest.php b/tests/Lithuania/SecondChristmasDayTest.php index 2e599b35e..e4922fd99 100644 --- a/tests/Lithuania/SecondChristmasDayTest.php +++ b/tests/Lithuania/SecondChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/StJohnsDayTest.php b/tests/Lithuania/StJohnsDayTest.php index 11320b1a4..f93c97d54 100644 --- a/tests/Lithuania/StJohnsDayTest.php +++ b/tests/Lithuania/StJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Lithuania/StatehoodDayTest.php b/tests/Lithuania/StatehoodDayTest.php index 1e740c9b2..0cb69ff74 100644 --- a/tests/Lithuania/StatehoodDayTest.php +++ b/tests/Lithuania/StatehoodDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfterRestoration() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/AscensionDayTest.php b/tests/Netherlands/AscensionDayTest.php index 0b519a291..d737ba2be 100644 --- a/tests/Netherlands/AscensionDayTest.php +++ b/tests/Netherlands/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/AshWednesdayTest.php b/tests/Netherlands/AshWednesdayTest.php index b9ac129d7..6576c79df 100644 --- a/tests/Netherlands/AshWednesdayTest.php +++ b/tests/Netherlands/AshWednesdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Ash Wednesday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/ChristmasDayTest.php b/tests/Netherlands/ChristmasDayTest.php index c1a0c0e9e..508bdd5a6 100644 --- a/tests/Netherlands/ChristmasDayTest.php +++ b/tests/Netherlands/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/CommemorationDayTest.php b/tests/Netherlands/CommemorationDayTest.php index cd6eb98a6..9050043ce 100644 --- a/tests/Netherlands/CommemorationDayTest.php +++ b/tests/Netherlands/CommemorationDayTest.php @@ -65,7 +65,7 @@ public function testCommemorationDayOnAfter1947() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/EasterMondayTest.php b/tests/Netherlands/EasterMondayTest.php index d74908550..d12746fc8 100644 --- a/tests/Netherlands/EasterMondayTest.php +++ b/tests/Netherlands/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/EasterTest.php b/tests/Netherlands/EasterTest.php index c851b1b79..32c9d1a37 100644 --- a/tests/Netherlands/EasterTest.php +++ b/tests/Netherlands/EasterTest.php @@ -47,7 +47,7 @@ public function testEaster() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/EpiphanyTest.php b/tests/Netherlands/EpiphanyTest.php index 99dc5a5e4..cfdf9f4a9 100644 --- a/tests/Netherlands/EpiphanyTest.php +++ b/tests/Netherlands/EpiphanyTest.php @@ -56,7 +56,7 @@ public function EpiphanyDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/FathersDayTest.php b/tests/Netherlands/FathersDayTest.php index 1c2e8cb31..ed4577d20 100644 --- a/tests/Netherlands/FathersDayTest.php +++ b/tests/Netherlands/FathersDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/GoodFridayTest.php b/tests/Netherlands/GoodFridayTest.php index aa4305e78..df2eb3075 100644 --- a/tests/Netherlands/GoodFridayTest.php +++ b/tests/Netherlands/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testGoodFriday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/HalloweenTest.php b/tests/Netherlands/HalloweenTest.php index 1de93b24e..35585826c 100644 --- a/tests/Netherlands/HalloweenTest.php +++ b/tests/Netherlands/HalloweenTest.php @@ -56,7 +56,7 @@ public function HalloweenDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/InternationalWorkersDayTest.php b/tests/Netherlands/InternationalWorkersDayTest.php index 5ab38eee1..86fad8cde 100644 --- a/tests/Netherlands/InternationalWorkersDayTest.php +++ b/tests/Netherlands/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function InternationalWorkersDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/KingsDayTest.php b/tests/Netherlands/KingsDayTest.php index cf2eeb395..3ba65e6f3 100644 --- a/tests/Netherlands/KingsDayTest.php +++ b/tests/Netherlands/KingsDayTest.php @@ -81,7 +81,7 @@ public function testKingsDayBefore2014() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/LiberationDayTest.php b/tests/Netherlands/LiberationDayTest.php index 940adc336..f8e4ad60c 100644 --- a/tests/Netherlands/LiberationDayTest.php +++ b/tests/Netherlands/LiberationDayTest.php @@ -65,7 +65,7 @@ public function testLiberationDayOnAfter1947() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/MothersDayTest.php b/tests/Netherlands/MothersDayTest.php index 844cd7306..27c521267 100644 --- a/tests/Netherlands/MothersDayTest.php +++ b/tests/Netherlands/MothersDayTest.php @@ -47,7 +47,7 @@ public function testMothersDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/NetherlandsTest.php b/tests/Netherlands/NetherlandsTest.php index a567aed35..2dacd5ce1 100644 --- a/tests/Netherlands/NetherlandsTest.php +++ b/tests/Netherlands/NetherlandsTest.php @@ -28,7 +28,7 @@ class NetherlandsTest extends NetherlandsBaseTestCase * Tests if all official holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -47,7 +47,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stMartinsDay', @@ -67,7 +67,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $year = $this->generateRandomYear(1978, 2037); $this->assertDefinedHolidays(['summerTime', 'winterTime'], self::REGION, $year, Holiday::TYPE_SEASON); @@ -77,7 +77,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -86,7 +86,7 @@ public function testBankHolidays() * Tests if all other holidays in Netherlands are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([ 'internationalWorkersDay', diff --git a/tests/Netherlands/NewYearsDayTest.php b/tests/Netherlands/NewYearsDayTest.php index 7639b74ae..08a40a1dd 100644 --- a/tests/Netherlands/NewYearsDayTest.php +++ b/tests/Netherlands/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function NewYearsDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/PentecostTest.php b/tests/Netherlands/PentecostTest.php index 5b02abcb5..aa8d08517 100644 --- a/tests/Netherlands/PentecostTest.php +++ b/tests/Netherlands/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/QueensDayTest.php b/tests/Netherlands/QueensDayTest.php index 85d02383d..99ab5a78e 100644 --- a/tests/Netherlands/QueensDayTest.php +++ b/tests/Netherlands/QueensDayTest.php @@ -129,7 +129,7 @@ public function testQueensDayAfter2013() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -143,7 +143,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Netherlands/SummertimeTest.php b/tests/Netherlands/SummertimeTest.php index 1ae96644d..4334f3ee3 100644 --- a/tests/Netherlands/SummertimeTest.php +++ b/tests/Netherlands/SummertimeTest.php @@ -58,7 +58,7 @@ public function testSummertime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1978, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Netherlands/ValentinesDayTest.php b/tests/Netherlands/ValentinesDayTest.php index eedd6cf27..9344b667b 100644 --- a/tests/Netherlands/ValentinesDayTest.php +++ b/tests/Netherlands/ValentinesDayTest.php @@ -57,7 +57,7 @@ public function ValentinesDayDataProvider(): array * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } @@ -66,7 +66,7 @@ public function testHolidayType() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/WintertimeTest.php b/tests/Netherlands/WintertimeTest.php index c25070739..e5fcdf126 100644 --- a/tests/Netherlands/WintertimeTest.php +++ b/tests/Netherlands/WintertimeTest.php @@ -57,7 +57,7 @@ public function testWintertime() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1978, 2037), Holiday::TYPE_SEASON); } diff --git a/tests/Netherlands/WorldAnimalDayTest.php b/tests/Netherlands/WorldAnimalDayTest.php index 4b8da85be..aa44862ce 100644 --- a/tests/Netherlands/WorldAnimalDayTest.php +++ b/tests/Netherlands/WorldAnimalDayTest.php @@ -65,7 +65,7 @@ public function testWorldAnimalBefore1931() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, @@ -79,7 +79,7 @@ public function testHolidayType() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/carnivalDayTest.php b/tests/Netherlands/carnivalDayTest.php index 38f9b9f25..8518936c3 100644 --- a/tests/Netherlands/carnivalDayTest.php +++ b/tests/Netherlands/carnivalDayTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testHolidayType() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/pentecostMondayTest.php b/tests/Netherlands/pentecostMondayTest.php index ae587268c..8d3bd7797 100644 --- a/tests/Netherlands/pentecostMondayTest.php +++ b/tests/Netherlands/pentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/princesDayTest.php b/tests/Netherlands/princesDayTest.php index dd89fd68c..ca696b1f0 100644 --- a/tests/Netherlands/princesDayTest.php +++ b/tests/Netherlands/princesDayTest.php @@ -47,7 +47,7 @@ public function testPrincesDay() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Netherlands/secondCarnivalDay.php b/tests/Netherlands/secondCarnivalDay.php index 7771088dc..88fc749cd 100644 --- a/tests/Netherlands/secondCarnivalDay.php +++ b/tests/Netherlands/secondCarnivalDay.php @@ -58,7 +58,7 @@ public function testHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -72,7 +72,7 @@ public function testHolidayType() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Netherlands/secondChristmasdayTest.php b/tests/Netherlands/secondChristmasdayTest.php index c8c6eeb55..4371d8a18 100644 --- a/tests/Netherlands/secondChristmasdayTest.php +++ b/tests/Netherlands/secondChristmasdayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Netherlands/stMartinsDayTest.php b/tests/Netherlands/stMartinsDayTest.php index 02dd13591..8d83a33e8 100644 --- a/tests/Netherlands/stMartinsDayTest.php +++ b/tests/Netherlands/stMartinsDayTest.php @@ -56,7 +56,7 @@ public function stMartinsDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/stNicholasDayTest.php b/tests/Netherlands/stNicholasDayTest.php index db4e990bb..13c76dfb0 100644 --- a/tests/Netherlands/stNicholasDayTest.php +++ b/tests/Netherlands/stNicholasDayTest.php @@ -57,7 +57,7 @@ public function stNicholasDayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Netherlands/thirdCarnivalDay.php b/tests/Netherlands/thirdCarnivalDay.php index c3fa911f8..a6ff63f68 100644 --- a/tests/Netherlands/thirdCarnivalDay.php +++ b/tests/Netherlands/thirdCarnivalDay.php @@ -58,7 +58,7 @@ public function testHoliday() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -72,7 +72,7 @@ public function testHolidayType() * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, diff --git a/tests/Norway/AscensionDayTest.php b/tests/Norway/AscensionDayTest.php index 8188d6bca..4e0278c8e 100644 --- a/tests/Norway/AscensionDayTest.php +++ b/tests/Norway/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/ChristmasDayTest.php b/tests/Norway/ChristmasDayTest.php index 9cdad398b..271624175 100644 --- a/tests/Norway/ChristmasDayTest.php +++ b/tests/Norway/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/ConstitutionDayTest.php b/tests/Norway/ConstitutionDayTest.php index 659d09ef6..cac5ce94b 100644 --- a/tests/Norway/ConstitutionDayTest.php +++ b/tests/Norway/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Norway/EasterMondayTest.php b/tests/Norway/EasterMondayTest.php index 283293c4f..e7eb773eb 100644 --- a/tests/Norway/EasterMondayTest.php +++ b/tests/Norway/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/EasterTest.php b/tests/Norway/EasterTest.php index 69a2fd9b4..b18f84fc6 100644 --- a/tests/Norway/EasterTest.php +++ b/tests/Norway/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/GoodFridayTest.php b/tests/Norway/GoodFridayTest.php index fd455440e..361eee5b2 100644 --- a/tests/Norway/GoodFridayTest.php +++ b/tests/Norway/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/InternationalWorkersDayTest.php b/tests/Norway/InternationalWorkersDayTest.php index b6c66f644..084bf38b1 100644 --- a/tests/Norway/InternationalWorkersDayTest.php +++ b/tests/Norway/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/MaundyThursdayTest.php b/tests/Norway/MaundyThursdayTest.php index 0dbfc4720..5be075298 100644 --- a/tests/Norway/MaundyThursdayTest.php +++ b/tests/Norway/MaundyThursdayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/NewYearsDayTest.php b/tests/Norway/NewYearsDayTest.php index e2b21ef29..d789a4bc0 100644 --- a/tests/Norway/NewYearsDayTest.php +++ b/tests/Norway/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/NorwayTest.php b/tests/Norway/NorwayTest.php index 2fa232206..4ed420f95 100644 --- a/tests/Norway/NorwayTest.php +++ b/tests/Norway/NorwayTest.php @@ -28,7 +28,7 @@ class NorwayTest extends NorwayBaseTestCase * Tests if all official holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Norway are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Norway/PentecostMondayTest.php b/tests/Norway/PentecostMondayTest.php index e02e97241..c9f3c8ac9 100644 --- a/tests/Norway/PentecostMondayTest.php +++ b/tests/Norway/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/PentecostTest.php b/tests/Norway/PentecostTest.php index 2f94d2dc1..997601173 100644 --- a/tests/Norway/PentecostTest.php +++ b/tests/Norway/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Norway/SecondChristmasDayTest.php b/tests/Norway/SecondChristmasDayTest.php index bd479a90b..a1147ab4b 100644 --- a/tests/Norway/SecondChristmasDayTest.php +++ b/tests/Norway/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/AllSaintsDayTest.php b/tests/Poland/AllSaintsDayTest.php index 47c601780..8e03a557a 100644 --- a/tests/Poland/AllSaintsDayTest.php +++ b/tests/Poland/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/AssumptionOfMaryTest.php b/tests/Poland/AssumptionOfMaryTest.php index b681fff8e..c83f41ea7 100644 --- a/tests/Poland/AssumptionOfMaryTest.php +++ b/tests/Poland/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/ChristmasTest.php b/tests/Poland/ChristmasTest.php index 4cdedadd6..e71bfe978 100644 --- a/tests/Poland/ChristmasTest.php +++ b/tests/Poland/ChristmasTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/ConstitutionDayTest.php b/tests/Poland/ConstitutionDayTest.php index 2b1be965b..474e600f2 100644 --- a/tests/Poland/ConstitutionDayTest.php +++ b/tests/Poland/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Poland/CorpusChristiTest.php b/tests/Poland/CorpusChristiTest.php index 4afb6d388..789882a0c 100644 --- a/tests/Poland/CorpusChristiTest.php +++ b/tests/Poland/CorpusChristiTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of Corpus Christi. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Poland/EasterMondayTest.php b/tests/Poland/EasterMondayTest.php index bcbdbeedd..7f87744df 100644 --- a/tests/Poland/EasterMondayTest.php +++ b/tests/Poland/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/EasterTest.php b/tests/Poland/EasterTest.php index 7d9a4d983..1187399d7 100644 --- a/tests/Poland/EasterTest.php +++ b/tests/Poland/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/EpiphanyTest.php b/tests/Poland/EpiphanyTest.php index dbc82f658..b64a40362 100644 --- a/tests/Poland/EpiphanyTest.php +++ b/tests/Poland/EpiphanyTest.php @@ -56,7 +56,7 @@ public function EpiphanyDataProvider(): array * Tests translated name of Epiphany. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/IndependenceDayTest.php b/tests/Poland/IndependenceDayTest.php index f4421bc45..6c5bc2b42 100644 --- a/tests/Poland/IndependenceDayTest.php +++ b/tests/Poland/IndependenceDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Poland/InternationalWorkersDayTest.php b/tests/Poland/InternationalWorkersDayTest.php index 4ec7b95e9..77c0e5edc 100644 --- a/tests/Poland/InternationalWorkersDayTest.php +++ b/tests/Poland/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/NewYearsDayTest.php b/tests/Poland/NewYearsDayTest.php index 2c772b9a2..d40ac0beb 100644 --- a/tests/Poland/NewYearsDayTest.php +++ b/tests/Poland/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/PentecostTest.php b/tests/Poland/PentecostTest.php index 75bef478d..af5081ac3 100644 --- a/tests/Poland/PentecostTest.php +++ b/tests/Poland/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Poland/PolandTest.php b/tests/Poland/PolandTest.php index afae94879..b523629fe 100644 --- a/tests/Poland/PolandTest.php +++ b/tests/Poland/PolandTest.php @@ -28,7 +28,7 @@ class PolandTest extends PolandBaseTestCase * Tests if all official holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Poland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['corpusChristi'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Poland/SecondChristmasDayTest.php b/tests/Poland/SecondChristmasDayTest.php index 05ed45948..d28404870 100644 --- a/tests/Poland/SecondChristmasDayTest.php +++ b/tests/Poland/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/AllSaintsDayTest.php b/tests/Portugal/AllSaintsDayTest.php index 492e9de5d..4afac9092 100644 --- a/tests/Portugal/AllSaintsDayTest.php +++ b/tests/Portugal/AllSaintsDayTest.php @@ -69,7 +69,7 @@ public function testNotHoliday() * Tests translated name of Corpus Christi. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED); $this->assertTranslatedHolidayName( @@ -85,7 +85,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { // After restoration $year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED); diff --git a/tests/Portugal/AssumptionOfMaryTest.php b/tests/Portugal/AssumptionOfMaryTest.php index 3b74f048d..63e338766 100644 --- a/tests/Portugal/AssumptionOfMaryTest.php +++ b/tests/Portugal/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/CarnationRevolutionDayTest.php b/tests/Portugal/CarnationRevolutionDayTest.php index 6ccb79a81..b1470c583 100644 --- a/tests/Portugal/CarnationRevolutionDayTest.php +++ b/tests/Portugal/CarnationRevolutionDayTest.php @@ -58,7 +58,7 @@ public function testNotHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia da Liberdade']); @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Portugal/ChristmasTest.php b/tests/Portugal/ChristmasTest.php index 0124161cd..50c91ca63 100644 --- a/tests/Portugal/ChristmasTest.php +++ b/tests/Portugal/ChristmasTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/CorpusChristiTest.php b/tests/Portugal/CorpusChristiTest.php index e6d28f758..0d3dc59f9 100644 --- a/tests/Portugal/CorpusChristiTest.php +++ b/tests/Portugal/CorpusChristiTest.php @@ -63,7 +63,7 @@ public function testNotHoliday() * Tests translated name of Corpus Christi. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::HOLIDAY_YEAR_RESTORED); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Corpo de Deus']); @@ -74,7 +74,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { // Before abolishment $year = $this->generateRandomYear(1000, self::HOLIDAY_YEAR_ABOLISHED - 1); diff --git a/tests/Portugal/EasterTest.php b/tests/Portugal/EasterTest.php index 8b97195bf..d99945082 100644 --- a/tests/Portugal/EasterTest.php +++ b/tests/Portugal/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/GoodFridayTest.php b/tests/Portugal/GoodFridayTest.php index 0e02ad716..c1c9d67b4 100644 --- a/tests/Portugal/GoodFridayTest.php +++ b/tests/Portugal/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/ImmaculateConceptionTest.php b/tests/Portugal/ImmaculateConceptionTest.php index 06a4ebdba..e4e930051 100644 --- a/tests/Portugal/ImmaculateConceptionTest.php +++ b/tests/Portugal/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/InternationalWorkersDayTest.php b/tests/Portugal/InternationalWorkersDayTest.php index 737bad77a..8ccc69266 100644 --- a/tests/Portugal/InternationalWorkersDayTest.php +++ b/tests/Portugal/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/NewYearsDayTest.php b/tests/Portugal/NewYearsDayTest.php index 354656a61..b4feb9b29 100644 --- a/tests/Portugal/NewYearsDayTest.php +++ b/tests/Portugal/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Portugal/PortugalDayTest.php b/tests/Portugal/PortugalDayTest.php index aac275b04..349c1652e 100644 --- a/tests/Portugal/PortugalDayTest.php +++ b/tests/Portugal/PortugalDayTest.php @@ -84,7 +84,7 @@ public function testNotHolidayDuringAbolishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR_BEFORE); $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, $year, [self::LOCALE => 'Dia de Portugal']); @@ -98,7 +98,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $year = $this->generateRandomYear(1000, self::ESTABLISHMENT_YEAR_BEFORE); $this->assertHolidayType(self::REGION, self::HOLIDAY, $year, Holiday::TYPE_OFFICIAL); diff --git a/tests/Portugal/PortugalTest.php b/tests/Portugal/PortugalTest.php index ef8535b13..6d3192387 100644 --- a/tests/Portugal/PortugalTest.php +++ b/tests/Portugal/PortugalTest.php @@ -28,7 +28,7 @@ class PortugalTest extends PortugalBaseTestCase * Tests if all official holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Portugal are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in PortugalPortugal are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $holidays = []; diff --git a/tests/Portugal/PortugueseRepublicDayTest.php b/tests/Portugal/PortugueseRepublicDayTest.php index 74cbd34a9..fbde1d4e5 100644 --- a/tests/Portugal/PortugueseRepublicDayTest.php +++ b/tests/Portugal/PortugueseRepublicDayTest.php @@ -69,7 +69,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -83,7 +83,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Portugal/RestorationOfIndependenceTest.php b/tests/Portugal/RestorationOfIndependenceTest.php index e75f7d6db..3ccad8eae 100644 --- a/tests/Portugal/RestorationOfIndependenceTest.php +++ b/tests/Portugal/RestorationOfIndependenceTest.php @@ -110,7 +110,7 @@ public function testHolidayBeforeEstablishment() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR, self::HOLIDAY_YEAR_ABOLISHED - 1); $this->assertTranslatedHolidayName( @@ -134,7 +134,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { // After establishment and before abolishment $year = $this->generateRandomYear(self::ESTABLISHMENT_YEAR, self::HOLIDAY_YEAR_ABOLISHED - 1); diff --git a/tests/Romania/AssumptionOfMaryTest.php b/tests/Romania/AssumptionOfMaryTest.php index 368a5b8ea..51e38dad5 100644 --- a/tests/Romania/AssumptionOfMaryTest.php +++ b/tests/Romania/AssumptionOfMaryTest.php @@ -65,7 +65,7 @@ public function testAssumptionOfMaryDayBefore2008() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/ChildrensDayTest.php b/tests/Romania/ChildrensDayTest.php index 7d662cefc..1bcbf41b1 100644 --- a/tests/Romania/ChildrensDayTest.php +++ b/tests/Romania/ChildrensDayTest.php @@ -65,7 +65,7 @@ public function testChildrensDayBefore1950() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/ChristmasDayTest.php b/tests/Romania/ChristmasDayTest.php index c571de1e5..7e276ce76 100644 --- a/tests/Romania/ChristmasDayTest.php +++ b/tests/Romania/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/ConstantinBrancusiDayTest.php b/tests/Romania/ConstantinBrancusiDayTest.php index 5a058d4e4..e176f2390 100644 --- a/tests/Romania/ConstantinBrancusiDayTest.php +++ b/tests/Romania/ConstantinBrancusiDayTest.php @@ -65,7 +65,7 @@ public function testConstantinBrancusiDayBefore2016() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/DayAfterNewYearsDayTest.php b/tests/Romania/DayAfterNewYearsDayTest.php index 6d8bf5a93..264dfb4de 100644 --- a/tests/Romania/DayAfterNewYearsDayTest.php +++ b/tests/Romania/DayAfterNewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/EasterMondayTest.php b/tests/Romania/EasterMondayTest.php index 176507d4c..1e5585084 100755 --- a/tests/Romania/EasterMondayTest.php +++ b/tests/Romania/EasterMondayTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/EasterTest.php b/tests/Romania/EasterTest.php index fc5a99427..c79d6ba35 100755 --- a/tests/Romania/EasterTest.php +++ b/tests/Romania/EasterTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/InternationalWorkersDayTest.php b/tests/Romania/InternationalWorkersDayTest.php index ada2aa18c..fe860285a 100755 --- a/tests/Romania/InternationalWorkersDayTest.php +++ b/tests/Romania/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/NationalDayTest.php b/tests/Romania/NationalDayTest.php index 27b7e4b0e..b078e2c97 100644 --- a/tests/Romania/NationalDayTest.php +++ b/tests/Romania/NationalDayTest.php @@ -97,7 +97,7 @@ public function testNationalDayBefore1865() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/NewYearsDayTest.php b/tests/Romania/NewYearsDayTest.php index 120309853..30766ec45 100644 --- a/tests/Romania/NewYearsDayTest.php +++ b/tests/Romania/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/PentecostMondayTest.php b/tests/Romania/PentecostMondayTest.php index c1a28fc60..d357c06d6 100644 --- a/tests/Romania/PentecostMondayTest.php +++ b/tests/Romania/PentecostMondayTest.php @@ -66,7 +66,7 @@ public function testPentecostMondayBefore2008() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/PentecostTest.php b/tests/Romania/PentecostTest.php index 0653ba4dd..41164c5b2 100644 --- a/tests/Romania/PentecostTest.php +++ b/tests/Romania/PentecostTest.php @@ -66,7 +66,7 @@ public function testPentecostDayBefore2008() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/RomaniaTest.php b/tests/Romania/RomaniaTest.php index 38ec74512..2ecef9abc 100755 --- a/tests/Romania/RomaniaTest.php +++ b/tests/Romania/RomaniaTest.php @@ -30,7 +30,7 @@ class RomaniaTest extends RomaniaBaseTestCase * Tests if all official holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $national_holidays = [ 'newYearsDay', @@ -59,7 +59,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $ObservedHolidays = []; @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Romania are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Romania/SecondChristmasDayTest.php b/tests/Romania/SecondChristmasDayTest.php index 51d203ef8..c7dacb67f 100644 --- a/tests/Romania/SecondChristmasDayTest.php +++ b/tests/Romania/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Romania/StAndrewDayTest.php b/tests/Romania/StAndrewDayTest.php index 35c0657ff..e07e650e6 100644 --- a/tests/Romania/StAndrewDayTest.php +++ b/tests/Romania/StAndrewDayTest.php @@ -65,7 +65,7 @@ public function testStAndrewDayBefore2012() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Romania/UnitedPrincipalitiesDayTest.php b/tests/Romania/UnitedPrincipalitiesDayTest.php index db5dad57f..efcf8d273 100644 --- a/tests/Romania/UnitedPrincipalitiesDayTest.php +++ b/tests/Romania/UnitedPrincipalitiesDayTest.php @@ -65,7 +65,7 @@ public function testUnitedPrincipalitiesDayBefore2015() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/DefenceOfTheFatherlandDayTest.php b/tests/Russia/DefenceOfTheFatherlandDayTest.php index dc24a1f57..f39bc455a 100644 --- a/tests/Russia/DefenceOfTheFatherlandDayTest.php +++ b/tests/Russia/DefenceOfTheFatherlandDayTest.php @@ -63,7 +63,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -83,7 +83,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/InternationalWomensDayTest.php b/tests/Russia/InternationalWomensDayTest.php index 9b7b0a4ee..bd1a2983e 100644 --- a/tests/Russia/InternationalWomensDayTest.php +++ b/tests/Russia/InternationalWomensDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay2Test.php b/tests/Russia/NewYearHolidaysDay2Test.php index 1046181c2..71a9580cf 100644 --- a/tests/Russia/NewYearHolidaysDay2Test.php +++ b/tests/Russia/NewYearHolidaysDay2Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay3Test.php b/tests/Russia/NewYearHolidaysDay3Test.php index c41ead1ed..7e0c11b35 100644 --- a/tests/Russia/NewYearHolidaysDay3Test.php +++ b/tests/Russia/NewYearHolidaysDay3Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay4Test.php b/tests/Russia/NewYearHolidaysDay4Test.php index cfee1b11e..f47599133 100644 --- a/tests/Russia/NewYearHolidaysDay4Test.php +++ b/tests/Russia/NewYearHolidaysDay4Test.php @@ -53,7 +53,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay5Test.php b/tests/Russia/NewYearHolidaysDay5Test.php index 2186322f8..1e40951e0 100644 --- a/tests/Russia/NewYearHolidaysDay5Test.php +++ b/tests/Russia/NewYearHolidaysDay5Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay6Test.php b/tests/Russia/NewYearHolidaysDay6Test.php index 7afe4494a..c7f9b50e2 100644 --- a/tests/Russia/NewYearHolidaysDay6Test.php +++ b/tests/Russia/NewYearHolidaysDay6Test.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearHolidaysDay8Test.php b/tests/Russia/NewYearHolidaysDay8Test.php index 8adf232e0..9c87f5ba7 100644 --- a/tests/Russia/NewYearHolidaysDay8Test.php +++ b/tests/Russia/NewYearHolidaysDay8Test.php @@ -53,7 +53,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/NewYearsDayTest.php b/tests/Russia/NewYearsDayTest.php index 3121b4db7..1128da96b 100644 --- a/tests/Russia/NewYearsDayTest.php +++ b/tests/Russia/NewYearsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/OrthodoxChristmasDayTest.php b/tests/Russia/OrthodoxChristmasDayTest.php index 0a0085151..9b31c8fdd 100644 --- a/tests/Russia/OrthodoxChristmasDayTest.php +++ b/tests/Russia/OrthodoxChristmasDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/RussiaDayTest.php b/tests/Russia/RussiaDayTest.php index c63445a6c..a6d37ed91 100644 --- a/tests/Russia/RussiaDayTest.php +++ b/tests/Russia/RussiaDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/RussiaTest.php b/tests/Russia/RussiaTest.php index 42cef5004..3ad00eed8 100644 --- a/tests/Russia/RussiaTest.php +++ b/tests/Russia/RussiaTest.php @@ -27,7 +27,7 @@ class RussiaTest extends RussiaBaseTestCase * Tests if all official holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $holidays = [ 'newYearsDay', @@ -64,7 +64,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Russia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Russia/SpringAndLabourDayTest.php b/tests/Russia/SpringAndLabourDayTest.php index e0804aa47..69cdd350a 100644 --- a/tests/Russia/SpringAndLabourDayTest.php +++ b/tests/Russia/SpringAndLabourDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Russia/UnityDayTest.php b/tests/Russia/UnityDayTest.php index c01061c95..fddd335bc 100644 --- a/tests/Russia/UnityDayTest.php +++ b/tests/Russia/UnityDayTest.php @@ -64,7 +64,7 @@ public function testHolidayAfter() * * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -84,7 +84,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Russia/VictoryDayTest.php b/tests/Russia/VictoryDayTest.php index 13cb67f10..e2cbd3173 100644 --- a/tests/Russia/VictoryDayTest.php +++ b/tests/Russia/VictoryDayTest.php @@ -54,7 +54,7 @@ public function testHoliday($year, \DateTime $expected) * {@inheritdoc} * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * {@inheritdoc} * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/AllSaintsDayTest.php b/tests/Slovakia/AllSaintsDayTest.php index 75f69bf74..2431e02a4 100644 --- a/tests/Slovakia/AllSaintsDayTest.php +++ b/tests/Slovakia/AllSaintsDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/ChristmasDayTest.php b/tests/Slovakia/ChristmasDayTest.php index 14539bb1c..af5e75da0 100644 --- a/tests/Slovakia/ChristmasDayTest.php +++ b/tests/Slovakia/ChristmasDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/ChristmasEveTest.php b/tests/Slovakia/ChristmasEveTest.php index c1073d02b..c27288545 100644 --- a/tests/Slovakia/ChristmasEveTest.php +++ b/tests/Slovakia/ChristmasEveTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Eve. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/EasterMondayTest.php b/tests/Slovakia/EasterMondayTest.php index 1bd042f9c..a73ddfb79 100644 --- a/tests/Slovakia/EasterMondayTest.php +++ b/tests/Slovakia/EasterMondayTest.php @@ -77,7 +77,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -92,7 +92,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/EpiphanyTest.php b/tests/Slovakia/EpiphanyTest.php index 1b7a32b15..8c4c1352d 100644 --- a/tests/Slovakia/EpiphanyTest.php +++ b/tests/Slovakia/EpiphanyTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/GoodFridayTest.php b/tests/Slovakia/GoodFridayTest.php index 7d3a0c5d0..9b757ab0a 100644 --- a/tests/Slovakia/GoodFridayTest.php +++ b/tests/Slovakia/GoodFridayTest.php @@ -77,7 +77,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -92,7 +92,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/InternationalWorkersDayTest.php b/tests/Slovakia/InternationalWorkersDayTest.php index 1f953dea3..de8d8d1ad 100644 --- a/tests/Slovakia/InternationalWorkersDayTest.php +++ b/tests/Slovakia/InternationalWorkersDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/NewYearsDayTest.php b/tests/Slovakia/NewYearsDayTest.php index 43d17e6b8..cdaa94da2 100644 --- a/tests/Slovakia/NewYearsDayTest.php +++ b/tests/Slovakia/NewYearsDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/OurLadyOfSorrowsDayTest.php b/tests/Slovakia/OurLadyOfSorrowsDayTest.php index c178b778d..1758dd32f 100644 --- a/tests/Slovakia/OurLadyOfSorrowsDayTest.php +++ b/tests/Slovakia/OurLadyOfSorrowsDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php index 96b55f660..95dbeceb4 100644 --- a/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php +++ b/tests/Slovakia/SaintsCyrilAndMethodiusDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/SecondChristmasDayTest.php b/tests/Slovakia/SecondChristmasDayTest.php index 589df2839..6f9f9f114 100644 --- a/tests/Slovakia/SecondChristmasDayTest.php +++ b/tests/Slovakia/SecondChristmasDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests translated name of Second Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/Slovakia/SlovakConstitutionDayTest.php b/tests/Slovakia/SlovakConstitutionDayTest.php index 7e191349b..02498edd5 100644 --- a/tests/Slovakia/SlovakConstitutionDayTest.php +++ b/tests/Slovakia/SlovakConstitutionDayTest.php @@ -64,7 +64,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/SlovakNationalUprisingDayTest.php b/tests/Slovakia/SlovakNationalUprisingDayTest.php index 4ff4620c2..5b21fa1b1 100644 --- a/tests/Slovakia/SlovakNationalUprisingDayTest.php +++ b/tests/Slovakia/SlovakNationalUprisingDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/SlovakiaTest.php b/tests/Slovakia/SlovakiaTest.php index ad033e992..f134c50d2 100644 --- a/tests/Slovakia/SlovakiaTest.php +++ b/tests/Slovakia/SlovakiaTest.php @@ -35,7 +35,7 @@ class SlovakiaTest extends SlovakiaBaseTestCase * Tests if all official holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -51,7 +51,7 @@ public function testOfficialHolidays() * Tests if all bank holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([ 'epiphany', @@ -72,7 +72,7 @@ public function testBankHolidays() * Tests if all observed holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -82,7 +82,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -92,7 +92,7 @@ public function testSeasonalHolidays() * Tests if all other holidays in Slovakia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php index bdd0a9b3f..1bf3aa96b 100644 --- a/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php +++ b/tests/Slovakia/StruggleForFreedomAndDemocracyDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Slovakia/VictoryInEuropeDayTest.php b/tests/Slovakia/VictoryInEuropeDayTest.php index 4f3add8af..4a92c15e1 100644 --- a/tests/Slovakia/VictoryInEuropeDayTest.php +++ b/tests/Slovakia/VictoryInEuropeDayTest.php @@ -65,7 +65,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -80,7 +80,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/SouthAfrica/ChristmasDayTest.php b/tests/SouthAfrica/ChristmasDayTest.php index 87a5f75b0..5ce3ba864 100644 --- a/tests/SouthAfrica/ChristmasDayTest.php +++ b/tests/SouthAfrica/ChristmasDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/FamilyDayTest.php b/tests/SouthAfrica/FamilyDayTest.php index 7d4824316..8ef2c2e19 100644 --- a/tests/SouthAfrica/FamilyDayTest.php +++ b/tests/SouthAfrica/FamilyDayTest.php @@ -95,7 +95,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -109,7 +109,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/FreedomDayTest.php b/tests/SouthAfrica/FreedomDayTest.php index 57da49fbc..81f8acb48 100644 --- a/tests/SouthAfrica/FreedomDayTest.php +++ b/tests/SouthAfrica/FreedomDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/GoodFridayTest.php b/tests/SouthAfrica/GoodFridayTest.php index ee1490d6d..7b7e45be9 100644 --- a/tests/SouthAfrica/GoodFridayTest.php +++ b/tests/SouthAfrica/GoodFridayTest.php @@ -95,7 +95,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -109,7 +109,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/HeritageDayTest.php b/tests/SouthAfrica/HeritageDayTest.php index 579f99a55..b761744f6 100644 --- a/tests/SouthAfrica/HeritageDayTest.php +++ b/tests/SouthAfrica/HeritageDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/HumanRightsDayTest.php b/tests/SouthAfrica/HumanRightsDayTest.php index 6e18ca02b..cc9fb0e5b 100644 --- a/tests/SouthAfrica/HumanRightsDayTest.php +++ b/tests/SouthAfrica/HumanRightsDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/MunicipalElections2016DayTest.php b/tests/SouthAfrica/MunicipalElections2016DayTest.php index 3ceda1b98..8276e9d3a 100644 --- a/tests/SouthAfrica/MunicipalElections2016DayTest.php +++ b/tests/SouthAfrica/MunicipalElections2016DayTest.php @@ -77,7 +77,7 @@ public function testHolidayDayAfterCompletion() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -91,7 +91,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/NationalWomensDayTest.php b/tests/SouthAfrica/NationalWomensDayTest.php index 34bc25ddc..690890044 100644 --- a/tests/SouthAfrica/NationalWomensDayTest.php +++ b/tests/SouthAfrica/NationalWomensDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/NewYearsDayTest.php b/tests/SouthAfrica/NewYearsDayTest.php index a321e5e48..89877de56 100644 --- a/tests/SouthAfrica/NewYearsDayTest.php +++ b/tests/SouthAfrica/NewYearsDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/ReconciliationDayTest.php b/tests/SouthAfrica/ReconciliationDayTest.php index 888eba4f8..d7cf225e5 100644 --- a/tests/SouthAfrica/ReconciliationDayTest.php +++ b/tests/SouthAfrica/ReconciliationDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/SecondChristmasDayTest.php b/tests/SouthAfrica/SecondChristmasDayTest.php index 4e8dbeac7..5c73614bb 100644 --- a/tests/SouthAfrica/SecondChristmasDayTest.php +++ b/tests/SouthAfrica/SecondChristmasDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/SouthAfricaTest.php b/tests/SouthAfrica/SouthAfricaTest.php index 62b990fec..263104f8b 100644 --- a/tests/SouthAfrica/SouthAfricaTest.php +++ b/tests/SouthAfrica/SouthAfricaTest.php @@ -32,7 +32,7 @@ class SouthAfricaTest extends SouthAfricaBaseTestCase * Tests if all official holidays in SouthAfrica are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = [ 'newYearsDay', @@ -61,7 +61,7 @@ public function testOfficialHolidays() * Tests if all bank holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -70,7 +70,7 @@ public function testBankHolidays() * Tests if all observed holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -79,7 +79,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -88,7 +88,7 @@ public function testSeasonalHolidays() * Tests if all other holidays in South Africa are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php index c4240ef8a..4aa10f7e2 100644 --- a/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php +++ b/tests/SouthAfrica/SubstituteDayOfGoodwillTest.php @@ -77,7 +77,7 @@ public function testHolidayDayAfterCompletion() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -91,7 +91,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/WorkersDayTest.php b/tests/SouthAfrica/WorkersDayTest.php index 5f6f06c1f..7acfe18a8 100644 --- a/tests/SouthAfrica/WorkersDayTest.php +++ b/tests/SouthAfrica/WorkersDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/SouthAfrica/YouthDayTest.php b/tests/SouthAfrica/YouthDayTest.php index 2e788fbc2..d586f1d97 100644 --- a/tests/SouthAfrica/YouthDayTest.php +++ b/tests/SouthAfrica/YouthDayTest.php @@ -96,7 +96,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/AllSaintsDayTest.php b/tests/Spain/AllSaintsDayTest.php index a51b2a488..fe5d1de6c 100644 --- a/tests/Spain/AllSaintsDayTest.php +++ b/tests/Spain/AllSaintsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/Andalusia/AndalusiaDayTest.php b/tests/Spain/Andalusia/AndalusiaDayTest.php index 89cb17e00..b3eb56729 100644 --- a/tests/Spain/Andalusia/AndalusiaDayTest.php +++ b/tests/Spain/Andalusia/AndalusiaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Andalusia/AndalusiaTest.php b/tests/Spain/Andalusia/AndalusiaTest.php index c169e3f43..3ec3fcc60 100644 --- a/tests/Spain/Andalusia/AndalusiaTest.php +++ b/tests/Spain/Andalusia/AndalusiaTest.php @@ -28,7 +28,7 @@ class AndalusiaTest extends AndalusiaBaseTestCase * Tests if all official holidays in Andalusia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Andalusia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Aragon/AragonTest.php b/tests/Spain/Aragon/AragonTest.php index 4bdabfefb..928c7d1de 100644 --- a/tests/Spain/Aragon/AragonTest.php +++ b/tests/Spain/Aragon/AragonTest.php @@ -28,7 +28,7 @@ class AragonTest extends AragonBaseTestCase * Tests if all official holidays in Aragon (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Aragon are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Aragon/StGeorgesDayTest.php b/tests/Spain/Aragon/StGeorgesDayTest.php index 1b773ffc7..922ee21dd 100644 --- a/tests/Spain/Aragon/StGeorgesDayTest.php +++ b/tests/Spain/Aragon/StGeorgesDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/AssumptionOfMaryTest.php b/tests/Spain/AssumptionOfMaryTest.php index b8c7be8b6..ca52d3132 100644 --- a/tests/Spain/AssumptionOfMaryTest.php +++ b/tests/Spain/AssumptionOfMaryTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/Asturias/AsturiasDayTest.php b/tests/Spain/Asturias/AsturiasDayTest.php index 6f7fef439..87447548e 100644 --- a/tests/Spain/Asturias/AsturiasDayTest.php +++ b/tests/Spain/Asturias/AsturiasDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Asturias/AsturiasTest.php b/tests/Spain/Asturias/AsturiasTest.php index ed82625af..d4532a20f 100644 --- a/tests/Spain/Asturias/AsturiasTest.php +++ b/tests/Spain/Asturias/AsturiasTest.php @@ -28,7 +28,7 @@ class AsturiasTest extends AsturiasBaseTestCase * Tests if all official holidays in Asturias (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Asturias are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php index d7026fe71..55c4e8f11 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/BalearicIslands/BalearicIslandsTest.php b/tests/Spain/BalearicIslands/BalearicIslandsTest.php index 86034ad89..8850fc865 100644 --- a/tests/Spain/BalearicIslands/BalearicIslandsTest.php +++ b/tests/Spain/BalearicIslands/BalearicIslandsTest.php @@ -28,7 +28,7 @@ class BalearicIslandsTest extends BalearicIslandsBaseTestCase * Tests if all official holidays in the Balearic Islands (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -64,7 +64,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -73,7 +73,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -82,7 +82,7 @@ public function testBankHolidays() * Tests if all other holidays in the Balearic Islands are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php index 6336cfbd8..9b65ef58b 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryDayTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryDayTest.php @@ -79,7 +79,7 @@ public function testHolidayDayAfterAbolishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -93,7 +93,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/BasqueCountry/BasqueCountryTest.php b/tests/Spain/BasqueCountry/BasqueCountryTest.php index 275e2f433..742121110 100644 --- a/tests/Spain/BasqueCountry/BasqueCountryTest.php +++ b/tests/Spain/BasqueCountry/BasqueCountryTest.php @@ -28,7 +28,7 @@ class BasqueCountryTest extends BasqueCountryBaseTestCase * Tests if all official holidays in Basque Country (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Basque Country are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php index e6e1f85f1..dc1a3eb3e 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/CanaryIslands/CanaryIslandsTest.php b/tests/Spain/CanaryIslands/CanaryIslandsTest.php index 2d9cb1b3d..8ab7983a8 100644 --- a/tests/Spain/CanaryIslands/CanaryIslandsTest.php +++ b/tests/Spain/CanaryIslands/CanaryIslandsTest.php @@ -28,7 +28,7 @@ class CanaryIslandsTest extends CanaryIslandsBaseTestCase * Tests if all official holidays in the Canary Islands (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in the Canary Islands are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Cantabria/CantabriaDayTest.php b/tests/Spain/Cantabria/CantabriaDayTest.php index 1bffa772c..afbc24080 100644 --- a/tests/Spain/Cantabria/CantabriaDayTest.php +++ b/tests/Spain/Cantabria/CantabriaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Cantabria/CantabriaTest.php b/tests/Spain/Cantabria/CantabriaTest.php index 35080f936..ebff05205 100644 --- a/tests/Spain/Cantabria/CantabriaTest.php +++ b/tests/Spain/Cantabria/CantabriaTest.php @@ -28,7 +28,7 @@ class CantabriaTest extends CantabriaBaseTestCase * Tests if all official holidays in Cantabria (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Cantabria are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php index da733cb8d..bed03d85b 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php index 54fd70be3..adfadbb2c 100644 --- a/tests/Spain/CastileAndLeon/CastileAndLeonTest.php +++ b/tests/Spain/CastileAndLeon/CastileAndLeonTest.php @@ -28,7 +28,7 @@ class CastileAndLeonTest extends CastileAndLeonBaseTestCase * Tests if all official holidays in Castile And Leon (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Castile And Leon are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php index 7890200ee..df0772d0f 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php index 5e706a8fe..fe3037e7d 100644 --- a/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php +++ b/tests/Spain/CastillaLaMancha/CastillaLaManchaTest.php @@ -28,7 +28,7 @@ class CastillaLaManchaTest extends CastillaLaManchaBaseTestCase * Tests if all official holidays in Castilla-La Mancha (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Castilla-La Mancha are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Catalonia/CataloniaTest.php b/tests/Spain/Catalonia/CataloniaTest.php index f3bc28ae8..9880c198d 100644 --- a/tests/Spain/Catalonia/CataloniaTest.php +++ b/tests/Spain/Catalonia/CataloniaTest.php @@ -28,7 +28,7 @@ class CataloniaTest extends CataloniaBaseTestCase * Tests if all official holidays in Catalonia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'easter', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in Catalonia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Catalonia/nationalCataloniaDayTest.php b/tests/Spain/Catalonia/nationalCataloniaDayTest.php index 292270da6..b6385f183 100644 --- a/tests/Spain/Catalonia/nationalCataloniaDayTest.php +++ b/tests/Spain/Catalonia/nationalCataloniaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Catalonia/stJohnsDayTest.php b/tests/Spain/Catalonia/stJohnsDayTest.php index 3e195ea83..75e48ebe4 100644 --- a/tests/Spain/Catalonia/stJohnsDayTest.php +++ b/tests/Spain/Catalonia/stJohnsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/Ceuta/CeutaTest.php b/tests/Spain/Ceuta/CeutaTest.php index 662a71230..cf3144196 100644 --- a/tests/Spain/Ceuta/CeutaTest.php +++ b/tests/Spain/Ceuta/CeutaTest.php @@ -28,7 +28,7 @@ class CeutaTest extends CeutaBaseTestCase * Tests if all official holidays in Ceuta (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Ceuta are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Ceuta/ceutaDayTest.php b/tests/Spain/Ceuta/ceutaDayTest.php index 42685f227..fcae69cc9 100644 --- a/tests/Spain/Ceuta/ceutaDayTest.php +++ b/tests/Spain/Ceuta/ceutaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/ChristmasTest.php b/tests/Spain/ChristmasTest.php index 391354ee5..af54f26e8 100644 --- a/tests/Spain/ChristmasTest.php +++ b/tests/Spain/ChristmasTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php index c3334d308..2fe035e41 100644 --- a/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php +++ b/tests/Spain/CommunityOfMadrid/CommunityOfMadridTest.php @@ -28,7 +28,7 @@ class CommunityOfMadridTest extends CommunityOfMadridBaseTestCase * Tests if all official holidays in the Community of Madrid (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in the Community of Madrid are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php index 3c81e3d46..bf0b92edd 100644 --- a/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php +++ b/tests/Spain/CommunityOfMadrid/DosdeMayoUprisingDayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/ConstitutionDayTest.php b/tests/Spain/ConstitutionDayTest.php index 156cde9eb..fe9cb9e73 100644 --- a/tests/Spain/ConstitutionDayTest.php +++ b/tests/Spain/ConstitutionDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/EasterMondayTest.php b/tests/Spain/EasterMondayTest.php index 4f8adfd9b..67e990d07 100644 --- a/tests/Spain/EasterMondayTest.php +++ b/tests/Spain/EasterMondayTest.php @@ -53,7 +53,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/EpiphanyTest.php b/tests/Spain/EpiphanyTest.php index acf0f0062..23f02c78d 100644 --- a/tests/Spain/EpiphanyTest.php +++ b/tests/Spain/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/Extremadura/ExtremaduraDayTest.php b/tests/Spain/Extremadura/ExtremaduraDayTest.php index f7b503fb1..b064c2c3d 100644 --- a/tests/Spain/Extremadura/ExtremaduraDayTest.php +++ b/tests/Spain/Extremadura/ExtremaduraDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Extremadura/ExtremaduraTest.php b/tests/Spain/Extremadura/ExtremaduraTest.php index ac253fc76..e1bbfcf2e 100644 --- a/tests/Spain/Extremadura/ExtremaduraTest.php +++ b/tests/Spain/Extremadura/ExtremaduraTest.php @@ -28,7 +28,7 @@ class ExtremaduraTest extends ExtremaduraBaseTestCase * Tests if all official holidays in Extremadura (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Extremadura are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Galicia/GaliciaTest.php b/tests/Spain/Galicia/GaliciaTest.php index 38e8af34b..9027603fd 100644 --- a/tests/Spain/Galicia/GaliciaTest.php +++ b/tests/Spain/Galicia/GaliciaTest.php @@ -28,7 +28,7 @@ class GaliciaTest extends GaliciaBaseTestCase * Tests if all official holidays in Galicia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -63,7 +63,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -72,7 +72,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -81,7 +81,7 @@ public function testBankHolidays() * Tests if all other holidays in Galicia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/Galicia/GalicianLiteratureDayTest.php b/tests/Spain/Galicia/GalicianLiteratureDayTest.php index fa31491c5..b1779c075 100644 --- a/tests/Spain/Galicia/GalicianLiteratureDayTest.php +++ b/tests/Spain/Galicia/GalicianLiteratureDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Galicia/stJamesDayTest.php b/tests/Spain/Galicia/stJamesDayTest.php index 6675ab411..e7a4ad630 100644 --- a/tests/Spain/Galicia/stJamesDayTest.php +++ b/tests/Spain/Galicia/stJamesDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/GoodFridayTest.php b/tests/Spain/GoodFridayTest.php index 08791a0e7..57d56a282 100644 --- a/tests/Spain/GoodFridayTest.php +++ b/tests/Spain/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/ImmaculateConceptionTest.php b/tests/Spain/ImmaculateConceptionTest.php index b7658ca68..8fe5cc655 100644 --- a/tests/Spain/ImmaculateConceptionTest.php +++ b/tests/Spain/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/InternationalWorkersDayTest.php b/tests/Spain/InternationalWorkersDayTest.php index 96b0833f3..7be3c7971 100644 --- a/tests/Spain/InternationalWorkersDayTest.php +++ b/tests/Spain/InternationalWorkersDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/LaRioja/LaRiojaDayTest.php b/tests/Spain/LaRioja/LaRiojaDayTest.php index fa81e5d80..43363c26e 100644 --- a/tests/Spain/LaRioja/LaRiojaDayTest.php +++ b/tests/Spain/LaRioja/LaRiojaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/LaRioja/LaRiojaTest.php b/tests/Spain/LaRioja/LaRiojaTest.php index 4c9f881bf..9dff92452 100644 --- a/tests/Spain/LaRioja/LaRiojaTest.php +++ b/tests/Spain/LaRioja/LaRiojaTest.php @@ -28,7 +28,7 @@ class LaRiojaTest extends LaRiojaBaseTestCase * Tests if all official holidays in La Rioja (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'maundyThursday', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in La Rioja are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/MaundyThursdayTest.php b/tests/Spain/MaundyThursdayTest.php index c16cc1269..ab72b930a 100644 --- a/tests/Spain/MaundyThursdayTest.php +++ b/tests/Spain/MaundyThursdayTest.php @@ -53,7 +53,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -67,7 +67,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Spain/Melilla/MelillaTest.php b/tests/Spain/Melilla/MelillaTest.php index d2a6a8eeb..eaab2d2f0 100644 --- a/tests/Spain/Melilla/MelillaTest.php +++ b/tests/Spain/Melilla/MelillaTest.php @@ -28,7 +28,7 @@ class MelillaTest extends MelillaBaseTestCase * Tests if all official holidays in Melilla (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Melilla are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/NationalDayTest.php b/tests/Spain/NationalDayTest.php index 915071742..dcf03f8a0 100644 --- a/tests/Spain/NationalDayTest.php +++ b/tests/Spain/NationalDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/Navarre/NavarreTest.php b/tests/Spain/Navarre/NavarreTest.php index 05404144e..080f68977 100644 --- a/tests/Spain/Navarre/NavarreTest.php +++ b/tests/Spain/Navarre/NavarreTest.php @@ -28,7 +28,7 @@ class NavarreTest extends NavarreBaseTestCase * Tests if all official holidays in Navarre (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in Navarre are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/NewYearsDayTest.php b/tests/Spain/NewYearsDayTest.php index 849465294..4475813e8 100644 --- a/tests/Spain/NewYearsDayTest.php +++ b/tests/Spain/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php index d1796570f..8be0e5335 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php index 1fd3e7c5f..b462ff338 100644 --- a/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php +++ b/tests/Spain/RegionOfMurcia/RegionOfMurciaTest.php @@ -28,7 +28,7 @@ class RegionOfMurciaTest extends RegionOfMurciaBaseTestCase * Tests if all official holidays in the Region of Murcia (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in the Region of Murcia are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/SpainTest.php b/tests/Spain/SpainTest.php index bd1c4a446..e6ac37ac7 100644 --- a/tests/Spain/SpainTest.php +++ b/tests/Spain/SpainTest.php @@ -28,7 +28,7 @@ class SpainTest extends SpainBaseTestCase * Tests if all official holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays(['easter'], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -66,7 +66,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -75,7 +75,7 @@ public function testBankHolidays() * Tests if all other holidays in Spain are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php index 92e813b31..ae431eccb 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php index 886108b5b..16ee3f717 100644 --- a/tests/Spain/ValencianCommunity/ValencianCommunityTest.php +++ b/tests/Spain/ValencianCommunity/ValencianCommunityTest.php @@ -28,7 +28,7 @@ class ValencianCommunityTest extends ValencianCommunityBaseTestCase * Tests if all official holidays in the Valencian Community (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -49,7 +49,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -62,7 +62,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -71,7 +71,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -80,7 +80,7 @@ public function testBankHolidays() * Tests if all other holidays in the Valencian Community are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays(['valentinesDay'], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Spain/ValentinesDayTest.php b/tests/Spain/ValentinesDayTest.php index a445a25da..64f3f128a 100644 --- a/tests/Spain/ValentinesDayTest.php +++ b/tests/Spain/ValentinesDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Spain/stJosephsDayTest.php b/tests/Spain/stJosephsDayTest.php index f789d18e1..0e82eecf8 100644 --- a/tests/Spain/stJosephsDayTest.php +++ b/tests/Spain/stJosephsDayTest.php @@ -62,7 +62,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -76,7 +76,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OBSERVANCE); } diff --git a/tests/Sweden/AllSaintsDayTest.php b/tests/Sweden/AllSaintsDayTest.php index c82b0c820..f53e8cf12 100644 --- a/tests/Sweden/AllSaintsDayTest.php +++ b/tests/Sweden/AllSaintsDayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/AscensionDayTest.php b/tests/Sweden/AscensionDayTest.php index f7d0cf23d..983b419e9 100644 --- a/tests/Sweden/AscensionDayTest.php +++ b/tests/Sweden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/ChristmasDayTest.php b/tests/Sweden/ChristmasDayTest.php index 9667ce598..1d98ea646 100644 --- a/tests/Sweden/ChristmasDayTest.php +++ b/tests/Sweden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/ChristmasEveTest.php b/tests/Sweden/ChristmasEveTest.php index 47c4c0b27..d0c7eb967 100644 --- a/tests/Sweden/ChristmasEveTest.php +++ b/tests/Sweden/ChristmasEveTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/EasterMondayTest.php b/tests/Sweden/EasterMondayTest.php index 069dac480..92c9d53ea 100644 --- a/tests/Sweden/EasterMondayTest.php +++ b/tests/Sweden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/EasterTest.php b/tests/Sweden/EasterTest.php index 9f0b1c368..7e4265e3f 100644 --- a/tests/Sweden/EasterTest.php +++ b/tests/Sweden/EasterTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/EpiphanyTest.php b/tests/Sweden/EpiphanyTest.php index 9788a2f58..1547e9fee 100644 --- a/tests/Sweden/EpiphanyTest.php +++ b/tests/Sweden/EpiphanyTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/GoodFridayTest.php b/tests/Sweden/GoodFridayTest.php index 8edc23227..3f8d993f4 100644 --- a/tests/Sweden/GoodFridayTest.php +++ b/tests/Sweden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/InternationalWorkersDayTest.php b/tests/Sweden/InternationalWorkersDayTest.php index ebb175857..8ec4003ee 100644 --- a/tests/Sweden/InternationalWorkersDayTest.php +++ b/tests/Sweden/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/NationalDayTest.php b/tests/Sweden/NationalDayTest.php index 9f73c9bf6..59b93a054 100644 --- a/tests/Sweden/NationalDayTest.php +++ b/tests/Sweden/NationalDayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test on or after establishment. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Sweden/NewYearsDayTest.php b/tests/Sweden/NewYearsDayTest.php index 65ccdd817..f87db7cf8 100644 --- a/tests/Sweden/NewYearsDayTest.php +++ b/tests/Sweden/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/PentecostTest.php b/tests/Sweden/PentecostTest.php index a02769401..57c62dbca 100644 --- a/tests/Sweden/PentecostTest.php +++ b/tests/Sweden/PentecostTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/SecondChristmasDayTest.php b/tests/Sweden/SecondChristmasDayTest.php index 64b697a32..967d5aa9f 100644 --- a/tests/Sweden/SecondChristmasDayTest.php +++ b/tests/Sweden/SecondChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Sweden/SwedenTest.php b/tests/Sweden/SwedenTest.php index 7b647c96f..a9b56c57b 100644 --- a/tests/Sweden/SwedenTest.php +++ b/tests/Sweden/SwedenTest.php @@ -28,7 +28,7 @@ class SwedenTest extends SwedenBaseTestCase * Tests if all official holidays in Sweden (Spain) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -52,7 +52,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -61,7 +61,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -70,7 +70,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -79,7 +79,7 @@ public function testBankHolidays() * Tests if all other holidays in Sweden are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Sweden/stJohnsDayTest.php b/tests/Sweden/stJohnsDayTest.php index e73c65ba0..b70c108c5 100644 --- a/tests/Sweden/stJohnsDayTest.php +++ b/tests/Sweden/stJohnsDayTest.php @@ -54,7 +54,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Switzerland/Aargau/AargauTest.php b/tests/Switzerland/Aargau/AargauTest.php index b87426e67..01df0d9ad 100644 --- a/tests/Switzerland/Aargau/AargauTest.php +++ b/tests/Switzerland/Aargau/AargauTest.php @@ -29,7 +29,7 @@ class AargauTest extends AargauBaseTestCase * * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -43,7 +43,7 @@ public function testOfficialHolidays() * * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -58,7 +58,7 @@ public function testRegionalHolidays() * * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -93,7 +93,7 @@ public function testBankHolidays() * * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/AscensionDayTest.php b/tests/Switzerland/Aargau/AscensionDayTest.php index e7695b1e1..68f596701 100644 --- a/tests/Switzerland/Aargau/AscensionDayTest.php +++ b/tests/Switzerland/Aargau/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/ChristmasDayTest.php b/tests/Switzerland/Aargau/ChristmasDayTest.php index 6bbb3caa4..c63e6c89a 100644 --- a/tests/Switzerland/Aargau/ChristmasDayTest.php +++ b/tests/Switzerland/Aargau/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/GoodFridayTest.php b/tests/Switzerland/Aargau/GoodFridayTest.php index e2dd3f071..d5fdc92a8 100644 --- a/tests/Switzerland/Aargau/GoodFridayTest.php +++ b/tests/Switzerland/Aargau/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Aargau/NewYearsDayTest.php b/tests/Switzerland/Aargau/NewYearsDayTest.php index 5c6a006bb..fd9a6118c 100644 --- a/tests/Switzerland/Aargau/NewYearsDayTest.php +++ b/tests/Switzerland/Aargau/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php index 6c1468fb8..657bed6bb 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AppenzellAusserrhodenTest.php @@ -28,7 +28,7 @@ class AppenzellAusserrhodenTest extends AppenzellAusserrhodenBaseTestCase * Tests if all official holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -58,7 +58,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -72,7 +72,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -81,7 +81,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -90,7 +90,7 @@ public function testBankHolidays() * Tests if all other holidays in Appenzell Ausserrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php index 651fc4155..b4d50a241 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php index f13038fd6..5c9e93b8f 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php index c8ced3eef..2a7d584ac 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php index 6e1d71e56..842e71428 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php index 7548c3caa..584b3962f 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php index 474cb9ef2..73e288d44 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php index b563b2f83..a841297bf 100644 --- a/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellAusserrhoden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php index 21b7102bb..8bfb8ce38 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php index f736053a5..af30e4757 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AppenzellInnerrhodenTest.php @@ -28,7 +28,7 @@ class AppenzellInnerrhodenTest extends AppenzellInnerrhodenBaseTestCase * Tests if all official holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -62,7 +62,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -76,7 +76,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -85,7 +85,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -94,7 +94,7 @@ public function testBankHolidays() * Tests if all other holidays in Appenzell Innerrhoden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php index d89c152d4..599e704e5 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php index ee7d084ee..29a0bad27 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php index 01cfed204..b4f6023c1 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php index 456e0664c..3ee8a5d31 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php index 1aa38237e..bbfa64464 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php index ae145a7b8..662677557 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php index 5b4003554..f88f023f6 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php index 6728fd23d..b2a0b9ba3 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php index f6c1564b2..e70729a20 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php index a4f0cfb72..b25e3c361 100644 --- a/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php +++ b/tests/Switzerland/AppenzellInnerrhoden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php index bc56329a3..43548e229 100644 --- a/tests/Switzerland/BaselLandschaft/AscensionDayTest.php +++ b/tests/Switzerland/BaselLandschaft/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php index 2c8b84b9d..88f245081 100644 --- a/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php +++ b/tests/Switzerland/BaselLandschaft/BaselLandschaftTest.php @@ -28,7 +28,7 @@ class BaselLandschaftTest extends BaselLandschaftBaseTestCase * Tests if all official holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in BaselLandschaft (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php index c1cdde48f..8fca557d6 100644 --- a/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php +++ b/tests/Switzerland/BaselLandschaft/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php index 535535c59..e183c74ab 100644 --- a/tests/Switzerland/BaselLandschaft/EasterMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php index cbcb51cf2..af822c9af 100644 --- a/tests/Switzerland/BaselLandschaft/GoodFridayTest.php +++ b/tests/Switzerland/BaselLandschaft/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php index 70ad9c9a7..675ce200e 100644 --- a/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php +++ b/tests/Switzerland/BaselLandschaft/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php index 7d55323df..ba42f5336 100644 --- a/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php +++ b/tests/Switzerland/BaselLandschaft/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php index b800b2fdf..280a1271f 100644 --- a/tests/Switzerland/BaselLandschaft/StStephensDayTest.php +++ b/tests/Switzerland/BaselLandschaft/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php index 7eb816f4a..14b758716 100644 --- a/tests/Switzerland/BaselLandschaft/WorkersDayTest.php +++ b/tests/Switzerland/BaselLandschaft/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/AscensionDayTest.php b/tests/Switzerland/BaselStadt/AscensionDayTest.php index fc16f6622..26ba32905 100644 --- a/tests/Switzerland/BaselStadt/AscensionDayTest.php +++ b/tests/Switzerland/BaselStadt/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/BaselStadtTest.php b/tests/Switzerland/BaselStadt/BaselStadtTest.php index b6627783f..b0c82a2f4 100644 --- a/tests/Switzerland/BaselStadt/BaselStadtTest.php +++ b/tests/Switzerland/BaselStadt/BaselStadtTest.php @@ -28,7 +28,7 @@ class BaselStadtTest extends BaselStadtBaseTestCase * Tests if all official holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Basel Stadt (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/ChristmasDayTest.php b/tests/Switzerland/BaselStadt/ChristmasDayTest.php index 6908a0437..e0c89c661 100644 --- a/tests/Switzerland/BaselStadt/ChristmasDayTest.php +++ b/tests/Switzerland/BaselStadt/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/EasterMondayTest.php b/tests/Switzerland/BaselStadt/EasterMondayTest.php index ecba180f1..c673dff22 100644 --- a/tests/Switzerland/BaselStadt/EasterMondayTest.php +++ b/tests/Switzerland/BaselStadt/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/GoodFridayTest.php b/tests/Switzerland/BaselStadt/GoodFridayTest.php index 5782affb7..63da9fc6e 100644 --- a/tests/Switzerland/BaselStadt/GoodFridayTest.php +++ b/tests/Switzerland/BaselStadt/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/NewYearsDayTest.php b/tests/Switzerland/BaselStadt/NewYearsDayTest.php index b59c3e0e0..772db2b7b 100644 --- a/tests/Switzerland/BaselStadt/NewYearsDayTest.php +++ b/tests/Switzerland/BaselStadt/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/PentecostMondayTest.php b/tests/Switzerland/BaselStadt/PentecostMondayTest.php index 12db2c595..342f3799b 100644 --- a/tests/Switzerland/BaselStadt/PentecostMondayTest.php +++ b/tests/Switzerland/BaselStadt/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/StStephensDayTest.php b/tests/Switzerland/BaselStadt/StStephensDayTest.php index 98f52abcd..2fdfcd171 100644 --- a/tests/Switzerland/BaselStadt/StStephensDayTest.php +++ b/tests/Switzerland/BaselStadt/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/BaselStadt/WorkersDayTest.php b/tests/Switzerland/BaselStadt/WorkersDayTest.php index 02e19fde3..be327dde3 100644 --- a/tests/Switzerland/BaselStadt/WorkersDayTest.php +++ b/tests/Switzerland/BaselStadt/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/AscensionDayTest.php b/tests/Switzerland/Bern/AscensionDayTest.php index d5fbe4516..b9008a546 100644 --- a/tests/Switzerland/Bern/AscensionDayTest.php +++ b/tests/Switzerland/Bern/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/BerchtoldsTagTest.php b/tests/Switzerland/Bern/BerchtoldsTagTest.php index 3cc47b734..1c895eeed 100644 --- a/tests/Switzerland/Bern/BerchtoldsTagTest.php +++ b/tests/Switzerland/Bern/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/BernTest.php b/tests/Switzerland/Bern/BernTest.php index 7a12411b7..4d2efd5a6 100644 --- a/tests/Switzerland/Bern/BernTest.php +++ b/tests/Switzerland/Bern/BernTest.php @@ -28,7 +28,7 @@ class BernTest extends BernBaseTestCase * Tests if all official holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Bern (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/ChristmasDayTest.php b/tests/Switzerland/Bern/ChristmasDayTest.php index 5dbd59fbb..d95cbea52 100644 --- a/tests/Switzerland/Bern/ChristmasDayTest.php +++ b/tests/Switzerland/Bern/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/EasterMondayTest.php b/tests/Switzerland/Bern/EasterMondayTest.php index f49b897bc..04e38a5b9 100644 --- a/tests/Switzerland/Bern/EasterMondayTest.php +++ b/tests/Switzerland/Bern/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/GoodFridayTest.php b/tests/Switzerland/Bern/GoodFridayTest.php index 5c46fcc65..28c887ead 100644 --- a/tests/Switzerland/Bern/GoodFridayTest.php +++ b/tests/Switzerland/Bern/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/NewYearsDayTest.php b/tests/Switzerland/Bern/NewYearsDayTest.php index 3bcbe7251..03b8cddc5 100644 --- a/tests/Switzerland/Bern/NewYearsDayTest.php +++ b/tests/Switzerland/Bern/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/PentecostMondayTest.php b/tests/Switzerland/Bern/PentecostMondayTest.php index a460991fd..ed11bd0ac 100644 --- a/tests/Switzerland/Bern/PentecostMondayTest.php +++ b/tests/Switzerland/Bern/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Bern/StStephensDayTest.php b/tests/Switzerland/Bern/StStephensDayTest.php index ba5175071..9fc26b02d 100644 --- a/tests/Switzerland/Bern/StStephensDayTest.php +++ b/tests/Switzerland/Bern/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/AscensionDayTest.php b/tests/Switzerland/Fribourg/AscensionDayTest.php index 68adc0cf0..0d1414cac 100644 --- a/tests/Switzerland/Fribourg/AscensionDayTest.php +++ b/tests/Switzerland/Fribourg/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/ChristmasDayTest.php b/tests/Switzerland/Fribourg/ChristmasDayTest.php index a48cf9d02..be07daa19 100644 --- a/tests/Switzerland/Fribourg/ChristmasDayTest.php +++ b/tests/Switzerland/Fribourg/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/EasterMondayTest.php b/tests/Switzerland/Fribourg/EasterMondayTest.php index d552e1eb3..c8dd5fe95 100644 --- a/tests/Switzerland/Fribourg/EasterMondayTest.php +++ b/tests/Switzerland/Fribourg/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/FribourgTest.php b/tests/Switzerland/Fribourg/FribourgTest.php index d6ed75cd0..da67975a6 100644 --- a/tests/Switzerland/Fribourg/FribourgTest.php +++ b/tests/Switzerland/Fribourg/FribourgTest.php @@ -28,7 +28,7 @@ class FribourgTest extends FribourgBaseTestCase * Tests if all official holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -57,7 +57,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -71,7 +71,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -80,7 +80,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -89,7 +89,7 @@ public function testBankHolidays() * Tests if all other holidays in Fribourg (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/GoodFridayTest.php b/tests/Switzerland/Fribourg/GoodFridayTest.php index 95372dd81..3a7455cd8 100644 --- a/tests/Switzerland/Fribourg/GoodFridayTest.php +++ b/tests/Switzerland/Fribourg/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/NewYearsDayTest.php b/tests/Switzerland/Fribourg/NewYearsDayTest.php index 4e375d646..a6b28e393 100644 --- a/tests/Switzerland/Fribourg/NewYearsDayTest.php +++ b/tests/Switzerland/Fribourg/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Fribourg/PentecostMondayTest.php b/tests/Switzerland/Fribourg/PentecostMondayTest.php index 1ebf515da..682f5a393 100644 --- a/tests/Switzerland/Fribourg/PentecostMondayTest.php +++ b/tests/Switzerland/Fribourg/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/AscensionDayTest.php b/tests/Switzerland/Geneva/AscensionDayTest.php index 57374751f..1b7693bec 100644 --- a/tests/Switzerland/Geneva/AscensionDayTest.php +++ b/tests/Switzerland/Geneva/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/ChristmasDayTest.php b/tests/Switzerland/Geneva/ChristmasDayTest.php index 662dae545..60fc758b2 100644 --- a/tests/Switzerland/Geneva/ChristmasDayTest.php +++ b/tests/Switzerland/Geneva/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/EasterMondayTest.php b/tests/Switzerland/Geneva/EasterMondayTest.php index 3c231b411..d6756cf64 100644 --- a/tests/Switzerland/Geneva/EasterMondayTest.php +++ b/tests/Switzerland/Geneva/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/GenevaTest.php b/tests/Switzerland/Geneva/GenevaTest.php index e73618690..693db8309 100644 --- a/tests/Switzerland/Geneva/GenevaTest.php +++ b/tests/Switzerland/Geneva/GenevaTest.php @@ -28,7 +28,7 @@ class GenevaTest extends GenevaBaseTestCase * Tests if all official holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $regionalHolidays = [ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -81,7 +81,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -90,7 +90,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -99,7 +99,7 @@ public function testBankHolidays() * Tests if all other holidays in Geneva (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $otherHolidays = []; if (($this->year >= 1840 && $this->year <= 1869) || $this->year >= 1966) { diff --git a/tests/Switzerland/Geneva/GoodFridayTest.php b/tests/Switzerland/Geneva/GoodFridayTest.php index 93951d4b7..15fa98fd2 100644 --- a/tests/Switzerland/Geneva/GoodFridayTest.php +++ b/tests/Switzerland/Geneva/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/JeuneGenevoisTest.php b/tests/Switzerland/Geneva/JeuneGenevoisTest.php index aac904e1a..5dcc25ce6 100644 --- a/tests/Switzerland/Geneva/JeuneGenevoisTest.php +++ b/tests/Switzerland/Geneva/JeuneGenevoisTest.php @@ -96,7 +96,7 @@ public function testJeuneGenevoisBefore1840() * Tests translated name of Jeune Genevois. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -110,7 +110,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1966), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/NewYearsDayTest.php b/tests/Switzerland/Geneva/NewYearsDayTest.php index ccb31f85a..5314017e0 100644 --- a/tests/Switzerland/Geneva/NewYearsDayTest.php +++ b/tests/Switzerland/Geneva/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/PentecostMondayTest.php b/tests/Switzerland/Geneva/PentecostMondayTest.php index a9b29d650..ce1d8d0cf 100644 --- a/tests/Switzerland/Geneva/PentecostMondayTest.php +++ b/tests/Switzerland/Geneva/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php index 70cf8ce02..84e07713f 100644 --- a/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php +++ b/tests/Switzerland/Geneva/RestaurationGenevoiseTest.php @@ -48,7 +48,7 @@ public function testRestaurationGenevoiseAfter1813() * Tests translated name of Restauration Genevoise. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1814), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/AllSaintsDayTest.php b/tests/Switzerland/Glarus/AllSaintsDayTest.php index f061c17d4..337400a3d 100644 --- a/tests/Switzerland/Glarus/AllSaintsDayTest.php +++ b/tests/Switzerland/Glarus/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/AscensionDayTest.php b/tests/Switzerland/Glarus/AscensionDayTest.php index 88b7a9ff0..de0701ebf 100644 --- a/tests/Switzerland/Glarus/AscensionDayTest.php +++ b/tests/Switzerland/Glarus/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/BerchtoldsTagTest.php b/tests/Switzerland/Glarus/BerchtoldsTagTest.php index 4b89c77fd..33fb69dff 100644 --- a/tests/Switzerland/Glarus/BerchtoldsTagTest.php +++ b/tests/Switzerland/Glarus/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/ChristmasDayTest.php b/tests/Switzerland/Glarus/ChristmasDayTest.php index 87e77a935..d3e0df6bd 100644 --- a/tests/Switzerland/Glarus/ChristmasDayTest.php +++ b/tests/Switzerland/Glarus/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/EasterMondayTest.php b/tests/Switzerland/Glarus/EasterMondayTest.php index ad6e30fc3..ba5155acf 100644 --- a/tests/Switzerland/Glarus/EasterMondayTest.php +++ b/tests/Switzerland/Glarus/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/GlarusTest.php b/tests/Switzerland/Glarus/GlarusTest.php index de96c63c1..fba0312a6 100644 --- a/tests/Switzerland/Glarus/GlarusTest.php +++ b/tests/Switzerland/Glarus/GlarusTest.php @@ -28,7 +28,7 @@ class GlarusTest extends GlarusBaseTestCase * Tests if all official holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -61,7 +61,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -75,7 +75,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -84,7 +84,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -93,7 +93,7 @@ public function testBankHolidays() * Tests if all other holidays in Glarus (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/GoodFridayTest.php b/tests/Switzerland/Glarus/GoodFridayTest.php index 95a3ec5d7..587fe53e3 100644 --- a/tests/Switzerland/Glarus/GoodFridayTest.php +++ b/tests/Switzerland/Glarus/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/NafelserFahrtTest.php b/tests/Switzerland/Glarus/NafelserFahrtTest.php index 30cef80a9..0f1ff6255 100644 --- a/tests/Switzerland/Glarus/NafelserFahrtTest.php +++ b/tests/Switzerland/Glarus/NafelserFahrtTest.php @@ -59,7 +59,7 @@ public function testNafelserFahrtBefore1389() * Tests translated name of Näfelser Fahrt. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -73,7 +73,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/Glarus/NewYearsDayTest.php b/tests/Switzerland/Glarus/NewYearsDayTest.php index b00ce666b..915c4f1d1 100644 --- a/tests/Switzerland/Glarus/NewYearsDayTest.php +++ b/tests/Switzerland/Glarus/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/PentecostMondayTest.php b/tests/Switzerland/Glarus/PentecostMondayTest.php index 102c7bd13..bab326a1a 100644 --- a/tests/Switzerland/Glarus/PentecostMondayTest.php +++ b/tests/Switzerland/Glarus/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Glarus/StStephensDayTest.php b/tests/Switzerland/Glarus/StStephensDayTest.php index 7a373ba10..46d666862 100644 --- a/tests/Switzerland/Glarus/StStephensDayTest.php +++ b/tests/Switzerland/Glarus/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/AscensionDayTest.php b/tests/Switzerland/Grisons/AscensionDayTest.php index 5c41e05df..3702675d7 100644 --- a/tests/Switzerland/Grisons/AscensionDayTest.php +++ b/tests/Switzerland/Grisons/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/ChristmasDayTest.php b/tests/Switzerland/Grisons/ChristmasDayTest.php index 6ec5a407d..753da15ca 100644 --- a/tests/Switzerland/Grisons/ChristmasDayTest.php +++ b/tests/Switzerland/Grisons/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/EasterMondayTest.php b/tests/Switzerland/Grisons/EasterMondayTest.php index e26ca60ee..2b61b1490 100644 --- a/tests/Switzerland/Grisons/EasterMondayTest.php +++ b/tests/Switzerland/Grisons/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/GoodFridayTest.php b/tests/Switzerland/Grisons/GoodFridayTest.php index fea763292..6b88ac619 100644 --- a/tests/Switzerland/Grisons/GoodFridayTest.php +++ b/tests/Switzerland/Grisons/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/GrisonsTest.php b/tests/Switzerland/Grisons/GrisonsTest.php index 235dd9570..4ac400833 100644 --- a/tests/Switzerland/Grisons/GrisonsTest.php +++ b/tests/Switzerland/Grisons/GrisonsTest.php @@ -28,7 +28,7 @@ class GrisonsTest extends GrisonsBaseTestCase * Tests if all official holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -58,7 +58,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -72,7 +72,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -81,7 +81,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -90,7 +90,7 @@ public function testBankHolidays() * Tests if all other holidays in Grisons (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/NewYearsDayTest.php b/tests/Switzerland/Grisons/NewYearsDayTest.php index 19536dbc4..bc4079d29 100644 --- a/tests/Switzerland/Grisons/NewYearsDayTest.php +++ b/tests/Switzerland/Grisons/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/PentecostMondayTest.php b/tests/Switzerland/Grisons/PentecostMondayTest.php index d087d19b3..0a13bf1a2 100644 --- a/tests/Switzerland/Grisons/PentecostMondayTest.php +++ b/tests/Switzerland/Grisons/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Grisons/StStephensDayTest.php b/tests/Switzerland/Grisons/StStephensDayTest.php index 970b65a60..a6f8ec8c0 100644 --- a/tests/Switzerland/Grisons/StStephensDayTest.php +++ b/tests/Switzerland/Grisons/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/AllSaintsDayTest.php b/tests/Switzerland/Jura/AllSaintsDayTest.php index c10e1dcd6..541ffc4ee 100644 --- a/tests/Switzerland/Jura/AllSaintsDayTest.php +++ b/tests/Switzerland/Jura/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/AscensionDayTest.php b/tests/Switzerland/Jura/AscensionDayTest.php index fbeefe7ed..fa9a5e342 100644 --- a/tests/Switzerland/Jura/AscensionDayTest.php +++ b/tests/Switzerland/Jura/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/AssumptionOfMaryTest.php b/tests/Switzerland/Jura/AssumptionOfMaryTest.php index 6974626f0..ee32521bd 100644 --- a/tests/Switzerland/Jura/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Jura/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/BerchtoldsTagTest.php b/tests/Switzerland/Jura/BerchtoldsTagTest.php index 911dec844..8df4b3343 100644 --- a/tests/Switzerland/Jura/BerchtoldsTagTest.php +++ b/tests/Switzerland/Jura/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/ChristmasDayTest.php b/tests/Switzerland/Jura/ChristmasDayTest.php index eed3e80eb..aff31ae7c 100644 --- a/tests/Switzerland/Jura/ChristmasDayTest.php +++ b/tests/Switzerland/Jura/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/CorpusChristiTest.php b/tests/Switzerland/Jura/CorpusChristiTest.php index b336b59ce..096750be7 100644 --- a/tests/Switzerland/Jura/CorpusChristiTest.php +++ b/tests/Switzerland/Jura/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/EasterMondayTest.php b/tests/Switzerland/Jura/EasterMondayTest.php index e98113350..b3ceb36c3 100644 --- a/tests/Switzerland/Jura/EasterMondayTest.php +++ b/tests/Switzerland/Jura/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/GoodFridayTest.php b/tests/Switzerland/Jura/GoodFridayTest.php index 8e54d7676..5b41e66b0 100644 --- a/tests/Switzerland/Jura/GoodFridayTest.php +++ b/tests/Switzerland/Jura/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/JuraTest.php b/tests/Switzerland/Jura/JuraTest.php index e5918343e..ee7ca33b1 100644 --- a/tests/Switzerland/Jura/JuraTest.php +++ b/tests/Switzerland/Jura/JuraTest.php @@ -28,7 +28,7 @@ class JuraTest extends JuraBaseTestCase * Tests if all official holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Jura (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/NewYearsDayTest.php b/tests/Switzerland/Jura/NewYearsDayTest.php index d3b851d52..017e2a4b2 100644 --- a/tests/Switzerland/Jura/NewYearsDayTest.php +++ b/tests/Switzerland/Jura/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/PentecostMondayTest.php b/tests/Switzerland/Jura/PentecostMondayTest.php index f3f3a936d..62fc84892 100644 --- a/tests/Switzerland/Jura/PentecostMondayTest.php +++ b/tests/Switzerland/Jura/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Jura/PlebisciteJurassienTest.php b/tests/Switzerland/Jura/PlebisciteJurassienTest.php index 689b1ed7b..bbe904701 100644 --- a/tests/Switzerland/Jura/PlebisciteJurassienTest.php +++ b/tests/Switzerland/Jura/PlebisciteJurassienTest.php @@ -65,7 +65,7 @@ public function testInstaurationRepubliqueBefore1975() * Tests translated name of Plébiscite jurassien. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/Jura/WorkersDayTest.php b/tests/Switzerland/Jura/WorkersDayTest.php index 3cce40ece..7a6ed5708 100644 --- a/tests/Switzerland/Jura/WorkersDayTest.php +++ b/tests/Switzerland/Jura/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/AllSaintsDayTest.php b/tests/Switzerland/Lucerne/AllSaintsDayTest.php index 5737059e0..4e1d37d98 100644 --- a/tests/Switzerland/Lucerne/AllSaintsDayTest.php +++ b/tests/Switzerland/Lucerne/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/AscensionDayTest.php b/tests/Switzerland/Lucerne/AscensionDayTest.php index 202e599ae..b1bce4638 100644 --- a/tests/Switzerland/Lucerne/AscensionDayTest.php +++ b/tests/Switzerland/Lucerne/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php index c0b2a7334..bc2adedd1 100644 --- a/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Lucerne/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php index f0e00fa05..cfeb8b86c 100644 --- a/tests/Switzerland/Lucerne/BerchtoldsTagTest.php +++ b/tests/Switzerland/Lucerne/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/ChristmasDayTest.php b/tests/Switzerland/Lucerne/ChristmasDayTest.php index d34f83247..83681619b 100644 --- a/tests/Switzerland/Lucerne/ChristmasDayTest.php +++ b/tests/Switzerland/Lucerne/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/CorpusChristiTest.php b/tests/Switzerland/Lucerne/CorpusChristiTest.php index 97594037f..dea7e1285 100644 --- a/tests/Switzerland/Lucerne/CorpusChristiTest.php +++ b/tests/Switzerland/Lucerne/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/EasterMondayTest.php b/tests/Switzerland/Lucerne/EasterMondayTest.php index 8040677c4..dde3582a2 100644 --- a/tests/Switzerland/Lucerne/EasterMondayTest.php +++ b/tests/Switzerland/Lucerne/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/GoodFridayTest.php b/tests/Switzerland/Lucerne/GoodFridayTest.php index 6a5958c94..4dd256572 100644 --- a/tests/Switzerland/Lucerne/GoodFridayTest.php +++ b/tests/Switzerland/Lucerne/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php index 2b704a5aa..0eab721c1 100644 --- a/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Lucerne/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/LucerneTest.php b/tests/Switzerland/Lucerne/LucerneTest.php index 6300fc8bb..947429551 100644 --- a/tests/Switzerland/Lucerne/LucerneTest.php +++ b/tests/Switzerland/Lucerne/LucerneTest.php @@ -28,7 +28,7 @@ class LucerneTest extends LucerneBaseTestCase * Tests if all official holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Lucerne (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/NewYearsDayTest.php b/tests/Switzerland/Lucerne/NewYearsDayTest.php index 9c0cc60ef..eee351c8f 100644 --- a/tests/Switzerland/Lucerne/NewYearsDayTest.php +++ b/tests/Switzerland/Lucerne/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/PentecostMondayTest.php b/tests/Switzerland/Lucerne/PentecostMondayTest.php index 06dfec57b..990b5f904 100644 --- a/tests/Switzerland/Lucerne/PentecostMondayTest.php +++ b/tests/Switzerland/Lucerne/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Lucerne/StStephensDayTest.php b/tests/Switzerland/Lucerne/StStephensDayTest.php index ec1a5ecbf..3d6dfff95 100644 --- a/tests/Switzerland/Lucerne/StStephensDayTest.php +++ b/tests/Switzerland/Lucerne/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/AscensionDayTest.php b/tests/Switzerland/Neuchatel/AscensionDayTest.php index 48a2dd3c6..d68e10e89 100644 --- a/tests/Switzerland/Neuchatel/AscensionDayTest.php +++ b/tests/Switzerland/Neuchatel/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php index 6ad9206c9..51d1ee60b 100644 --- a/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php +++ b/tests/Switzerland/Neuchatel/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/BettagsMontagTest.php b/tests/Switzerland/Neuchatel/BettagsMontagTest.php index 2b964d55d..aed0f2650 100644 --- a/tests/Switzerland/Neuchatel/BettagsMontagTest.php +++ b/tests/Switzerland/Neuchatel/BettagsMontagTest.php @@ -60,7 +60,7 @@ public function testBettagsMontagBefore1832() * Tests translated name of Bettags Montag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1900), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/ChristmasDayTest.php b/tests/Switzerland/Neuchatel/ChristmasDayTest.php index 9faf4a56d..0b679cc59 100644 --- a/tests/Switzerland/Neuchatel/ChristmasDayTest.php +++ b/tests/Switzerland/Neuchatel/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/EasterMondayTest.php b/tests/Switzerland/Neuchatel/EasterMondayTest.php index e06d9dbe9..9b59bc15e 100644 --- a/tests/Switzerland/Neuchatel/EasterMondayTest.php +++ b/tests/Switzerland/Neuchatel/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/GoodFridayTest.php b/tests/Switzerland/Neuchatel/GoodFridayTest.php index a42788411..86cd6135e 100644 --- a/tests/Switzerland/Neuchatel/GoodFridayTest.php +++ b/tests/Switzerland/Neuchatel/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php index d1a014442..258385937 100644 --- a/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php +++ b/tests/Switzerland/Neuchatel/InstaurationRepubliqueTest.php @@ -65,7 +65,7 @@ public function testInstaurationRepubliqueBefore1849() * Tests translated name of Instauration de la République. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/Neuchatel/NeuchatelTest.php b/tests/Switzerland/Neuchatel/NeuchatelTest.php index 5b78fc9ca..46c5f75f5 100644 --- a/tests/Switzerland/Neuchatel/NeuchatelTest.php +++ b/tests/Switzerland/Neuchatel/NeuchatelTest.php @@ -28,7 +28,7 @@ class NeuchatelTest extends NeuchatelBaseTestCase * Tests if all official holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -61,7 +61,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -75,7 +75,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -84,7 +84,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -93,7 +93,7 @@ public function testBankHolidays() * Tests if all other holidays in Neuchatel (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/NewYearsDayTest.php b/tests/Switzerland/Neuchatel/NewYearsDayTest.php index 10e8f98ba..efd18d79b 100644 --- a/tests/Switzerland/Neuchatel/NewYearsDayTest.php +++ b/tests/Switzerland/Neuchatel/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/PentecostMondayTest.php b/tests/Switzerland/Neuchatel/PentecostMondayTest.php index 57dfa5b16..5304750f9 100644 --- a/tests/Switzerland/Neuchatel/PentecostMondayTest.php +++ b/tests/Switzerland/Neuchatel/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Neuchatel/WorkersDayTest.php b/tests/Switzerland/Neuchatel/WorkersDayTest.php index 4d9b90ca1..d1106f94f 100644 --- a/tests/Switzerland/Neuchatel/WorkersDayTest.php +++ b/tests/Switzerland/Neuchatel/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php index 95aaf8909..fb2fb6643 100644 --- a/tests/Switzerland/Nidwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Nidwalden/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/AscensionDayTest.php b/tests/Switzerland/Nidwalden/AscensionDayTest.php index 7551e8cdf..4dcb85569 100644 --- a/tests/Switzerland/Nidwalden/AscensionDayTest.php +++ b/tests/Switzerland/Nidwalden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php index 5ebf2c09c..0b4138cb5 100644 --- a/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Nidwalden/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/ChristmasDayTest.php b/tests/Switzerland/Nidwalden/ChristmasDayTest.php index cf468011e..025a37302 100644 --- a/tests/Switzerland/Nidwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Nidwalden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/CorpusChristiTest.php b/tests/Switzerland/Nidwalden/CorpusChristiTest.php index 135aba0bf..a97cda2e6 100644 --- a/tests/Switzerland/Nidwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Nidwalden/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/EasterMondayTest.php b/tests/Switzerland/Nidwalden/EasterMondayTest.php index 046be156b..ab15cc62c 100644 --- a/tests/Switzerland/Nidwalden/EasterMondayTest.php +++ b/tests/Switzerland/Nidwalden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/GoodFridayTest.php b/tests/Switzerland/Nidwalden/GoodFridayTest.php index b496142bb..8fbbf2880 100644 --- a/tests/Switzerland/Nidwalden/GoodFridayTest.php +++ b/tests/Switzerland/Nidwalden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php index 0a84657df..c8af8ea48 100644 --- a/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Nidwalden/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/NewYearsDayTest.php b/tests/Switzerland/Nidwalden/NewYearsDayTest.php index 38a9d8506..1680220a9 100644 --- a/tests/Switzerland/Nidwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Nidwalden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/NidwaldenTest.php b/tests/Switzerland/Nidwalden/NidwaldenTest.php index 19fc4894c..5805ccbbf 100644 --- a/tests/Switzerland/Nidwalden/NidwaldenTest.php +++ b/tests/Switzerland/Nidwalden/NidwaldenTest.php @@ -28,7 +28,7 @@ class NidwaldenTest extends NidwaldenBaseTestCase * Tests if all official holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'stJosephsDay', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Nidwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/PentecostMondayTest.php b/tests/Switzerland/Nidwalden/PentecostMondayTest.php index d8c41b2e7..bd2510749 100644 --- a/tests/Switzerland/Nidwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Nidwalden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/StJosephDayTest.php b/tests/Switzerland/Nidwalden/StJosephDayTest.php index c68ab2b53..7f7827a82 100644 --- a/tests/Switzerland/Nidwalden/StJosephDayTest.php +++ b/tests/Switzerland/Nidwalden/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Nidwalden/StStephensDayTest.php b/tests/Switzerland/Nidwalden/StStephensDayTest.php index b83e19819..3442684aa 100644 --- a/tests/Switzerland/Nidwalden/StStephensDayTest.php +++ b/tests/Switzerland/Nidwalden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/AllSaintsDayTest.php b/tests/Switzerland/Obwalden/AllSaintsDayTest.php index 05b5ddbda..439286f8b 100644 --- a/tests/Switzerland/Obwalden/AllSaintsDayTest.php +++ b/tests/Switzerland/Obwalden/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/AscensionDayTest.php b/tests/Switzerland/Obwalden/AscensionDayTest.php index 024e594aa..ac021274a 100644 --- a/tests/Switzerland/Obwalden/AscensionDayTest.php +++ b/tests/Switzerland/Obwalden/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php index 19040539d..3e64b2056 100644 --- a/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Obwalden/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php index e57a327b5..1239edc29 100644 --- a/tests/Switzerland/Obwalden/BerchtoldsTagTest.php +++ b/tests/Switzerland/Obwalden/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php index a2b971bfc..351f63b6c 100644 --- a/tests/Switzerland/Obwalden/BruderKlausenFestTest.php +++ b/tests/Switzerland/Obwalden/BruderKlausenFestTest.php @@ -71,7 +71,7 @@ public function testBruderKlausenFestBefore1648() * Tests translated name of Bruder-Klausen-Fest. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -85,7 +85,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1947), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/ChristmasDayTest.php b/tests/Switzerland/Obwalden/ChristmasDayTest.php index 2f340b6c7..b73fab73b 100644 --- a/tests/Switzerland/Obwalden/ChristmasDayTest.php +++ b/tests/Switzerland/Obwalden/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/CorpusChristiTest.php b/tests/Switzerland/Obwalden/CorpusChristiTest.php index 2b4837e2e..6c5372fd0 100644 --- a/tests/Switzerland/Obwalden/CorpusChristiTest.php +++ b/tests/Switzerland/Obwalden/CorpusChristiTest.php @@ -49,7 +49,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -63,7 +63,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/EasterMondayTest.php b/tests/Switzerland/Obwalden/EasterMondayTest.php index 90f7f0c46..aa6f5b5f1 100644 --- a/tests/Switzerland/Obwalden/EasterMondayTest.php +++ b/tests/Switzerland/Obwalden/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/GoodFridayTest.php b/tests/Switzerland/Obwalden/GoodFridayTest.php index 96930168d..2c7c89a28 100644 --- a/tests/Switzerland/Obwalden/GoodFridayTest.php +++ b/tests/Switzerland/Obwalden/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php index 176462503..d5176261a 100644 --- a/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Obwalden/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/NewYearsDayTest.php b/tests/Switzerland/Obwalden/NewYearsDayTest.php index b82a07488..49688e464 100644 --- a/tests/Switzerland/Obwalden/NewYearsDayTest.php +++ b/tests/Switzerland/Obwalden/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/ObwaldenTest.php b/tests/Switzerland/Obwalden/ObwaldenTest.php index aa72e4973..d33445a5b 100644 --- a/tests/Switzerland/Obwalden/ObwaldenTest.php +++ b/tests/Switzerland/Obwalden/ObwaldenTest.php @@ -28,7 +28,7 @@ class ObwaldenTest extends ObwaldenBaseTestCase * Tests if all official holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -64,7 +64,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Obwalden (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/PentecostMondayTest.php b/tests/Switzerland/Obwalden/PentecostMondayTest.php index 385f1ce39..3ad5c99b1 100644 --- a/tests/Switzerland/Obwalden/PentecostMondayTest.php +++ b/tests/Switzerland/Obwalden/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Obwalden/StStephensDayTest.php b/tests/Switzerland/Obwalden/StStephensDayTest.php index 274ba8ca0..5d406dd8e 100644 --- a/tests/Switzerland/Obwalden/StStephensDayTest.php +++ b/tests/Switzerland/Obwalden/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/AscensionDayTest.php b/tests/Switzerland/Schaffhausen/AscensionDayTest.php index 41a3742a3..71e446d88 100644 --- a/tests/Switzerland/Schaffhausen/AscensionDayTest.php +++ b/tests/Switzerland/Schaffhausen/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php index 700bb451d..a4f6046b4 100644 --- a/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php +++ b/tests/Switzerland/Schaffhausen/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php index 5899abe2b..fe3f72334 100644 --- a/tests/Switzerland/Schaffhausen/ChristmasDayTest.php +++ b/tests/Switzerland/Schaffhausen/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/EasterMondayTest.php b/tests/Switzerland/Schaffhausen/EasterMondayTest.php index a55790a9d..dbae3e39f 100644 --- a/tests/Switzerland/Schaffhausen/EasterMondayTest.php +++ b/tests/Switzerland/Schaffhausen/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/GoodFridayTest.php b/tests/Switzerland/Schaffhausen/GoodFridayTest.php index 390baa8ea..105bf57dc 100644 --- a/tests/Switzerland/Schaffhausen/GoodFridayTest.php +++ b/tests/Switzerland/Schaffhausen/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php index cc66d331e..53e0e0175 100644 --- a/tests/Switzerland/Schaffhausen/NewYearsDayTest.php +++ b/tests/Switzerland/Schaffhausen/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php index be360973d..afb8d2a81 100644 --- a/tests/Switzerland/Schaffhausen/PentecostMondayTest.php +++ b/tests/Switzerland/Schaffhausen/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php index 8d0e2da5d..42a8f7f81 100644 --- a/tests/Switzerland/Schaffhausen/SchaffhausenTest.php +++ b/tests/Switzerland/Schaffhausen/SchaffhausenTest.php @@ -28,7 +28,7 @@ class SchaffhausenTest extends SchaffhausenBaseTestCase * Tests if all official holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -60,7 +60,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -74,7 +74,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -92,7 +92,7 @@ public function testBankHolidays() * Tests if all other holidays in Schaffhausen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/StStephensDayTest.php b/tests/Switzerland/Schaffhausen/StStephensDayTest.php index 9374c153c..92154dd17 100644 --- a/tests/Switzerland/Schaffhausen/StStephensDayTest.php +++ b/tests/Switzerland/Schaffhausen/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schaffhausen/WorkersDayTest.php b/tests/Switzerland/Schaffhausen/WorkersDayTest.php index 6db14a1ea..7077f3246 100644 --- a/tests/Switzerland/Schaffhausen/WorkersDayTest.php +++ b/tests/Switzerland/Schaffhausen/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/AllSaintsDayTest.php b/tests/Switzerland/Schwyz/AllSaintsDayTest.php index f9f83be52..7a138abf2 100644 --- a/tests/Switzerland/Schwyz/AllSaintsDayTest.php +++ b/tests/Switzerland/Schwyz/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/AscensionDayTest.php b/tests/Switzerland/Schwyz/AscensionDayTest.php index 2b2ad0027..e8d7e0ddd 100644 --- a/tests/Switzerland/Schwyz/AscensionDayTest.php +++ b/tests/Switzerland/Schwyz/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php index c98404905..71e59624a 100644 --- a/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Schwyz/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/ChristmasDayTest.php b/tests/Switzerland/Schwyz/ChristmasDayTest.php index d43cce74c..ea2376d53 100644 --- a/tests/Switzerland/Schwyz/ChristmasDayTest.php +++ b/tests/Switzerland/Schwyz/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/CorpusChristiTest.php b/tests/Switzerland/Schwyz/CorpusChristiTest.php index 2bfba4ff2..fe2c4a605 100644 --- a/tests/Switzerland/Schwyz/CorpusChristiTest.php +++ b/tests/Switzerland/Schwyz/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/EasterMondayTest.php b/tests/Switzerland/Schwyz/EasterMondayTest.php index 57b88332c..822d78ed9 100644 --- a/tests/Switzerland/Schwyz/EasterMondayTest.php +++ b/tests/Switzerland/Schwyz/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/EpiphanyTest.php b/tests/Switzerland/Schwyz/EpiphanyTest.php index 1cc74627c..2914041a9 100644 --- a/tests/Switzerland/Schwyz/EpiphanyTest.php +++ b/tests/Switzerland/Schwyz/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/GoodFridayTest.php b/tests/Switzerland/Schwyz/GoodFridayTest.php index d51a2c892..811136021 100644 --- a/tests/Switzerland/Schwyz/GoodFridayTest.php +++ b/tests/Switzerland/Schwyz/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php index 67d516637..cd9e40bfb 100644 --- a/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Schwyz/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/NewYearsDayTest.php b/tests/Switzerland/Schwyz/NewYearsDayTest.php index 2f4c176f9..aeb1675c1 100644 --- a/tests/Switzerland/Schwyz/NewYearsDayTest.php +++ b/tests/Switzerland/Schwyz/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/PentecostMondayTest.php b/tests/Switzerland/Schwyz/PentecostMondayTest.php index b63d7805d..74fed62cd 100644 --- a/tests/Switzerland/Schwyz/PentecostMondayTest.php +++ b/tests/Switzerland/Schwyz/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/SchwyzTest.php b/tests/Switzerland/Schwyz/SchwyzTest.php index e5cd97115..5e533ea18 100644 --- a/tests/Switzerland/Schwyz/SchwyzTest.php +++ b/tests/Switzerland/Schwyz/SchwyzTest.php @@ -28,7 +28,7 @@ class SchwyzTest extends SchwyzBaseTestCase * Tests if all official holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'epiphany', @@ -64,7 +64,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Schwyz (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/StJosephDayTest.php b/tests/Switzerland/Schwyz/StJosephDayTest.php index e9216d83e..fa70f9eec 100644 --- a/tests/Switzerland/Schwyz/StJosephDayTest.php +++ b/tests/Switzerland/Schwyz/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Schwyz/StStephensDayTest.php b/tests/Switzerland/Schwyz/StStephensDayTest.php index 98813e300..00d31bf8b 100644 --- a/tests/Switzerland/Schwyz/StStephensDayTest.php +++ b/tests/Switzerland/Schwyz/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/AscensionDayTest.php b/tests/Switzerland/Solothurn/AscensionDayTest.php index 16b77044e..c033ee5d2 100644 --- a/tests/Switzerland/Solothurn/AscensionDayTest.php +++ b/tests/Switzerland/Solothurn/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php index 29e248191..044b53232 100644 --- a/tests/Switzerland/Solothurn/BerchtoldsTagTest.php +++ b/tests/Switzerland/Solothurn/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/ChristmasDayTest.php b/tests/Switzerland/Solothurn/ChristmasDayTest.php index 20bd315f3..6d74b17c7 100644 --- a/tests/Switzerland/Solothurn/ChristmasDayTest.php +++ b/tests/Switzerland/Solothurn/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/GoodFridayTest.php b/tests/Switzerland/Solothurn/GoodFridayTest.php index d108b7de1..7c9888014 100644 --- a/tests/Switzerland/Solothurn/GoodFridayTest.php +++ b/tests/Switzerland/Solothurn/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/NewYearsDayTest.php b/tests/Switzerland/Solothurn/NewYearsDayTest.php index 7443aa22a..475ba6535 100644 --- a/tests/Switzerland/Solothurn/NewYearsDayTest.php +++ b/tests/Switzerland/Solothurn/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Solothurn/SolothurnTest.php b/tests/Switzerland/Solothurn/SolothurnTest.php index 082378ede..0cd0d5bdc 100644 --- a/tests/Switzerland/Solothurn/SolothurnTest.php +++ b/tests/Switzerland/Solothurn/SolothurnTest.php @@ -28,7 +28,7 @@ class SolothurnTest extends SolothurnBaseTestCase * Tests if all official holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -42,7 +42,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -57,7 +57,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -71,7 +71,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -80,7 +80,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -89,7 +89,7 @@ public function testBankHolidays() * Tests if all other holidays in Solothurn (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/AllSaintsDayTest.php b/tests/Switzerland/StGallen/AllSaintsDayTest.php index 122f821ed..c304112f4 100644 --- a/tests/Switzerland/StGallen/AllSaintsDayTest.php +++ b/tests/Switzerland/StGallen/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/AscensionDayTest.php b/tests/Switzerland/StGallen/AscensionDayTest.php index 170f26e7e..f90458006 100644 --- a/tests/Switzerland/StGallen/AscensionDayTest.php +++ b/tests/Switzerland/StGallen/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/ChristmasDayTest.php b/tests/Switzerland/StGallen/ChristmasDayTest.php index 4706b34f7..dcca16403 100644 --- a/tests/Switzerland/StGallen/ChristmasDayTest.php +++ b/tests/Switzerland/StGallen/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/EasterMondayTest.php b/tests/Switzerland/StGallen/EasterMondayTest.php index b51887720..2ca19955f 100644 --- a/tests/Switzerland/StGallen/EasterMondayTest.php +++ b/tests/Switzerland/StGallen/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/GoodFridayTest.php b/tests/Switzerland/StGallen/GoodFridayTest.php index afe86158b..67c621105 100644 --- a/tests/Switzerland/StGallen/GoodFridayTest.php +++ b/tests/Switzerland/StGallen/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/NewYearsDayTest.php b/tests/Switzerland/StGallen/NewYearsDayTest.php index 1cc55864e..fee4f1e5d 100644 --- a/tests/Switzerland/StGallen/NewYearsDayTest.php +++ b/tests/Switzerland/StGallen/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/PentecostMondayTest.php b/tests/Switzerland/StGallen/PentecostMondayTest.php index 037088d7d..54c694c06 100644 --- a/tests/Switzerland/StGallen/PentecostMondayTest.php +++ b/tests/Switzerland/StGallen/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/StGallenTest.php b/tests/Switzerland/StGallen/StGallenTest.php index 97db6663a..bd15f6b47 100644 --- a/tests/Switzerland/StGallen/StGallenTest.php +++ b/tests/Switzerland/StGallen/StGallenTest.php @@ -28,7 +28,7 @@ class StGallenTest extends StGallenBaseTestCase * Tests if all official holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in St. Gallen (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/StGallen/StStephensDayTest.php b/tests/Switzerland/StGallen/StStephensDayTest.php index dd32a86f9..8471ab718 100644 --- a/tests/Switzerland/StGallen/StStephensDayTest.php +++ b/tests/Switzerland/StGallen/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/SwissNationalDayTest.php b/tests/Switzerland/SwissNationalDayTest.php index e3f79d4a4..bb7882fdf 100644 --- a/tests/Switzerland/SwissNationalDayTest.php +++ b/tests/Switzerland/SwissNationalDayTest.php @@ -121,7 +121,7 @@ public function testNationalDayBetween1891And1899() * Tests translated name of National Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -135,7 +135,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Switzerland/SwitzerlandTest.php b/tests/Switzerland/SwitzerlandTest.php index 7bac0bce6..f0528bd8a 100644 --- a/tests/Switzerland/SwitzerlandTest.php +++ b/tests/Switzerland/SwitzerlandTest.php @@ -28,7 +28,7 @@ class SwitzerlandTest extends SwitzerlandBaseTestCase * Tests if all official holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -55,7 +55,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -64,7 +64,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -73,7 +73,7 @@ public function testBankHolidays() * Tests if all other holidays in Switzerland are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/AscensionDayTest.php b/tests/Switzerland/Thurgau/AscensionDayTest.php index 0a9c348bc..94e86652e 100644 --- a/tests/Switzerland/Thurgau/AscensionDayTest.php +++ b/tests/Switzerland/Thurgau/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php index 9b7ac8cf7..581961e22 100644 --- a/tests/Switzerland/Thurgau/BerchtoldsTagTest.php +++ b/tests/Switzerland/Thurgau/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/ChristmasDayTest.php b/tests/Switzerland/Thurgau/ChristmasDayTest.php index 8f5b72027..b795c814b 100644 --- a/tests/Switzerland/Thurgau/ChristmasDayTest.php +++ b/tests/Switzerland/Thurgau/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/EasterMondayTest.php b/tests/Switzerland/Thurgau/EasterMondayTest.php index 0e1e0dfad..c058d40f2 100644 --- a/tests/Switzerland/Thurgau/EasterMondayTest.php +++ b/tests/Switzerland/Thurgau/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/GoodFridayTest.php b/tests/Switzerland/Thurgau/GoodFridayTest.php index d20a65550..2df96c8e3 100644 --- a/tests/Switzerland/Thurgau/GoodFridayTest.php +++ b/tests/Switzerland/Thurgau/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/NewYearsDayTest.php b/tests/Switzerland/Thurgau/NewYearsDayTest.php index 59115439c..aff521353 100644 --- a/tests/Switzerland/Thurgau/NewYearsDayTest.php +++ b/tests/Switzerland/Thurgau/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/PentecostMondayTest.php b/tests/Switzerland/Thurgau/PentecostMondayTest.php index 031ff5538..fb3344250 100644 --- a/tests/Switzerland/Thurgau/PentecostMondayTest.php +++ b/tests/Switzerland/Thurgau/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/StStephensDayTest.php b/tests/Switzerland/Thurgau/StStephensDayTest.php index 03d3586cc..d67c193f5 100644 --- a/tests/Switzerland/Thurgau/StStephensDayTest.php +++ b/tests/Switzerland/Thurgau/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/ThurgauTest.php b/tests/Switzerland/Thurgau/ThurgauTest.php index fa2ba8097..3547ae651 100644 --- a/tests/Switzerland/Thurgau/ThurgauTest.php +++ b/tests/Switzerland/Thurgau/ThurgauTest.php @@ -28,7 +28,7 @@ class ThurgauTest extends ThurgauBaseTestCase * Tests if all official holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -60,7 +60,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -74,7 +74,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -92,7 +92,7 @@ public function testBankHolidays() * Tests if all other holidays in Thurgau (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Thurgau/WorkersDayTest.php b/tests/Switzerland/Thurgau/WorkersDayTest.php index f371e1510..fb9203023 100644 --- a/tests/Switzerland/Thurgau/WorkersDayTest.php +++ b/tests/Switzerland/Thurgau/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/AllSaintsDayTest.php b/tests/Switzerland/Ticino/AllSaintsDayTest.php index 5cd758461..4fcb01d7d 100644 --- a/tests/Switzerland/Ticino/AllSaintsDayTest.php +++ b/tests/Switzerland/Ticino/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/AscensionDayTest.php b/tests/Switzerland/Ticino/AscensionDayTest.php index 46c8c654f..c0e17b22a 100644 --- a/tests/Switzerland/Ticino/AscensionDayTest.php +++ b/tests/Switzerland/Ticino/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php index 843741df6..48d45d636 100644 --- a/tests/Switzerland/Ticino/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Ticino/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/ChristmasDayTest.php b/tests/Switzerland/Ticino/ChristmasDayTest.php index d44b070de..23b1c82c1 100644 --- a/tests/Switzerland/Ticino/ChristmasDayTest.php +++ b/tests/Switzerland/Ticino/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/CorpusChristiTest.php b/tests/Switzerland/Ticino/CorpusChristiTest.php index ae0076a2b..afc35e3c9 100644 --- a/tests/Switzerland/Ticino/CorpusChristiTest.php +++ b/tests/Switzerland/Ticino/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/EasterMondayTest.php b/tests/Switzerland/Ticino/EasterMondayTest.php index 9ae6335ae..fa65844a7 100644 --- a/tests/Switzerland/Ticino/EasterMondayTest.php +++ b/tests/Switzerland/Ticino/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/EpiphanyTest.php b/tests/Switzerland/Ticino/EpiphanyTest.php index 06c893091..7e5493c69 100644 --- a/tests/Switzerland/Ticino/EpiphanyTest.php +++ b/tests/Switzerland/Ticino/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php index 34f8cfea1..0147e3fac 100644 --- a/tests/Switzerland/Ticino/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Ticino/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/NewYearsDayTest.php b/tests/Switzerland/Ticino/NewYearsDayTest.php index abcbfdd3f..0af7ab9bb 100644 --- a/tests/Switzerland/Ticino/NewYearsDayTest.php +++ b/tests/Switzerland/Ticino/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/PentecostMondayTest.php b/tests/Switzerland/Ticino/PentecostMondayTest.php index 82118af36..cce3d2f9b 100644 --- a/tests/Switzerland/Ticino/PentecostMondayTest.php +++ b/tests/Switzerland/Ticino/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/StJosephDayTest.php b/tests/Switzerland/Ticino/StJosephDayTest.php index ebc9a4d9b..df9c545a5 100644 --- a/tests/Switzerland/Ticino/StJosephDayTest.php +++ b/tests/Switzerland/Ticino/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/StPeterPaulTest.php b/tests/Switzerland/Ticino/StPeterPaulTest.php index 921f65086..0e2c04469 100644 --- a/tests/Switzerland/Ticino/StPeterPaulTest.php +++ b/tests/Switzerland/Ticino/StPeterPaulTest.php @@ -56,7 +56,7 @@ public function StPeterPaulDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/StStephensDayTest.php b/tests/Switzerland/Ticino/StStephensDayTest.php index 6769c52ef..763766d60 100644 --- a/tests/Switzerland/Ticino/StStephensDayTest.php +++ b/tests/Switzerland/Ticino/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/TicinoTest.php b/tests/Switzerland/Ticino/TicinoTest.php index ea6a6ae0d..a38db9a5f 100644 --- a/tests/Switzerland/Ticino/TicinoTest.php +++ b/tests/Switzerland/Ticino/TicinoTest.php @@ -28,7 +28,7 @@ class TicinoTest extends TicinoBaseTestCase * Tests if all official holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'corpusChristi', @@ -65,7 +65,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -79,7 +79,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -88,7 +88,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -97,7 +97,7 @@ public function testBankHolidays() * Tests if all other holidays in Ticino (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Ticino/WorkersDayTest.php b/tests/Switzerland/Ticino/WorkersDayTest.php index 3c50d567c..ad7b04c10 100644 --- a/tests/Switzerland/Ticino/WorkersDayTest.php +++ b/tests/Switzerland/Ticino/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/AllSaintsDayTest.php b/tests/Switzerland/Uri/AllSaintsDayTest.php index 6254157c2..1220e627a 100644 --- a/tests/Switzerland/Uri/AllSaintsDayTest.php +++ b/tests/Switzerland/Uri/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/AscensionDayTest.php b/tests/Switzerland/Uri/AscensionDayTest.php index 2ce2bc90b..689711edc 100644 --- a/tests/Switzerland/Uri/AscensionDayTest.php +++ b/tests/Switzerland/Uri/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/AssumptionOfMaryTest.php b/tests/Switzerland/Uri/AssumptionOfMaryTest.php index c71c3c164..3e72fa663 100644 --- a/tests/Switzerland/Uri/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Uri/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/ChristmasDayTest.php b/tests/Switzerland/Uri/ChristmasDayTest.php index f3a85b845..43d3da16c 100644 --- a/tests/Switzerland/Uri/ChristmasDayTest.php +++ b/tests/Switzerland/Uri/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/CorpusChristiTest.php b/tests/Switzerland/Uri/CorpusChristiTest.php index 559867a3e..30a7f2e13 100644 --- a/tests/Switzerland/Uri/CorpusChristiTest.php +++ b/tests/Switzerland/Uri/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/EasterMondayTest.php b/tests/Switzerland/Uri/EasterMondayTest.php index ead97eadf..d73d5595d 100644 --- a/tests/Switzerland/Uri/EasterMondayTest.php +++ b/tests/Switzerland/Uri/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/EpiphanyTest.php b/tests/Switzerland/Uri/EpiphanyTest.php index 1c21b5130..3f6e1c4cb 100644 --- a/tests/Switzerland/Uri/EpiphanyTest.php +++ b/tests/Switzerland/Uri/EpiphanyTest.php @@ -57,7 +57,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -71,7 +71,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/GoodFridayTest.php b/tests/Switzerland/Uri/GoodFridayTest.php index cb57ab831..482eefa0a 100644 --- a/tests/Switzerland/Uri/GoodFridayTest.php +++ b/tests/Switzerland/Uri/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/ImmaculateConceptionTest.php b/tests/Switzerland/Uri/ImmaculateConceptionTest.php index 31374c116..1245fe344 100644 --- a/tests/Switzerland/Uri/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Uri/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/NewYearsDayTest.php b/tests/Switzerland/Uri/NewYearsDayTest.php index a276b726b..96b3a51b6 100644 --- a/tests/Switzerland/Uri/NewYearsDayTest.php +++ b/tests/Switzerland/Uri/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/PentecostMondayTest.php b/tests/Switzerland/Uri/PentecostMondayTest.php index 023d6b8aa..2c6cb4526 100644 --- a/tests/Switzerland/Uri/PentecostMondayTest.php +++ b/tests/Switzerland/Uri/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/StJosephDayTest.php b/tests/Switzerland/Uri/StJosephDayTest.php index 30b57ae48..51b907e06 100644 --- a/tests/Switzerland/Uri/StJosephDayTest.php +++ b/tests/Switzerland/Uri/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/StStephensDayTest.php b/tests/Switzerland/Uri/StStephensDayTest.php index 050f30c79..ca9559829 100644 --- a/tests/Switzerland/Uri/StStephensDayTest.php +++ b/tests/Switzerland/Uri/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Uri/UriTest.php b/tests/Switzerland/Uri/UriTest.php index 668c766e3..0ac7d594c 100644 --- a/tests/Switzerland/Uri/UriTest.php +++ b/tests/Switzerland/Uri/UriTest.php @@ -28,7 +28,7 @@ class UriTest extends UriBaseTestCase * Tests if all official holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -64,7 +64,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -78,7 +78,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -87,7 +87,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -96,7 +96,7 @@ public function testBankHolidays() * Tests if all other holidays in Uri (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/AllSaintsDayTest.php b/tests/Switzerland/Valais/AllSaintsDayTest.php index 27a962c70..c6e869f56 100644 --- a/tests/Switzerland/Valais/AllSaintsDayTest.php +++ b/tests/Switzerland/Valais/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/AscensionDayTest.php b/tests/Switzerland/Valais/AscensionDayTest.php index e0874627f..68f8fdf65 100644 --- a/tests/Switzerland/Valais/AscensionDayTest.php +++ b/tests/Switzerland/Valais/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/AssumptionOfMaryTest.php b/tests/Switzerland/Valais/AssumptionOfMaryTest.php index f7d63cba8..54bca2957 100644 --- a/tests/Switzerland/Valais/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Valais/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/ChristmasDayTest.php b/tests/Switzerland/Valais/ChristmasDayTest.php index f2a9aee2b..72d0a8891 100644 --- a/tests/Switzerland/Valais/ChristmasDayTest.php +++ b/tests/Switzerland/Valais/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/CorpusChristiTest.php b/tests/Switzerland/Valais/CorpusChristiTest.php index a6ea3013e..7398c5c2c 100644 --- a/tests/Switzerland/Valais/CorpusChristiTest.php +++ b/tests/Switzerland/Valais/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/ImmaculateConceptionTest.php b/tests/Switzerland/Valais/ImmaculateConceptionTest.php index 5caa53f96..924835a1f 100644 --- a/tests/Switzerland/Valais/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Valais/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/NewYearsDayTest.php b/tests/Switzerland/Valais/NewYearsDayTest.php index ace92ee3a..d104b7548 100644 --- a/tests/Switzerland/Valais/NewYearsDayTest.php +++ b/tests/Switzerland/Valais/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/StJosephDayTest.php b/tests/Switzerland/Valais/StJosephDayTest.php index 75aeed1da..33054209f 100644 --- a/tests/Switzerland/Valais/StJosephDayTest.php +++ b/tests/Switzerland/Valais/StJosephDayTest.php @@ -58,7 +58,7 @@ public function StJosephDayDataProvider(): array * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -72,7 +72,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Valais/ValaisTest.php b/tests/Switzerland/Valais/ValaisTest.php index 4c8373c46..f00e96384 100644 --- a/tests/Switzerland/Valais/ValaisTest.php +++ b/tests/Switzerland/Valais/ValaisTest.php @@ -28,7 +28,7 @@ class ValaisTest extends ValaisBaseTestCase * Tests if all official holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'ascensionDay', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Valais (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/AscensionDayTest.php b/tests/Switzerland/Vaud/AscensionDayTest.php index c99578ae3..fac6c7579 100644 --- a/tests/Switzerland/Vaud/AscensionDayTest.php +++ b/tests/Switzerland/Vaud/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/BerchtoldsTagTest.php b/tests/Switzerland/Vaud/BerchtoldsTagTest.php index 33a341888..2829e06fb 100644 --- a/tests/Switzerland/Vaud/BerchtoldsTagTest.php +++ b/tests/Switzerland/Vaud/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/BettagsMontagTest.php b/tests/Switzerland/Vaud/BettagsMontagTest.php index 13b70033b..8f2fe56c9 100644 --- a/tests/Switzerland/Vaud/BettagsMontagTest.php +++ b/tests/Switzerland/Vaud/BettagsMontagTest.php @@ -60,7 +60,7 @@ public function testBettagsMontagBefore1832() * Tests translated name of Bettags Montag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -74,7 +74,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(1900), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/ChristmasDayTest.php b/tests/Switzerland/Vaud/ChristmasDayTest.php index 1be3cde44..10d93f9d5 100644 --- a/tests/Switzerland/Vaud/ChristmasDayTest.php +++ b/tests/Switzerland/Vaud/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/EasterMondayTest.php b/tests/Switzerland/Vaud/EasterMondayTest.php index f0ea349df..bd1f28727 100644 --- a/tests/Switzerland/Vaud/EasterMondayTest.php +++ b/tests/Switzerland/Vaud/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/GoodFridayTest.php b/tests/Switzerland/Vaud/GoodFridayTest.php index 74934fd54..32ee4122f 100644 --- a/tests/Switzerland/Vaud/GoodFridayTest.php +++ b/tests/Switzerland/Vaud/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/NewYearsDayTest.php b/tests/Switzerland/Vaud/NewYearsDayTest.php index 507ea2c12..09c87662a 100644 --- a/tests/Switzerland/Vaud/NewYearsDayTest.php +++ b/tests/Switzerland/Vaud/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/PentecostMondayTest.php b/tests/Switzerland/Vaud/PentecostMondayTest.php index 52a417cd3..75a62cd47 100644 --- a/tests/Switzerland/Vaud/PentecostMondayTest.php +++ b/tests/Switzerland/Vaud/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Vaud/VaudTest.php b/tests/Switzerland/Vaud/VaudTest.php index 9282662f7..107814d94 100644 --- a/tests/Switzerland/Vaud/VaudTest.php +++ b/tests/Switzerland/Vaud/VaudTest.php @@ -28,7 +28,7 @@ class VaudTest extends VaudBaseTestCase * Tests if all official holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -59,7 +59,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -73,7 +73,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -82,7 +82,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -91,7 +91,7 @@ public function testBankHolidays() * Tests if all other holidays in Vaud (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/AllSaintsDayTest.php b/tests/Switzerland/Zug/AllSaintsDayTest.php index a9caf2bb4..7a0e23ccc 100644 --- a/tests/Switzerland/Zug/AllSaintsDayTest.php +++ b/tests/Switzerland/Zug/AllSaintsDayTest.php @@ -45,7 +45,7 @@ public function testAllSaintsDay($year, $expected) * Tests translated name of All Saints' Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/AscensionDayTest.php b/tests/Switzerland/Zug/AscensionDayTest.php index da6e57b2d..e96c318a2 100644 --- a/tests/Switzerland/Zug/AscensionDayTest.php +++ b/tests/Switzerland/Zug/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/AssumptionOfMaryTest.php b/tests/Switzerland/Zug/AssumptionOfMaryTest.php index b9177f87b..695e01bd7 100644 --- a/tests/Switzerland/Zug/AssumptionOfMaryTest.php +++ b/tests/Switzerland/Zug/AssumptionOfMaryTest.php @@ -45,7 +45,7 @@ public function testAssumptionOfMary($year, $expected) * Tests translated name of the day of the Assumption of Mary. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/BerchtoldsTagTest.php b/tests/Switzerland/Zug/BerchtoldsTagTest.php index 84da3e087..ca915f1a9 100644 --- a/tests/Switzerland/Zug/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zug/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/ChristmasDayTest.php b/tests/Switzerland/Zug/ChristmasDayTest.php index a4d286d7e..879ba97c2 100644 --- a/tests/Switzerland/Zug/ChristmasDayTest.php +++ b/tests/Switzerland/Zug/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/CorpusChristiTest.php b/tests/Switzerland/Zug/CorpusChristiTest.php index d7e9256d9..17c9b3225 100644 --- a/tests/Switzerland/Zug/CorpusChristiTest.php +++ b/tests/Switzerland/Zug/CorpusChristiTest.php @@ -50,7 +50,7 @@ public function testCorpusChristi() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -64,7 +64,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/EasterMondayTest.php b/tests/Switzerland/Zug/EasterMondayTest.php index 31ff224bb..2075ddf28 100644 --- a/tests/Switzerland/Zug/EasterMondayTest.php +++ b/tests/Switzerland/Zug/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/GoodFridayTest.php b/tests/Switzerland/Zug/GoodFridayTest.php index 184619789..435a46a3a 100644 --- a/tests/Switzerland/Zug/GoodFridayTest.php +++ b/tests/Switzerland/Zug/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/ImmaculateConceptionTest.php b/tests/Switzerland/Zug/ImmaculateConceptionTest.php index ac07d1481..2e861114d 100644 --- a/tests/Switzerland/Zug/ImmaculateConceptionTest.php +++ b/tests/Switzerland/Zug/ImmaculateConceptionTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/NewYearsDayTest.php b/tests/Switzerland/Zug/NewYearsDayTest.php index f229a1b0a..e248d0a4c 100644 --- a/tests/Switzerland/Zug/NewYearsDayTest.php +++ b/tests/Switzerland/Zug/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/PentecostMondayTest.php b/tests/Switzerland/Zug/PentecostMondayTest.php index 0352ce679..a3e5051d8 100644 --- a/tests/Switzerland/Zug/PentecostMondayTest.php +++ b/tests/Switzerland/Zug/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/StStephensDayTest.php b/tests/Switzerland/Zug/StStephensDayTest.php index 2e0987576..c6a349bfd 100644 --- a/tests/Switzerland/Zug/StStephensDayTest.php +++ b/tests/Switzerland/Zug/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zug/ZugTest.php b/tests/Switzerland/Zug/ZugTest.php index 756d5addb..71888781a 100644 --- a/tests/Switzerland/Zug/ZugTest.php +++ b/tests/Switzerland/Zug/ZugTest.php @@ -28,7 +28,7 @@ class ZugTest extends ZugBaseTestCase * Tests if all official holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -63,7 +63,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -77,7 +77,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -86,7 +86,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -95,7 +95,7 @@ public function testBankHolidays() * Tests if all other holidays in Zug (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/AscensionDayTest.php b/tests/Switzerland/Zurich/AscensionDayTest.php index 14be7f355..2f7de222b 100644 --- a/tests/Switzerland/Zurich/AscensionDayTest.php +++ b/tests/Switzerland/Zurich/AscensionDayTest.php @@ -47,7 +47,7 @@ public function testAscensionDay() * Tests translated name of Ascension Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/BerchtoldsTagTest.php b/tests/Switzerland/Zurich/BerchtoldsTagTest.php index c2febbb30..bfa4f0986 100644 --- a/tests/Switzerland/Zurich/BerchtoldsTagTest.php +++ b/tests/Switzerland/Zurich/BerchtoldsTagTest.php @@ -46,7 +46,7 @@ public function testBerchtoldsTag() * Tests translated name of BerchtoldsTag. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -60,7 +60,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/ChristmasDayTest.php b/tests/Switzerland/Zurich/ChristmasDayTest.php index 3b23f9fe1..91d74048b 100644 --- a/tests/Switzerland/Zurich/ChristmasDayTest.php +++ b/tests/Switzerland/Zurich/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function ChristmasDayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/EasterMondayTest.php b/tests/Switzerland/Zurich/EasterMondayTest.php index de5957527..f4d051047 100644 --- a/tests/Switzerland/Zurich/EasterMondayTest.php +++ b/tests/Switzerland/Zurich/EasterMondayTest.php @@ -47,7 +47,7 @@ public function testEasterMonday() * Tests translated name of Easter Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/GoodFridayTest.php b/tests/Switzerland/Zurich/GoodFridayTest.php index df132b712..915467187 100644 --- a/tests/Switzerland/Zurich/GoodFridayTest.php +++ b/tests/Switzerland/Zurich/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/NewYearsDayTest.php b/tests/Switzerland/Zurich/NewYearsDayTest.php index 5694d9017..8fa6c83f1 100644 --- a/tests/Switzerland/Zurich/NewYearsDayTest.php +++ b/tests/Switzerland/Zurich/NewYearsDayTest.php @@ -45,7 +45,7 @@ public function testNewYearsDay($year, $expected) * Tests translated name of New Years Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/PentecostMondayTest.php b/tests/Switzerland/Zurich/PentecostMondayTest.php index b2ef4b73c..8dfbfaded 100644 --- a/tests/Switzerland/Zurich/PentecostMondayTest.php +++ b/tests/Switzerland/Zurich/PentecostMondayTest.php @@ -47,7 +47,7 @@ public function testPentecostMonday() * Tests translated name of Pentecost Monday. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/StStephensDayTest.php b/tests/Switzerland/Zurich/StStephensDayTest.php index aecce8291..a8806e6d4 100644 --- a/tests/Switzerland/Zurich/StStephensDayTest.php +++ b/tests/Switzerland/Zurich/StStephensDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/WorkersDayTest.php b/tests/Switzerland/Zurich/WorkersDayTest.php index 419cb9f68..716fbcc67 100644 --- a/tests/Switzerland/Zurich/WorkersDayTest.php +++ b/tests/Switzerland/Zurich/WorkersDayTest.php @@ -67,7 +67,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OTHER); } diff --git a/tests/Switzerland/Zurich/ZurichTest.php b/tests/Switzerland/Zurich/ZurichTest.php index 8b8e9347b..77e890eed 100644 --- a/tests/Switzerland/Zurich/ZurichTest.php +++ b/tests/Switzerland/Zurich/ZurichTest.php @@ -28,7 +28,7 @@ class ZurichTest extends ZurichBaseTestCase * Tests if all official holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $officialHolidays = []; if ($this->year >= 1994) { @@ -41,7 +41,7 @@ public function testOfficialHolidays() * Tests if all regional holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testRegionalHolidays() + public function testRegionalHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -60,7 +60,7 @@ public function testRegionalHolidays() * Tests if all observed holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $observedHolidays = []; if (($this->year >= 1899 && $this->year < 1994) || $this->year = 1891) { @@ -74,7 +74,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -83,7 +83,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -92,7 +92,7 @@ public function testBankHolidays() * Tests if all other holidays in Zurich (Switzerland) are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/USA/ChristmasDayTest.php b/tests/USA/ChristmasDayTest.php index 9982d78c6..b2bb5156e 100644 --- a/tests/USA/ChristmasDayTest.php +++ b/tests/USA/ChristmasDayTest.php @@ -81,7 +81,7 @@ public function testChristmasDaySubstitutedFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -95,7 +95,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/USA/ColumbusDayTest.php b/tests/USA/ColumbusDayTest.php index 9ae4e76b8..49c1d5cad 100644 --- a/tests/USA/ColumbusDayTest.php +++ b/tests/USA/ColumbusDayTest.php @@ -84,7 +84,7 @@ public function testColumbusDayBefore1937() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/IndependenceDayTest.php b/tests/USA/IndependenceDayTest.php index 3bc9a5f97..49aad2e0e 100644 --- a/tests/USA/IndependenceDayTest.php +++ b/tests/USA/IndependenceDayTest.php @@ -97,7 +97,7 @@ public function testIndependenceDayBefore1776() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -111,7 +111,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/LabourDayTest.php b/tests/USA/LabourDayTest.php index 442c101e6..4d01322d9 100644 --- a/tests/USA/LabourDayTest.php +++ b/tests/USA/LabourDayTest.php @@ -65,7 +65,7 @@ public function testLabourDayBefore1887() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/MartinLutherKingDayTest.php b/tests/USA/MartinLutherKingDayTest.php index 7f0420ac2..6ad829a8c 100644 --- a/tests/USA/MartinLutherKingDayTest.php +++ b/tests/USA/MartinLutherKingDayTest.php @@ -67,7 +67,7 @@ public function testMartinLutherKingDayBefore1986() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/MemorialDayTest.php b/tests/USA/MemorialDayTest.php index 6c7d64410..2a6b4cbe4 100644 --- a/tests/USA/MemorialDayTest.php +++ b/tests/USA/MemorialDayTest.php @@ -84,7 +84,7 @@ public function testMemorialDayBefore1865() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/NewYearsDayTest.php b/tests/USA/NewYearsDayTest.php index dd0ce4034..f89498420 100644 --- a/tests/USA/NewYearsDayTest.php +++ b/tests/USA/NewYearsDayTest.php @@ -80,7 +80,7 @@ public function testNewYearsDaySubstitutedFriday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -94,7 +94,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/USA/ThanksgivingDayTest.php b/tests/USA/ThanksgivingDayTest.php index 251b6f971..20a0b34fd 100644 --- a/tests/USA/ThanksgivingDayTest.php +++ b/tests/USA/ThanksgivingDayTest.php @@ -67,7 +67,7 @@ public function testThanksgivingDayBefore1863() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -81,7 +81,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/USATest.php b/tests/USA/USATest.php index ba282ebcd..644451df2 100644 --- a/tests/USA/USATest.php +++ b/tests/USA/USATest.php @@ -28,7 +28,7 @@ class USATest extends USABaseTestCase * Tests if all official holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -48,7 +48,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -57,7 +57,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -66,7 +66,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -75,7 +75,7 @@ public function testBankHolidays() * Tests if all other holidays in the USA are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/USA/VeteransDayTest.php b/tests/USA/VeteransDayTest.php index 3a68112b9..0f8dcac34 100644 --- a/tests/USA/VeteransDayTest.php +++ b/tests/USA/VeteransDayTest.php @@ -92,7 +92,7 @@ public function testVeteransDayNameAfter1954() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -106,7 +106,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/USA/WashingtonsBirthdayTest.php b/tests/USA/WashingtonsBirthdayTest.php index 3094c1503..5ce977125 100644 --- a/tests/USA/WashingtonsBirthdayTest.php +++ b/tests/USA/WashingtonsBirthdayTest.php @@ -84,7 +84,7 @@ public function testWashingtonsBirthdayBefore1879() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -98,7 +98,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/Ukraine/ChristmasDayTest.php b/tests/Ukraine/ChristmasDayTest.php index a7dbd5e50..89bec1935 100644 --- a/tests/Ukraine/ChristmasDayTest.php +++ b/tests/Ukraine/ChristmasDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests translated name of Christmas Day. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/ConstitutionDayTest.php b/tests/Ukraine/ConstitutionDayTest.php index 13c706a34..abb929beb 100644 --- a/tests/Ukraine/ConstitutionDayTest.php +++ b/tests/Ukraine/ConstitutionDayTest.php @@ -45,7 +45,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, 2020, [self::LOCALE => 'День Конституції']); } @@ -54,7 +54,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, 2020, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/DefenderOfUkraineDayTest.php b/tests/Ukraine/DefenderOfUkraineDayTest.php index 0f157c958..dc646e176 100644 --- a/tests/Ukraine/DefenderOfUkraineDayTest.php +++ b/tests/Ukraine/DefenderOfUkraineDayTest.php @@ -45,7 +45,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, 2020, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/EasterTest.php b/tests/Ukraine/EasterTest.php index 52d057095..035011ce7 100644 --- a/tests/Ukraine/EasterTest.php +++ b/tests/Ukraine/EasterTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/IndependenceDayTest.php b/tests/Ukraine/IndependenceDayTest.php index 3f93b8064..f220e0773 100644 --- a/tests/Ukraine/IndependenceDayTest.php +++ b/tests/Ukraine/IndependenceDayTest.php @@ -45,7 +45,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName(self::REGION, self::HOLIDAY, 2020, [self::LOCALE => 'День Незалежності']); } @@ -54,7 +54,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, 2020, Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/InternationalWomensDayTest.php b/tests/Ukraine/InternationalWomensDayTest.php index 7133b5370..82a551dc0 100644 --- a/tests/Ukraine/InternationalWomensDayTest.php +++ b/tests/Ukraine/InternationalWomensDayTest.php @@ -54,7 +54,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/InternationalWorkersDayTest.php b/tests/Ukraine/InternationalWorkersDayTest.php index 6a313552e..8aa671ecc 100644 --- a/tests/Ukraine/InternationalWorkersDayTest.php +++ b/tests/Ukraine/InternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/NewYearsDayTest.php b/tests/Ukraine/NewYearsDayTest.php index 77574d26e..3854db7b0 100644 --- a/tests/Ukraine/NewYearsDayTest.php +++ b/tests/Ukraine/NewYearsDayTest.php @@ -56,7 +56,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -70,7 +70,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/PentecostTest.php b/tests/Ukraine/PentecostTest.php index a25c72ed5..790177b98 100644 --- a/tests/Ukraine/PentecostTest.php +++ b/tests/Ukraine/PentecostTest.php @@ -48,7 +48,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -62,7 +62,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/SecondInternationalWorkersDayTest.php b/tests/Ukraine/SecondInternationalWorkersDayTest.php index 62cc26c59..a8ea256a7 100644 --- a/tests/Ukraine/SecondInternationalWorkersDayTest.php +++ b/tests/Ukraine/SecondInternationalWorkersDayTest.php @@ -45,7 +45,7 @@ public function testSecondInternationalWorkersDay($year, $expected) * Tests translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -59,7 +59,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/Ukraine/UkraineTest.php b/tests/Ukraine/UkraineTest.php index 4d2231c7e..afc9bde7c 100644 --- a/tests/Ukraine/UkraineTest.php +++ b/tests/Ukraine/UkraineTest.php @@ -29,7 +29,7 @@ class UkraineTest extends UkraineBaseTestCase * Tests if all official holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -50,7 +50,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -59,7 +59,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -68,7 +68,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_BANK); } @@ -77,7 +77,7 @@ public function testBankHolidays() * Tests if all other holidays in Ukraine are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/Ukraine/VictoryDayTest.php b/tests/Ukraine/VictoryDayTest.php index 15ad69e3c..d08286646 100644 --- a/tests/Ukraine/VictoryDayTest.php +++ b/tests/Ukraine/VictoryDayTest.php @@ -54,7 +54,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -68,7 +68,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/UnitedKingdom/BoxingDayTest.php b/tests/UnitedKingdom/BoxingDayTest.php index 59b91e2f3..f5b6f1924 100644 --- a/tests/UnitedKingdom/BoxingDayTest.php +++ b/tests/UnitedKingdom/BoxingDayTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -89,7 +89,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/UnitedKingdom/ChristmasDayTest.php b/tests/UnitedKingdom/ChristmasDayTest.php index c87d35195..096cfc9b1 100644 --- a/tests/UnitedKingdom/ChristmasDayTest.php +++ b/tests/UnitedKingdom/ChristmasDayTest.php @@ -75,7 +75,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -89,7 +89,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/UnitedKingdom/EasterMondayTest.php b/tests/UnitedKingdom/EasterMondayTest.php index 60ee985c9..565062311 100644 --- a/tests/UnitedKingdom/EasterMondayTest.php +++ b/tests/UnitedKingdom/EasterMondayTest.php @@ -74,7 +74,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -88,7 +88,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_BANK); } diff --git a/tests/UnitedKingdom/GoodFridayTest.php b/tests/UnitedKingdom/GoodFridayTest.php index cb37a1036..4f573581a 100644 --- a/tests/UnitedKingdom/GoodFridayTest.php +++ b/tests/UnitedKingdom/GoodFridayTest.php @@ -47,7 +47,7 @@ public function testHoliday() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -61,7 +61,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType(self::REGION, self::HOLIDAY, $this->generateRandomYear(), Holiday::TYPE_OFFICIAL); } diff --git a/tests/UnitedKingdom/MayDayBankHolidayTest.php b/tests/UnitedKingdom/MayDayBankHolidayTest.php index 70654dc84..757f1e713 100644 --- a/tests/UnitedKingdom/MayDayBankHolidayTest.php +++ b/tests/UnitedKingdom/MayDayBankHolidayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/NewYearsDayTest.php b/tests/UnitedKingdom/NewYearsDayTest.php index 07dedc60d..725172893 100644 --- a/tests/UnitedKingdom/NewYearsDayTest.php +++ b/tests/UnitedKingdom/NewYearsDayTest.php @@ -100,7 +100,7 @@ public function HolidayDataProvider(): array * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -114,7 +114,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/SpringBankHolidayTest.php b/tests/UnitedKingdom/SpringBankHolidayTest.php index dcc95ffc3..79c390e20 100644 --- a/tests/UnitedKingdom/SpringBankHolidayTest.php +++ b/tests/UnitedKingdom/SpringBankHolidayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/SummerBankHolidayTest.php b/tests/UnitedKingdom/SummerBankHolidayTest.php index fca9945ea..ad0ee64f9 100644 --- a/tests/UnitedKingdom/SummerBankHolidayTest.php +++ b/tests/UnitedKingdom/SummerBankHolidayTest.php @@ -65,7 +65,7 @@ public function testHolidayBeforeEstablishment() * Tests the translated name of the holiday defined in this test. * @throws \ReflectionException */ - public function testTranslation() + public function testTranslation(): void { $this->assertTranslatedHolidayName( self::REGION, @@ -79,7 +79,7 @@ public function testTranslation() * Tests type of the holiday defined in this test. * @throws \ReflectionException */ - public function testHolidayType() + public function testHolidayType(): void { $this->assertHolidayType( self::REGION, diff --git a/tests/UnitedKingdom/UnitedKingdomTest.php b/tests/UnitedKingdom/UnitedKingdomTest.php index b62d2a9cf..67834127b 100644 --- a/tests/UnitedKingdom/UnitedKingdomTest.php +++ b/tests/UnitedKingdom/UnitedKingdomTest.php @@ -28,7 +28,7 @@ class UnitedKingdomTest extends UnitedKingdomBaseTestCase * Tests if all official holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testOfficialHolidays() + public function testOfficialHolidays(): void { $this->assertDefinedHolidays([ 'goodFriday', @@ -40,7 +40,7 @@ public function testOfficialHolidays() * Tests if all observed holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testObservedHolidays() + public function testObservedHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OBSERVANCE); } @@ -49,7 +49,7 @@ public function testObservedHolidays() * Tests if all seasonal holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testSeasonalHolidays() + public function testSeasonalHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_SEASON); } @@ -58,7 +58,7 @@ public function testSeasonalHolidays() * Tests if all bank holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testBankHolidays() + public function testBankHolidays(): void { $this->assertDefinedHolidays([ 'newYearsDay', @@ -73,7 +73,7 @@ public function testBankHolidays() * Tests if all other holidays in the United Kingdom are defined by the provider class * @throws \ReflectionException */ - public function testOtherHolidays() + public function testOtherHolidays(): void { $this->assertDefinedHolidays([], self::REGION, $this->year, Holiday::TYPE_OTHER); } diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index d93d9073e..b7b16756b 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -46,7 +46,7 @@ trait YasumiBase * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type) + public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type): void { $holidays = Yasumi::create($provider, $year); @@ -91,7 +91,7 @@ public function assertDefinedHolidays($expectedHolidays, $provider, $year, $type * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException */ - public function assertHoliday($provider, $shortName, $year, $expected) + public function assertHoliday($provider, $shortName, $year, $expected): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -119,7 +119,7 @@ public function assertHoliday($provider, $shortName, $year, $expected) * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException */ - public function assertNotHoliday($provider, $shortName, $year) + public function assertNotHoliday($provider, $shortName, $year): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -144,7 +144,7 @@ public function assertNotHoliday($provider, $shortName, $year) * @throws \PHPUnit\Framework\AssertionFailedError * @throws \ReflectionException */ - public function assertTranslatedHolidayName($provider, $shortName, $year, $translations) + public function assertTranslatedHolidayName($provider, $shortName, $year, $translations): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -180,7 +180,7 @@ public function assertTranslatedHolidayName($provider, $shortName, $year, $trans * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function assertHolidayType($provider, $shortName, $year, $type) + public function assertHolidayType($provider, $shortName, $year, $type): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); @@ -208,7 +208,7 @@ public function assertHolidayType($provider, $shortName, $year, $type) * @throws \Yasumi\Exception\UnknownLocaleException * @throws \ReflectionException */ - public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek) + public function assertDayOfWeek($provider, $shortName, $year, $expectedDayOfWeek): void { $holidays = Yasumi::create($provider, $year); $holiday = $holidays->getHoliday($shortName); From a6e7d7647697dff3c4fb6ae748141955f8a23a94 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 13:41:55 +0900 Subject: [PATCH 123/132] Removed unnecessary argument as it is the same as the default. Signed-off-by: Sacha Telgenhof --- tests/Base/TranslationsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Base/TranslationsTest.php b/tests/Base/TranslationsTest.php index 7437b65ff..e5b3cc7ca 100644 --- a/tests/Base/TranslationsTest.php +++ b/tests/Base/TranslationsTest.php @@ -243,7 +243,7 @@ public function testLoadingTranslationsFromDirectoryWithUnknownLocaleException() */ public function testLoadingTranslationsFromInexistentDirectory(): void { - vfsStream::setup('root'); + vfsStream::setup(); $translations = new Translations(self::LOCALES); $translations->loadTranslations(vfsStream::url('root/lang')); From 2ef7c9d8fb4359eb6041f6585857775b455c45e0 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 14:15:51 +0900 Subject: [PATCH 124/132] Refactored the USA Holiday provider by moving the calculation of individual holidays to private methods. This will reduce the complexity of the initialize method. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/USA.php | 230 ++++++++++++++++++++++-------------- 1 file changed, 140 insertions(+), 90 deletions(-) diff --git a/src/Yasumi/Provider/USA.php b/src/Yasumi/Provider/USA.php index 8f2efdda6..5d353a5d6 100755 --- a/src/Yasumi/Provider/USA.php +++ b/src/Yasumi/Provider/USA.php @@ -48,53 +48,52 @@ public function initialize(): void // Add Christian holidays $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale)); - /** - * Dr. Martin Luther King Day. - * - * Honors Dr. Martin Luther King, Jr., Civil Rights leader, who was actually born on January 15, 1929; combined - * with other holidays in several states. It is observed on the third Monday of January since 1986. - * - * @link http://en.wikipedia.org/wiki/Martin_Luther_King,_Jr._Day - */ + // Calculate other holidays + $this->calculateMartinLutherKingday(); + $this->calculateWashingtonsBirthday(); + $this->calculateMemorialDay(); + $this->calculateIndependenceDay(); + $this->calculateLabourDay(); + $this->calculateColumbusDay(); + $this->calculateVeteransDay(); + $this->calculateThanksgivingDay(); + + $this->calculateSubstituteHolidays(); + } + + /** + * Dr. Martin Luther King Day. + * + * Honors Dr. Martin Luther King, Jr., Civil Rights leader, who was actually born on January 15, 1929; combined + * with other holidays in several states. It is observed on the third Monday of January since 1986. + * + * @link http://en.wikipedia.org/wiki/Martin_Luther_King,_Jr._Day + * + * @throws \Exception + */ + private function calculateMartinLutherKingday(): void + { if ($this->year >= 1986) { $this->addHoliday(new Holiday('martinLutherKingDay', [ 'en_US' => 'Dr. Martin Luther King Jr\'s Birthday', ], new DateTime("third monday of january $this->year", new DateTimeZone($this->timezone)), $this->locale)); } + } - /** - * Washington's Birthday. - * - * Washington's Birthday is a United States federal holiday celebrated on the third Monday of February in honor - * of George Washington, the first President of the United States. Colloquially, it is widely known as - * Presidents Day and is often an occasion to remember all the presidents. - * - * Washington's Birthday was first declared a federal holiday by an 1879 act of Congress. The Uniform Holidays - * Act, 1968 shifted the date of the commemoration of Washington's Birthday from February 22 to the third Monday - * in February. - * - * @link http://en.wikipedia.org/wiki/Washington%27s_Birthday - */ - if ($this->year >= 1879) { - $date = new DateTime("$this->year-2-22", new DateTimeZone($this->timezone)); - if ($this->year >= 1968) { - $date = new DateTime("third monday of february $this->year", new DateTimeZone($this->timezone)); - } - $this->addHoliday(new Holiday('washingtonsBirthday', [ - 'en_US' => 'Washington\'s Birthday', - ], $date, $this->locale)); - } - - /** - * Memorial Day. - * - * Honors the nation's war dead from the Civil War onwards; marks the unofficial beginning of the summer season. - * - * Memorial Day was first declared a federal holiday on May 1, 1865. The Uniform Holidays Act, 1968 shifted the - * date of the commemoration of Memorial Day from May 30 to the last Monday in May. - * - * @link http://en.wikipedia.org/wiki/Memorial_Day - */ + /** + * Memorial Day. + * + * Honors the nation's war dead from the Civil War onwards; marks the unofficial beginning of the summer season. + * + * Memorial Day was first declared a federal holiday on May 1, 1865. The Uniform Holidays Act, 1968 shifted the + * date of the commemoration of Memorial Day from May 30 to the last Monday in May. + * + * @link http://en.wikipedia.org/wiki/Memorial_Day + * + * @throws \Exception + */ + private function calculateMemorialDay(): void + { if ($this->year >= 1865) { $date = new DateTime("$this->year-5-30", new DateTimeZone($this->timezone)); if ($this->year >= 1968) { @@ -104,31 +103,41 @@ public function initialize(): void 'en_US' => 'Memorial Day', ], $date, $this->locale)); } + } - /** - * Independence Day. - * - * Independence Day, commonly known as the Fourth of July or July Fourth, is a federal holiday in the United - * States commemorating the adoption of the Declaration of Independence on July 4, 1776, declaring independence - * from Great Britain. In case Independence Day falls on a Sunday, a substituted holiday is observed the - * following Monday. If it falls on a Saturday, a substituted holiday is observed the previous Friday. - * - * @link http://en.wikipedia.org/wiki/Independence_Day_(United_States) - */ + /** + * Independence Day. + * + * Independence Day, commonly known as the Fourth of July or July Fourth, is a federal holiday in the United + * States commemorating the adoption of the Declaration of Independence on July 4, 1776, declaring independence + * from Great Britain. In case Independence Day falls on a Sunday, a substituted holiday is observed the + * following Monday. If it falls on a Saturday, a substituted holiday is observed the previous Friday. + * + * @link http://en.wikipedia.org/wiki/Independence_Day_(United_States) + * + * @throws \Exception + */ + private function calculateIndependenceDay(): void + { if ($this->year >= 1776) { $this->addHoliday(new Holiday('independenceDay', [ 'en_US' => 'Independence Day', ], new DateTime("$this->year-7-4", new DateTimeZone($this->timezone)), $this->locale)); } + } - /** - * Labour Day. - * - * Labor Day in the United States is a holiday celebrated on the first Monday in September. It is a celebration - * of the American labor movement and is dedicated to the social and economic achievements of workers. - * - * @link http://en.wikipedia.org/wiki/Labor_Day - */ + /** + * Labour Day. + * + * Labor Day in the United States is a holiday celebrated on the first Monday in September. It is a celebration + * of the American labor movement and is dedicated to the social and economic achievements of workers. + * + * @link http://en.wikipedia.org/wiki/Labor_Day + * + * @throws \Exception + */ + private function calculateLabourDay(): void + { if ($this->year >= 1887) { $this->addHoliday(new Holiday( 'labourDay', @@ -139,18 +148,23 @@ public function initialize(): void $this->locale )); } + } - /** - * Columbus Day. - * - * Honors Christopher Columbus, traditional discoverer of the Americas. In some areas it is also a celebration - * of Indigenous Peoples, or Italian culture and heritage. (traditionally October 12). Columbus Day first became - * an official state holiday in Colorado in 1906, and became a federal holiday in the United States in 1937, - * though people have celebrated Columbus's voyage since the colonial period. Since 1970 (Oct. 12), the holiday - * has been fixed to the second Monday in October. - * - * @link http://en.wikipedia.org/wiki/Columbus_Day - */ + /** + * Columbus Day. + * + * Honors Christopher Columbus, traditional discoverer of the Americas. In some areas it is also a celebration + * of Indigenous Peoples, or Italian culture and heritage. (traditionally October 12). Columbus Day first became + * an official state holiday in Colorado in 1906, and became a federal holiday in the United States in 1937, + * though people have celebrated Columbus's voyage since the colonial period. Since 1970 (Oct. 12), the holiday + * has been fixed to the second Monday in October. + * + * @link http://en.wikipedia.org/wiki/Columbus_Day + * + * @throws \Exception + */ + private function calculateColumbusDay(): void + { if ($this->year >= 1937) { $date = new DateTime("$this->year-10-12", new DateTimeZone($this->timezone)); if ($this->year >= 1970) { @@ -160,16 +174,21 @@ public function initialize(): void 'en_US' => 'Columbus Day', ], $date, $this->locale)); } + } - /** - * Veterans Day. - * - * Veterans Day is an official United States holiday that honors people who have served in the U.S. Armed Forces - * also known as veterans. It is a federal holiday that is observed on November 11 since 1919. Congress amended - * a bill on June 1, 1954, replacing "Armistice" with "Veterans," and it has been known as Veterans Day since. - * - * @link http://en.wikipedia.org/wiki/Veterans_Day - */ + /** + * Veterans Day. + * + * Veterans Day is an official United States holiday that honors people who have served in the U.S. Armed Forces + * also known as veterans. It is a federal holiday that is observed on November 11 since 1919. Congress amended + * a bill on June 1, 1954, replacing "Armistice" with "Veterans," and it has been known as Veterans Day since. + * + * @link http://en.wikipedia.org/wiki/Veterans_Day + * + * @throws \Exception + */ + private function calculateVeteransDay(): void + { if ($this->year >= 1919) { $name = ($this->year < 1954) ? 'Armistice Day' : 'Veterans Day'; @@ -177,17 +196,22 @@ public function initialize(): void 'en_US' => $name, ], new DateTime("$this->year-11-11", new DateTimeZone($this->timezone)), $this->locale)); } + } - /** - * Thanksgiving Day. - * - * Thanksgiving, or Thanksgiving Day, is a holiday celebrated in the United States on the fourth Thursday in - * November. It has been celebrated as a federal holiday every year since 1863, when, during the Civil War, - * President Abraham Lincoln proclaimed a national day of "Thanksgiving and Praise to our beneficent Father who - * dwelleth in the Heavens", to be celebrated on the last Thursday in November. - * - * @link http://en.wikipedia.org/wiki/Thanksgiving_(United_States) - */ + /** + * Thanksgiving Day. + * + * Thanksgiving, or Thanksgiving Day, is a holiday celebrated in the United States on the fourth Thursday in + * November. It has been celebrated as a federal holiday every year since 1863, when, during the Civil War, + * President Abraham Lincoln proclaimed a national day of "Thanksgiving and Praise to our beneficent Father who + * dwelleth in the Heavens", to be celebrated on the last Thursday in November. + * + * @link http://en.wikipedia.org/wiki/Thanksgiving_(United_States) + * + * @throws \Exception + */ + private function calculateThanksgivingDay(): void + { if ($this->year >= 1863) { $this->addHoliday(new Holiday( 'thanksgivingDay', @@ -198,8 +222,34 @@ public function initialize(): void $this->locale )); } + } - $this->calculateSubstituteHolidays(); + /** + * Washington's Birthday. + * + * Washington's Birthday is a United States federal holiday celebrated on the third Monday of February in honor + * of George Washington, the first President of the United States. Colloquially, it is widely known as + * Presidents Day and is often an occasion to remember all the presidents. + * + * Washington's Birthday was first declared a federal holiday by an 1879 act of Congress. The Uniform Holidays + * Act, 1968 shifted the date of the commemoration of Washington's Birthday from February 22 to the third Monday + * in February. + * + * @link http://en.wikipedia.org/wiki/Washington%27s_Birthday + * + * @throws \Exception + */ + private function calculateWashingtonsBirthday(): void + { + if ($this->year >= 1879) { + $date = new DateTime("$this->year-2-22", new DateTimeZone($this->timezone)); + if ($this->year >= 1968) { + $date = new DateTime("third monday of february $this->year", new DateTimeZone($this->timezone)); + } + $this->addHoliday(new Holiday('washingtonsBirthday', [ + 'en_US' => 'Washington\'s Birthday', + ], $date, $this->locale)); + } } /** From e0fdff66c1b968a32f8cf1a0bba4d92d000b6969 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 14:43:27 +0900 Subject: [PATCH 125/132] Refactored the USA Holiday provider by moving the calculation of individual holidays to private methods. This will reduce the complexity of the initialize method. Changed the access modifier for some constants as these are used internally only. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Japan.php | 130 ++++++++++++++++++++++------------ 1 file changed, 85 insertions(+), 45 deletions(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 6a3f50a0f..09d4d621a 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -34,42 +34,42 @@ class Japan extends AbstractProvider /** * The gradient parameter of the approximate expression to calculate equinox day. */ - public const EQUINOX_GRADIENT = 0.242194; + private const EQUINOX_GRADIENT = 0.242194; /** * The initial parameter of the approximate expression to calculate vernal equinox day from 1900 to 1979. */ - public const VERNAL_EQUINOX_PARAM_1979 = 20.8357; + private const VERNAL_EQUINOX_PARAM_1979 = 20.8357; /** * The initial parameter of the approximate expression to calculate vernal equinox day from 1980 to 2099. */ - public const VERNAL_EQUINOX_PARAM_2099 = 20.8431; + private const VERNAL_EQUINOX_PARAM_2099 = 20.8431; /** * The initial parameter of the approximate expression to calculate vernal equinox day from 2100 to 2150. */ - public const VERNAL_EQUINOX_PARAM_2150 = 21.8510; + private const VERNAL_EQUINOX_PARAM_2150 = 21.8510; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 1851 to 1899. */ - public const AUTUMNAL_EQUINOX_PARAM_1899 = 22.2588; + private const AUTUMNAL_EQUINOX_PARAM_1899 = 22.2588; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 1900 to 1979. */ - public const AUTUMNAL_EQUINOX_PARAM_1979 = 23.2588; + private const AUTUMNAL_EQUINOX_PARAM_1979 = 23.2588; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 1980 to 2099. */ - public const AUTUMNAL_EQUINOX_PARAM_2099 = 23.2488; + private const AUTUMNAL_EQUINOX_PARAM_2099 = 23.2488; /** * The initial parameter of the approximate expression to calculate autumnal equinox day from 2100 to 2150. */ - public const AUTUMNAL_EQUINOX_PARAM_2150 = 24.2488; + private const AUTUMNAL_EQUINOX_PARAM_2150 = 24.2488; /** * Initialize holidays for Japan. @@ -83,16 +83,38 @@ public function initialize(): void { $this->timezone = 'Asia/Tokyo'; - /** - * New Year's Day. New Year's Day in Japan is established since 1948. - */ + // Add common holidays if ($this->year >= 1948) { $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale)); } - /** - * National Foundation Day. National Foundation Day is held on February 11th and established since 1966. - */ + // Calculate other holidays + $this->calculateNationalFoundationDay(); + $this->calculateShowaDay(); + $this->calculateConstitutionMemorialDay(); + $this->calculateChildrensDay(); + $this->calculateCultureDay(); + $this->calculateLaborThanksgivingDay(); + $this->calculateEmporersBirthday(); + $this->calculateVernalEquinoxDay(); + $this->calculateComingOfAgeDay(); + $this->calculateGreeneryDay(); + $this->calculateMarineDay(); + $this->caluclateMountainDay(); + $this->calculateRespectForTheAgeDay(); + $this->calculateHealthAndSportsDay(); + $this->calculateAutumnalEquinoxDay(); + $this->calculateSubstituteHolidays(); + $this->calculateBridgeHolidays(); + } + + /** + * National Foundation Day. National Foundation Day is held on February 11th and established since 1966. + * + * @throws \Exception + */ + private function calculateNationalFoundationDay(): void + { if ($this->year >= 1966) { $this->addHoliday(new Holiday( 'nationalFoundationDay', @@ -101,10 +123,15 @@ public function initialize(): void $this->locale )); } + } - /** - * Showa Day. Showa Day is held on April 29th and established since 2007. - */ + /** + * Showa Day. Showa Day is held on April 29th and established since 2007. + * + * @throws \Exception + */ + private function calculateShowaDay(): void + { if ($this->year >= 2007) { $this->addHoliday(new Holiday( 'showaDay', @@ -113,10 +140,15 @@ public function initialize(): void $this->locale )); } + } - /** - * Constitution Memorial Day. Constitution Memorial Day is held on May 3rd and established since 1948. - */ + /** + * Constitution Memorial Day. Constitution Memorial Day is held on May 3rd and established since 1948. + * + * @throws \Exception + */ + private function calculateConstitutionMemorialDay(): void + { if ($this->year >= 1948) { $this->addHoliday(new Holiday( 'constitutionMemorialDay', @@ -125,10 +157,14 @@ public function initialize(): void $this->locale )); } - - /** - * Children's Day. Children's Day is held on May 5th and established since 1948. - */ + } + /** + * Children's Day. Children's Day is held on May 5th and established since 1948. + * + * @throws \Exception + */ + private function calculateChildrensDay(): void + { if ($this->year >= 1948) { $this->addHoliday(new Holiday( 'childrensDay', @@ -137,10 +173,15 @@ public function initialize(): void $this->locale )); } + } - /** - * Culture Day. Culture Day is held on November 11th and established since 1948. - */ + /** + * Culture Day. Culture Day is held on November 11th and established since 1948. + * + * @throws \Exception + */ + private function calculateCultureDay(): void + { if ($this->year >= 1948) { $this->addHoliday(new Holiday( 'cultureDay', @@ -149,10 +190,15 @@ public function initialize(): void $this->locale )); } + } - /** - * Labor Thanksgiving Day. Labor Thanksgiving Day is held on November 23rd and established since 1948. - */ + /** + * Labor Thanksgiving Day. Labor Thanksgiving Day is held on November 23rd and established since 1948. + * + * @throws \Exception + */ + private function calculateLaborThanksgivingDay(): void + { if ($this->year >= 1948) { $this->addHoliday(new Holiday( 'laborThanksgivingDay', @@ -161,11 +207,16 @@ public function initialize(): void $this->locale )); } + } - /** - * Emperors Birthday. The Emperors Birthday is on December 23rd and celebrated as such since 1989. - * Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. See also "Shōwa Day". - */ + /** + * Emperors Birthday. The Emperors Birthday is on December 23rd and celebrated as such since 1989. + * Prior to the death of Emperor Hirohito in 1989, this holiday was celebrated on April 29. See also "Shōwa Day". + * + * @throws \Exception + */ + private function calculateEmporersBirthday(): void + { if ($this->year >= 1989) { $this->addHoliday(new Holiday( 'emperorsBirthday', @@ -174,17 +225,6 @@ public function initialize(): void $this->locale )); } - - $this->calculateVernalEquinoxDay(); - $this->calculateComingOfAgeDay(); - $this->calculateGreeneryDay(); - $this->calculateMarineDay(); - $this->caluclateMountainDay(); - $this->calculateRespectForTheAgeDay(); - $this->calculateHealthAndSportsDay(); - $this->calculateAutumnalEquinoxDay(); - $this->calculateSubstituteHolidays(); - $this->calculateBridgeHolidays(); } /** From d9811dd0882994cacadb844c970ed0042be960c6 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 14:44:25 +0900 Subject: [PATCH 126/132] Fixed typo in the method name. Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Japan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 09d4d621a..d8345bde9 100755 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -100,7 +100,7 @@ public function initialize(): void $this->calculateComingOfAgeDay(); $this->calculateGreeneryDay(); $this->calculateMarineDay(); - $this->caluclateMountainDay(); + $this->calculateMountainDay(); $this->calculateRespectForTheAgeDay(); $this->calculateHealthAndSportsDay(); $this->calculateAutumnalEquinoxDay(); @@ -369,7 +369,7 @@ private function calculateMarineDay(): void * @throws \Exception * @throws \Exception */ - private function caluclateMountainDay(): void + private function calculateMountainDay(): void { $date = null; if ($this->year === 2020) { From a55e967bd5433c5dde13796648eee48990868916 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 15:54:36 +0900 Subject: [PATCH 127/132] Updated the Changelog to reflect the latest changes. Fixed a few typos/formatting. Signed-off-by: Sacha Telgenhof --- CHANGELOG.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82801ffb4..a4e1c0c41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,24 +8,29 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - New filter to select holidays that happen on a given date [\#119](https://github.com/azuyalabs/yasumi/pull/119) ([cruxicheiros](https://github.com/cruxicheiros)) - Holiday Providers for all Australian states and teritories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) -- Holiday Provider for Bosnia. [\#194](https://github.com/azuyalabs/yasumi/pull/94) ([TheAdnan](https://github.com/TheAdnan)) +- Holiday Provider for Bosnia. [\#94](https://github.com/azuyalabs/yasumi/pull/94) ([TheAdnan](https://github.com/TheAdnan)) - Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). [#115](https://github.com/azuyalabs/yasumi/issues/115) ([Taxcamp](https://github.com/Taxcamp)) - Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) ([HenningCash](https://github.com/HenningCash)) - Added Reformation Day as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) ([HenningCash](https://github.com/HenningCash)) - Added Reformation Day as offical holiday since 2018 in Bremen (Germany). [#116](https://github.com/azuyalabs/yasumi/issues/116) ([TalonTR](https://github.com/TalonTR)) - The (observed) holidays Lukkeloven, Constitution Day, New Year's Eve and Labour Day, as well as summertime and wintertime are included for Denmark [\#104](https://github.com/azuyalabs/yasumi/pull/104) ([c960657](https://github.com/c960657)) +- Added Scrutinizer integration for additional code quality checks. ### Changed -- Updated copyright year. -- Upgraded to PHPUnit 7. -- PHP version 7.1 is now the minimum required version. -- Changed Japanese holiday for the 2020 Olympic Games.Marine Day,Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) ([cookie-maker](https://github.com/cookie-maker)) +- Upgraded entirely to PHP version 7 with PHP7.1 being the minimum required version. Base code and all unit tests have been reworked to compatibility with PHP 7. +- Upgraded to PHPUnit to version 7.5. +- Changed Japanese holiday for the 2020 Olympic Games. Marine Day, Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) ([cookie-maker](https://github.com/cookie-maker)) - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) ([c960657](https://github.com/c960657)) - Changed translation for Norway's national day. [\#98](https://github.com/azuyalabs/yasumi/pull/98) ([c960657](https://github.com/c960657)) - Applied proper null checks in the summertime and wintertime calculations for Denmark and The Netherlands. - Corrected some namespaces for Australia and Germany. +- Updated copyright year. +- Upgraded various dependency packages. +- Internal locale list updated based on CLDR v34. +- Refactored the Japan and USA Holiday Provider by moving the holiday calculations to private methods. This reduced the complexity of the initialize method. ### Fixed +- Translation for Russia showed in English (except New Year's Day) as the proper locale was not in place. - Fixed issue for summertime in Denmark in 1980. By default summertime in Denmark is set for the last day of March since 1980, however in 1980 itself, it started on April, 6th. - Fixed spelling issue in the Swedish translation. [\#97](https://github.com/azuyalabs/yasumi/pull/97) ([c960657](https://github.com/c960657)) - Fixed spelling issues in the Danish translation. [\#96](https://github.com/azuyalabs/yasumi/pull/96) ([c960657](https://github.com/c960657)) From c676a0b746a54f30d0db04ef527180a7f646dc5a Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 15:57:12 +0900 Subject: [PATCH 128/132] Corrected command for checking/formatting source code. Signed-off-by: Sacha Telgenhof --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c88e43bee..c8df34d53 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ When contributing there are a few guidelines we'd like you to keep in mind: Please use the following command after you have completed your work: ``` bash - $ composer php-cs-fixer + $ composer format ``` This will check/correct all the code for the PSR-2 Coding Standard using the wonderful [php-cs-fixer](http://cs.sensiolabs.org/) . From 1922bb1ac2ade69dfc5d67e1aba01491e23f515a Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 16:00:03 +0900 Subject: [PATCH 129/132] Moved blog link to own paragraph. Signed-off-by: Sacha Telgenhof --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 661537ae7..b835be1a2 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,6 @@ [![StyleCI](https://styleci.io/repos/32797151/shield?branch=master)](https://styleci.io/repos/32797151) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/azuyalabs/yasumi/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/azuyalabs/yasumi/?branch=master) - -***!!Update!!*** -A new [blog](https://azuyalabs.github.io/yasumi/blog/) section has been added to the documentation site. Keeping you informed about any news, releases, etc. in a handy blog post format! - Yasumi (Japanese for 'Holiday'「休み」) is an easy PHP library to help you calculate the dates and names of holidays and other special celebrations from various countries/states. Many services exist on the internet that provide holidays, however are either not free or offer only limited information. In addition, no complete PHP library seems to exist today @@ -25,6 +21,9 @@ Documentation Yasumi’s documentation is available on [https://azuyalabs.github.io/yasumi/](https://azuyalabs.github.io/yasumi/). You will find all the necessary information how to install Yasumi and also recipes how you can use Yasumi in your project. +Blog +---- +Checkout the [blog](https://azuyalabs.github.io/yasumi/blog/) section on documentation site regularly for latest updates. Keeping you informed about any news, releases, etc. in a handy blog post format! License ------- From 40408f8770828bb8fbd5fb8702267e0759ecbdc9 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Thu, 10 Jan 2019 16:37:42 +0900 Subject: [PATCH 130/132] Fixed typo. Signed-off-by: Sacha Telgenhof --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4e1c0c41..32ac3847c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - New filter to select holidays that happen on a given date [\#119](https://github.com/azuyalabs/yasumi/pull/119) ([cruxicheiros](https://github.com/cruxicheiros)) -- Holiday Providers for all Australian states and teritories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) +- Holiday Providers for all Australian states and territories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) - Holiday Provider for Bosnia. [\#94](https://github.com/azuyalabs/yasumi/pull/94) ([TheAdnan](https://github.com/TheAdnan)) - Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). [#115](https://github.com/azuyalabs/yasumi/issues/115) ([Taxcamp](https://github.com/Taxcamp)) - Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). [#106](https://github.com/azuyalabs/yasumi/pull/106) ([HenningCash](https://github.com/HenningCash)) From acce9225553c1eb684ef90d7c05d89195347e0f2 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 11 Jan 2019 20:58:26 +0900 Subject: [PATCH 131/132] Final corrections and rewording for the v2 release. --- CHANGELOG.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ac3847c..48b948f1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] +### Added + +### Changed + +### Fixed + +### Removed + + +## [2.0.0] - 2019-01-11 + ### Added - New filter to select holidays that happen on a given date [\#119](https://github.com/azuyalabs/yasumi/pull/119) ([cruxicheiros](https://github.com/cruxicheiros)) - Holiday Providers for all Australian states and territories. [\#112](https://github.com/azuyalabs/yasumi/pull/112) ([Milamber33](https://github.com/Milamber33)) @@ -14,10 +25,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Added Reformation Day as offical holiday since 2018 in Hamburg (Germany). [#108](https://github.com/azuyalabs/yasumi/pull/108) ([HenningCash](https://github.com/HenningCash)) - Added Reformation Day as offical holiday since 2018 in Bremen (Germany). [#116](https://github.com/azuyalabs/yasumi/issues/116) ([TalonTR](https://github.com/TalonTR)) - The (observed) holidays Lukkeloven, Constitution Day, New Year's Eve and Labour Day, as well as summertime and wintertime are included for Denmark [\#104](https://github.com/azuyalabs/yasumi/pull/104) ([c960657](https://github.com/c960657)) -- Added Scrutinizer integration for additional code quality checks. ### Changed -- Upgraded entirely to PHP version 7 with PHP7.1 being the minimum required version. Base code and all unit tests have been reworked to compatibility with PHP 7. +- Upgraded entirely to PHP version 7 with PHP 7.1 being the minimum required version. Base code and all unit tests have been reworked to compatibility with PHP 7. - Upgraded to PHPUnit to version 7.5. - Changed Japanese holiday for the 2020 Olympic Games. Marine Day, Mountain Day and Health And Sports Day. [\#113](https://github.com/azuyalabs/yasumi/pull/113) ([cookie-maker](https://github.com/cookie-maker)) - Summer/winter time is now fetched from PHP's tz database. [\#103](https://github.com/azuyalabs/yasumi/pull/103) ([c960657](https://github.com/c960657)) @@ -40,6 +50,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Removed + ## [1.8.0] - 2018-02-21 ### Added From ff2fd72c22068923d1bdfeed5bb00d8435038484 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Fri, 11 Jan 2019 20:59:06 +0900 Subject: [PATCH 132/132] Added notice regarding the v2 release and end of support for PHP 5. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index b835be1a2..0e34142c5 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,16 @@ [![StyleCI](https://styleci.io/repos/32797151/shield?branch=master)](https://styleci.io/repos/32797151) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/azuyalabs/yasumi/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/azuyalabs/yasumi/?branch=master) +Important! +----------- +Yasumi version 2.0 has been released with support for PHP 7 only. As of January 2019 support for PHP 5 has ended. + +For the previous code base (1.8.0) a separate support branch has been created that will only receive the most critical bug fixes (for those still using PHP 5). Please note that although v1.8.x works both in PHP 5 and PHP 7, the code base hasn't been upgraded to PHP 7. + +It is highly recommended to upgrade to PHP7 and Yasumi v2.0.0 to enjoy the latest changes and improvements. More information can be found on the blog here: [Yasumi Release v2](https://azuyalabs.github.io/yasumi/blog/release_v2) + +Introduction +------------ Yasumi (Japanese for 'Holiday'「休み」) is an easy PHP library to help you calculate the dates and names of holidays and other special celebrations from various countries/states. Many services exist on the internet that provide holidays, however are either not free or offer only limited information. In addition, no complete PHP library seems to exist today