Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Oct 22, 2021
1 parent ea21611 commit d9aee29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/HydratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit d9aee29

Please sign in to comment.