public function LazyLoadingMetadataFactoryTest::testLoadClassMetadata in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ Factory/ LazyLoadingMetadataFactoryTest.php, line 24
Class
Namespace
Symfony\Component\Validator\Tests\Mapping\FactoryCode
public function testLoadClassMetadata() {
$factory = new LazyLoadingMetadataFactory(new TestLoader());
$metadata = $factory
->getMetadataFor(self::PARENTCLASS);
$constraints = array(
new ConstraintA(array(
'groups' => array(
'Default',
'EntityParent',
),
)),
);
$this
->assertEquals($constraints, $metadata
->getConstraints());
}