/** * Test that ssn() formats a number to a social security number. */ public function testSsn() { $this->assertEquals('998-29-3841', Format::ssn('998293841', '###-##-####')); }
/** * {@inheritdoc} */ public static function ssn($value, $format = null) { return parent::ssn($value, self::get('ssn', $format)); }