本文整理汇总了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);
});
}
示例2: test_isAfter_ObjectNull
public function test_isAfter_ObjectNull()
{
TestHelper::assertNullException($this, function () {
self::TEST_2008_06()->isAfter(null);
});
}
示例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);
});
}
示例4: test_withZone_null
public function test_withZone_null()
{
TestHelper::assertNullException($this, function () {
Clock::offset(Clock::system(self::PARIS()), self::OFFSET())->withZone(null);
});
}
示例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);
});
}
示例6: test_withZone_null
public function test_withZone_null()
{
TestHelper::assertNullException($this, function () {
Clock::systemUTC()->withZone(null);
});
}
示例7: test_factory_from_TemporalAccessor_null
public function test_factory_from_TemporalAccessor_null()
{
TestHelper::assertNullException($this, function () {
ZoneId::from(null);
});
}
示例8: test_withZone_null
public function test_withZone_null()
{
TestHelper::assertNullException($this, function () {
Clock::tick(Clock::system(self::PARIS()), Duration::ofMillis(500))->withZone(null);
});
}
示例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);
});
}
}
示例10: test_subtractFrom_nullNonZero
public function test_subtractFrom_nullNonZero()
{
TestHelper::assertNullException($this, function () {
Period::ofDays(2)->subtractFrom(null);
});
}
示例11: test_compareTo_nullYear
public function test_compareTo_nullYear()
{
TestHelper::assertNullException($this, function () {
$doy = null;
$test = Year::of(1);
$test->compareTo($doy);
});
}
示例12: test_isAfter_ObjectNull
public function test_isAfter_ObjectNull()
{
TestHelper::assertNullException($this, function () {
self::TEST_123040987654321()->isAfter(null);
});
}
示例13: test_getText_nullLocale
public function test_getText_nullLocale()
{
TestHelper::assertNullException($this, function () {
Month::JANUARY()->getDisplayName(TextStyle::FULL(), null);
});
}
示例14: test_isAfter_ObjectNull
public function test_isAfter_ObjectNull()
{
TestHelper::assertNullException($this, function () {
self::TEST_200707_15_12_30_40_987654321()->isAfter(null);
});
}
示例15: test_withZone_null
public function test_withZone_null()
{
TestHelper::assertNullException($this, function () {
Clock::fixed(self::INSTANT(), self::PARIS())->withZone(null);
});
}