public function testConstructor()
 {
     $formatter = new IntlDateFormatter('en', IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT, 'UTC', IntlDateFormatter::GREGORIAN, 'y-M-d');
     $this->assertEquals('y-M-d', $formatter->getPattern());
 }
예제 #2
0
 public function testConstructorWithoutCalendar()
 {
     $formatter = new IntlDateFormatter('en', IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT, 'UTC', null, 'y-M-d');
     $this->assertEquals('y-M-d', $formatter->getPattern());
 }