You are here

public function XmlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Tests/Mapping/Loader/XmlFileLoaderTest.php \Symfony\Component\Validator\Tests\Mapping\Loader\XmlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful()
  2. 8 vendor/symfony/serializer/Tests/Mapping/Loader/XmlFileLoaderTest.php \Symfony\Component\Serializer\Tests\Mapping\Loader\XmlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Mapping/Loader/XmlFileLoaderTest.php \Symfony\Component\Validator\Tests\Mapping\Loader\XmlFileLoaderTest::testLoadClassMetadataReturnsTrueIfSuccessful()

File

vendor/symfony/validator/Tests/Mapping/Loader/XmlFileLoaderTest.php, line 30

Class

XmlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

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