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


PHP TestHelper::assertTypeError方法代碼示例

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


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

示例1: test_compareToNonDuration

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

示例2: test_compareToNonLocalDateTime

 public function test_compareToNonLocalDateTime()
 {
     TestHelper::assertTypeError($this, function () {
         $c = self::TEST_200707_15_12_30_40_987654321();
         $c->compareTo(new \stdClass());
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKLocalDateTimeTest.php

示例3: test_compareToNonOffsetDateTime

 public function test_compareToNonOffsetDateTime()
 {
     TestHelper::assertTypeError($this, function () {
         $c = self::TEST_2008_6_30_11_30_59_000000500();
         $c->compareTo(new \stdClass());
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKOffsetDateTimeTest.php

示例4: test_compareToNonLocalDate

 public function test_compareToNonLocalDate()
 {
     TestHelper::assertTypeError($this, function () {
         $c = self::TEST_2007_07_15();
         $c->compareTo(new \stdClass());
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKLocalDateTest.php

示例5: test_compareToNonLocalTime

 public function test_compareToNonLocalTime()
 {
     TestHelper::assertTypeError($this, function () {
         $c = self::TEST_123040987654321();
         $c->compareTo(new \stdClass());
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKLocalTimeTest.php

示例6: test_compareToNonOffsetTime

 public function test_compareToNonOffsetTime()
 {
     TestHelper::assertTypeError($this, function () {
         $c = self::TEST_11_30_59_500_PONE();
         $c->compareTo(new \stdClass());
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKOffsetTimeTest.php

示例7: test_compareToNonInstant

 public function test_compareToNonInstant()
 {
     TestHelper::assertTypeError($this, function () {
         $c = Instant::ofEpochSecond(0);
         $c->compareTo(new \stdClass());
     });
 }
開發者ID:celest-time,項目名稱:prototype,代碼行數:7,代碼來源:TCKInstantTest.php


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