本文整理汇总了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());
});
}
示例2: test_compareToNonLocalDateTime
public function test_compareToNonLocalDateTime()
{
TestHelper::assertTypeError($this, function () {
$c = self::TEST_200707_15_12_30_40_987654321();
$c->compareTo(new \stdClass());
});
}
示例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());
});
}
示例4: test_compareToNonLocalDate
public function test_compareToNonLocalDate()
{
TestHelper::assertTypeError($this, function () {
$c = self::TEST_2007_07_15();
$c->compareTo(new \stdClass());
});
}
示例5: test_compareToNonLocalTime
public function test_compareToNonLocalTime()
{
TestHelper::assertTypeError($this, function () {
$c = self::TEST_123040987654321();
$c->compareTo(new \stdClass());
});
}
示例6: test_compareToNonOffsetTime
public function test_compareToNonOffsetTime()
{
TestHelper::assertTypeError($this, function () {
$c = self::TEST_11_30_59_500_PONE();
$c->compareTo(new \stdClass());
});
}
示例7: test_compareToNonInstant
public function test_compareToNonInstant()
{
TestHelper::assertTypeError($this, function () {
$c = Instant::ofEpochSecond(0);
$c->compareTo(new \stdClass());
});
}