IsoCodes\Gsrn::validate PHP Method

validate() public static method

public static validate ( mixed $gsrn ) : boolean
$gsrn mixed
return boolean
    public static function validate($gsrn)
    {
        return parent::check($gsrn, 18);
    }

Usage Example

Beispiel #1
0
 /**
  * testInvalidGsrn
  *
  * @param mixed $gsrn
  *
  * @dataProvider getInvalidGsrn
  *
  * @return void
  */
 public function testInvalidGsrn($gsrn)
 {
     $this->assertFalse(Gsrn::validate($gsrn));
 }