/**
  * @dataProvider data_text
  */
 public function test_appendText2arg_format(TemporalField $field, TextStyle $style, $value, $expected)
 {
     $f = $this->builder->appendText2($field, $style)->toFormatter2(Locale::ENGLISH());
     $dt = LocalDateTime::of(2010, 1, 1, 0, 0);
     $dt = $dt->with($field, $value);
     $text = $f->format($dt);
     $this->assertEquals($text, $expected);
 }
 public function test_appendText_2arg_nullStyle()
 {
     TestHelper::assertNullException($this, function () {
         $this->builder->appendText2(ChronoField::MONTH_OF_YEAR(), null);
     });
 }
 protected function getFormatterFieldStyle(TemporalField $field, TextStyle $style)
 {
     return $this->builder->appendText2($field, $style)->toFormatter2($this->locale)->withDecimalStyle($this->decimalStyle);
 }