postal() public static method

Checks a postal code for Norway.
public static postal ( string $check ) : boolean
$check string The value to check.
return boolean Success.
コード例 #1
0
ファイル: NoValidationTest.php プロジェクト: cewi/localized
 /**
  * test the postal method of NoValidation
  *
  * @return void
  */
 public function testPostal()
 {
     $this->assertTrue(NoValidation::postal('0123'));
     $this->assertFalse(NoValidation::postal('90210'));
 }