예제 #1
0
 public function test_toString_altered()
 {
     $base = DecimalStyle::of(Locale::US())->withZeroDigit('A')->withDecimalSeparator('@');
     $this->assertEquals($base->__toString(), "DecimalStyle[A+-@]");
 }
 protected function getFormatter3(Locale $locale, TextStyle $style, $ci)
 {
     $db = new DateTimeFormatterBuilder();
     if ($ci) {
         $db = $db->parseCaseInsensitive();
     }
     return $db->appendZoneText($style)->toFormatter2($locale)->withDecimalStyle(DecimalStyle::of($locale));
 }