/**
  * @dataProvider stringValueProvider
  */
 public function testFormat($suserValue, $type, $linker, $expected)
 {
     $referenceValue = new ReferenceValue();
     $referenceValue->setFieldProperties(array($this->dataItemFactory->newDIProperty('Foo'), $this->dataItemFactory->newDIProperty('Date'), $this->dataItemFactory->newDIProperty('URL')));
     $referenceValue->setOption(ReferenceValue::OPT_CONTENT_LANGUAGE, 'en');
     $referenceValue->setOption(ReferenceValue::OPT_USER_LANGUAGE, 'en');
     $referenceValue->setUserValue($suserValue);
     $instance = new ReferenceValueFormatter($referenceValue);
     $this->stringValidator->assertThatStringContains($expected, $instance->format($type, $linker));
 }
 public function testGetValuesFromStringWithEncodedSemicolon()
 {
     $instance = new ReferenceValue();
     $this->assertEquals(array('abc', '1;2', 3), $instance->getValuesFromString('abc;1\\;2;3'));
 }