You are here

public function YamlFileLoaderTest::testLoadGroupSequenceProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Mapping/Loader/YamlFileLoaderTest.php \Symfony\Component\Validator\Tests\Mapping\Loader\YamlFileLoaderTest::testLoadGroupSequenceProvider()

File

vendor/symfony/validator/Tests/Mapping/Loader/YamlFileLoaderTest.php, line 122

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadGroupSequenceProvider() {
  $loader = new YamlFileLoader(__DIR__ . '/constraint-mapping.yml');
  $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);
}