Fixing broken test and coding standard

This commit is contained in:
Jose Lorenzo Rodriguez 2012-04-22 17:39:45 -04:30
parent 8465538800
commit 4b2804bb42
2 changed files with 5 additions and 3 deletions

View file

@ -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) {}
public function afterDispatch($event) {
}
}

View file

@ -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(