mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing broken test and coding standard
This commit is contained in:
parent
8465538800
commit
4b2804bb42
2 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
}
|
||||
}
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue