validate() public static method

public static validate ( string $isbn, integer | null $type = null ) : boolean
$isbn string
$type integer | null 10 or 13. Leave empty for both
return boolean
Example #1
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage ISBN type option must be 10 or 13
  */
 public function testInvalidTypeOption()
 {
     Isbn::validate('', 0);
 }