public function test_factory_nullOffsetAfter()
 {
     TestHelper::assertNullException($this, function () {
         ZoneOffsetTransitionRule::of(Month::MARCH(), 20, DayOfWeek::SUNDAY(), self::TIME_0100(), false, TimeDefinition::WALL(), self::OFFSET_0200(), self::OFFSET_0200(), null);
     });
 }
 public function test_parseUnresolved_StringParsePosition_nullParsePosition()
 {
     TestHelper::assertNullException($this, function () {
         $test = $this->fmt->withLocale(Locale::ENGLISH())->withDecimalStyle(DecimalStyle::STANDARD());
         $test->parseUnresolved("ONE30", null);
     });
 }
 public function test_appendZoneText_1arg_nullText()
 {
     TestHelper::assertNullException($this, function () {
         $this->builder->appendZoneText(null);
     });
 }
 public function test_zonedDateTime_TemporalAccessor_null()
 {
     TestHelper::assertNullException($this, function () {
         IsoChronology::INSTANCE()->zonedDateTimeFrom(null);
     });
 }
Пример #5
0
 public function test_nullLocaleTemporalFieldDisplayName()
 {
     TestHelper::assertNullException($this, function () {
         // Test the default method in TemporalField using the
         // IsoFields.DAY_OF_QUARTER which does not override getDisplayName
         IsoFields::DAY_OF_QUARTER()->getDisplayName(null);
     });
 }
 public function test_pattern_StringLocale_nullLocale()
 {
     TestHelper::assertNullException($this, function () {
         DateTimeFormatter::ofPatternLocale("yyyy", null);
     });
 }
 public function test_factory_nullOffsetAfter()
 {
     TestHelper::assertNullException($this, function () {
         ZoneOffsetTransition::of(LocalDateTime::of(2010, 12, 3, 11, 30), self::OFFSET_0200(), null);
     });
 }
 public function test_factory_previousOrCurrent_nullDayOfWeek()
 {
     TestHelper::assertNullException($this, function () {
         TemporalAdjusters::previousOrSame(null);
     });
 }
 public function test_getLocalizedLocaleNPE()
 {
     TestHelper::assertNullException($this, function () {
         DateTimeFormatterBuilder::getLocalizedDateTimePattern(FormatStyle::SHORT(), FormatStyle::SHORT(), IsoChronology::INSTANCE(), null);
     });
 }