|
@@ 160-168 (lines=9) @@
|
| 157 |
|
$splashUrlNode->registerCallback($callback); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
public function testDoubleMethod() |
| 161 |
|
{ |
| 162 |
|
$splashUrlNode = new SplashUrlNode(); |
| 163 |
|
$callback = new SplashRoute('foo/bar', 'myController', 'myMethod', 'myTitle', 'myComment'); |
| 164 |
|
$splashUrlNode->registerCallback($callback); |
| 165 |
|
$callback2 = new SplashRoute('foo/bar', 'myController2', 'myMethod2', 'myTitle', 'myComment'); |
| 166 |
|
$this->expectException(SplashException::class); |
| 167 |
|
$splashUrlNode->registerCallback($callback2); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
public function testDoubleWildcardMethod() |
| 171 |
|
{ |
|
@@ 170-178 (lines=9) @@
|
| 167 |
|
$splashUrlNode->registerCallback($callback2); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
public function testDoubleWildcardMethod() |
| 171 |
|
{ |
| 172 |
|
$splashUrlNode = new SplashUrlNode(); |
| 173 |
|
$callback = new SplashRoute('foo/*', 'myController', 'myMethod', 'myTitle', 'myComment'); |
| 174 |
|
$splashUrlNode->registerCallback($callback); |
| 175 |
|
$callback2 = new SplashRoute('foo/*', 'myController2', 'myMethod2', 'myTitle', 'myComment'); |
| 176 |
|
$this->expectException(SplashException::class); |
| 177 |
|
$splashUrlNode->registerCallback($callback2); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
public function testDoubleWildcardMethodWithHttpMethod() |
| 181 |
|
{ |