public function ChoiceValidatorTest::testValidChoiceCallbackFunction

File

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

Class

ChoiceValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidChoiceCallbackFunction() {
  $constraint = new Choice(array(
    'callback' => __NAMESPACE__ . '\\choice_callback',
  ));
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $this->validator
    ->validate('bar', $constraint);
}