private function IbanValidatorTest::assertViolationRaised in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/IbanValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IbanValidatorTest::assertViolationRaised()
5 calls to IbanValidatorTest::assertViolationRaised()
- IbanValidatorTest::testIbansWithInvalidCharacters in vendor/
symfony/ validator/ Tests/ Constraints/ IbanValidatorTest.php - IbanValidatorTest::testIbansWithInvalidCountryCode in vendor/
symfony/ validator/ Tests/ Constraints/ IbanValidatorTest.php - @dataProvider getIbansWithInvalidCountryCode
- IbanValidatorTest::testIbansWithInvalidFormat in vendor/
symfony/ validator/ Tests/ Constraints/ IbanValidatorTest.php - @dataProvider getIbansWithInvalidFormat
- IbanValidatorTest::testIbansWithUnsupportedCountryCode in vendor/
symfony/ validator/ Tests/ Constraints/ IbanValidatorTest.php - @dataProvider getUnsupportedCountryCodes
- IbanValidatorTest::testIbansWithValidFormatButIncorrectChecksum in vendor/
symfony/ validator/ Tests/ Constraints/ IbanValidatorTest.php - @dataProvider getIbansWithValidFormatButIncorrectChecksum
File
- vendor/
symfony/ validator/ Tests/ Constraints/ IbanValidatorTest.php, line 425
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
private function assertViolationRaised($iban, $code) {
$constraint = new Iban(array(
'message' => 'myMessage',
));
$this->validator
->validate($iban, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', '"' . $iban . '"')
->setCode($code)
->assertRaised();
}