You are here

protected function AbstractConstraintValidatorTest::setProperty in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest::setProperty()
6 calls to AbstractConstraintValidatorTest::setProperty()
ExpressionValidatorTest::testFailingExpressionAtNestedPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testFailingExpressionAtPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testFailingExpressionAtPropertyLevelWithoutRoot in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
When validatePropertyValue() is called with a class name https://github.com/symfony/symfony/pull/11498.
ExpressionValidatorTest::testSucceedingExpressionAtNestedPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testSucceedingExpressionAtPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php

... See full list

File

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

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function setProperty($object, $property) {
  $this->object = $object;
  $this->metadata = is_object($object) ? new PropertyMetadata(get_class($object), $property) : null;
  $this->context
    ->setNode($this->value, $this->object, $this->metadata, $this->propertyPath);
}