| Total Complexity | 5 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DiagnosticTypeFieldTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testType(): void |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @dataProvider validTypeProvider |
||
| 23 | */ |
||
| 24 | public function testWithValidType(string $type): void |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @dataProvider invalidTypeProvider |
||
| 33 | */ |
||
| 34 | public function testInvalidType(string $type): void |
||
| 35 | { |
||
| 36 | $this->expectException(InvalidArgumentException::class); |
||
| 37 | |||
| 38 | new DiagnosticTypeField('name', 'value', $type, null); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function validTypeProvider(): array |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function invalidTypeProvider(): array |
||
| 53 | ]; |
||
| 54 | } |
||
| 56 |