You are here

protected function AbstractConstraintValidatorTest::expectValidateValueAt 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::expectValidateValueAt()
13 calls to AbstractConstraintValidatorTest::expectValidateValueAt()
AllValidatorTest::testWalkMultipleConstraints in vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php
@dataProvider getValidArguments
AllValidatorTest::testWalkSingleConstraint in vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php
@dataProvider getValidArguments
CollectionValidatorTest::testExtraFieldsAllowed in vendor/symfony/validator/Tests/Constraints/CollectionValidatorTest.php
CollectionValidatorTest::testExtraFieldsDisallowed in vendor/symfony/validator/Tests/Constraints/CollectionValidatorTest.php
CollectionValidatorTest::testFieldsAsDefaultOption in vendor/symfony/validator/Tests/Constraints/CollectionValidatorTest.php

... See full list

File

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

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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