Skip to content

Commit 173b483

Browse files
fix merge
1 parent 6dee37c commit 173b483

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Tests/ConstraintViolationTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -111,26 +111,6 @@ public function testToStringOmitsEmptyCodes()
111111
$this->assertSame($expected, (string) $violation);
112112
}
113113

114-
public function testMessageCanBeStringableObject()
115-
{
116-
$message = new ToString();
117-
$violation = new ConstraintViolation(
118-
$message,
119-
(string) $message,
120-
[],
121-
'Root',
122-
'property.path',
123-
null
124-
);
125-
126-
$expected = <<<'EOF'
127-
Root.property.path:
128-
toString
129-
EOF;
130-
$this->assertSame($expected, (string) $violation);
131-
$this->assertSame((string) $message, $violation->getMessage());
132-
}
133-
134114
public function testMessageCannotBeArray()
135115
{
136116
$this->expectException(\TypeError::class);

0 commit comments

Comments
 (0)