Fix typos & strict errors.

This commit is contained in:
mark_story 2012-11-24 22:42:14 -05:00
parent 3ba2db738f
commit 869d556d07
3 changed files with 7 additions and 7 deletions

View file

@ -1195,7 +1195,7 @@ class DispatcherTest extends CakeTestCase {
*
* @return void
*/
public function testDispatcherFilterSuscriber() {
public function testDispatcherFilterSubscriber() {
App::build(array(
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS),
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)

View file

@ -20,14 +20,14 @@ App::uses('DispatcherFilter', 'Routing');
class Test2DispatcherFilter extends DispatcherFilter {
public function beforeDispatch($event) {
public function beforeDispatch(CakeEvent $event) {
$event->data['response']->statusCode(500);
$event->stopPropagation();
return $event->data['response'];
}
public function afterDispatch($event) {
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(200);
}
}
}

View file

@ -20,12 +20,12 @@ App::uses('DispatcherFilter', 'Routing');
class TestDispatcherFilter extends DispatcherFilter {
public function beforeDispatch($event) {
public function beforeDispatch(CakeEvent $event) {
$event->data['request']->params['altered'] = true;
}
public function afterDispatch($event) {
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(304);
}
}
}