| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ParameterTest extends TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @dataProvider getParameterNamesStartingOrEndingWithAColon |
||
| 12 | */ |
||
| 13 | public function testParameterNameStartingOrEndingWithAColon(string $name): void |
||
| 14 | { |
||
| 15 | $this->expectException(\InvalidArgumentException::class); |
||
| 16 | $this->expectExceptionMessage('A parameter name cannot start or end with ":".'); |
||
| 17 | |||
| 18 | new Parameter($name, 'value'); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getParameterNamesStartingOrEndingWithAColon(): array |
||
| 33 | ); |
||
| 34 | } |
||
| 36 |