CommerceGuys\Addressing\Tests\Validator\Constraints\CountryConstraintValidatorTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->constraint = new CountryConstraint();
        // The following code is copied from the parent setUp(), which isn't
        // called to avoid the call to \Locale, which introduces a dependency
        // on the intl extension (or symfony/intl).
        $this->group = 'MyGroup';
        $this->metadata = null;
        $this->object = null;
        $this->value = 'InvalidValue';
        $this->root = 'root';
        $this->propertyPath = '';
        $this->context = $this->createContext();
        $this->validator = $this->createValidator();
        $this->validator->initialize($this->context);
    }