You are here

public function ClassMetadataTest::testGetPropertyMetadataReturnsEmptyArrayWithoutConfiguredMetadata in Zircon Profile 8

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

https://github.com/symfony/symfony/issues/11604.

File

vendor/symfony/validator/Tests/Mapping/ClassMetadataTest.php, line 276

Class

ClassMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testGetPropertyMetadataReturnsEmptyArrayWithoutConfiguredMetadata() {
  $this
    ->assertCount(0, $this->metadata
    ->getPropertyMetadata('foo'), '->getPropertyMetadata() returns an empty collection if no metadata is configured for the given property');
}