Total Complexity | 3 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class GetCallbackUnitTest extends TestCase |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Data provider for the |
||
12 | * |
||
13 | * @return array testing dataset |
||
14 | */ |
||
15 | public function getCallbackDataProvider(): array |
||
25 | ] |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Testing getting callback |
||
31 | * |
||
32 | * @param string $route |
||
33 | * route |
||
34 | * @param string $url |
||
35 | * concrete URL |
||
36 | * @dataProvider getCallbackDataProvider |
||
37 | */ |
||
38 | public function testGetCallback(string $route, string $url): void |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Testing case with unexisting callback |
||
55 | */ |
||
56 | public function testGetCallbackWithUnexistingRoute(): void |
||
71 |