You are here

public function IbanValidatorTest::testInvalidIbans in Plug 7

@dataProvider getInvalidIbans

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IbanValidatorTest.php, line 159

Class

IbanValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidIbans($iban, $code) {
  $constraint = new Iban(array(
    'message' => 'myMessage',
  ));
  $this->validator
    ->validate($iban, $constraint);
  $this
    ->buildViolation('myMessage')
    ->setParameter('{{ value }}', '"' . $iban . '"')
    ->setCode($code)
    ->assertRaised();
}