You are here

protected function AbstractConstraintValidatorTest::expectValidateAt in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest::expectValidateAt()

File

vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php, line 217

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function expectValidateAt($i, $propertyPath, $value, $group) {
  $validator = $this->context
    ->getValidator()
    ->inContext($this->context);
  $validator
    ->expects($this
    ->at(2 * $i))
    ->method('atPath')
    ->with($propertyPath)
    ->will($this
    ->returnValue($validator));
  $validator
    ->expects($this
    ->at(2 * $i + 1))
    ->method('validate')
    ->with($value, $this
    ->logicalOr(null, array()), $group);
}