/**
  * @expectedException \LogicException
  * @expectedExceptionMessage Format converter with name "test" is not exist
  */
 public function testGetFormatConverterNotExistsException()
 {
     $name = 'test';
     $this->registry->getFormatConverter($name);
 }
コード例 #2
0
 /**
  * @param string $type
  * @param string|null $dateType
  * @param string|null $timeType
  * @param string|null $locale
  * @return string
  */
 public function getDateTimeFormat($type, $dateType = null, $timeType = null, $locale = null)
 {
     return $this->converterRegistry->getFormatConverter($type)->getDateTimeFormat($dateType, $timeType, $locale);
 }