@@ -99,8 +99,9 @@ public function testTooLargeBytes()
9999 $ this ->context ->expects ($ this ->once ())
100100 ->method ('addViolation ' )
101101 ->with ('myMessage ' , array (
102- '{{ limit }} ' => '10 bytes ' ,
103- '{{ size }} ' => '11 bytes ' ,
102+ '{{ limit }} ' => '10 ' ,
103+ '{{ size }} ' => '11 ' ,
104+ '{{ suffix }} ' => 'bytes ' ,
104105 '{{ file }} ' => $ this ->path ,
105106 ));
106107
@@ -119,8 +120,9 @@ public function testTooLargeKiloBytes()
119120 $ this ->context ->expects ($ this ->once ())
120121 ->method ('addViolation ' )
121122 ->with ('myMessage ' , array (
122- '{{ limit }} ' => '1 kB ' ,
123- '{{ size }} ' => '1.4 kB ' ,
123+ '{{ limit }} ' => '1 ' ,
124+ '{{ size }} ' => '1.4 ' ,
125+ '{{ suffix }} ' => 'kB ' ,
124126 '{{ file }} ' => $ this ->path ,
125127 ));
126128
@@ -139,8 +141,9 @@ public function testTooLargeMegaBytes()
139141 $ this ->context ->expects ($ this ->once ())
140142 ->method ('addViolation ' )
141143 ->with ('myMessage ' , array (
142- '{{ limit }} ' => '1 MB ' ,
143- '{{ size }} ' => '1.4 MB ' ,
144+ '{{ limit }} ' => '1 ' ,
145+ '{{ size }} ' => '1.4 ' ,
146+ '{{ suffix }} ' => 'MB ' ,
144147 '{{ file }} ' => $ this ->path ,
145148 ));
146149
0 commit comments