1 | <?php |
||
48 | class RouteTest extends AbstractTest |
||
49 | { |
||
50 | /** |
||
51 | * Test empty route verbs |
||
52 | * |
||
53 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
54 | * @expectedExceptionCode 1464520768 |
||
55 | */ |
||
56 | public function testEmptyRouteVerbs() |
||
60 | |||
61 | /** |
||
62 | * Test invalid route verb |
||
63 | * |
||
64 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
65 | * @expectedExceptionCode 1464520896 |
||
66 | */ |
||
67 | public function testInvalidRouteVerb() |
||
71 | |||
72 | /** |
||
73 | * Test empty route name |
||
74 | * |
||
75 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
76 | * @expectedExceptionCode 1464521013 |
||
77 | */ |
||
78 | public function testEmptyRouteName() |
||
82 | |||
83 | /** |
||
84 | * Test empty route path |
||
85 | * |
||
86 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
87 | * @expectedExceptionCode 1464521073 |
||
88 | */ |
||
89 | public function testEmptyRoutePath() |
||
93 | |||
94 | /** |
||
95 | * Test empty route action |
||
96 | * |
||
97 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
98 | * @expectedExceptionCode 1464521136 |
||
99 | */ |
||
100 | public function testEmptyRouteAction() |
||
104 | |||
105 | /** |
||
106 | * Test invalid route action class |
||
107 | * |
||
108 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
109 | * @expectedExceptionCode 1464521937 |
||
110 | */ |
||
111 | public function testInvalidRouteActionClass() |
||
115 | |||
116 | /** |
||
117 | * Test invalid route action interface |
||
118 | * |
||
119 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
120 | * @expectedExceptionCode 1464522202 |
||
121 | */ |
||
122 | public function testInvalidRouteActionInterface() |
||
126 | |||
127 | /** |
||
128 | * Test invalid route action |
||
129 | * |
||
130 | * @expectedException \Apparat\Server\Ports\Route\InvalidArgumentException |
||
131 | * @expectedExceptionCode 1464521506 |
||
132 | */ |
||
133 | public function testInvalidRouteAction() |
||
137 | |||
138 | /** |
||
139 | * Test the route setters |
||
140 | */ |
||
141 | public function testRouteSetters() |
||
160 | } |
||
161 |