We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dee37c commit 173b483Copy full SHA for 173b483
Tests/ConstraintViolationTest.php
@@ -111,26 +111,6 @@ public function testToStringOmitsEmptyCodes()
111
$this->assertSame($expected, (string) $violation);
112
}
113
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
134
public function testMessageCannotBeArray()
135
{
136
$this->expectException(\TypeError::class);
0 commit comments