You are here

public function ChoiceValidatorTest::testExpectArrayIfMultipleIsTrue in Plug 7

@expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException

File

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

Class

ChoiceValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testExpectArrayIfMultipleIsTrue() {
  $constraint = new Choice(array(
    'choices' => array(
      'foo',
      'bar',
    ),
    'multiple' => true,
  ));
  $this->validator
    ->validate('asdf', $constraint);
}