You are here

public function YamlFileLoaderTest::testLoadClassMetadataReturnsFalseIfEmpty in Zircon Profile 8.0

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

File

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

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

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