/** * @dataProvider stringValueProvider */ public function testFormat($stringValue, $type, $linker, $expected) { $monolingualTextValue = new MonolingualTextValue(); $monolingualTextValue->setUserValue($stringValue); $instance = new MonolingualTextValueFormatter($monolingualTextValue); $this->assertEquals($expected, $instance->format($type, $linker)); }
public function testToString() { $instance = new MonolingualTextValue(); $instance->setUserValue('Foo@en'); $this->assertSame('Foo@en', $instance->toString()); }