use Symfony\Component\Serializer\Tests\Fixtures\Attributes\GroupDummyInterface;
use Symfony\Component\Serializer\Tests\Fixtures\Attributes\GroupDummyParent;
use Symfony\Component\Serializer\Tests\Mapping\TestClassMetadataFactory;
/**
* @author Kévin Dunglas <dunglas@gmail.com>
*/
class ClassMetadataFactoryTest extends TestCase
{ public function testInterface() { $classMetadata =
new ClassMetadataFactory(new LoaderChain([]));
$this->
assertInstanceOf(ClassMetadataFactoryInterface::
class,
$classMetadata);
} public function testGetMetadataFor() { $factory =
new ClassMetadataFactory(new AnnotationLoader());
$classMetadata =
$factory->
getMetadataFor(GroupDummy::
class);
$this->
assertEquals(TestClassMetadataFactory::
createClassMetadata('Symfony\Component\Serializer\Tests\Fixtures\Attributes', true, true
),
$classMetadata);
}