public function ImageValidatorTest::testMaxRatioUsesTwoDecimalsOnly in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ ImageValidatorTest.php, line 247
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testMaxRatioUsesTwoDecimalsOnly() {
$constraint = new Image(array(
'maxRatio' => 1.33,
));
$this->validator
->validate($this->image4By3, $constraint);
$this
->assertNoViolation();
}