You are here

public function XmlFileLoaderTest::testLoadGroupSequenceProvider in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php, line 96

Class

XmlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadGroupSequenceProvider() {
  $loader = new XmlFileLoader(__DIR__ . '/constraint-mapping.xml');
  $metadata = new ClassMetadata('Symfony\\Component\\Validator\\Tests\\Fixtures\\GroupSequenceProviderEntity');
  $loader
    ->loadClassMetadata($metadata);
  $expected = new ClassMetadata('Symfony\\Component\\Validator\\Tests\\Fixtures\\GroupSequenceProviderEntity');
  $expected
    ->setGroupSequenceProvider(true);
  $this
    ->assertEquals($expected, $metadata);
}