| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 9 | final class RangeTest extends TestCase |
||
| 10 | { |
||
| 11 | |||
| 12 | public function failingTypeDataprovider(): array |
||
| 13 | { |
||
| 14 | return [ |
||
| 15 | ['', 'inclusive'], |
||
| 16 | ['', 'exclusive'], |
||
| 17 | ['inclusive', ''], |
||
| 18 | ['exclusive', ''], |
||
| 19 | [null, null], |
||
| 20 | ['other', 'inclusive'], |
||
| 21 | ['other', 'exclusive'], |
||
| 22 | ['inclusive', 'other'], |
||
| 23 | ['exclusive', 'other'], |
||
| 24 | ['inclusive', null], |
||
| 25 | ['exclusive', null], |
||
| 26 | [null, 'inclusive'], |
||
| 27 | [null, 'exclusive'], |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @dataProvider failingTypeDataprovider |
||
| 34 | */ |
||
| 35 | public function testConstructorFailsWrongType(?string $startType, ?string $endType): void |
||
| 39 | } |
||
| 40 | |||
| 42 |