/** * @dataProvider attributePathProvider */ public function testGetAttributePath($attribute, $expected_path) { $type = new ArticleType(); $attribute_path = AttributePath::getAttributePath($attribute); $this->assertEquals($expected_path, $attribute_path); }
/** * Returns attribute path of this attribute. Depending on this attribute * being part of an embedded entity this may look like this format: * {attribute_name}.{type_prefix}.{attribute_name} * * @return string attribute path of this attribute */ public function getPath() { return AttributePath::getAttributePath($this); }