public function StaticMethodLoaderTest::testLoadClassMetadataIgnoresAbstractMethods in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Component\Validator\Tests\Mapping\LoaderCode
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());
}