| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class TypeTest extends ConstraintTestCase |
||
| 9 | { |
||
| 10 | public function testNormalization(): void |
||
| 11 | { |
||
| 12 | $constraint = new class extends ParsleyAssert\Type |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @inheritdoc |
||
| 16 | */ |
||
| 17 | protected function getType(): string |
||
| 18 | { |
||
| 19 | return 'foo'; |
||
| 20 | } |
||
| 21 | }; |
||
| 22 | |||
| 23 | $this->expectException(ConstraintException::class); |
||
| 24 | $constraint->normalize($this->normalizer); |
||
| 25 | } |
||
| 27 |