You are here

protected function AbstractValidatorTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Validator/AbstractValidatorTest.php \Symfony\Component\Validator\Tests\Validator\AbstractValidatorTest::setUp()
2 calls to AbstractValidatorTest::setUp()
Abstract2Dot5ApiTest::setUp in vendor/symfony/validator/Tests/Validator/Abstract2Dot5ApiTest.php
AbstractLegacyApiTest::setUp in vendor/symfony/validator/Tests/Validator/AbstractLegacyApiTest.php
2 methods override AbstractValidatorTest::setUp()
Abstract2Dot5ApiTest::setUp in vendor/symfony/validator/Tests/Validator/Abstract2Dot5ApiTest.php
AbstractLegacyApiTest::setUp in vendor/symfony/validator/Tests/Validator/AbstractLegacyApiTest.php

File

vendor/symfony/validator/Tests/Validator/AbstractValidatorTest.php, line 51

Class

AbstractValidatorTest
@since 2.5

Namespace

Symfony\Component\Validator\Tests\Validator

Code

protected function setUp() {
  $this->metadataFactory = new FakeMetadataFactory();
  $this->metadata = new ClassMetadata(self::ENTITY_CLASS);
  $this->referenceMetadata = new ClassMetadata(self::REFERENCE_CLASS);
  $this->metadataFactory
    ->addMetadata($this->metadata);
  $this->metadataFactory
    ->addMetadata($this->referenceMetadata);
}