public function testToUseCaptionOutput() { $referenceValue = new ReferenceValue(); $referenceValue->setCaption('ABC'); $instance = new ReferenceValueFormatter($referenceValue); $this->assertEquals('ABC', $instance->format(ReferenceValueFormatter::WIKI_SHORT)); $this->assertEquals('ABC', $instance->format(ReferenceValueFormatter::HTML_SHORT)); }