public function CollectionTest::testAcceptRequiredConstraintAsOneElementArray in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CollectionTest.php, line 94
Class
- CollectionTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testAcceptRequiredConstraintAsOneElementArray() {
$collection1 = new Collection(array(
'fields' => array(
'alternate_email' => array(
new Required(new Email()),
),
),
));
$collection2 = new Collection(array(
'fields' => array(
'alternate_email' => new Required(new Email()),
),
));
$this
->assertEquals($collection1, $collection2);
}