PHP Класс Yasumi\tests\Base\HolidayTest

Contains tests for testing the Holiday class
Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase, use trait Yasumi\tests\YasumiBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

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.