PHP Class Yasumi\tests\CzechRepublic\InternationalWorkersDayTest

Class InternationalWorkersDayTest
Author: Dennis Fridrich ([email protected])
Inheritance: extends CzechRepublicBaseTestCase, implements Yasumi\tests\YasumiTestCaseInterface
Show file Open project: azuyalabs/yasumi

Public Methods

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

Method Details

HolidayDataProvider() public method

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

testHoliday() public method

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

testHolidayType() public method

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

testTranslation() public method

Tests translated name of International Workers' Day.
public testTranslation ( )