當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TestHelper::assertNullException方法代碼示例

本文整理匯總了PHP中TestHelper::assertNullException方法的典型用法代碼示例。如果您正苦於以下問題:PHP TestHelper::assertNullException方法的具體用法?PHP TestHelper::assertNullException怎麽用?PHP TestHelper::assertNullException使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TestHelper的用法示例。


在下文中一共展示了TestHelper::assertNullException方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: test_compareTo_ObjectNull

 public function test_compareTo_ObjectNull()
 {
     TestHelper::assertNullException($this, function () {
         $a = Duration::ofSeconds(0, 0);
         $a->compareTo(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKDurationTest.php

示例2: test_isAfter_ObjectNull

 public function test_isAfter_ObjectNull()
 {
     TestHelper::assertNullException($this, function () {
         self::TEST_2008_06()->isAfter(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKYearMonthTest.php

示例3: test_isAfter_null

 public function test_isAfter_null()
 {
     TestHelper::assertNullException($this, function () {
         $a = OffsetDateTime::of(2008, 6, 30, 11, 30, 59, 0, self::OFFSET_PONE());
         $a->isAfter(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKOffsetDateTimeTest.php

示例4: test_withZone_null

 public function test_withZone_null()
 {
     TestHelper::assertNullException($this, function () {
         Clock::offset(Clock::system(self::PARIS()), self::OFFSET())->withZone(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKClock_OffsetTest.php

示例5: test_isEqual_null

 public function test_isEqual_null()
 {
     TestHelper::assertNullException($this, function () {
         $a = OffsetTime::of(11, 30, 59, 0, self::OFFSET_PONE());
         $a->isEqual(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKOffsetTimeTest.php

示例6: test_withZone_null

 public function test_withZone_null()
 {
     TestHelper::assertNullException($this, function () {
         Clock::systemUTC()->withZone(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKClock_SystemTest.php

示例7: test_factory_from_TemporalAccessor_null

 public function test_factory_from_TemporalAccessor_null()
 {
     TestHelper::assertNullException($this, function () {
         ZoneId::from(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKZoneIdTest.php

示例8: test_withZone_null

 public function test_withZone_null()
 {
     TestHelper::assertNullException($this, function () {
         Clock::tick(Clock::system(self::PARIS()), Duration::ofMillis(500))->withZone(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKClock_TickTest.php

示例9: test_basicTest_getLong_TemporalField_null

 public function test_basicTest_getLong_TemporalField_null()
 {
     foreach ($this->samples() as $sample) {
         TestHelper::assertNullException($this, function () use($sample) {
             $sample->getLong(null);
         });
     }
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:8,代碼來源:AbstractDateTimeTest.php

示例10: test_subtractFrom_nullNonZero

 public function test_subtractFrom_nullNonZero()
 {
     TestHelper::assertNullException($this, function () {
         Period::ofDays(2)->subtractFrom(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKPeriodTest.php

示例11: test_compareTo_nullYear

 public function test_compareTo_nullYear()
 {
     TestHelper::assertNullException($this, function () {
         $doy = null;
         $test = Year::of(1);
         $test->compareTo($doy);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:8,代碼來源:TCKYearTest.php

示例12: test_isAfter_ObjectNull

 public function test_isAfter_ObjectNull()
 {
     TestHelper::assertNullException($this, function () {
         self::TEST_123040987654321()->isAfter(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKLocalTimeTest.php

示例13: test_getText_nullLocale

 public function test_getText_nullLocale()
 {
     TestHelper::assertNullException($this, function () {
         Month::JANUARY()->getDisplayName(TextStyle::FULL(), null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKMonthTest.php

示例14: test_isAfter_ObjectNull

 public function test_isAfter_ObjectNull()
 {
     TestHelper::assertNullException($this, function () {
         self::TEST_200707_15_12_30_40_987654321()->isAfter(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKLocalDateTimeTest.php

示例15: test_withZone_null

 public function test_withZone_null()
 {
     TestHelper::assertNullException($this, function () {
         Clock::fixed(self::INSTANT(), self::PARIS())->withZone(null);
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:6,代碼來源:TCKClock_FixedTest.php


注:本文中的TestHelper::assertNullException方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。