PHP Class Yasumi\tests\Norway\InternationalWorkersDayTest

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

Public Methods

Method Description
InternationalWorkersDayDataProvider ( ) : array Returns a list of random test dates used for assertion of International Workers' Day.
testHolidayType ( ) Tests type of the holiday defined in this test.
testInternationalWorkersDay ( integer $year, DateTime $expected ) Tests International Workers' Day.
testTranslation ( ) Tests translated name of the holiday defined in this test.

Method Details

InternationalWorkersDayDataProvider() public method

Returns a list of random test dates used for assertion of International Workers' Day.
public InternationalWorkersDayDataProvider ( ) : array
return array list of test dates for International Workers' Day

testHolidayType() public method

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

testInternationalWorkersDay() public method

Tests International Workers' Day.
public testInternationalWorkersDay ( integer $year, DateTime $expected )
$year integer the year for which International Workers' Day needs to be tested
$expected DateTime the expected date

testTranslation() public method

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