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{
@@ -134,7 +133,7 @@ public function testMessageCanBeStringableObject()
134133 public function testMessageCannotBeArray ()
135134 {
136135 $ this ->expectException (\TypeError::class);
137- $ violation = new ConstraintViolation (
136+ new ConstraintViolation (
138137 ['cannot be an array ' ],
139138 '' ,
140139 [],
@@ -147,7 +146,7 @@ public function testMessageCannotBeArray()
147146 public function testMessageObjectMustBeStringable ()
148147 {
149148 $ this ->expectException (\TypeError::class);
150- $ violation = new ConstraintViolation (
149+ new ConstraintViolation (
151150 new CustomArrayObject (),
152151 '' ,
153152 [],
You can’t perform that action at this time.
0 commit comments