public function AnnotationLoaderTest::testLoadGroupSequenceProviderAnnotation in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ Loader/ AnnotationLoaderTest.php, line 159
Class
Namespace
Symfony\Component\Validator\Tests\Mapping\LoaderCode
public function testLoadGroupSequenceProviderAnnotation() {
$loader = new AnnotationLoader(new AnnotationReader());
$metadata = new ClassMetadata('Symfony\\Component\\Validator\\Tests\\Fixtures\\GroupSequenceProviderEntity');
$loader
->loadClassMetadata($metadata);
$expected = new ClassMetadata('Symfony\\Component\\Validator\\Tests\\Fixtures\\GroupSequenceProviderEntity');
$expected
->setGroupSequenceProvider(true);
$expected
->getReflectionClass();
$this
->assertEquals($expected, $metadata);
}