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