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