コード例 #1
0
 /**
  * Validates that the provided social security number matches expect Cpf/Cnpj format
  *
  * @return boolean
  */
 public function validateSocialSecurityNumber()
 {
     return CpfAndCnpjValidator::isValid($this->getSocialSecurityNumber());
 }
コード例 #2
0
 public function testIsValidReturnsFalseForTooShortChar()
 {
     $this->assertFalse(CpfAndCnpjValidator::isValid('3456987654'));
 }