protected function AllValidatorTest::setUp

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php, line 25

Class

AllValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function setUp() {
  $this->context = $this
    ->getMock('Symfony\\Component\\Validator\\ExecutionContext', array(), array(), '', false);
  $this->validator = new AllValidator();
  $this->validator
    ->initialize($this->context);
  $this->context
    ->expects($this
    ->any())
    ->method('getGroup')
    ->will($this
    ->returnValue('MyGroup'));
}