コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function getPattern($dateType, $timeType, $locale = null)
 {
     $pattern = parent::getPattern($dateType, $timeType, $locale);
     return $this->modifyPattern($pattern, $dateType, $timeType);
 }