Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class AddressTypeFieldTest extends TestCase |
||
10 | { |
||
11 | public function testType(): void |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @dataProvider validTypeProvider |
||
27 | */ |
||
28 | public function testWithValidType(string $type): void |
||
29 | { |
||
30 | $addressTypeField = new AddressTypeField('name', 'value', $type, null); |
||
31 | |||
32 | $this->assertSame($type, $addressTypeField->getType()); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @dataProvider invalidTypeProvider |
||
37 | */ |
||
38 | public function testInvalidType(string $type): void |
||
43 | } |
||
44 | |||
45 | public function validTypeProvider(): array |
||
51 | ]; |
||
52 | } |
||
53 | |||
54 | public function invalidTypeProvider(): array |
||
62 |