api/symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.yaml

164 lines
4.2 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: TranslatorTest
class_comment: null
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: Translator
type: class
source: Symfony\Bundle\FrameworkBundle\Translation\Translator
- name: DirectoryResource
type: class
source: Symfony\Component\Config\Resource\DirectoryResource
- name: FileExistenceResource
type: class
source: Symfony\Component\Config\Resource\FileExistenceResource
- name: Container
type: class
source: Symfony\Component\DependencyInjection\Container
- name: Filesystem
type: class
source: Symfony\Component\Filesystem\Filesystem
- name: InvalidArgumentException
type: class
source: Symfony\Component\Translation\Exception\InvalidArgumentException
- name: MessageFormatter
type: class
source: Symfony\Component\Translation\Formatter\MessageFormatter
- name: LoaderInterface
type: class
source: Symfony\Component\Translation\Loader\LoaderInterface
- name: YamlFileLoader
type: class
source: Symfony\Component\Translation\Loader\YamlFileLoader
- name: MessageCatalogue
type: class
source: Symfony\Component\Translation\MessageCatalogue
- name: TranslatorInterface
type: class
source: Symfony\Contracts\Translation\TranslatorInterface
properties: []
methods:
- name: setUp
visibility: protected
parameters: []
comment: null
- name: tearDown
visibility: protected
parameters: []
comment: null
- name: deleteTmpDir
visibility: protected
parameters: []
comment: null
- name: testTransWithoutCaching
visibility: public
parameters: []
comment: null
- name: testTransWithCaching
visibility: public
parameters: []
comment: null
- name: testLoadResourcesWithoutCaching
visibility: public
parameters: []
comment: null
- name: testGetDefaultLocale
visibility: public
parameters: []
comment: null
- name: testInvalidOptions
visibility: public
parameters: []
comment: null
- name: testResourceFilesOptionLoadsBeforeOtherAddedResources
visibility: public
parameters:
- name: debug
- name: enableCache
comment: '# @dataProvider getDebugModeAndCacheDirCombinations'
- name: getDebugModeAndCacheDirCombinations
visibility: public
parameters: []
comment: null
- name: testCatalogResourcesAreAddedForScannedDirectories
visibility: public
parameters: []
comment: null
- name: testCachedCatalogueIsReDumpedWhenScannedDirectoriesChange
visibility: public
parameters: []
comment: null
- name: getCatalogue
visibility: protected
parameters:
- name: locale
- name: messages
- name: resources
default: '[]'
comment: null
- name: getLoader
visibility: protected
parameters: []
comment: null
- name: getContainer
visibility: protected
parameters:
- name: loader
comment: null
- name: getTranslator
visibility: public
parameters:
- name: loader
- name: options
default: '[]'
- name: loaderFomat
default: '''loader'''
- name: translatorClass
default: Translator::class
- name: defaultLocale
default: '''en'''
- name: enabledLocales
default: '[]'
comment: null
- name: testWarmup
visibility: public
parameters: []
comment: null
- name: testEnabledLocales
visibility: public
parameters: []
comment: null
- name: testLoadingTranslationFilesWithDotsInMessageDomain
visibility: public
parameters: []
comment: null
- name: createTranslator
visibility: private
parameters:
- name: loader
- name: options
- name: translatorClass
default: Translator::class
- name: loaderFomat
default: '''loader'''
- name: defaultLocale
default: '''en'''
- name: enabledLocales
default: '[]'
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Bundle\FrameworkBundle\Translation\Translator
- Symfony\Component\Config\Resource\DirectoryResource
- Symfony\Component\Config\Resource\FileExistenceResource
- Symfony\Component\DependencyInjection\Container
- Symfony\Component\Filesystem\Filesystem
- Symfony\Component\Translation\Exception\InvalidArgumentException
- Symfony\Component\Translation\Formatter\MessageFormatter
- Symfony\Component\Translation\Loader\LoaderInterface
- Symfony\Component\Translation\Loader\YamlFileLoader
- Symfony\Component\Translation\MessageCatalogue
- Symfony\Contracts\Translation\TranslatorInterface
interfaces: []