/**
  * @dataProvider data_text
  */
 public function test_appendText1arg_format(TemporalField $field, TextStyle $style, $value, $expected)
 {
     if ($style == TextStyle::FULL()) {
         $f = $this->builder->appendText($field)->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_1arg_null()
 {
     TestHelper::assertNullException($this, function () {
         $this->builder->appendText(null);
     });
 }
 protected function getFormatterField(TemporalField $field)
 {
     return $this->builder->appendText($field)->toFormatter2($this->locale)->withDecimalStyle($this->decimalStyle);
 }