Skip to content

Commit

Permalink
Applying the use of strict typing.
Browse files Browse the repository at this point in the history
Added missing exceptions throws.

Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Sep 30, 2019
1 parent 673981f commit d16821c
Show file tree
Hide file tree
Showing 44 changed files with 64 additions and 44 deletions.
2 changes: 1 addition & 1 deletion tests/Base/SubstituteHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/BoxingDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/ChristmasDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/EasterMondayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/EnglandBaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/EnglandTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/GoodFridayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
5 changes: 4 additions & 1 deletion tests/UnitedKingdom/England/MayDayBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down Expand Up @@ -34,6 +34,7 @@ class MayDayBankHolidayTest extends EnglandBaseTestCase implements YasumiTestCas

/**
* Tests the holiday defined in this test.
*
* @throws \Exception
* @throws \ReflectionException
*/
Expand All @@ -50,7 +51,9 @@ public function testHoliday()

/**
* Tests the holiday exception in 1995 and 2020.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayExceptions()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/England/NewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
5 changes: 4 additions & 1 deletion tests/UnitedKingdom/England/SpringBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down Expand Up @@ -34,6 +34,7 @@ class SpringBankHolidayTest extends EnglandBaseTestCase implements YasumiTestCas

/**
* Tests the holiday defined in this test.
*
* @throws \Exception
* @throws \ReflectionException
*/
Expand All @@ -50,7 +51,9 @@ public function testHoliday()

/**
* Tests the holiday exceptions in 2002 and 2012.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayException()
{
Expand Down
6 changes: 5 additions & 1 deletion tests/UnitedKingdom/England/SummerBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down Expand Up @@ -50,7 +50,9 @@ public function testHoliday()

/**
* Tests the holiday exception in 2020.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayBefore1965()
{
Expand All @@ -65,7 +67,9 @@ public function testHolidayBefore1965()

/**
* Tests the holiday during trial period in 1965-1970.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayTrialPeriod()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/NorthernIreland/BoxingDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/NorthernIreland/ChristmasDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/NorthernIreland/EasterMondayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/NorthernIreland/GoodFridayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/NorthernIreland/NewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/NorthernIreland/StPatricksDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/BoxingDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/ChristmasDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/GoodFridayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
5 changes: 4 additions & 1 deletion tests/UnitedKingdom/Scotland/MayDayBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down Expand Up @@ -34,6 +34,7 @@ class MayDayBankHolidayTest extends ScotlandBaseTestCase implements YasumiTestCa

/**
* Tests the holiday defined in this test.
*
* @throws \Exception
* @throws \ReflectionException
*/
Expand All @@ -50,7 +51,9 @@ public function testHoliday()

/**
* Tests the holiday exception in 1995 and 2020.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayExceptions()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/NewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/ScotlandBaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/ScotlandTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/SecondNewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/SpringBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/StAndrewsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Scotland/SummerBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/BoxingDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/ChristmasDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/EasterMondayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/GoodFridayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
5 changes: 4 additions & 1 deletion tests/UnitedKingdom/Wales/MayDayBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down Expand Up @@ -34,6 +34,7 @@ class MayDayBankHolidayTest extends WalesBaseTestCase implements YasumiTestCaseI

/**
* Tests the holiday defined in this test.
*
* @throws \Exception
* @throws \ReflectionException
*/
Expand All @@ -50,7 +51,9 @@ public function testHoliday()

/**
* Tests the holiday exception in 1995 and 2020.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayExceptions()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/NewYearsDayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/SpringBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
6 changes: 5 additions & 1 deletion tests/UnitedKingdom/Wales/SummerBankHolidayTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down Expand Up @@ -50,7 +50,9 @@ public function testHoliday()

/**
* Tests the holiday exception in 2020.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayBefore1965()
{
Expand All @@ -65,7 +67,9 @@ public function testHolidayBefore1965()

/**
* Tests the holiday during trial period in 1965-1970.
*
* @throws \ReflectionException
* @throws \Exception
*/
public function testHolidayTrialPeriod()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/WalesBaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitedKingdom/Wales/WalesTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
Expand Down

0 comments on commit d16821c

Please sign in to comment.