@@ -99,8 +99,9 @@ public function testTooLargeBytes()
99
99
$ this ->context ->expects ($ this ->once ())
100
100
->method ('addViolation ' )
101
101
->with ('myMessage ' , array (
102
- '{{ limit }} ' => '10 bytes ' ,
103
- '{{ size }} ' => '11 bytes ' ,
102
+ '{{ limit }} ' => '10 ' ,
103
+ '{{ size }} ' => '11 ' ,
104
+ '{{ suffix }} ' => 'bytes ' ,
104
105
'{{ file }} ' => $ this ->path ,
105
106
));
106
107
@@ -119,8 +120,9 @@ public function testTooLargeKiloBytes()
119
120
$ this ->context ->expects ($ this ->once ())
120
121
->method ('addViolation ' )
121
122
->with ('myMessage ' , array (
122
- '{{ limit }} ' => '1 kB ' ,
123
- '{{ size }} ' => '1.4 kB ' ,
123
+ '{{ limit }} ' => '1 ' ,
124
+ '{{ size }} ' => '1.4 ' ,
125
+ '{{ suffix }} ' => 'kB ' ,
124
126
'{{ file }} ' => $ this ->path ,
125
127
));
126
128
@@ -139,8 +141,9 @@ public function testTooLargeMegaBytes()
139
141
$ this ->context ->expects ($ this ->once ())
140
142
->method ('addViolation ' )
141
143
->with ('myMessage ' , array (
142
- '{{ limit }} ' => '1 MB ' ,
143
- '{{ size }} ' => '1.4 MB ' ,
144
+ '{{ limit }} ' => '1 ' ,
145
+ '{{ size }} ' => '1.4 ' ,
146
+ '{{ suffix }} ' => 'MB &
4CF6
#39; ,
144
147
'{{ file }} ' => $ this ->path ,
145
148
));
146
149
0 commit comments