You are here

public function YamlFileLoaderTest::testLoadClassMetadataThrowsExceptionIfNotAnArray in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php, line 36

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');
  $this
    ->setExpectedException('\\InvalidArgumentException');
  $loader
    ->loadClassMetadata($metadata);
}