You are here

protected function AbstractValidatorTest::setUp in Plug 7

2 calls to AbstractValidatorTest::setUp()
Abstract2Dot5ApiTest::setUp in lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/Abstract2Dot5ApiTest.php
AbstractLegacyApiTest::setUp in lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/AbstractLegacyApiTest.php
2 methods override AbstractValidatorTest::setUp()
Abstract2Dot5ApiTest::setUp in lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/Abstract2Dot5ApiTest.php
AbstractLegacyApiTest::setUp in lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/AbstractLegacyApiTest.php

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/AbstractValidatorTest.php, line 50

Class

AbstractValidatorTest
@since 2.5 @author Bernhard Schussek <bschussek@gmail.com>

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);
}