public function CollectionTest::testRejectValidConstraintWithinOptional in Plug 7
@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CollectionTest.php, line 58
Class
- CollectionTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testRejectValidConstraintWithinOptional() {
new Collection(array(
'foo' => new Optional(new Valid()),
));
}