You are here

public function StaticMethodLoaderTest::testLoadClassMetadata in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php, line 48

Class

StaticMethodLoaderTest

Namespace

Symfony\Component\Validator\Tests\Mapping\Loader

Code

public function testLoadClassMetadata() {
  $loader = new StaticMethodLoader('loadMetadata');
  $metadata = new ClassMetadata(__NAMESPACE__ . '\\StaticLoaderEntity');
  $loader
    ->loadClassMetadata($metadata);
  $this
    ->assertEquals(StaticLoaderEntity::$invokedWith, $metadata);
}