public function testParseValue()
{
$fieldTypeParser = $this->getFieldTypeParser();
$this->fieldTypeProcessorRegistryMock->expects($this->once())->method('hasProcessor')->with($this->equalTo('some-fancy-field-type'))->will($this->returnValue(false));
$fieldTypeMock = $this->fieldTypeMock;
$this->fieldTypeServiceMock->expects($this->once())->method('getFieldType')->with($this->equalTo('some-fancy-field-type'))->will($this->returnCallback(function () use($fieldTypeMock) {
return $fieldTypeMock;
}));
$fieldTypeMock->expects($this->once())->method('fromHash')->with($this->equalTo(array(1, 2, 3)))->will($this->returnValue(array('foo', 'bar')));
$this->assertEquals(array('foo', 'bar'), $fieldTypeParser->parseValue('some-fancy-field-type', array(1, 2, 3)));
}