From ff122d336c16a2ce0f1aa753b737413417d09641 Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Tue, 8 May 2012 21:19:12 +0200 Subject: [PATCH] fixed tests --- .../Tests/Constraints/FileValidatorTest.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php index f7388dcebe..e8ec770289 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php @@ -99,8 +99,9 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase $this->context->expects($this->once()) ->method('addViolation') ->with('myMessage', array( - '{{ limit }}' => '10 bytes', - '{{ size }}' => '11 bytes', + '{{ limit }}' => '10', + '{{ size }}' => '11', + '{{ suffix }}' => 'bytes', '{{ file }}' => $this->path, )); @@ -119,8 +120,9 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase $this->context->expects($this->once()) ->method('addViolation') ->with('myMessage', array( - '{{ limit }}' => '1 kB', - '{{ size }}' => '1.4 kB', + '{{ limit }}' => '1', + '{{ size }}' => '1.4', + '{{ suffix }}' => 'kB', '{{ file }}' => $this->path, )); @@ -139,8 +141,9 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase $this->context->expects($this->once()) ->method('addViolation') ->with('myMessage', array( - '{{ limit }}' => '1 MB', - '{{ size }}' => '1.4 MB', + '{{ limit }}' => '1', + '{{ size }}' => '1.4', + '{{ suffix }}' => 'MB', '{{ file }}' => $this->path, ));