protected function DateValidatorTest::setUp

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/DateValidatorTest.php, line 22

Class

DateValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function setUp() {
  $this->context = $this
    ->getMock('Symfony\\Component\\Validator\\ExecutionContext', array(), array(), '', false);
  $this->validator = new DateValidator();
  $this->validator
    ->initialize($this->context);
}