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