You are here

protected function AbstractConstraintValidatorTest::setValue 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::setValue()
2 calls to AbstractConstraintValidatorTest::setValue()
ChoiceValidatorTest::testTooFewChoices in vendor/symfony/validator/Tests/Constraints/ChoiceValidatorTest.php
ChoiceValidatorTest::testTooManyChoices in vendor/symfony/validator/Tests/Constraints/ChoiceValidatorTest.php

File

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

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function setValue($value) {
  $this->value = $value;
  $this->context
    ->setNode($this->value, $this->object, $this->metadata, $this->propertyPath);
}