You are here

public function StaticMethodLoaderTest::testLoadClassMetadataInAbstractClasses in Zircon Profile 8

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

File

vendor/symfony/validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php, line 81

Class

StaticMethodLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadClassMetadataInAbstractClasses() {
  $loader = new StaticMethodLoader('loadMetadata');
  $metadata = new ClassMetadata(__NAMESPACE__ . '\\AbstractStaticLoader');
  $loader
    ->loadClassMetadata($metadata);
  $this
    ->assertCount(1, $metadata
    ->getConstraints());
}