Skip to content

Commit 161accc

Browse files
committed
Fix test for quoted value display
1 parent a27976b commit 161accc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Definition/Type/PhpEnumTypeTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ public function testValidParseValue(): void
7474
public function testInvalidSerialize(): void
7575
{
7676
$this->expectException(SerializationError::class);
77-
$this->expectExceptionMessage(sprintf(
78-
'Cannot serialize value Overblog\GraphQLBundle\Tests\Definition\Type\PhpEnumTypeTest as it must be an instance of enum',
79-
));
77+
$this->expectExceptionMessageMatches('/Cannot serialize value (.*) as it must be an instance of enum/');
8078

8179
$this->getEnum()->serialize(self::class);
8280
}

0 commit comments

Comments
 (0)