public function testPropertyPrefixRename()
 {
     $obj = new DummyEntity();
     $obj->setId(12345);
     $propertyMapping = $this->getMappingWithObject($obj);
     $this->assertSame($this->namer->propertyPrefixRename($propertyMapping, 'some-name.jpg', array()), '12345-some-name.jpg');
 }
 public function testPropertyRenameByMultiple()
 {
     $obj = new DummyEntity();
     $obj->setId(12345);
     $file = Mocks::getFileMock($this);
     $file->expects($this->once())->method('getSize')->will($this->returnValue('100'));
     $obj->setFile($file);
     $propertyMapping = $this->getMappingWithObject($obj);
     $this->assertSame($this->namer->propertyRename($propertyMapping, 'some-name.jpg', array('field' => 'id/file.size')), '12345/100');
 }