From d9aee29d59e0360e608972d4fafef4e3871dd8bc Mon Sep 17 00:00:00 2001 From: Anatoly Nekhay Date: Fri, 22 Oct 2021 18:58:42 +0500 Subject: [PATCH] improve tests --- tests/HydratorTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/HydratorTest.php b/tests/HydratorTest.php index 40081b7..ce08905 100644 --- a/tests/HydratorTest.php +++ b/tests/HydratorTest.php @@ -116,6 +116,11 @@ public function testUnsupportedPropertyType() : void public function testUnionPropertyType() : void { + if (8 > \PHP_MAJOR_VERSION) { + $this->markTestSkipped('PHP 8 is required...'); + return; + } + $this->expectException(Exception\UnsupportedPropertyTypeException::class); $this->expectExceptionMessage('The ObjectWithUnionPropertyType.value property ' . 'contains an union type that is not supported.');