File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \Validator \ConstraintViolation ;
1616use Symfony \Component \Validator \Tests \Fixtures \CustomArrayObject ;
17- use Symfony \Component \Validator \Tests \Fixtures \ToString ;
1817
1918class ConstraintViolationTest extends TestCase
2019{
@@ -114,7 +113,7 @@ public function testToStringOmitsEmptyCodes()
114113 public function testMessageCannotBeArray ()
115114 {
116115 $ this ->expectException (\TypeError::class);
117- $ violation = new ConstraintViolation (
116+ new ConstraintViolation (
118117 ['cannot be an array ' ],
119118 '' ,
120119 [],
@@ -127,7 +126,7 @@ public function testMessageCannotBeArray()
127126 public function testMessageObjectMustBeStringable ()
128127 {
129128 $ this ->expectException (\TypeError::class);
130- $ violation = new ConstraintViolation (
129+ new ConstraintViolation (
131130 new CustomArrayObject (),
132131 '' ,
133132 [],
You can’t perform that action at this time.
0 commit comments