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