You are here

public function YamlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Tests/Mapping/Loader/YamlFileLoaderTest.php \Symfony\Component\Validator\Tests\Mapping\Loader\YamlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful()
  2. 8 vendor/symfony/serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php \Symfony\Component\Serializer\Tests\Mapping\Loader\YamlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful()
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::testLoadClassMetadataReturnsTrueIfSuccessful()

File

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

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadClassMetadataReturnsTrueIfSuccessful() {
  $loader = new YamlFileLoader(__DIR__ . '/constraint-mapping.yml');
  $metadata = new ClassMetadata('Symfony\\Component\\Validator\\Tests\\Fixtures\\Entity');
  $this
    ->assertTrue($loader
    ->loadClassMetadata($metadata));
}