public function ChoiceValidatorTest::testValidChoiceCallbackStaticMethod

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php, line 118

Class

ChoiceValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidChoiceCallbackStaticMethod() {
  $constraint = new Choice(array(
    'callback' => array(
      __CLASS__,
      'staticCallback',
    ),
  ));
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $this->validator
    ->validate('bar', $constraint);
}