| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait RuleWithOptionsTestTrait |
||
| 10 | { |
||
| 11 | abstract public function dataOptions(): array; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @dataProvider dataOptions |
||
| 15 | */ |
||
| 16 | public function testOptions(RuleWithOptionsInterface $rule, array $expectedOptions): void |
||
| 17 | { |
||
| 18 | $this->beforeTestOptions(); |
||
| 19 | |||
| 20 | $options = $rule->getOptions(); |
||
| 21 | $this->assertSame($expectedOptions, $options); |
||
|
|
|||
| 22 | } |
||
| 23 | |||
| 24 | protected function beforeTestOptions(): void |
||
| 26 | } |
||
| 27 | } |
||
| 28 |