77 lines
2 KiB
YAML
77 lines
2 KiB
YAML
name: IsinValidatorTest
|
|
class_comment: null
|
|
dependencies:
|
|
- name: Isin
|
|
type: class
|
|
source: Symfony\Component\Validator\Constraints\Isin
|
|
- name: IsinValidator
|
|
type: class
|
|
source: Symfony\Component\Validator\Constraints\IsinValidator
|
|
- name: Luhn
|
|
type: class
|
|
source: Symfony\Component\Validator\Constraints\Luhn
|
|
- name: ConstraintValidatorTestCase
|
|
type: class
|
|
source: Symfony\Component\Validator\Test\ConstraintValidatorTestCase
|
|
properties: []
|
|
methods:
|
|
- name: createValidator
|
|
visibility: protected
|
|
parameters: []
|
|
comment: null
|
|
- name: testNullIsValid
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testEmptyStringIsValid
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testValidIsin
|
|
visibility: public
|
|
parameters:
|
|
- name: isin
|
|
comment: '# * @dataProvider getValidIsin'
|
|
- name: getValidIsin
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testIsinWithInvalidFormat
|
|
visibility: public
|
|
parameters:
|
|
- name: isin
|
|
comment: '# * @dataProvider getIsinWithInvalidLenghFormat'
|
|
- name: getIsinWithInvalidLenghFormat
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testIsinWithInvalidPattern
|
|
visibility: public
|
|
parameters:
|
|
- name: isin
|
|
comment: '# * @dataProvider getIsinWithInvalidPattern'
|
|
- name: getIsinWithInvalidPattern
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testIsinWithValidFormatButIncorrectChecksum
|
|
visibility: public
|
|
parameters:
|
|
- name: isin
|
|
comment: '# * @dataProvider getIsinWithValidFormatButIncorrectChecksum'
|
|
- name: getIsinWithValidFormatButIncorrectChecksum
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: assertViolationRaised
|
|
visibility: private
|
|
parameters:
|
|
- name: isin
|
|
- name: code
|
|
comment: null
|
|
traits:
|
|
- Symfony\Component\Validator\Constraints\Isin
|
|
- Symfony\Component\Validator\Constraints\IsinValidator
|
|
- Symfony\Component\Validator\Constraints\Luhn
|
|
- Symfony\Component\Validator\Test\ConstraintValidatorTestCase
|
|
interfaces: []
|