public function IbanValidatorTest::testInvalidIbans

@dataProvider getInvalidIbans

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/IbanValidatorTest.php, line 158

Class

IbanValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidIbans($iban) {
  $constraint = new Iban(array(
    'message' => 'myMessage',
  ));
  $this->context
    ->expects($this
    ->once())
    ->method('addViolation')
    ->with('myMessage', array(
    '{{ value }}' => $iban,
  ));
  $this->validator
    ->validate($iban, $constraint);
}