|
@@ 63-73 (lines=11) @@
|
| 60 |
|
* @dataProvider configProvider |
| 61 |
|
* @param array $config |
| 62 |
|
*/ |
| 63 |
|
public function testNonMatchingAlternativeRouteReturnsFalse(array $config) |
| 64 |
|
{ |
| 65 |
|
$request = Request::create('https://example.org/bar/'); |
| 66 |
|
$event = $this->getGetResponseForExceptionEvent($request); |
| 67 |
|
|
| 68 |
|
$listener = $this->getListener($config); |
| 69 |
|
|
| 70 |
|
$returnValue = $listener->onKernelException($event); |
| 71 |
|
|
| 72 |
|
$this->assertFalse($returnValue); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
/** |
| 76 |
|
* @dataProvider configProvider |
|
@@ 79-89 (lines=11) @@
|
| 76 |
|
* @dataProvider configProvider |
| 77 |
|
* @param array $config |
| 78 |
|
*/ |
| 79 |
|
public function testKernelRequestListenerDoesNothingForNonExistentRoute(array $config) |
| 80 |
|
{ |
| 81 |
|
$request = Request::create('https://example.org/bar'); |
| 82 |
|
$event = $this->getGetResponseForExceptionEvent($request); |
| 83 |
|
|
| 84 |
|
$listener = $this->getListener($config); |
| 85 |
|
|
| 86 |
|
$returnValue = $listener->onKernelException($event); |
| 87 |
|
|
| 88 |
|
$this->assertFalse($returnValue); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
/** |
| 92 |
|
* @dataProvider configProvider |