|
@@ 57-66 (lines=10) @@
|
| 54 |
|
$this->assertEquals('myMethod', $result->methodName); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function testSameUrls() |
| 58 |
|
{ |
| 59 |
|
$splashUrlNode = new SplashUrlNode(); |
| 60 |
|
$callback = new SplashRoute('/', 'myController', 'myMethod', 'myTitle', 'myComment', 'fullComment', array('GET', 'POST')); |
| 61 |
|
$splashUrlNode->registerCallback($callback); |
| 62 |
|
$callback = new SplashRoute('/', 'myController', 'myMethod', 'myTitle', 'myComment', 'fullComment', array('GET', 'POST')); |
| 63 |
|
|
| 64 |
|
$this->expectException(SplashException::class); |
| 65 |
|
$splashUrlNode->registerCallback($callback); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** |
| 69 |
|
* |
|
@@ 180-188 (lines=9) @@
|
| 177 |
|
$splashUrlNode->registerCallback($callback2); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
public function testDoubleWildcardMethodWithHttpMethod() |
| 181 |
|
{ |
| 182 |
|
$splashUrlNode = new SplashUrlNode(); |
| 183 |
|
$callback = new SplashRoute('foo/*', 'myController', 'myMethod', 'myTitle', 'myComment', 'fullComment', ['GET', 'POST']); |
| 184 |
|
$splashUrlNode->registerCallback($callback); |
| 185 |
|
$callback2 = new SplashRoute('foo/*', 'myController2', 'myMethod2', 'myTitle', 'myComment', 'fullComment', ['GET']); |
| 186 |
|
$this->expectException(SplashException::class); |
| 187 |
|
$splashUrlNode->registerCallback($callback2); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
public function testDoubleParameter() |
| 191 |
|
{ |