personId() public static method

Checks a social security number for Iran.
public static personId ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Example #1
0
 /**
  * test the ssn method of IrValidation
  *
  * @return void
  */
 public function testSsn()
 {
     $this->assertTrue(IrValidation::personId('9876543210'));
     $this->assertTrue(IrValidation::personId('1234567891'));
     $this->assertTrue(IrValidation::personId('0324354657'));
     $this->assertFalse(IrValidation::personId('1234567890'));
     //$this->assertFalse(IrValidation::personId('3333333333'));
     $this->assertFalse(IrValidation::personId('0324354654'));
     $this->assertFalse(IrValidation::personId('12345'));
 }