You are here

public function AnnotationLoaderTest::testLoadGroupSequenceProviderAnnotation in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/AnnotationLoaderTest.php, line 159

Class

AnnotationLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

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);
}