/** * @param Translation $value * * @return string */ public function transform($value) { return $value->getId(); }
/** * @test */ public function it_should_format_only_when_iso2_has_translation() { $translation = new Translation(); $formated = $translation->format('fr', 'content'); $this->assertEquals('', $formated); }