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
{
@@ -114,7 +113,7 @@ public function testToStringOmitsEmptyCodes()
114
113
public function testMessageCannotBeArray ()
115
114
{
116
115
$ this ->expectException (\TypeError::class);
117
- $ violation = new ConstraintViolation (
116
+ new ConstraintViolation (
118
117
['cannot be an array ' ],
119
118
'' ,
120
119
[],
@@ -127,7 +126,7 @@ public function testMessageCannotBeArray()
127
126
public function testMessageObjectMustBeStringable ()
128
127
{
129
128
$ this ->expectException (\TypeError::class);
130
- $ violation = new ConstraintViolation (
129
+ new ConstraintViolation (
131
130
new CustomArrayObject (),
132
131
'' ,
133
132
[],
You can’t perform that action at this time.
0 commit comments