/** * @expectedException \Djmarland\ISIN\Exception\InvalidISINException * @expectedExceptionMessage ISIN Input failed checksum validation * @dataProvider invalidChecksumProvider */ public function testInvalidChecksum($input) { $this->validator->validate($input); }
/** * @param $input * @return string * @throws InvalidISINException */ public static function validate($input) { $validator = new Validator(); return $validator->validate($input); }