PHP Class Yasumi\tests\Australia\AnzacDayTest

Inheritance: extends AustraliaBaseTestCase, implements Yasumi\tests\YasumiTestCaseInterface
Show file Open project: azuyalabs/yasumi

Public Methods

Method Description
HolidayDataProvider ( ) : array Returns a list of test dates
testHoliday ( integer $year, DateTime $expected ) Tests ANZAC Day
testHolidayType ( ) Tests type of the holiday defined in this test.
testNotHoliday ( ) Tests that Labour Day is not present before 1921
testTranslation ( ) Tests the translated name of the holiday defined in this test.

Method Details

HolidayDataProvider() public method

Returns a list of test dates
public HolidayDataProvider ( ) : array
return array list of test dates for the holiday defined in this test

testHoliday() public method

Tests ANZAC Day
public testHoliday ( integer $year, DateTime $expected )
$year integer the year for which the holiday defined in this test needs to be tested
$expected DateTime the expected date

testHolidayType() public method

Tests type of the holiday defined in this test.
public testHolidayType ( )

testNotHoliday() public method

Tests that Labour Day is not present before 1921
public testNotHoliday ( )

testTranslation() public method

Tests the translated name of the holiday defined in this test.
public testTranslation ( )