You are here

public function ImageValidatorTest::testMaxRatioUsesTwoDecimalsOnly in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php, line 247

Class

ImageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testMaxRatioUsesTwoDecimalsOnly() {
  $constraint = new Image(array(
    'maxRatio' => 1.33,
  ));
  $this->validator
    ->validate($this->image4By3, $constraint);
  $this
    ->assertNoViolation();
}