You are here

public function XmlFileLoaderTest::testLoadClassMetadataReturnsFalseIfNotSuccessful in Zircon Profile 8.0

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

File

vendor/symfony/validator/Tests/Mapping/Loader/XmlFileLoaderTest.php, line 38

Class

XmlFileLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

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