/** @test */ function it_should_format_a_member_information() { $aMember = A::member()->withName('Mario Montealegre')->withBalance(1500025)->build(); $this->assertEquals('Mario Montealegre $15,000.25 MXN', $this->formatter->formatMember($aMember->information())); }
/** * @param MemberInformation $forMember */ private function printStatement(MemberInformation $forMember) { $this->output->writeln("{$this->formatter->formatMember($forMember)}"); }
/** * @param MemberInformation $member * @return string */ public function formatMember(MemberInformation $member) { return $this->formatter->formatMember($member); }