/** * @dataProvider testFormatTypeProvider * @param string $value * @param string $type * @param \Exception|null $exception */ public function testFormatType($value, $type, \Exception $exception = null) { if (null !== $exception) { $this->setExpectedException(get_class($exception), $exception->getMessage()); } $this->formatter->formatType($value, $type); }
/** * {@inheritdoc} */ public function getPattern($dateType, $timeType, $locale = null) { $pattern = parent::getPattern($dateType, $timeType, $locale); return $this->modifyPattern($pattern, $dateType, $timeType); }