8000 fixed tests · symfony/symfony@ff122d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff122d3

Browse files
committed
fixed tests
1 parent 868d649 commit ff122d3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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& 4CF6 #39;,
144147
'{{ file }}' => $this->path,
145148
));
146149

0 commit comments

Comments
 (0)
0