You are here

public function YamlFileLoaderTest::testInvalidYamlFiles 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::testInvalidYamlFiles()

@dataProvider provideInvalidYamlFiles @expectedException \InvalidArgumentException

File

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

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

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