postal() public static method

Checks a postal code for Czech Republic
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.
Beispiel #1
0
 /**
  * test the postal method of CzValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(CzValidation::postal('123 45'));
     $this->assertFalse(CzValidation::postal('95616'));
 }