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

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

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

Метод Описание
testAddMultipleTranslations ( ) Tests adding multiple translations.
testAddTranslation ( ) Tests adding single translation.
testAddTranslationUnknownLocaleException ( ) Tests that an UnknownLocaleException is thrown when adding translation for unknown locale.
testLoadingMultipleTranslationsFromDirectory ( ) Tests loading more than one translation file from directory.
testLoadingTranslationsFromDirectory ( ) Tests loading one translation file from directory.
testLoadingTranslationsFromDirectoryWithUnknownLocaleException ( ) Tests that an UnknownLocaleException is thrown when loading translation with unknown locale(s).
testLoadingTranslationsFromInexistentDirectory ( ) Tests that an InvalidArgumentException is thrown when loading translation from inexistent directory.
testNoTranslationForNotTranslatedLocale ( ) Tests that no translation is returned for not translated locale.
testNoTranslationForUnknownHoliday ( ) Tests that no translation is returned for an unknown holiday.
testNotLoadingTranslationsFromFileWithInvalidExtension ( ) Tests that translation is not loaded from file with invalid extension.

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

testAddMultipleTranslations() публичный Метод

Tests adding multiple translations.

testAddTranslation() публичный Метод

Tests adding single translation.
public testAddTranslation ( )

testAddTranslationUnknownLocaleException() публичный Метод

Tests that an UnknownLocaleException is thrown when adding translation for unknown locale.

testLoadingMultipleTranslationsFromDirectory() публичный Метод

Tests loading more than one translation file from directory.

testLoadingTranslationsFromDirectory() публичный Метод

Tests loading one translation file from directory.

testLoadingTranslationsFromDirectoryWithUnknownLocaleException() публичный Метод

Tests that an UnknownLocaleException is thrown when loading translation with unknown locale(s).

testLoadingTranslationsFromInexistentDirectory() публичный Метод

Tests that an InvalidArgumentException is thrown when loading translation from inexistent directory.

testNoTranslationForNotTranslatedLocale() публичный Метод

Tests that no translation is returned for not translated locale.

testNoTranslationForUnknownHoliday() публичный Метод

Tests that no translation is returned for an unknown holiday.

testNotLoadingTranslationsFromFileWithInvalidExtension() публичный Метод

Tests that translation is not loaded from file with invalid extension.