You are here

public function StaticMethodLoaderTest::testLoadClassMetadataIgnoresAbstractMethods 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::testLoadClassMetadataIgnoresAbstractMethods()

File

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

Class

StaticMethodLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadClassMetadataIgnoresAbstractMethods() {

  // Disable error reporting, as AbstractStaticMethodLoader produces a
  // strict standards error
  error_reporting(0);
  if (0 !== error_reporting()) {
    $this
      ->markTestSkipped('Could not disable error reporting');
  }
  $metadata = new ClassMetadata(__NAMESPACE__ . '\\AbstractStaticMethodLoader');
  $loader = new StaticMethodLoader('loadMetadata');
  $loader
    ->loadClassMetadata($metadata);
  $this
    ->assertCount(0, $metadata
    ->getConstraints());
}