public function YamlFileLoaderTest::testLoadClassMetadataThrowsExceptionIfNotAnArray

@expectedException \InvalidArgumentException

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php, line 44

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

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