$this->validator->
validate('',
new Isin());
$this->
assertNoViolation();
} /**
* @dataProvider getValidIsin
*/
public function testValidIsin($isin) { $this->validator->
validate($isin,
new Isin());
$this->
expectViolationsAt(0,
$isin,
new Luhn());
$this->
assertNoViolation();
} public static function getValidIsin() { return [ ['XS2125535901'
], // Goldman Sachs International
['DE000HZ8VA77'
], // UniCredit Bank AG
['CH0528261156'
], // Leonteq Securities AG [Guernsey]
['US0378331005'
], // Apple, Inc.
['AU0000XVGZA3'
], // TREASURY CORP VICTORIA 5 3/4% 2005-2016