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 14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Validator \ConstraintViolation ;
16
16
use Symfony \Component \Validator \Tests \Fixtures \CustomArrayObject ;
17
- use Symfony \Component \Validator \Tests \Fixtures \ToString ;
18
17
19
18
class ConstraintViolationTest extends TestCase
20
19
{
@@ -134,7 +133,7 @@ public function testMessageCanBeStringableObject()
134
133
public function testMessageCannotBeArray ()
135
134
{
136
135
$ this ->expectException (\TypeError::class);
137
- $ violation = new ConstraintViolation (
136
+ new ConstraintViolation (
138
137
['cannot be an array ' ],
139
138
'' ,
140
139
[],
@@ -147,7 +146,7 @@ public function testMessageCannotBeArray()
147
146
public function testMessageObjectMustBeStringable ()
148
147
{
149
148
$ this ->expectException (\TypeError::class);
150
- $ violation = new ConstraintViolation (
149
+ new ConstraintViolation (
151
150
new CustomArrayObject (),
152
151
'' ,
153
152
[],
You can’t perform that action at this time.
0 commit comments