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
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testExpectArrayIfMultipleIsTrue() {
$constraint = new Choice(array(
'choices' => array(
'foo',
'bar',
),
'multiple' => true,
));
$this->validator
->validate('asdf', $constraint);
}