diff --git a/lib/Cake/Routing/DispatcherFilter.php b/lib/Cake/Routing/DispatcherFilter.php index ae8509799..cf6f4fa51 100644 --- a/lib/Cake/Routing/DispatcherFilter.php +++ b/lib/Cake/Routing/DispatcherFilter.php @@ -81,5 +81,6 @@ abstract class DispatcherFilter implements CakeEventListener { * keys in the data property. * @return mixed boolean to stop the event dispatching or null to continue **/ - public function afterDispatch($event) {} -} \ No newline at end of file + public function afterDispatch($event) { + } +} diff --git a/lib/Cake/Test/Case/Routing/DispatcherTest.php b/lib/Cake/Test/Case/Routing/DispatcherTest.php index f3c3d685c..fd862e2b5 100644 --- a/lib/Cake/Test/Case/Routing/DispatcherTest.php +++ b/lib/Cake/Test/Case/Routing/DispatcherTest.php @@ -1291,7 +1291,8 @@ class DispatcherTest extends CakeTestCase { $response = $this->getMock('CakeResponse', array('send')); $dispatcher->dispatch($request, $response); $this->assertEmpty($dispatcher->controller); - $this->assertEquals(array('controller' => null, 'action' => null, 'plugin' => null), $request->params); + $expected = array('controller' => null, 'action' => null, 'plugin' => null, 'named' => array(), 'pass' => array()); + $this->assertEquals($expected, $request->params); $dispatcher = new TestDispatcher(); Configure::write('Dispatcher.filters', array(