Метод |
Описание |
|
testCreateHolidayUnknownLocaleException ( ) |
Tests that an Yasumi\Exception\UnknownLocaleException is thrown in case an invalid locale is given. |
|
testHolidayBlankNameInvalidArgumentException ( ) |
Tests that an InvalidArgumentException is thrown in case an blank short name is given. |
|
testHolidayGetNameWithGlobalAndCustomTranslations ( ) |
Tests the getName function of the Holiday object with global translations and a new custom translation. |
|
testHolidayGetNameWithGlobalTranslations ( ) |
Tests the getName function of the Holiday object with global translations and no custom translation. |
|
testHolidayGetNameWithNoTranslations ( ) |
Tests the getName function of the Holiday object with no translations for the name given. |
|
testHolidayGetNameWithOneNonDefaultTranslation ( ) |
Tests the getName function of the Holiday object with only a default translation for the name given. |
|
testHolidayGetNameWithOnlyDefaultTranslation ( ) |
Tests the getName function of the Holiday object with only a default translation for the name given. |
|
testHolidayGetNameWithOverridenGlobalTranslations ( ) |
Tests the getName function of the Holiday object with global translations and an overriding custom translation. |
|
testHolidayInvalidDateTypeInvalidArgumentException ( ) |
Tests that an InvalidArgumentException is thrown in case an invalid type for date is given. |
|
testHolidayIsJsonSerializable ( ) |
Tests that a Yasumi holiday instance can be serialized to a JSON object. |
|