You are here

public function StaticMethodLoaderTest::testLoadClassMetadataIgnoresAbstractMethods in Plug 7

File

lib/Symfony/validator/Symfony/Component/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());
}