/** * @see Num::smart_format_phone */ public function test_smart_format_phone() { $output = Num::smart_format_phone('1234567'); $expected = '123-4567'; $this->assertEquals($expected, $output); }
/** * Fax number helper function. * * @return string */ public function fax() { return Num::smart_format_phone($this->fax); }