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