Skip to content

Commit fb3fcd2

Browse files
add assert exception message
1 parent c409057 commit fb3fcd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Validator/Tests/Constraints/BackedEnumValueValidatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ protected function createValidator(): BackedEnumValueValidator
2929
public function testExpectEnumForTypeAttribute()
3030
{
3131
$this->expectException(ConstraintDefinitionException::class);
32+
$this->expectExceptionMessage('The "type" must be a \BackedEnum, got "string".');
3233
new BackedEnumValue(
3334
type: self::class
3435
);

0 commit comments

Comments
 (0)