Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing broken test and coding standard

  • Loading branch information...
commit 4b2804bb420a744c2094758834e4469b883c4c5c 1 parent 8465538
@lorenzo lorenzo authored
View
5 lib/Cake/Routing/DispatcherFilter.php
@@ -81,5 +81,6 @@ public function beforeDispatch($event) {
* keys in the data property.
* @return mixed boolean to stop the event dispatching or null to continue
**/
- public function afterDispatch($event) {}
-}
+ public function afterDispatch($event) {
+ }
+}
View
3  lib/Cake/Test/Case/Routing/DispatcherTest.php
@@ -1291,7 +1291,8 @@ public function testDispatcherFilterCallable() {
$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(
Please sign in to comment.
Something went wrong with that request. Please try again.