You are here

public function ImageValidatorTest::testMaxRatioUsesTwoDecimalsOnly in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/ImageValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\ImageValidatorTest::testMaxRatioUsesTwoDecimalsOnly()

File

vendor/symfony/validator/Tests/Constraints/ImageValidatorTest.php, line 250

Class

ImageValidatorTest
@requires extension fileinfo

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();
}