You are here

public function ChoiceValidatorTest::testValidCallbackExpected in Plug 7

@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php, line 71

Class

ChoiceValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidCallbackExpected() {
  $this->validator
    ->validate('foobar', new Choice(array(
    'callback' => 'abcd',
  )));
}