public function YamlFileLoaderTest::testLoadGroupSequenceProvider in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ Loader/ YamlFileLoaderTest.php, line 111
Class
Namespace
Symfony\Component\Validator\Tests\Mapping\LoaderCode
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);
}