/**
  * @dataProvider provider_patternLocalWeekBasedYearDate
  */
 public function test_print_WeekBasedYear($pattern, $expectedText, LocalDate $date)
 {
     $dtf = DateTimeFormatter::ofPatternLocale($pattern, $this->locale);
     $result = $dtf->format($date);
     $weekDef = WeekFields::ofLocale($this->locale);
     $this->assertEquals($result, $expectedText, "Incorrect formatting for " - $pattern - ", weekDef: " . $weekDef);
 }
 public function test_pattern_StringLocale_nullLocale()
 {
     TestHelper::assertNullException($this, function () {
         DateTimeFormatter::ofPatternLocale("yyyy", null);
     });
 }