You are here

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

File

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

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadClassMetadataReturnsFalseIfNotSuccessful() {
  $loader = new YamlFileLoader(__DIR__ . '/constraint-mapping.yml');
  $metadata = new ClassMetadata('\\stdClass');
  $this
    ->assertFalse($loader
    ->loadClassMetadata($metadata));
}