use Symfony\Component\Serializer\Tests\Fixtures\Attributes\SerializedNameDummy;
use Symfony\Component\Serializer\Tests\Fixtures\OtherSerializedNameDummy;
/**
* @author Fabien Bourigault <bourigaultfabien@gmail.com>
*/
final class MetadataAwareNameConverterTest extends TestCase
{ public function testInterface() { $classMetadataFactory =
$this->
createMock(ClassMetadataFactoryInterface::
class);
$nameConverter =
new MetadataAwareNameConverter($classMetadataFactory);
$this->
assertInstanceOf(NameConverterInterface::
class,
$nameConverter);
} /**
* @dataProvider attributeProvider
*/
public function testNormalize(string|int
$propertyName, string|int
$expected) { $classMetadataFactory =
new ClassMetadataFactory(new AnnotationLoader());
$nameConverter =
new MetadataAwareNameConverter($classMetadataFactory);