getMockBuilder('JMS\Serializer\Metadata\PropertyMetadata')->disableOriginalConstructor()->getMock(); $mockProperty->name = $propertyName; $strategy = new CamelCaseNamingStrategy(); self::assertEquals($expected, $strategy->translateName($mockProperty)); } }