1 | <?php |
||
22 | class NipValidatorTest extends AbstractConstraintValidatorTest |
||
|
|||
23 | { |
||
24 | /** |
||
25 | * @return NipValidator |
||
26 | */ |
||
27 | protected function createValidator() |
||
31 | |||
32 | public function testNullIsValid() |
||
38 | |||
39 | public function testEmptyStringIsValid() |
||
45 | |||
46 | /** |
||
47 | * @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException |
||
48 | */ |
||
49 | public function testExpectsStringCompatibleType() |
||
53 | |||
54 | /** |
||
55 | * @dataProvider getValidNipNumbers |
||
56 | */ |
||
57 | public function testValidNip($nip) |
||
63 | |||
64 | /** |
||
65 | * @dataProvider getInvalidNipNumbers |
||
66 | */ |
||
67 | public function testInvalidNip($nip) |
||
79 | |||
80 | /** |
||
81 | * @return array |
||
82 | */ |
||
83 | public function getValidNipNumbers() |
||
89 | |||
90 | /** |
||
91 | * @return array |
||
92 | */ |
||
93 | public function getInvalidNipNumbers() |
||
103 | |||
104 | protected function getApiVersion() |
||
108 | } |
||
109 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.