File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 9
9
/**
10
10
* Class ValidatorTest
11
11
* @package DvK\Tests\Vat
12
- *
13
- * Todo: Tests for validate method
14
12
*/
15
13
class ValidatorTest extends TestCase
16
14
{
@@ -92,8 +90,21 @@ public function testValidateVatNumberFormat()
92
90
'SE12345678901 ' ,
93
91
'SI1234567 ' ,
94
92
'SK123456789 ' ,
95
- 'fooGB999999973 ' , // valid VAT number but with string prefix
93
+
94
+ // valid number but with prefix
95
+ 'invalid_prefix_GB999999973 ' ,
96
+ 'invalid_prefix_IE1234567X ' ,
97
+ 'invalid_prefix_ESB1234567C ' ,
98
+ 'invalid_prefix_BE0123456789 ' ,
99
+ 'invalid_prefix_MT12345678 ' ,
100
+ 'invalid_prefix_LT123456789 ' ,
101
+
102
+ // valid number but with suffix
103
+ 'IE1234567X_invalid_suffix ' ,
96
104
'ESB1234567C_invalid_suffix ' ,
105
+ 'BE0123456789_invalid_suffix ' ,
106
+ 'MT12345678_invalid_suffix ' ,
107
+ 'LT123456789_invalid_suffix ' ,
97
108
];
98
109
99
110
foreach ($ invalid as $ format ) {
You can’t perform that action at this time.
0 commit comments