public function test_appendTextMapIncomplete() { $map = [1, "JNY"]; $this->builder->appendText3(ChronoField::MONTH_OF_YEAR(), $map); $f = $this->builder->toFormatter(); $dt = LocalDateTime::of(2010, 2, 1, 0, 0); $this->assertEquals($f->format($dt), "2"); }
public function test_appendTextMap_nullStyle() { TestHelper::assertNullException($this, function () { $this->builder->appendText3(ChronoField::MONTH_OF_YEAR(), null); }); }